An Android app that scans paper receipts and converts them to digital e-receipts. Built with Kotlin + Jetpack Compose.
- ML Kit Document Scanner — auto-crop and scan receipts without needing camera permissions
- OCR Parsing — on-device text recognition with regex-based extraction (offline)
- Gemini AI Mode — optional online mode for higher accuracy using Google Gemini 2.0 Flash (requires API key)
- Multi-Page PDF Export — export single or multiple receipts into one PDF file
- Gallery Import — scan existing receipt photos from your gallery
- Receipt Editing — edit merchant, category, items, and notes after saving
- Search & Filter — search by merchant name, filter by category
- Data Persistence — Room database with local storage
| Home | Scan | Receipt List | Receipt Detail | Settings |
|---|---|---|---|---|
- Language: Kotlin
- UI: Jetpack Compose, Material 3
- Database: Room + KSP
- Scanner: ML Kit Document Scanner (
play-services-mlkit-document-scanner) - OCR: ML Kit Text Recognition (
com.google.mlkit:text-recognition) - AI: Google Generative AI (
com.google.ai.client.generativeai) - PDF: Android Canvas PDF API
- Build: Gradle 9.6.1, AGP 8.7.3, Kotlin 2.0.21
- Min SDK: 26
- Target SDK: 36
- Android Studio Ladybug (2024.2.1+) or later
- JDK 21
- Android SDK 36
git clone https://github.com/welbert23/ReceiptScanner.git
cd ReceiptScanner
./gradlew assembleDebugThe APK will be at app/build/outputs/apk/debug/app-debug.apk.
- Get an API key from Google AI Studio
- Open the app → Settings
- Enter your API key and enable AI Gemini scan mode
- Tap Scan Receipt to open the document scanner
- Capture or select a receipt photo
- Review the parsed information (merchant, date, total, items, etc.)
- Edit fields if needed and save
- View all receipts in the Receipt List
- Export receipts as PDF — single or batch
This project is licensed under the MIT License — see the LICENSE file for details.