[ ] 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]>
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]>