1
0
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:
tribta
2017-08-24 17:45:14 +01:00
parent 9bb17caa24
commit 7555ab194f
20 changed files with 43 additions and 45 deletions
+1 -1
View File
@@ -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