개정판 a15603c2
issue #1366: 45 symbol detection test
Change-Id: Ic867cce7c8c6b3855022821f83b32a1dd8650014
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
1803 | 1803 |
#cv2.fillPoly(mask,[poly],0) |
1804 | 1804 |
#src2 = np.multiply(mask,src2) |
1805 | 1805 |
|
1806 |
mask = np.ones((int(rect.height()), int(rect.width())), dtype=np.uint8) * 255
|
|
1806 |
mask = np.ones((int(rect.height()), int(rect.width())), dtype=np.uint8) * 255 |
|
1807 | 1807 |
cv2.fillConvexPoly(mask, poly, (0)) |
1808 | 1808 |
sym_img = cv2.bitwise_or(mask, symbol_image[int(rect.y()):int(rect.y()) + int(rect.height()), int(rect.x()):int(rect.x()) + int(rect.width())]) |
1809 | 1809 |
sym_img = cv2.merge((sym_img, sym_img, sym_img)) |
내보내기 Unified diff