From 0b5a8decb9cc2ba96d2aed1721e48bafb751e33c Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Fri, 16 Nov 2018 18:23:09 +0000 Subject: [PATCH] ups, forgot classifier object dump --- aoiOcr.py | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/aoiOcr.py b/aoiOcr.py index d87f12f..72ed3b9 100644 --- a/aoiOcr.py +++ b/aoiOcr.py @@ -1,8 +1,12 @@ from Ocr import Paper +from sklearn.externals import joblib +classifier = joblib.load('filename.joblib') -p=Paper(filename='testpage250dpi1.png') -#p=Paper(filename='sizif111.tif') +#p=Paper(filename='testpage300dpi_scan1.png') +p=Paper(filename='sizif111.tif', sid_classifier=classifier) +#p=Paper(filename='processed_scans/20141016095134535_0028.tif') + print(p.QRData) print(p.errors) @@ -10,3 +14,4 @@ print(p.locateUpMarkers()) print(p.locateRightMarkers()) print(p.answerMatrix) +p.get_enhanced_sid() -- Gitblit v1.9.3