Skip to content

Repository files navigation

📸 Smart Grocery Scanner & AI Recipe Generator

An Android app built with Kotlin and Jetpack Compose to:

  • Capture grocery images
  • Extract text via OCR (Google ML Kit)
  • Parse ingredients
  • Generate recipes using Groq API
  • Securely store last scan data

✨ Features

  • ✅ Camera integration
  • ✅ OCR text extraction
  • ✅ AI-powered recipe generation
  • ✅ Secure storage
  • ✅ Modern UI with Material 3

🛠 Tech Stack

  • Kotlin, Jetpack Compose
  • Google ML Kit OCR
  • Groq API (GPT-OSS-20B)
  • EncryptedSharedPreferences
  • MVVM + StateFlow

🚀 How It Works

  1. Capture grocery image
  2. Extract text using OCR
  3. Parse ingredients
  4. Generate recipes via API
  5. Display in Compose UI

📸 Screenshots


🔑 Setup Instructions

  1. Clone the repo:
git clone https://github.com/your-username/SmartGroceryScanner.git
  1. Add API key in local.properties:
GROQ_API_KEY=your_api_key_here
  1. Sync Gradle & run the app.

✅ Future Improvements

  • Offline OCR
  • Multi-language parsing
  • Advanced recipe filters

📜 License

MIT This is GitHub-ready Markdown with proper headings, lists, and code blocks.

About

Turn handwritten grocery lists into recipes using on-device AI.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages