![]() ![]() From those scanned bills, I need to output with tesseract specific data (see bill.jpg) enter image description here ![]() My code above extracts the date correctly, but besides the date I only want to extract the lines with "TOTAL LEI" (and the the value that follows) and "iD BF" (with the value as well).ĭoes anyone have any tips how modify my code to extract those 2 First of all, thank you very much for taking time to answer. This is a part of the output from the bill using tesseract: #if re.search(totalPattern, row) is not None: ![]() #if re.search(idPattern, row) is not None: If re.search(datePattern, row) is not None: If re.search(pricePattern, row) is not None: This is my code for text extraction: pricePattern = r'( \. )' Now, I want to extract text from the final processed image using tesseract, but I only want to extract some specific data. I have watched several tutorials and combined the techniques from them and managed to make the preprocessing part to work quite good (for what I need). I am a newbie with python, but I am trying to make a receipt scanner project.
0 Comments
Leave a Reply. |