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.
