NANY 2024 Entry Information
| Application Name | [Python] Image Colour Information Extractor |
| Version | 0.1 |
| Short Description | Extract color information, analyze color composition, and generate color palettes from images with the Color Extractor and Analysis Tool. |
| Supported OSes | Anything with Python |
| Web Page | Here |
| Download Link | Download Here |
| System Requirements |
|
| Author | Clicky my name |
Description
The Color Extractor and Analysis Tool is a powerful software solution that allows you to extract color information from images and analyze various aspects of their color composition. With this tool, you can gain insights into the colors present in an image, identify dominant colors, calculate color distribution, find closest color names and HEX codes, and generate color palette images.
Using advanced algorithms, the tool processes your selected image and extracts color information by analyzing each pixel. It identifies unique colors, counts their occurrences, and calculates the average color of the image in both RGB and HSV color spaces. The dominant color, which appears most frequently, is also determined.
The tool provides detailed color analysis by presenting the color distribution in the image. You can see the percentage representation of each color, allowing you to understand the overall color composition. Additionally, the tool identifies color names and their corresponding HEX codes for the colors present in the image. This feature enables you to precisely identify and communicate specific colors.
To further enhance your color analysis, the tool finds similar colors for each unique color present in the image. By comparing the colors with a predefined set of colors, it identifies the closest matches based on color similarity. This capability is valuable for tasks such as color matching and color coordination.
Once the color analysis is complete, the tool saves the extracted color information to a text file for easy reference. The saved file includes the image name, dimensions, number of unique colors, average color values, dominant color, color distribution percentages, color names, HEX codes, and similar colors.
In addition to the color analysis report, the tool generates a visually appealing color palette image. The color palette showcases a collection of colors extracted from the image, allowing you to visualize the overall color scheme. The palette image can be saved separately for further use and sharing.
The Color Extractor and Analysis Tool offers a user-friendly interface that allows you to select image files easily. Whether you choose to provide the image file path as a command-line argument or use the graphical file selection dialog, the tool seamlessly processes the image and provides comprehensive color analysis results.
Whether you are a designer, artist, marketer, or simply interested in understanding the color composition of an image, the Color Extractor and Analysis Tool is a valuable asset. Gain valuable insights into colors, explore their distribution, and create stunning color palettes with ease using this powerful tool.
Features
• Color Information Extraction: Extracts color information from images by analyzing each pixel.
• Dominant Color Identification: Identifies the dominant color in the image based on frequency.
• Average Color Calculation: Calculates the average color of the image in both RGB and HSV color spaces.
• Color Distribution Analysis: Determines the percentage representation of each color, providing insights into color composition.
• Color Name and HEX Code Identification: Finds closest color names and corresponding HEX codes for colors in the image.
• Similar Color Detection: Identifies similar colors by comparing them with a predefined set of colors.
• Color Analysis Report: Generates a comprehensive report with image details, unique colors, dominant color, color distribution, color names, and HEX codes.
• Color Palette Generation: Creates a visually appealing color palette image showcasing the extracted colors.
• Image File Selection: Allows easy selection of image files either through command-line arguments or a graphical file selection dialog.
• Error Logging: Logs any errors that occur during the color extraction process for troubleshooting purposes.
Planned Features
No idea yet
Usage
Installation
Drop an image file on top of the python script
[OR]
run with args: python ceaat.py path/to/img.jpeg
Using the Application
It will do it's thing and spit out a text file and palette file
Uninstallation
Delete it
Example Output
Spoiler (click to show/hide)
Image: C:/Users/steph/Desktop/FW/fg/1scripts/0a528585-00ca-4a92-9248-0da6edb7e067.jpeg
Size: 540x239
Number of unique colors: 41992
Average color (RGB): (136, 142, 152)
Average color (HSV): (0.6041666666666666, 0.10526315789473684, 152)
Dominant color: (117, 131, 132)
Color Distribution:
(121, 144, 188): 0.00%
(120, 143, 187): 0.01%
(117, 141, 185): 0.01%
(116, 140, 184): 0.00%
(117, 144, 187): 0.02%
(118, 145, 188): 0.01%
(115, 142, 185): 0.01%
(114, 143, 185): 0.01%
(117, 146, 188): 0.01%
(116, 145, 187): 0.02%
(113, 142, 184): 0.00%
(111, 140, 182): 0.00%
(115, 142, 187): 0.01%
(112, 139, 184): 0.00%
(114, 141, 186): 0.00%
(114, 141, 188): 0.00%
[this continues but it's way too much to paste)
[/spoiler]
Palette Output:

Size: 540x239
Number of unique colors: 41992
Average color (RGB): (136, 142, 152)
Average color (HSV): (0.6041666666666666, 0.10526315789473684, 152)
Dominant color: (117, 131, 132)
Color Distribution:
(121, 144, 188): 0.00%
(120, 143, 187): 0.01%
(117, 141, 185): 0.01%
(116, 140, 184): 0.00%
(117, 144, 187): 0.02%
(118, 145, 188): 0.01%
(115, 142, 185): 0.01%
(114, 143, 185): 0.01%
(117, 146, 188): 0.01%
(116, 145, 187): 0.02%
(113, 142, 184): 0.00%
(111, 140, 182): 0.00%
(115, 142, 187): 0.01%
(112, 139, 184): 0.00%
(114, 141, 186): 0.00%
(114, 141, 188): 0.00%
[this continues but it's way too much to paste)
[/spoiler]
Palette Output:










