개정판 9e58d216
issue #663: craft
Change-Id: I8cdaea3d736b7c1a1916667afb7a1b5776d1d534
DTI_PID/DTI_PID/TextDetector.py | ||
---|---|---|
320 | 320 |
if rect.bottom() < min_y: |
321 | 321 |
min_y = rect.bottom() |
322 | 322 |
|
323 |
rect = QRect(min_x, max_y, max_x - min_x, max_y - min_x)
|
|
323 |
rect = QRect(min_x, max_y, max_x - min_x, max_y - min_y)
|
|
324 | 324 |
rect._vertical = True |
325 | 325 |
rects.append(rect) |
326 | 326 |
|
... | ... | |
336 | 336 |
if rect.bottom() < min_y: |
337 | 337 |
min_y = rect.bottom() |
338 | 338 |
|
339 |
rect = QRect(min_x, max_y, max_x - min_x, max_y - min_x)
|
|
339 |
rect = QRect(min_x, max_y, max_x - min_x, max_y - min_y)
|
|
340 | 340 |
rect._vertical = False |
341 | 341 |
rects.append(rect) |
342 | 342 |
|
내보내기 Unified diff