{"id":22967810,"url":"https://github.com/ibensusan/colour-palette-extractor","last_synced_at":"2025-04-02T05:19:06.862Z","repository":{"id":262249745,"uuid":"886270423","full_name":"iBensusan/Colour-Palette-Extractor","owner":"iBensusan","description":"A Python project that extracts the dominant colours from any image to create a visually appealing colour palette.","archived":false,"fork":false,"pushed_at":"2024-11-13T09:11:11.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T19:49:27.305Z","etag":null,"topics":["python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iBensusan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-10T16:28:49.000Z","updated_at":"2024-11-14T17:15:15.000Z","dependencies_parsed_at":"2024-11-11T12:38:54.588Z","dependency_job_id":"fc1ac08b-af4f-49e2-a101-2ef098386226","html_url":"https://github.com/iBensusan/Colour-Palette-Extractor","commit_stats":null,"previous_names":["ibensusan/colour-palette-extractor"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBensusan%2FColour-Palette-Extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBensusan%2FColour-Palette-Extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBensusan%2FColour-Palette-Extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iBensusan%2FColour-Palette-Extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iBensusan","download_url":"https://codeload.github.com/iBensusan/Colour-Palette-Extractor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246758613,"owners_count":20828966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["python"],"created_at":"2024-12-14T21:14:52.715Z","updated_at":"2025-04-02T05:19:06.830Z","avatar_url":"https://github.com/iBensusan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image Color Palette Extractor\n\nA Python program that extracts the dominant colors from an image and creates a visually appealing color palette. It uses OpenCV to load the image and Scikit-learn’s KMeans clustering algorithm to identify the main colors. This project is an excellent way to learn about image analysis, clustering techniques, and visualization while producing engaging results.\n\n## Features\n\n- **Dominant Color Extraction**: Uses KMeans clustering to find the most common colors in the image.\n- **Image Processing with OpenCV**: Utilizes OpenCV for efficient image loading and manipulation.\n- **Color Palette Visualization**: Displays the extracted colors as a palette using Matplotlib.\n\n## Requirements\n\n- Python 3.x\n- OpenCV\n- Numpy\n- Scikit-learn\n- Matplotlib\n\nInstall the required libraries with:\n```bash\npip install opencv-python numpy scikit-learn matplotlib\n```\n\n## Installation\n\n1. Clone this repository or download the project files:\n\n    ```bash\n    git clone https://github.com/username/image-color-palette-extractor.git\n    cd image-color-palette-extractor\n    ```\n\n2. Ensure you have Python 3 installed:\n\n    ```bash\n    python --version\n    ```\n\n3. Install the required libraries:\n\n    ```bash\n    pip install opencv-python numpy scikit-learn matplotlib\n    ```\n\n4. Place your image file (e.g., `image.png`) in the project directory.\n\n## Usage\n\n1. Run the color palette extractor script:\n\n    ```bash\n    python color_palette_extractor.py\n    ```\n\n2. The program will read the specified image file (`image.png`) and extract the dominant colors.\n3. A color palette will be displayed in a Matplotlib window showing the extracted colors.\n\n## Example Workflow\n\n1. Place an image file (e.g., `image.png`) in the project folder.\n2. Run the script to generate and display the color palette.\n3. Observe the extracted color palette, which showcases the dominant colors in the image.\n\n## Files\n\n- `color_palette_extractor.py`: The main Python script that implements the color extraction and visualization functionality.\n- `README.md`: Project description and usage instructions.\n\n## Professional Use Cases\n\nThis tool has several potential applications in the professional world:\n\n1. **Design and Branding**: Extracting dominant colors from an image can help designers create cohesive color palettes for branding, websites, and marketing materials.\n2. **Data Analysis in Fashion and Retail**: Retail companies can analyze product images to determine popular colors and trends, assisting in inventory decisions and targeted marketing strategies.\n3. **Digital Art and Photography**: Photographers and digital artists can use the extracted color palette as inspiration for editing and color grading, ensuring visually consistent results.\n4. **Content Creation and Social Media**: Content creators can extract a color palette from their photos to maintain a consistent visual theme across their social media posts.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibensusan%2Fcolour-palette-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibensusan%2Fcolour-palette-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibensusan%2Fcolour-palette-extractor/lists"}