Ask Your Question

Revision history [back]

Looks like there is a bug for ATI/AMD cards: https://github.com/opencv/opencv/issues/7943

Wondering if anyone else can confirm?

I tried to follow the recommendation in the bug report:

Commenting out the extension check in lines 1640-1641 //if (!strstr((const char*)extensionStr, "cl_khr_gl_sharing")) // continue;

I then tried the tsample again and received:

OpenCV(3.4.1) Error: Assertion failed (anchor.inside(Rect(0, 0, ksize.width, ksize.height))) in normalizeAnchor, file OpenCV/modules/imgproc/src/filterengine.hpp, line 363 Exception: OpenCV(3.4.1) OpenCV/modules/imgproc/src/filterengine.hpp:363: error: (-215) anchor.inside(Rect(0, 0, ksize.width, ksize.height)) in function normalizeAnchor

I'm not sure if the error (-215) refers to an OpenCL or an OpenCV error? I can't find an -215 error for OpenCL.

Looks like there is a bug for ATI/AMD cards: https://github.com/opencv/opencv/issues/7943https://github.com/opencv/opencv/issues/7943 (Basically the ATI/AMD cards seem to store the extensions on the device, OpenCV seems to check for them on the platform... so the program drops out when it can not confirm the correct extension.)

Wondering if anyone else can confirm?

I tried to follow the recommendation in the bug report:

Commenting out the extension check in lines 1640-1641 //if (!strstr((const char*)extensionStr, "cl_khr_gl_sharing")) // continue;

I then tried the tsample sample again and received:

OpenCV(3.4.1) Error: Assertion failed (anchor.inside(Rect(0, 0, ksize.width, ksize.height))) in normalizeAnchor, file OpenCV/modules/imgproc/src/filterengine.hpp, line 363 Exception: OpenCV(3.4.1) OpenCV/modules/imgproc/src/filterengine.hpp:363: error: (-215) anchor.inside(Rect(0, 0, ksize.width, ksize.height)) in function normalizeAnchor

I'm not sure if the error (-215) refers to an OpenCL or an OpenCV error? I can't find an -215 error for OpenCL.