You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TemplateMatchingDetector(...) creates a TemplateMatchingDetector object given a cv::VideoCapture (i.e. video file, webcam), a cv::Mat (i.e. image), and a sensitivity (i.e. needed match strength from the template matching algorithm to return a positive match).
update() reads a cv::Mat using the >> operator on the cv::VideoCapture object, and then performs OpenCV template matching on the frame. The returned tuple<bool, float, float> is of structure tuple<[is the template image found?], [the x coordinate of the template image from -1 to 1], [the y coordinate of the template image from -1 to 1]>
The text was updated successfully, but these errors were encountered:
Using OpenCV template matching the vision library will perform template matching on a streaming source (i.e. video file, webcam).
Requirements
TemplateMatchingDetector(...)
creates aTemplateMatchingDetector
object given acv::VideoCapture
(i.e. video file, webcam), acv::Mat
(i.e. image), and a sensitivity (i.e. needed match strength from the template matching algorithm to return a positive match).update()
reads acv::Mat
using the>>
operator on thecv::VideoCapture
object, and then performs OpenCV template matching on the frame. The returnedtuple<bool, float, float>
is of structuretuple<[is the template image found?], [the x coordinate of the template image from -1 to 1], [the y coordinate of the template image from -1 to 1]>
The text was updated successfully, but these errors were encountered: