find-object icon indicating copy to clipboard operation
find-object copied to clipboard

Runtime exception causing crash with OpenCV 4.1.1

Open amussell opened this issue 6 years ago • 1 comments

When I launch the node with find_object_2d.launch

The error occurs almost immediately after the gui is started. The error I get is:

OpenCV Error: Bad argument (Unknown interpolation method) in resize, file /build/opencv-L2vuMj/opencv-3.2.0+dfsg/modules/imgproc/src/imgwarp.cpp, line 3367 terminate called after throwing an instance of 'cv::Exception' what(): /build/opencv-L2vuMj/opencv-3.2.0+dfsg/modules/imgproc/src/imgwarp.cpp:3367: error: (-5) Unknown interpolation method in function resize

My system info: Ubuntu 18.04 Branch master OpenCV 4.1.1 ROS Melodic

amussell avatar Aug 15 '19 22:08 amussell

If you are building find_object_2d from source, beware that it depends on cv_bridge. cv_bridge may be built with OpenCV3.2 if you are using the binaries (it is why it is is an opencv 3.2.0 error in your message). I suggest to uninstall opencv3.2 from the computer, and rebuild cv_bridge from source so that it links on your OpenCV4.1.1 built from source.

cheers, Mathieu

matlabbe avatar Aug 17 '19 15:08 matlabbe