FridgeVision is a recipe recommendation engine with an integrated smart-fridge image detection feature. Upload a photo of your fridge and the app will detect ingredients (using YOLO-based object detection), combine detected and manually-entered ingredients, and recommend recipes that match what you have on hand.
Status: Active
- Smart Fridge Detection (YOLOv8 model) — detect fruits, vegetables, proteins, and common pantry items from a photo
- Combine AI-detected and manual ingredients into a shopping/ingredient list
- Recipe recommendation engine using item-based similarities and NLP on ingredient lists
- Streamlit-based UI for quick demo and interaction
- Python 3.8 or later
- pip
- (Optional, for GPU) CUDA-enabled NVIDIA drivers and compatible PyTorch build
Required Python packages are listed in requirements.txt. The app uses the YOLOv8 model file yolov8n.pt (included) to perform object detection.
Run these commands in the project root (PowerShell):
# create and activate venv
python -m venv .venv
.\.venv\Scripts\Activate.ps1
# upgrade pip and install dependencies
python -m pip install --upgrade pip
pip install -r requirements.txt
# Optional: run the install check
python test_installation.py
# Start the Streamlit app
streamlit run streamlit_app.pyIf you prefer bash / WSL / macOS, use the equivalent python3 -m venv .venv and source .venv/bin/activate commands.
- Open the Streamlit URL shown in the terminal (usually http://localhost:8501).
- In the sidebar use "Smart Fridge Detection" to upload a photo (JPG/PNG).
- Click "Detect Ingredients" and review results.
streamlit_app.py— Streamlit web UI and main entrypointyolov8n.pt— YOLO model used for object detection (large file)test_installation.py— quick dependency/test scriptrequirements.txt— Python dependenciesdata-sample/— sample data and CSVssrc/— project source code (data, features, models, visualization)FRIDGE_DETECTION_GUIDE.md— user-facing guide for the detection feature
Follow the Quick setup section to create a virtual environment, install dependencies, and run the Streamlit app.
- Take a clear photo of your fridge contents (good lighting, items visible).
- In the Streamlit sidebar open "Smart Fridge Detection" and upload your image (JPG/PNG).
- Click "🔍 Detect Ingredients" to run YOLOv8-based detection; detected items will populate the ingredient list.
- Review and optionally edit the detected ingredients, then click "🎯 Get Recipe Recommendations".
- Add ingredients manually in the sidebar (one per line).
- Optionally select meal type and dietary preferences.
- Click "Get Recipe Recommendations" and browse results.
- Upload an image for bulk detection and then manually add any missing items. The app will merge both sources.