开发者

cvSetErrMode not working

开发者 https://www.devze.com 2023-04-03 02:34 出处:网络
I\'m trying to use Parent mode in OpenCV. It seems that OpenCV is ignor开发者_如何学编程ing the cvSetErrMode() call.

I'm trying to use Parent mode in OpenCV. It seems that OpenCV is ignor开发者_如何学编程ing the cvSetErrMode() call.

fprintf(stderr, "cvSetErrMode(%d) returned %d\n", 
    CV_ErrModeParent, cvSetErrMode(CV_ErrModeParent));
fprintf(stderr, "cvGetErrMode() returned %d\n", cvGetErrMode());

This returns:

cvSetErrMode(1) returned 0
cvGetErrMode() returned 0

It seems to me that cvGetErrMode() should return 1.


These functions are deprecated in OpenCV 2.x OpenCV still provides stub implementation for backward compatibility.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号