An AI-powered fashion recommendation system that provides personalized style suggestions based on your selfie and chosen occasion.
- Take a selfie through your browser
- Upload an existing photo
- Real-time camera integration
- Age range estimation
- Gender detection
- Hair color analysis
- Skin tone detection with hex color matching
- Custom color palette recommendations
- Occasion-based outfit suggestions
- Casual
- Formal
- Date
- Party
- AI-generated outfit visualizations
- Personalized clothing combinations
- Immediate style analysis results
- Background loading of AI-generated outfits
- Responsive user interface
- Frontend: HTML, CSS, JavaScript
- Backend: Python, Flask
- AI/ML:
- OpenAI GPT-4 Vision (image analysis)
- DALL-E 3 (outfit visualization)
- Python 3.8+
- OpenAI API key
- Web browser with camera access (for selfie feature)
- Clone the repository
git clone https://github.com/yourusername/style-guru.git
cd style-guru
- Install dependencies
pip install -r requirements.txt
- Set up environment variables
# Create .env file and add your OpenAI API key, Azure OpenAI Endpoint, and API Version
echo "AZURE_OPENAI_ENDPOINT=https://your-resource-name.openai.azure.com" >> .env
echo "AZURE_OPENAI_KEY=your-azure-api-key" >> .env
echo "AZURE_OPENAI_API_VERSION=2024-02-15-preview" >> .env
- Run the application
python3 api/index.py
- Open your browser and navigate to
http://localhost:5000
-
Start the App
- Open the application in your web browser
- Allow camera access if you plan to take a selfie
-
Capture Image
- Click "Take Selfie" to use your camera
- Or use "Choose file" to upload an existing photo
-
Select Occasion
- Choose from the dropdown menu:
- Casual
- Formal
- Date
- Party
- Choose from the dropdown menu:
-
Get Recommendations
- Click "Style Me" to receive your analysis
- View immediate style results
- Wait for AI-generated outfit visualizations
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI for GPT-4 Vision and DALL-E 3 APIs
- Flask team for the web framework
- Tailwind CSS for color system inspiration
- Google Fonts for Playfair Display font
Made with ❤️ by Ipseeta