Multi-template matching with OpenCV


Multi-template matching with OpenCV

Multi-template matching with OpenCV – PyImageSearch

“As we saw in last week’s tutorial, applying basic template matching results in only one instance of a particular template being matched, as seen in Figure 1. Our input image contains the eight of diamonds. While our template contains the diamond symbol, we would expect to detect all diamonds in the input image. However, when using basic template matching, multi-object detection simply isn’t possible. The solution is to filter the result matrix from the  cv2.matchTemplate  function and then apply non-maxima suppression…”


March 30, 2021
Notify of
Inline Feedbacks
View all comments

Subscribe to our Digest