개정판 97cf5ad0
dev issue #507 : fix range
Change-Id: Icbda4c42907279823b16b95c03ea658a3bec1582
DTI_PID/DTI_PID/tesseract_ocr_module.py | ||
---|---|---|
154 | 154 |
for merged_box in merged_boxes: |
155 | 155 |
bottom = merged_box.bottom() |
156 | 156 |
top = merged_box.top() |
157 |
if (abs(miny - top) <= 1 or abs(maxy - bottom) <= 1) or (miny <= top and maxy >= bottom) or (
|
|
157 |
if (abs(miny - top) <= 4 or abs(maxy - bottom) <= 4) or (miny <= top and maxy >= bottom) or (
|
|
158 | 158 |
miny >= top and maxy <= bottom): |
159 | 159 |
find_box = merged_box |
160 | 160 |
|
내보내기 Unified diff