← Back to team overview

sikuli-driver team mailing list archive

[Question #678838]: Assertion failed _img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width in function 'cv::matchTemplate'

 

New question #678838 on Sikuli:
https://answers.launchpad.net/sikuli/+question/678838

Sometimes I get these errors:

org.opencv.core.CvException: CvException [org.opencv.core.CvException: cv::Exception: OpenCV(3.4.2) C:\build\3_4_winpack-bindings-win64-vc14-static\opencv\modules\imgproc\src\templmatch.cpp:1107: error: (-215:Assertion failed) _img.size().height <= _templ.size().height && _img.size().width <= _templ.size().width in function 'cv::matchTemplate'

Am I right in assuming they are to do with the region being too small or not fitting the image/pattern I am searching for when it is found? I think I am able to work around by extending/recapturing the region after which these errors stop. But I am not 100% certain.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.