You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# RecipeLens — AI Visual Recipe Finder
## Overview
RecipeLens is an AI-powered visual cooking assistant built with Django and React. Simply take a picture of your food or upload an image, and RecipeLens uses a Deep Learning vision model (DenseNet201) to instantly identify the dish.
It returns beautiful, interactive recipe cards featuring:
- **Smart Ingredient Detection & Checklists**
- **Step-by-Step Directions**
- **Dynamic Nutritional Dashboards** (Calories, Protein, Carbs, Fat)
- **Deep Links to Delivery Apps** (Swiggy, Zomato, Blinkit)
## Features
- **High-Performance AI Vision:** Identify a wide range of Indian dishes from photos.
- **Modern Premium UI:** A dynamic, glassmorphism-based React frontend with Vanta.js interactive backgrounds.
- **Live Portion Control:** Adjust your serving size, and the nutritional data recalculates and animates in real time.
- **One-Click Ordering:** Send your missing ingredients straight to Blinkit, or order the meal on Swiggy directly from the recipe card.
## Setup Instructions
### 1. Create a Virtual Environment
1. Open a terminal (Command Prompt or PowerShell).
2. Navigate to the `Source Code` directory:
```sh
cd "Source Code"
```
3. Create a virtual environment named `venv`:
```sh
python -m venv venv
```
### 2. Activate the Virtual Environment
To activate the virtual environment:
- **On Windows:**
```sh
venv\Scripts\activate
```
- **On macOS/Linux:**
```sh
source venv/bin/activate
```
### 3. Install Dependencies
Ensure your virtual environment is activated, then run:
```sh
pip install -r requirments.txt
```
### 4. ⚠️ CRITICAL: Set Environment Variables (Windows)
If you are running this on Windows, you **MUST** set the terminal encoding to UTF-8 before running the server, or the TensorFlow model will crash when downloading weights.
Run these two commands in your active terminal:
```cmd
set PYTHONUTF8=1
set PYTHONIOENCODING=utf-8
```
*(If using PowerShell instead of CMD, use: `$env:PYTHONUTF8=1` and `$env:PYTHONIOENCODING="utf-8"`)*
### 5. Run the Django Server
Navigate to the `src` folder (inside `RecipeLens`):
```sh
cd RecipeLens/src
```
Start the server:
```sh
python manage.py runserver
```
### 6. Access the Application
Open a web browser and go to:
[http://127.0.0.1:8000/](http://127.0.0.1:8000/)
*Note: The very first time you upload an image, the AI model (DenseNet201) may take 1-2 minutes to initialize in the background.*
---
## Final Year Project Contributors
Built with ❤️ by:
- **Diwakar**
- **Naveen**
- **Pradeep**
- **Madhan**
*Powered by TensorFlow + DenseNet201 + Django + React*
# RECEIPEONE