Skip to content
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

[Issue] OpenCV Error: Assertion failed #55

Open
nr-parikh opened this issue Jul 25, 2017 · 0 comments
Open

[Issue] OpenCV Error: Assertion failed #55

nr-parikh opened this issue Jul 25, 2017 · 0 comments
Labels

Comments

@nr-parikh
Copy link

nr-parikh commented Jul 25, 2017

I am using R200 RGBD camera by Intel along with UPboard with ROS Indigo and OpenCV-2.4. I have modified the launch files according to the topics published by the camera and it does detect faces but it crashes every time with the following error:

OpenCV Error: Assertion failed (0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows) in Mat, file /build/buildd/opencv-2.4+dfsg1/modules/core/src/matrix.cpp, line 323 terminate called after throwing an instance of 'cv::Exception

I observed that this doesn't happen only when it is trying to draw the rectangle on the image but it happens also when there are no faces detected and consequently no need to draw the rectangle. I have tried both things that are to install the package from the binaries as well as building it from the source but in both the cases I am getting the same error. Right now, I am only running a launch file and subscribing to a topic from the terminal itself without using any script.

Has anyone else faced a similar issue? What can possibly be an issue?

EDIT: Added ROS and OpenCV version.

@DLu DLu added the faces label Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants