개정판 ab4a7be7
issue #480: fix
Change-Id: I9c35244f668b02f5bef9d8938acf718cf47b1eda
DTI_PID/DTI_PID/tesseract_ocr_module.py | ||
---|---|---|
153 | 153 |
boundaryOcrData = pytesseract.image_to_boxes(im, config=_conf, lang=oCRLang) |
154 | 154 |
bounding_boxes = boundaryOcrData.split('\n') |
155 | 155 |
|
156 |
bounding_boxes = [box for box in bounding_boxes if box != ''] |
|
156 | 157 |
bounding_boxes = sorted(bounding_boxes, key=lambda param: int(param.split(' ')[4]) - int(param.split(' ')[2]), reverse=True) |
157 | 158 |
merged_boxes = [] |
158 | 159 |
|
내보내기 Unified diff