GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com β€” GitHub - rishabhpatre/digidrobe: 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.

BranchesTags
Open more actions menu

Latest commit

 

History

21 Commits
21 Commits

Folders and files

NameName
Last commit message
Last commit date
Design
Design
 
 
backend
backend
 
 
mobile
mobile
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 

Repository files navigation

πŸ‘” Digidrobe

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.

React Native Python AI


🧠 AI Features

1. Automatic Clothing Recognition

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

2. Smart Outfit Generation

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
)

Color Harmony Rules

  • 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 Compatibility Matrix

Style Compatible With
Casual Casual, Sporty
Formal Formal, Smart
Smart Smart, Formal, Casual
Sporty Sporty, Casual

3. Variety Enforcement

  • Tracks wearCount per item to prioritize unworn clothes
  • Prevents outfit repetition within 7 days
  • Boosts score for items not worn recently

πŸ“± App Screens

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

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  React Native   │──────▢│   Flask API     β”‚
β”‚  Expo App       β”‚       β”‚   (Python)      β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜       β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                   β”‚
         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
         β–Ό                         β–Ό                         β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Image Processor β”‚    β”‚  Outfit Engine  β”‚    β”‚    SQLite DB    β”‚
β”‚   (rembg, CV)   β”‚    β”‚   (Rules-based) β”‚    β”‚   (Wardrobe)    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • Python 3.11+
  • Expo Go app (iOS/Android)

1. Clone & Install

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

2. Run

# 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

3. Configure for Phone Testing

Update mobile/constants/Colors.ts:

export const API_BASE_URL = 'http://YOUR_MAC_IP:5001/api';

πŸ“ Project Structure

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

πŸ”Œ API Endpoints

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

πŸ› οΈ Tech Stack

Mobile: React Native, Expo, TypeScript, Expo Router

Backend: Python, Flask, SQLAlchemy, SQLite

AI/ML (CPU-only):

  • rembg - Background removal (U2Net)
  • MobileNetV2 - Image classification
  • OpenCV - Image processing
  • scikit-learn - K-Means clustering

πŸ“„ License

MIT


Built with β˜• by @rishabhpatre

About

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.

Topics

computer-visionreact-nativerecommender-system

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 β€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Γ—600. No cookies required.