This Flask application allows you to search for images containing a specified color. It uses OpenCV for image processing and WebColors for color parsing from user input.
To run the application locally, follow these steps:
#Clone the repository:
git clone <repository_url>
cd <repository_name>
Make sure you have Python and pip installed. Then, install the required Python packages:
pip install flask cv2 numpy webcolors pandas
Execute the following command to start the Flask server:
python app.py
The application will be accessible at http://localhost:5000 in your web browser.
app.py: Main Flask application file containing routes and logic for color searching. static/images/: Directory containing sample images for color searching. templates/: Directory containing HTML templates for rendering web pages.
Home Page (/): Enter a color in hexadecimal or name format to search for images containing that color.
Search Results (/search): Displays images from the static/images/ directory that contain the specified color.
- Flask: Web framework for Python.
- OpenCV: Library for image processing.
- WebColors: Library for parsing color input from users.
Krishna Kayaking - Creator and developer