From 5d557801d61beb4970ffc4c62ba81cd0cd76db68 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Tue, 11 Jun 2019 17:46:17 +0000 Subject: [PATCH] Angle of page rotation can be determined with c wrapper function. --- aoiOcr.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/aoiOcr.py b/aoiOcr.py index d09df59..b096d91 100644 --- a/aoiOcr.py +++ b/aoiOcr.py @@ -28,7 +28,8 @@ "processed_scans/20160510075445995_0026.tif", ] # p=Paper(filename=pa[9], sid_classifier=classifier, settings=settings) -p = Paper(filename="sizif-test000.tif", sid_classifier=classifier, settings=settings) +#p = Paper(filename="test3011/sizif000.tif", sid_classifier=classifier, settings=settings) +p = Paper(filename="sizif000-plus1deg.tif", sid_classifier=classifier, settings=settings) # print(p.QRData) # print(p.errors) @@ -43,7 +44,7 @@ print(p.get_paper_ocr_data()) exit(0) -filelist = glob("processed_scans/*.tif") +filelist = glob("test3011/*.tif") wrong_sid = 0 total = 0 for f in sorted(filelist): -- Gitblit v1.9.3