개정판 d7c47d27
fix
Change-Id: Ida45a5d2cc69296aec0a995ce3ac2f91a5b0cedd
minorTools/gcloud_test.py | ||
---|---|---|
60 | 60 |
cv2.putText(_image, text.description, (_vertices[0][0] + 30, (_vertices[0][1] - 10)), cv2.FONT_HERSHEY_PLAIN, 1, (100, 100, 100), 1) |
61 | 61 |
''' |
62 | 62 |
|
63 |
cv2.imwrite(path.replace('test', 'test_res'), _image)
|
|
63 |
cv2.imwrite(path.replace('.png', '_res.png'), _image)
|
|
64 | 64 |
|
65 | 65 |
if response.error.message: |
66 | 66 |
raise Exception( |
... | ... | |
72 | 72 |
if __name__ == "__main__": |
73 | 73 |
import os |
74 | 74 |
path = 'E:\Projects\DTIPID\minorTools\gcloud' |
75 |
path = os.path.join(path, 'test2_cad.png')
|
|
75 |
path = os.path.join(path, '02-BFW105. 02-BFW105-C6S-2-Ih_Page1.png')
|
|
76 | 76 |
detect_text(path) |
77 | 77 |
|
내보내기 Unified diff