-
-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cv::cvtColor crash! #86
Comments
opencv-mobile 不会检查 ROI 超出图片范围 |
ROI区域如果有问题(我这边模拟过ROI区域错误的方式),应该就直接崩溃在 |
https://github.com/nihui/opencv-mobile#some-notes |
好的,roi我这边检查下,线上再跑跑看看cvtColor还会不会崩溃吧 |
使用opencv版本:3.4.20
线上so库偶发崩溃SIGTRAP
分析调用堆栈如下:
发现是通过cvtColor转换RGB为GRAY崩溃
OFace.cpp调用代码如下:
分析opencv源码 /modules/imgproc/src/color.cpp中的cvtColor函数
如上分析,进行模拟让crop_face为空,但是没有模拟出来,也就是
rgb(crop_rect).copyTo(crop_face);
拷贝后crop_face为空,但是不理解为什么会出现这种情况?或者是否是别的地方的问题?nihui大神有空帮忙看下呗,万分感谢!!!The text was updated successfully, but these errors were encountered: