A Flask web application that extracts and analyzes dominant colors from uploaded images.
- Upload JPG/PNG/JPEG images
- Extract top 10 dominant colors using K-means clustering
- Display color names, HEX, and RGB values
- Generate harmonious color palettes
- Fully responsive design
- Interactive color visualization
| Home Page | Results Page 1 | Results Page 2 |
|---|---|---|
![]() |
![]() |
![]() |
# Clone the repository
git clone https://github.com/yourusername/color-analyzer.git
cd color-analyzer
# Create virtual environment
python -m venv venv
# Activate environment
# Windows:
.\venv\Scripts\activate
# Mac/Linux:
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Run the application
python main.py- Access the application at
http://localhost:5000 - Upload an image file (JPG/PNG/JPEG)
- View the extracted color palette
- Copy color values or download the palette
Image Colour Palette Generator/
βββ demo/
β βββ Home.png # Main screenshot
β βββ Results.png # Sample result 1
β βββ Results2.png # Sample result 2
βββ static/
β βββ uploads/
β βββ .gitkeep # Maintains empty folder
βββ templates/
β βββ base.html # Base template
β βββ index.html # Main page
β βββ results.html # Results page
βββ main.py # Main application
βββ requirements.txt # Dependencies
βββ README.md # Project documentation
βββ .gitignore # Ignore rules
- Python 3.8+
- Flask 2.0+
- Pillow
- NumPy
- scikit-learn


