ReStyle is an innovative application that offers personalized shopping experiences by utilizing 12 season color theory. The application allows users to upload images, detect dominant colors, and recommend clothing items based on the detected colors and user-selected filters.
- Image Upload: Upload an image to detect dominant colors and segment the image.
- Face Detection: Detects faces in the uploaded image and crops to the first detected face.
- Color Detection: Identifies dominant colors in the cropped face image and excludes gray colors.
- Color Palette Recommendation: Provides a recommended color palette based on 12-season color theory.
- Personalized Shopping: Display clothing items in the Myntra website that match the user's selected filters and recommended color palette.
-
Clone the repository:
git clone https://github.com/NidhiIyer04/ReStyle.git cd ReStyle
-
Install the required dependencies:
- Create a virtual environment
python -m venv venv
- Activate the virtual environment
source venv/bin/activate
- Install the dependencies
pip install -r requirements.txt
- Create a virtual environment
-
Run the Application:
cd Interface streamlit run model.py
-
Upload an Image:
- Click on the "Upload an image" button to upload your image.
-
Apply User Filters:
- Select the desired options from the sidebar such as gender, master category, sub-category, article type, and usage.
-
Image Processing:
- The application will automatically process the uploaded image to segment the face, detect dominant colors, and generate a recommended color palette.
-
Start Shopping:
- Click on the "Check out the recommended products on myntra" button to view personalized clothing recommendations. If the required sections (gender, master category, and image upload) are not completed, a message will be displayed prompting the user to complete these sections.
- OpenCV
- MediaPipe
- Streamlit
- NumPy
- Pillow
- scikit-learn
- Pandas