Error: Cascade File haarcascade_frontalface_alt.xml
Moving from ROS Hydro to Indigo on the PR2 robot (via Clearpath Robotics upgrade), the face_detector package (git) did not work. I have purged and reinstalled through apt-get and used git clone.
When running
$ roslaunch face_detector face_detector.wide.launch
I get
[ERROR]: Cascade file /usr/share/opencv/haarcascades/haarcascade_frontalface_alt.xml doesn't exist.
I have found the file at the following locations.
$ locate haarcascade_frontalface
/opt/ros/indigo/share/OpenCV-3.1.0-dev/haarcascades/haarcascade_frontalface_alt.xml
/opt/ros/indigo/share/OpenCV-3.1.0-dev/haarcascades/haarcascade_frontalface_alt2.xml
/opt/ros/indigo/share/OpenCV-3.1.0-dev/haarcascades/haarcascade_frontalface_alt_tree.xml
/opt/ros/indigo/share/OpenCV-3.1.0-dev/haarcascades/haarcascade_frontalface_default.xml
Is there a solution to this other than sudo cp?
Thanks
Not an expert, but looking at param/classifier.yaml it would seem the path to that file is configurable. Have you tried changing/updating it?
That was introduced in wg-perception/people#15.
Thank you this does seem like a solution with the code cloned or with a higher level launch file.
Yeah. The released pkgs probably expect OpenCV 2 to have been installed. Is the
OpenCV-3.1.0-dev
dir something 'official'?The pr2 server computers were returned from Clearpath Robotics in that configuration. On a side note the launch file is still not running. It dies on start up error code -11. No other details. Works file on my laptop. I am assuming face_detector is not compatible with opencv 3
Might want to report this to both Clearpath as well as the
wg-perception/people
issue tracker.Thank you for the assistance. I had reported the problem to them both before posing onto ROS answers.
Related wg-perception/people#52.