To build an application that automatically extracts information from pictures of receipts.
Working on detect regions based on a sample.
- python3
- cv2 (OpenCV 3.4.4)
- numpy
- Tesseract OCR
$ git clone https://github.com/nv-quan/receipt-recognition.git
$ cd receipt-recognition
In ./src/config.json,
input file
: directory of input pictureinput mode
:single
to process one file at a time,folder
to process all file in one folderinput folder
: directory of input folder ifinput mode
isfolder
run mode
:normal
for normal mode,debug
for debug
In ./docsample/sample.json, sample
is the directory of the sample image
$ python3 ./src/register.py
Drag in the image to detect sample region, type the ids for them.
$ python3 ./src/main.py