ocr code example
Example 1: receipt ocr
# https://github.com/publicMindee/mindee-api-python
from mindee import Client
mindee_client = Client(
expense_receipt_token="your_expense_receipts_api_token_here",
raise_on_error=True
)
parsed_data = mindee_client.parse_receipt("/path/to/file")
Example 2: ocr python library
import cv2
import pytesseract
img = cv2.imread('image.jpg')
# Adding custom options
custom_config = r'--oem 3 --psm 6'
pytesseract.image_to_string(img, config=custom_config)