개정판 b456019a
issue #506: short text disable
Change-Id: Ib875671ce347e2d34c6a9a9803463e19decafbdd
DTI_PID/DTI_PID/tesseract_ocr_module.py | ||
---|---|---|
115 | 115 |
bounding_boxes = boundaryOcrData.split('\n') |
116 | 116 |
|
117 | 117 |
long_img = None |
118 |
if not boundaryOcrData and imgHeight / imgWidth > 0.5 and abs(angle) < 1: |
|
118 |
if False:#not boundaryOcrData and imgHeight / imgWidth > 0.5 and abs(angle) < 1:
|
|
119 | 119 |
img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) |
120 | 120 |
imgNot = np.ones(img.shape, np.uint8) |
121 | 121 |
cv2.bitwise_not(img, imgNot) |
내보내기 Unified diff