mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Samples Python:
* Unused variables * Bad identation
This commit is contained in:
@@ -38,7 +38,7 @@ def onmouse(event, x, y, flags, param):
|
||||
patch = gray[sel[1]:sel[3],sel[0]:sel[2]]
|
||||
result = cv2.matchTemplate(gray,patch,cv2.TM_CCOEFF_NORMED)
|
||||
result = np.abs(result)**3
|
||||
val, result = cv2.threshold(result, 0.01, 0, cv2.THRESH_TOZERO)
|
||||
_val, result = cv2.threshold(result, 0.01, 0, cv2.THRESH_TOZERO)
|
||||
result8 = cv2.normalize(result,None,0,255,cv2.NORM_MINMAX,cv2.CV_8U)
|
||||
cv2.imshow("result", result8)
|
||||
drag_start = None
|
||||
|
||||
Reference in New Issue
Block a user