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
roi = image[y:y+h , x:x+w]
cv2.matchTemplate(roi, templ, ...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.