introlab / find-object

Find-Object project
http://introlab.github.io/find-object/
BSD 3-Clause "New" or "Revised" License
448 stars 189 forks source link

Runtime exception causing crash with OpenCV 4.1.1 #95

Open amussell opened 5 years ago

amussell commented 5 years ago

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

matlabbe commented 5 years ago

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