From 4c5610024a2425733cf83ce91004b38b73539258 Mon Sep 17 00:00:00 2001 From: Sivakumar Mahalingam Date: Sun, 7 Apr 2024 11:59:41 +0400 Subject: [PATCH] updated main --- scripts/main.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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