Skip to content

OCR project that can fetch bill amount from a PDF invoice

License

Notifications You must be signed in to change notification settings

sid6i7/invoice-OCR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Invoice-OCR

OCR project that can fetch bill amount from a PDF invoice

Dependencies:

pip install streamlit, pytesseract, pdf2image, opencv-python

Other than these, you also required some pytesseract files and poppler files:

For Pytesseract

Install it from here: https://github.com/UB-Mannheim/tesseract/wiki

Then replace the pyts_path variable with the path of "pytesseract.exe"

For example, it was this for me:

pyts_path = "C:\Program Files\Tesseract-OCR\Tesseract.exe"

For Poppler

Download it from here: https://blog.alivate.com.au/poppler-windows/ and extract it.

Then replace the poppler_path variable with the path of poppler's bin folder

For example, it was this for me:

poppler_path = r"C:\Program Files\poppler-0.68.0\bin"

Demonstration:

Open powershell window in the same folder where the source-code is present.

Run the following streamlit app using the following command:

streamlit run .\OCR_streamlit.py

Following window will open up:

image

Now, simply upload an invoice PDF and it will return the bill amount

image

About

OCR project that can fetch bill amount from a PDF invoice

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages