개정판 94bb3009
issue #663: flange
Change-Id: I4502d71c1615b60faa9fb789e7c85a8c1a78a8d9
DTI_PID/DTI_PID/RecognitionDialog.py | ||
---|---|---|
2822 | 2822 |
c_x, c_y, c_w, c_h = cv2.boundingRect(contour) |
2823 | 2823 |
area = cv2.contourArea(contour) |
2824 | 2824 |
if c_x <= x and c_x + c_w >= x and c_y <= y and c_y + c_h >= y: |
2825 |
if flange_count * flange_max * 2.5 >= area:
|
|
2825 |
if flange_count * flange_max * 1.8 >= area:
|
|
2826 | 2826 |
#not_image[y, x] = 0 |
2827 | 2827 |
#from PIL import Image |
2828 | 2828 |
#Image.fromarray(not_image).show() |
DTI_PID/DTI_PID/TextDetector.py | ||
---|---|---|
56 | 56 |
for info in server_info: |
57 | 57 |
if info.area < min_area: |
58 | 58 |
min_area = info.area |
59 |
min_area = min_area * 1.3
|
|
59 |
min_area = min_area * 1.5
|
|
60 | 60 |
|
61 | 61 |
for index in reversed(range(len(local_info))): |
62 | 62 |
if local_info[index].area > min_area: |
내보내기 Unified diff