
HalalLens
See if a food is Halal or Haram with AI
🕌 HalalLens
HalalLens
AI-Powered Halal Food Scanner & Ingredient Analyzer
Helping Muslims make informed food choices with confidence.
📖 Overview
HalalLens is an AI-powered mobile application that helps Muslims quickly determine whether food products are Halal. Users can scan ingredient labels or upload product images, and the app intelligently analyzes ingredients using artificial intelligence to identify potentially Haram, Halal, or doubtful components.
The goal of HalalLens is to simplify grocery shopping by providing fast, reliable, and easy-to-understand ingredient analysis while promoting informed decision-making.
✨ Features
📷 Smart Ingredient Scanner
- Scan ingredient labels using the camera
- Import images from the gallery
- Optical Character Recognition (OCR)
- Automatic text extraction
- Multi-line ingredient detection
- Image enhancement for better recognition
🤖 AI Ingredient Analysis
- AI-powered ingredient interpretation
- Ingredient classification
- Detect Haram ingredients
- Detect Halal ingredients
- Detect doubtful (Mashbooh) ingredients
- Explain why an ingredient is flagged
- Easy-to-understand summaries
🔍 Product Analysis
- Complete ingredient breakdown
- Confidence score
- Highlight problematic ingredients
- Display safer alternatives when available
- Analyze packaged foods
- Support for complex ingredient lists
🌍 Multi-Language Support
- English
- Arabic
- Future support for additional languages
📚 Islamic Reference Support
- Ingredient explanations
- Educational information
- General Halal food guidance
- Decision support for consumers
👤 User Experience
- Modern Material Design
- Beautiful animations
- Responsive interface
- Dark Mode
- Light Mode
- Fast scanning
- Clean dashboard
🧠 How It Works
- Open HalalLens.
- Scan a product label or upload an image.
- OCR extracts the ingredient list.
- AI analyzes every ingredient.
- The application classifies ingredients.
- Results are displayed with explanations.
- Users make informed purchasing decisions.
🏗️ Architecture
lib/
│
├── models/
├── services/
├── providers/
├── screens/
├── widgets/
├── utils/
├── themes/
├── ai/
├── ocr/
└── main.dart
🛠️ Technology Stack
Mobile
- React
- Typescript
Artificial Intelligence
- Google Gemini AI
- Natural Language Processing (NLP)
- Ingredient Classification
- AI Prompt Engineering
OCR
- Google ML Kit
- Text Recognition
Development Tools
- Git
- GitHub
- Firebase Hosting
- VS Code
🚀 Core Features
✅ Ingredient Scanner
✅ OCR Text Recognition
✅ AI Ingredient Analysis
✅ Haram Detection
✅ Halal Detection
✅ Doubtful Ingredient Detection
✅ Product Summary
✅ Camera Support
✅ Gallery Import
✅ User Authentication
✅ Scan History
✅ Dark Mode
✅ Cloud Sync
📱 Screens
- Splash Screen
- Login & Registration
- Home
- Camera Scanner
- Gallery Import
- OCR Preview
- AI Analysis
- Ingredient Details
- Scan History
- Profile
- Settings
- About
⚡ Performance
Optimized for fast scanning and responsive interactions.
- Efficient OCR processing
- Optimized AI requests
- Fast image loading
- Lazy loading
- Lightweight UI
- Reduced memory usage
- Smooth animations
🎯 Project Goals
HalalLens aims to make food ingredient analysis simple, accessible, and trustworthy for Muslims around the world.
The project focuses on:
- Fast ingredient recognition
- Reliable AI analysis
- User-friendly design
- Educational insights
- High performance
- Scalability
- Privacy-first architecture
🛣️ Future Roadmap
- Barcode scanning
- Product database
- Community ingredient verification
- Offline OCR
- Offline AI support
- Voice search
- AI nutrition analysis
- Allergen detection
- Personalized dietary preferences
- Shopping list integration
- Wear OS support
- iOS widgets
- Apple Watch companion
- Product comparison
- Food safety alerts
- Global product database
🤝 Contributing
Contributions are welcome.
To contribute:
- Fork the repository.
- Create a feature branch.
- Commit your changes.
- Push your branch.
- Open a Pull Request.
📄 License
This project is licensed under the MIT License.
👨💻 Developer
Sanaullah Shaheer
Software Engineer • Full Stack Developer • Data Scientist • AI Engineer
I enjoy building modern software, intelligent AI applications, and user-focused mobile experiences that solve real-world problems through clean architecture and scalable engineering.
🌟 If you found this project useful, please consider giving it a Star!
Built with React ❤️ Gemini AI