find-object
find-object copied to clipboard
Problem while running the package
I cloned the package and experimented successfully. Then i reinstalled ROS and opencv due to some reasons. Now i cloned the package and compiled it successfully with 'catkin_make' but when i tried to run the run a launch file i an getting following error
[ WARN](2015-08-06 23:22:31.328) Settings.cpp:960::createDescriptorExtractor() Find-Object is not built with OpenCV xfeatures2d module so Brief cannot be used! [FATAL](2015-08-06 23:22:31.328) FindObject.cpp:56::FindObject() Condition (detector_ != 0 && extractor_ != 0) not met!
FATAL message occurred! Application will now exit.
Please clarify the issue.
Do you have OpenCV 3 ? Find-Object is building against it but OpenCV 3 is not built with xfeatures2d module (see opencv_contrib to install this module). However, Find-Object should still able to run without xfeatures2d.
The real problem here is that Find-Object is loading your latest configuration saved in ~/.ros/find_object_2d.ini (ROS) or ~/.find-object/config.ini (standalone), which is the Brief descriptor selected. Workaround: delete this configuration file, so Find-Object will generate a new one with default parameters accordingly to your installation of OpenCV.
Well, Find-Object should not crash for this. I'll fix this. It should still warn but it should select ORB by default if xfeatures2d module is not here and that previous configuration was on Brief (or other feature from xfeatures2d not available at that time).
I still recommend to install opencv_contrib with OpenCV 3 as many feature detectors/descriptors were moved in that repository.
thx for reporting
Thank you so much, I deleted the file '~/.ros/find_object_2d.ini' and successfully started the package