프로젝트

일반

사용자정보

개정판 7196ff9e

ID7196ff9e7d1170e7dcebdcd5fb9fb5a4e2587fdb
상위 64747815
하위 ad14c6c2

함의성이(가) 4년 이상 전에 추가함

issue #000: fix text error from tesseract

Change-Id: I35e5c780b438aef152c18d96f501aa80f95f116e

차이점 보기:

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).replace('\n', '')
207
            text = ' '.join(pytesseract.image_to_string(cropped, config=_conf, lang=oCRLang).replace('\n', '').split())
208 208

  
209 209
            if long_img:
210 210
                text = text[:int(len(text)/ 3)]

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)