summaryrefslogtreecommitdiff
path: root/template_match_multiscale.py
diff options
context:
space:
mode:
authorRyan Baumann <ryan.baumann@gmail.com>2016-08-23 16:29:58 -0400
committerRyan Baumann <ryan.baumann@gmail.com>2016-08-23 16:29:58 -0400
commit603ad496013320ef2b13dedf013f45587a67c11a (patch)
treec71fde2252f89affc17db9c20091d11264654576 /template_match_multiscale.py
parentc90c7ee64a30332a5dc0e44fbc613b580782eed5 (diff)
Remove imshow commands
Diffstat (limited to 'template_match_multiscale.py')
-rwxr-xr-xtemplate_match_multiscale.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/template_match_multiscale.py b/template_match_multiscale.py
index 4c104af..a347b75 100755
--- a/template_match_multiscale.py
+++ b/template_match_multiscale.py
@@ -54,7 +54,6 @@ template = cv2.imread(args["template"])
template = cv2.cvtColor(template, cv2.COLOR_BGR2GRAY)
template = cv2.Canny(template, 50, 200)
(tH, tW) = template.shape[:2]
-cv2.imshow("Template", template)
imagePath = args["image"]
# load the image, convert it to grayscale, and initialize the
@@ -86,8 +85,6 @@ for scale in np.linspace(0.2, 1.0, 20)[::-1]:
clone = np.dstack([edged, edged, edged])
cv2.rectangle(clone, (maxLoc[0], maxLoc[1]),
(maxLoc[0] + tW, maxLoc[1] + tH), (0, 0, 255), 2)
- cv2.imshow("Visualize", clone)
- cv2.waitKey(0)
# if we have found a new maximum correlation value, then ipdate
# the bookkeeping variable