[1.1.4] OpenCV assertions should be handled by SikuliX (like image size > region size)

Bug #1818040 reported by RaiMan on 2019-02-28
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

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.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers