FlavorSnap is a food image classification web app powered by deep learning. Simply upload a picture of a local dish, and the model will tell you what it is. The app uses a fine-tuned ResNet18 model to recognize and classify various food types such as Akara, Bread, Egusi, Moi Moi, Rice and Stew, and Yam (with the option to add more food variety).
# 🍲 FlavorSnap
**AI-Powered Food Classification Web Application**
Snap a picture of your food and let AI identify the dish instantly!
## 📋 Table of Contents
- 🌟 Features
- 🏗️ Project Structure
- 🛠️ Tech Stack
- 🚀 Quick Start
- 📖 Installation Documentation
- ⚙️ Configuration
- 📖 Detailed Setup
- 🤝 Contributing
- 📝 API Documentation
- 🧪 Testing
- 📊 Model Information
- 🐛 Troubleshooting
- 📄 License
## 🌟 Features
### 🎯 Core Functionality
- **📸 Image Upload & Preview**: Drag-and-drop or click to upload food images
- **🤖 AI-Powered Classification**: ResNet18 model trained on Nigerian dishes
- **📊 Confidence Scores**: Get prediction confidence percentages
- **🗂️ Automatic Organization**: Images saved to predicted class folders
- **⚡ Real-time Processing**: Instant classification results
### 🎨 User Experience
- **📱 Responsive Design**: Works seamlessly on desktop, tablet, and mobile
- **🎭 Modern UI**: Built with TailwindCSS and React components
- **🔄 Loading States**: Visual feedback during processing
- **❌ Error Handling**: User-friendly error messages and recovery
- **🌙 Dark Mode Support**: Comfortable viewing in any lighting
- **🌍 Internationalization (i18n)**: Multi-language support (English, French, Arabic, Yoruba) with RTL layout
### 🔧 Developer Features
- **📡 RESTful API**: Clean API endpoints for integration
- **🧪 Comprehensive Testing**: Unit, integration, and E2E tests
- **📝 Type Safety**: Full TypeScript implementation
- **🐳 Docker Support**: Containerized deployment ready
- **📊 Analytics**: Classification history and insights
### 🛡️ Advanced Security (NEW)
- **🔍 Automated Vulnerability Scanning**: Comprehensive security scanning with Safety, Bandit, Semgrep
- **🚨 Real-time Security Alerts**: Intelligent alerting with ML-based anomaly detection
- **🔧 Automated Remediation**: Self-healing security issues with automated fixes
- **📊 Security Dashboard**: Real-time monitoring and reporting
- **🔐 Compliance Checking**: Automated compliance verifi …