Ocr, Tesseract, Opencv, Pytesseract, Optical Character Recogn.
the image_to_data function for this. import re import cv2 import pytesseract from pytesseract import Output img = cv2.imread('invoice-sample.jpg') d = pytesseract.image_to_data(img, output_type=Output.DICT) keys = list(d.keys()) date_pattern =