Development of the ocr part of AOI
Samo Penic
2018-11-16 0b5a8decb9cc2ba96d2aed1721e48bafb751e33c
commit | author | age
e555c0 1 from Ocr import Paper
02e0f7 2 from sklearn.externals import joblib
e555c0 3
02e0f7 4 classifier = joblib.load('filename.joblib')
e555c0 5
511c2e 6 #p=Paper(filename='testpage300dpi_scan1.png')
02e0f7 7 p=Paper(filename='sizif111.tif', sid_classifier=classifier)
SP 8 #p=Paper(filename='processed_scans/20141016095134535_0028.tif')
9
e555c0 10 print(p.QRData)
SP 11 print(p.errors)
12
13 print(p.getSkewAngle())
14 print(p.locateUpMarkers())
15 print(p.locateRightMarkers())
16 print(p.answerMatrix)
9efc18 17 p.get_enhanced_sid()