commit | author | age
|
e555c0
|
1 |
from Ocr import Paper |
02e0f7
|
2 |
from sklearn.externals import joblib |
e555c0
|
3 |
|
762a5e
|
4 |
|
SP |
5 |
settings={'sid_mask':'11xx0xxx',} |
02e0f7
|
6 |
classifier = joblib.load('filename.joblib') |
e555c0
|
7 |
|
511c2e
|
8 |
#p=Paper(filename='testpage300dpi_scan1.png') |
762a5e
|
9 |
p=Paper(filename='sizif111.tif', sid_classifier=classifier, settings=settings) |
02e0f7
|
10 |
#p=Paper(filename='processed_scans/20141016095134535_0028.tif') |
SP |
11 |
|
e555c0
|
12 |
print(p.QRData) |
SP |
13 |
print(p.errors) |
|
14 |
|
|
15 |
print(p.getSkewAngle()) |
|
16 |
print(p.locateUpMarkers()) |
|
17 |
print(p.locateRightMarkers()) |
|
18 |
print(p.answerMatrix) |
9efc18
|
19 |
p.get_enhanced_sid() |