개정판 64747815
issue #000: text detection error from tesseract
Change-Id: I58b642e9dbf8e6ffbe24fd425b816df8a618273d
DTI_PID/DTI_PID/tesseract_ocr_module.py | ||
---|---|---|
204 | 204 |
|
205 | 205 |
if cropped.width == 0 or cropped.height == 0: |
206 | 206 |
continue |
207 |
text = pytesseract.image_to_string(cropped, config=_conf, lang=oCRLang) |
|
207 |
text = pytesseract.image_to_string(cropped, config=_conf, lang=oCRLang).replace('\n', '')
|
|
208 | 208 |
|
209 | 209 |
if long_img: |
210 | 210 |
text = text[:int(len(text)/ 3)] |
내보내기 Unified diff