Bill Validator is a Flutter application that uses OpenAI's vision capabilities to analyze receipts and bills. It extracts merchant information, line items, and totals from photos of receipts, then verifies if the sum of line items matches the total amount.
- 📷 Take photos of receipts/bills or select from gallery
- 🔍 Extract business name, line items, and total amount
- ✅ Verify if line items sum up to the total
- 📊 View detailed breakdown of each receipt
- 📝 Manage a list of processed receipts
(Screenshots will be added here)
- Flutter SDK (>=3.1.3)
- Dart SDK (>=3.1.3)
- An OpenAI API key with access to the
gpt-4omodel
-
Clone the repository:
git clone https://github.com/your-username/bill-validator.git cd bill-validator -
Create a
.envfile in the root directory with your OpenAI API key:OPENAI_API_KEY=your_openai_api_key_here -
Install dependencies:
flutter pub get -
Run the app:
flutter run
Or manually:
cd ios
pod install
cd ..
flutter run -d ios
- The app captures an image of a receipt using the device camera or selects one from the gallery
- The image is sent to OpenAI's API for analysis
- OpenAI extracts the business name, line items, and total amount
- The app verifies if the sum of line items equals the total amount
- Results are displayed in a detailed view and saved to the list
- Flutter for cross-platform mobile development
- OpenAI's gpt-4o model for image analysis
- Flutter_dotenv for environment variable management
Contributions are welcome! Please feel free to submit a Pull Request.