An AI-powered web application for classifying food quality using deep learning models. Built with TensorFlow, Flask, and modern web technologies.
- Multi-Food Classification: Support for Tomato, Apple, Mango, and Potato
- AI-Powered Analysis: Deep learning models for quality assessment
- Modern UI: Glassmorphism design with neumorphic elements
- Real-time Results: Instant quality classification with confidence scores
- Responsive Design: Works seamlessly on desktop and mobile devices
- Drag & Drop: Easy image upload with drag and drop support
Visit the application: Food Quality Classifier
- Backend: Python, Flask, TensorFlow 2.13.0
- Frontend: HTML5, CSS3, JavaScript, Bootstrap 5
- AI Models: EfficientNet-Lite4 architecture
- Deployment: Ready for Heroku, Render, or any cloud platform
- Python 3.8+
- TensorFlow 2.13.0
- Flask 2.3.3
- Modern web browser
-
Clone the repository
git clone https://github.com/SourabhR23/food-quality-classifier.git cd food-quality-classifier -
Create virtual environment
python -m venv food_quality source food_quality/bin/activate # On Windows: food_quality\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Run the application
python app.py
-
Open in browser Navigate to
http://localhost:5000
- Select Food Type: Choose from Tomato, Apple, Mango, or Potato
- Upload Image: Drag & drop or click to browse for food images
- Get Results: View quality classification (Poor, Average, Good) with confidence scores
- Detailed Analysis: See probability breakdown for each quality level
food-quality-classifier/
├── app.py # Main Flask application
├── food_classifier.py # AI model loading and classification logic
├── requirements.txt # Python dependencies
├── templates/
│ └── index.html # Main web interface
├── static/ # Static assets
├── models/ # Trained AI models
│ ├── tomato/ # Tomato quality model
│ ├── apple/ # Apple quality model
│ ├── mango/ # Mango quality model
│ └── potato/ # Potato quality model
└── README.md # This file
PORT: Server port (default: 5000)DEBUG: Debug mode (default: False)
- Input Size: 300x300 pixels
- Format: RGB images
- Quality Classes: Poor, Average, Good
- Model Architecture: EfficientNet-Lite4
GET /- Main web interfacePOST /classify- Image classification endpointGET /models- Model informationGET /health- Health checkGET /performance- Performance metrics
- Glassmorphism Cards: Modern transparent glass effects
- Neumorphic Buttons: 3D button designs with shadows
- Floating Action Buttons: Quick access to help and settings
- Skeleton Loading: Animated loading screens
- Food-themed Animations: Custom loading animations
- Responsive Grid Layout: Single-page design without scrolling
- Accuracy: High accuracy across all food types
- Speed: Fast inference with TensorFlow optimization
- Memory: Efficient memory usage with lazy loading
- Compatibility: Works with TensorFlow 2.13.0+
This project is licensed under the MIT License - see the LICENSE file for details.
- TensorFlow team for the deep learning framework
- EfficientNet-Lite4 model architecture
- Flask community for the web framework
- Bootstrap team for the UI components
If you have any questions or need help:
- Open an issue on GitHub
- Contact: [Your Email]
- Project: GitHub Repository
- ✨ New modern UI with glassmorphism and neumorphic design
- 🎨 Updated color scheme with warm food-themed palette
- 📱 Single-page layout for better user experience
- 🔧 Fixed TensorFlow compatibility issues
- 🚀 Enhanced loading animations and state management
- 🎯 Initial release with basic functionality
- 🤖 AI-powered food quality classification
- 🌐 Web interface for easy interaction
⭐ Star this repository if you find it helpful!
