AI-Powered Digital Wardrobe & Outfit Recommendation System
Turn your closet into a smart wardrobe. Digidrobe uses computer vision to catalog your clothes and generates personalized daily outfit recommendations based on color harmony, style compatibility, and weather.
When you photograph a clothing item, Digidrobe's AI pipeline:
π· Image β Background Removal β Category Detection β Color Extraction β Attribute Tagging
| Stage | Technology | What it does |
|---|---|---|
| Background Removal | rembg (U2Net) |
Isolates clothing from background |
| Category Detection | MobileNetV2 |
Classifies: tops, bottoms, layers, shoes, accessories |
| Color Extraction | OpenCV + K-Means |
Extracts dominant colors (primary + secondary) |
| Style Detection | Rule-based | Determines casual/formal/sporty based on attributes |
The outfit engine uses a scoring algorithm that considers:
score = ( color_harmony_score(item1, item2) * 0.4 + style_compatibility(item1, item2) * 0.3 + variety_bonus(last_worn_days) * 0.2 + season_match(current_weather) * 0.1 )
- Complementary pairs: Navy + White, Black + Cream, Olive + Tan
- Neutral anchoring: Neutrals (black, white, gray, navy, beige) pair with everything
- Monochromatic: Same color family with different shades
| Style | Compatible With |
|---|---|
| Casual | Casual, Sporty |
| Formal | Formal, Smart |
| Smart | Smart, Formal, Casual |
| Sporty | Sporty, Casual |
- Tracks
wearCountper item to prioritize unworn clothes - Prevents outfit repetition within 7 days
- Boosts score for items not worn recently
| Screen | Description |
|---|---|
| Today | Daily outfit recommendation with like/save/remix |
| Closet | Wardrobe gallery with category filters |
| Add Item | Camera/gallery upload with AI tagging |
| Profile | Vibe selector (Chill/Clean/Smart) + preferences |
| History | Past outfits with feedback |
| Onboarding | 3-screen intro flow |
βββββββββββββββββββ βββββββββββββββββββ
β React Native ββββββββΆβ Flask API β
β Expo App β β (Python) β
βββββββββββββββββββ ββββββββββ¬βββββββββ
β
βββββββββββββββββββββββββββΌββββββββββββββββββββββββββ
βΌ βΌ βΌ
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β Image Processor β β Outfit Engine β β SQLite DB β
β (rembg, CV) β β (Rules-based) β β (Wardrobe) β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
- Node.js 18+
- Python 3.11+
- Expo Go app (iOS/Android)
git clone https://github.com/rishabhpatre/digidrobe.git cd digidrobe # Backend cd backend python -m venv venv source venv/bin/activate pip install -r requirements.txt # Mobile cd ../mobile npm install
# Terminal 1: Backend cd backend && source venv/bin/activate && python app.py # β http://localhost:5001 # Terminal 2: Mobile cd mobile && npx expo start # β Scan QR with Expo Go
Update mobile/constants/Colors.ts:
export const API_BASE_URL = 'http://YOUR_MAC_IP:5001/api';
digidrobe/
βββ mobile/ # React Native Expo
β βββ app/
β β βββ (tabs)/ # Main screens (Today, Closet, Profile)
β β βββ (onboarding)/ # Onboarding flow
β β βββ add-item.tsx # Camera upload
β β βββ history.tsx # Outfit history
β βββ services/ # API client + hooks
β βββ constants/ # Design system
β
βββ backend/
β βββ app.py # Flask API + SQLAlchemy models
β βββ services/
β βββ image_processor.py # AI pipeline
β βββ outfit_engine.py # Recommendation logic
β
βββ Design/ # Original mockups
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/health |
Health check |
| GET | /api/wardrobe |
List all items |
| POST | /api/wardrobe |
Add item |
| POST | /api/process-image |
AI image analysis |
| GET | /api/outfit/today |
Get daily outfit |
| POST | /api/outfit/generate |
Generate new outfit |
| POST | /api/outfit/:id/feedback |
Like/save outfit |
Mobile: React Native, Expo, TypeScript, Expo Router
Backend: Python, Flask, SQLAlchemy, SQLite
AI/ML (CPU-only):
rembg- Background removal (U2Net)MobileNetV2- Image classificationOpenCV- Image processingscikit-learn- K-Means clustering
MIT
Built with β by @rishabhpatre