Skip to content

simone98dm/dress-up

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Dress Up Style Feedback App

A Python application that captures an image from your camera and uses Ollama to get AI feedback on your outfit style. Available in two versions: a web-based interface and a console-based script.

Prerequisites

  • Python 3.9+
  • Ollama installed and running locally
  • Pull the llava model: ollama pull llava
  • For web version: Flask installed (included in requirements)

Installation

  1. Clone or download this project.
  2. Create a virtual environment: python -m venv .venv
  3. Activate it: source .venv/bin/activate
  4. Install dependencies: pip install opencv-python ollama flask rich

Usage

Web Version (Recommended)

Run the web app for a modern, interactive experience:

python app.py
  • Open your browser and go to http://127.0.0.1:5000/
  • View the live camera feed on the left
  • Click "Take Picture & Get Feedback" to capture and analyze
  • See the Ollama style feedback displayed on the right

Console Version

Run the console script for a terminal-based experience:

python main.py
  • The camera feed opens in a window
  • Press 'c' to capture the image
  • Press 'q' to quit without capturing
  • Ollama feedback is printed in the terminal with rich formatting

Features

  • Live camera feed (web: in-browser, console: OpenCV window)
  • One-click/image capture and AI analysis
  • Structured style feedback from Ollama (Overall Impression, Color Analysis, Fit, Accessories, Suggestions)
  • Friendly, encouraging AI responses
  • Modern web UI with full-screen layout
  • Console version with colored output and icons

Troubleshooting

  • Camera Access Denied: On macOS, grant camera permissions to Python/Terminal in System Preferences > Security & Privacy > Privacy > Camera.
  • Ollama Errors: Ensure Ollama is running (ollama serve) and the llava model is pulled.
  • Web App Not Loading: Check that Flask is installed and no other app is using port 5000.

About

AI turned into a fashion stylist

Resources

Stars

Watchers

Forks