roi = image[y:y+h , x:x+w]
cv2.matchTemplate(roi, templ, ...
OpenCV Template Matching: Restrict search area
-
19-09-2022 - |
Question
I have working OpenCV template matching code made with python. Now I am searching for a way to tell OpenCV to search only in a supplied area (x, y, w, h), is that possible?
Regards, Philip
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow