Python TIFF Histogram Extraction to CSV
Budget: €8 – €30 EUR
I have a single-page TIFF that contains image data, and I need a small, well-structured Python project that will read that file, compute its colour histogram (or any other standard colour-profile information we agree on), and write the numeric results to a clean CSV file.
I care as much about the code organisation as the actual extraction: classes, clear method separation, doc-strings and a simple command-line entry point are expected so I can drop the module straight into a larger .gal-based workflow. Feel free to rely on Pillow, OpenCV, NumPy or similar mainstream libraries as long as dependencies are listed in a requirements.txt.
Deliverable
• A self-contained Python package (Git repo or zip) with class-based implementation
• One example script showing how to point it at a TIFF and produce the CSV
• Sample CSV output generated from my test image
I’ll test by running the script on the provided TIFF and checking that the CSV lists the histogram bins exactly as produced by the library function you use, so please document any parameters (e.g., number of bins, colour space) inside the code and README.
I care as much about the code organisation as the actual extraction: classes, clear method separation, doc-strings and a simple command-line entry point are expected so I can drop the module straight into a larger .gal-based workflow. Feel free to rely on Pillow, OpenCV, NumPy or similar mainstream libraries as long as dependencies are listed in a requirements.txt.
Deliverable
• A self-contained Python package (Git repo or zip) with class-based implementation
• One example script showing how to point it at a TIFF and produce the CSV
• Sample CSV output generated from my test image
I’ll test by running the script on the provided TIFF and checking that the CSV lists the histogram bins exactly as produced by the library function you use, so please document any parameters (e.g., number of bins, colour space) inside the code and README.