개정판 a7b5c083
issue #1366: fix angle
Change-Id: Ie9652fba22e27b10abe907b98d3f514fa49c37db
DTI_PID/DTI_PID/RecognitionDialog.py | ||
---|---|---|
2427 | 2427 |
|
2428 | 2428 |
r_w, r_h = roiItem.shape[::-1] |
2429 | 2429 |
if r_w < sw or r_h < sh: |
2430 |
symGray = cv2.rotate(symGray, cv2.ROTATE_90_CLOCKWISE) |
|
2431 |
symbolRotatedAngle = (symbolRotatedAngle + 90) % 360 |
|
2430 | 2432 |
continue |
2431 | 2433 |
|
2432 | 2434 |
tmRes = cv2.matchTemplate(roiItem, symGray, cv2.TM_CCOEFF_NORMED) |
내보내기 Unified diff