Welcome to the Food Vision Website!
This interactive web application lets users classify food images, explore recipes, and read food-related blogs — all in one place. Powered by deep learning and featuring a sleek user-friendly interface, the project brings together technology and food like never before.
- About the Project
- Features
- Tech Stack
- Installation
- Usage
- Components
- Results
- Project Demo
- Future Enhancements
- Contributing
- Acknowledgments
The Food Vision Website is more than a food classifier — it's a fully functional website with multiple interactive components:
- 🍴 Classifier: Upload food images and get instant predictions powered by a deep learning model.
- 🧑🍳 Recipes: Find recipes for popular dishes.
- 📰 Blogs: Discover food-related articles and tips.
- 📖 Menu: Browse a curated list of dishes.
Built using React for the frontend and Flask for the backend, the website integrates cutting-edge deep learning with modern web development tools for an intuitive user experience.
- 🌐 Multi-Component Website: Includes Home, Menu, About, Classifier, Recipes, and Blogs.
- 📂 Food Classification: Upload an image to classify it into one of the trained food categories.
- 🚀 Fast and Accurate: Leverages EfficientNetB0 for quick and accurate predictions.
- 🧑🍳 Recipe Suggestions: Links to recipes for the classified food items.
- 📊 Blogs: Read articles about food, nutrition, and cooking tips.
- 📱 Responsive Design: Fully responsive UI, accessible across devices.
- ⚛️ React: Component-based architecture.
- ⚡ Vite: Lightning-fast build and development tool.
- 🎨 CSS: For responsive and beautiful styling.
- 🐍 Flask: Lightweight Python web framework.
- 🤖 TensorFlow: Used for training and deploying the food classification model.
Follow these steps to set up the project locally:
git clone https://github.com/AnasHasan786/FoodVision.git
cd flask_backend
pip install -r requirements.txt
python app.py
cd frontend
npm install
npm run dev
The frontend will be live at http://localhost:5173, and the backend will run on http://127.0.0.1:5000.
- Open the application in your browser.
- Use the Classifier component to upload food images and see predictions.
- Explore the Menu, read Blogs, and try out delicious Recipes.
- 🏠 Home: Landing page with an introduction to the website.
- 🍽️ Menu: Browse a list of popular dishes.
- 📄 About: Learn more about the project and its goals.
- 🖼️ Classifier: Upload an image and get instant predictions with confidence scores.
- 📖 Recipes: Find recipes for the classified food items.
- 📰 Blogs: Explore articles on food, nutrition, and cooking tips.
The Food Vision project achieved impressive results using state-of-the-art pre-trained models. Below are the evaluation metrics for the models tested:
| Model | Top-1 Accuracy | Comments |
|---|---|---|
| EfficientNetB0 | 80.05% | Best performance after fine-tuning, with balanced speed and accuracy. |
| EfficientNetB4 | 77.14% | Slightly lower accuracy but capable of handling larger datasets. |
- Add nutrition information for each classified food item.
- Implement multi-food classification for images containing multiple dishes.
- Allow users to save predictions for future reference.
- Add user accounts for a personalized experience.
Contributions are welcome! To contribute:
git checkout -b feature/your-feature-name
git commit -m "Added a new feature"
- TensorFlow/Keras: For providing tools for model training and deployment.
- React & Flask Communities: For their awesome frameworks.
- Food101 Dataset: For making the dataset available for academic use.
