procrob / face_recognition

A face recognition package for ROS
38 stars 41 forks source link

How can I fix this error while compiling #9

Open amalgmar12 opened 6 years ago

amalgmar12 commented 6 years ago

Hi,

I face this error while compiling with catkin_make . Can you please help me . Thank you for advance . recognition

jasirjasir commented 6 years ago

I am also facing same issue while compiling face recognition package using catkin_make. I am using Ros kinetic with ubuntu version 16.0.4.

amitnagarwal commented 6 years ago

I am in the same boat. If anybody has any suggestion, I would really appreciate it.

csyang6052 commented 6 years ago

I had the same issue. I think, however, it is the version of OpenCV that cause the issue. For ros-kinetic, OpenCV 3.3 is the default version of the cv-bridge, while face_recognition was developed using ros-indigo, I guess, where OpenCV 2.4 is the default of the cv-bridge. You might modify "cv_bridgeConfig.cmake" as suggested in https://blog.csdn.net/bigdog_1027/article/details/79092263. It caused me some other issues for me, unfortunately. Therefore, I simply set up a new OS image for my raspberry-pi, using Raspbian-Jessie, ros-Indigo, and "sudo ln -s ..." for pointing to installed xxx.so files. Thereafter, all set!!

jasirjasir commented 6 years ago

Thanks Csyang for the information... What is the problem you are facing after linking to openCv2.4 with Ros kinetic. Ideally it should work rit?

YassineBRAHAM commented 5 years ago

hello everyone, did anyone found the solution for this compiling error issue ? because i am facing the same problem here on Kinetic on Ubuntu 16.04. Otherwise, is there any other face_recognition project that works well on Kinetic ROS distribution ?

inaciose commented 5 years ago

Yes i found a solution.

For anyone that want to do face recognition, just forget this one. There is a package that do it and it works on kinetic and melodic. Check wiki.ros.org/opencv_apps

To install (change distro to kinetic if you need): sudo apt install ros-melodic-opencv-apps sudo apt install xterm sudo apt install ros-melodic-usb-cam

Its based on these two opencv tutorials, so the code is commented and explained:

https://docs.opencv.org/3.3.1/db/d3a/facedetect_8cpp-example.html https://docs.opencv.org/3.2.0/da/d60/tutorial_face_main.html

It works!

gglin-SWUST commented 3 years ago

Yes i found a solution.

For anyone that want to do face recognition, just forget this one. There is a package that do it and it works on kinetic and melodic. Check wiki.ros.org/opencv_apps

To install (change distro to kinetic if you need): sudo apt install ros-melodic-opencv-apps sudo apt install xterm sudo apt install ros-melodic-usb-cam

Its based on these two opencv tutorials, so the code is commented and explained:

https://docs.opencv.org/3.3.1/db/d3a/facedetect_8cpp-example.html https://docs.opencv.org/3.2.0/da/d60/tutorial_face_main.html

It works!

thanks!! problems solved!