Strip Analyzer is a Flask application that analyzes vertical strips in an image and returns average color values for each strip.
- Python 3.7+
- pip (Python package installer)
- Postman (for testing the API)
-
Clone the repository:
git clone https://github.com/simran1002/Strip-Analyzer.git
cd stripAnalyzer
python -m venv venv
source venv/bin/activate # On Windows, use venv\Scripts\activate
pip install -r requirements.txt
Start the Flask server:
python analyzeImage.py
URL: http://localhost:5001/analyze Body: JSON with the image file path: json
{ "file_path": "/path/to/your/image.jpg" }
Example To analyze an image named image.jpg located in the strip_images directory:
curl -X POST -H "Content-Type: application/json" -d '{"file_path": "strip_images/image.jpg"}' http://localhost:5001/analyze