--- title: Bill Invoice Scanner Pro emoji: ๐Ÿงพ colorFrom: blue colorTo: indigo sdk: docker sdk_version: 1.42.0 app_file: app.py pinned: false --- # ๐Ÿงพ Invoice Scanner Pro ๐Ÿš€ **Live Application:** [https://huggingface.co/spaces/Divya499/Bill-Invoice-Scanner-Pro](https://huggingface.co/spaces/Divya499/Bill-Invoice-Scanner-Pro) ## ๐Ÿ“– Project Description Invoice Scanner Pro is a highly capable, GPU-accelerated web application built on Streamlit and EasyOCR. It rapidly automates financial data processing by utilizing regex rules to extract vendor names, precise transaction dates, and total amounts directly from uploaded receipts and invoices. Featuring an interactive dashboard, users can easily perform human-in-the-loop data corrections, push verified information into a local SQLite database, and seamlessly export their records into instantly updated real-time CSV or Excel spreadsheets. ## ๐Ÿ“‚ Folder Structure ```text Bill Invoice detector/ โ”œโ”€โ”€ bill_scanner/ # Main Source Package โ”‚ โ”œโ”€โ”€ app.py # Streamlit Dashboard Entrypoint โ”‚ โ”œโ”€โ”€ benchmark_sroie.py # SROIE Benchmarking Script โ”‚ โ”œโ”€โ”€ database.py # SQLite Wrapper & Persistence โ”‚ โ”œโ”€โ”€ extractor.py # Field Parsing & Regex Rules โ”‚ โ””โ”€โ”€ ocr.py # Wrapper around EasyOCR โ”œโ”€โ”€ SROIE_Dataset/ # Benchmark images and texts โ”œโ”€โ”€ tests/ # Unit tests for the system โ”œโ”€โ”€ scripts/ # Helper processing scripts โ”œโ”€โ”€ requirements.txt # Python dependencies โ”œโ”€โ”€ LICENSE # Project software license โ””โ”€โ”€ README.md # Project documentation ``` ## โš™๏ธ Installation & Usage 1. **Install Requirements:** Make sure you have PyTorch installed for your specific CUDA version (e.g., cu118). Then install the requirements: ```bash pip install -r requirements.txt ``` 2. **Run the Dashboard:** ```bash cd bill_scanner streamlit run app.py ```