개정판 344b65dd
dev issue #507 : fix bug
Change-Id: I7ba8f89f78fc3b12bd1ce0fa22564b9663f222ac
DTI_PID/DTI_PID/tesseract_ocr_module.py | ||
---|---|---|
146 | 146 |
|
147 | 147 |
findBox = None |
148 | 148 |
for merged_box in merged_boxes: |
149 |
bottom = merged_box.bottom()
|
|
149 |
bottom = merged_box.bottom() |
|
150 | 150 |
top = merged_box.top() |
151 |
if abs(miny - top) <= 1 or abs(maxy - bottom) <= 1:
|
|
151 |
if (abs(miny - top) <= 1 or abs(maxy - bottom) <= 1) or (miny <= top and maxy >= bottom) or (miny >= top and maxy <= bottom):
|
|
152 | 152 |
findBox = merged_box |
153 | 153 |
|
154 | 154 |
if findBox: |
내보내기 Unified diff