diff --git a/scripts/main.py b/scripts/main.py index ce67c74..8777dd2 100644 --- a/scripts/main.py +++ b/scripts/main.py @@ -1,11 +1,6 @@ from fastmrz import FastMRZ import os -# fast_mrz = FastMRZ(tesseract_path=r'/opt/homebrew/Cellar/tesseract/5.3.4_1/bin/tesseract') -# fast_mrz = FastMRZ(tesseract_path=r'C:\\Program Files\\Tesseract-OCR\\tesseract.exe') - -fast_mrz = FastMRZ() +fast_mrz = FastMRZ(tesseract_path=r'C:\\Program Files\\Tesseract-OCR\\tesseract.exe') passport_mrz = fast_mrz.read_mrz(os.path.abspath('../data/passport_uk.jpg')) print(passport_mrz) - -# Add README testing badge. Ref, https://github.com/mingrammer/diagrams/blob/master/README.md?plain=1