Home - AdrianC2000/InvoiceScannerApp GitHub Wiki
InvoiceScannerApp documentation
Here are the links to each module documentation:
Setup
To correctly setup the application, the following steps are required:
- Install Python 3.12
- Dependencies installation - simply install everything from the
requirements.txt - Poppler installation - download the latest release from here, then set the correct path in config_consts.py.
- Google Cloud Vision API setup
- Create Google Cloud account
- Create a new project for the application
- Activate a free trial which gives you free credits for the first 3 months of usage of Google Cloud services
- Create a service account
- Create a json key for the service account (IAM & Admin -> Service Accounts -> Created service account -> Keys -> Add Key). JSON file should afterward be downloaded.
- Add service account into your project (IAM & Admin -> Service Accounts -> Created service account -> Permissions -> Grant Access). Under New Principals, pass the service account's email (can be found under Service Account Details tab), and give it an owner role.
- Copy the JSON file path, and put it into your environmental variables under "GOOGLE_APPLICATION_CREDENTIALS" key.
- Enable Cloud Vision API to be used in your project (APIs & Services -> Enabled APIs & Services -> Enable APIs & Services -> Cloud Vision API -> Enable)
After a setup run app.py and go under http://localhost:5000/doc to see the endpoints documentation.