Skip to content

[Issue] OpenCV Error: Assertion failed #55

@nr-parikh

Description

@nr-parikh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions