Face recognition catkin_make error in ROS kinetic

asked 2019-05-07 04:01:09 -0500

yassine.br gravatar image

I am using ROS Kinetic with ubuntu 16.0.4 version and I am getting an error while building Face Recognition package suggested by ROS community : error: ‘cvCopyImage’ was not declared in this scope : cvCopyImage(byteImg, bigImg); and "cvEigenDecomposite was not declared in the scope"

( Github link: https://github.com/procrob/face_recog... )

I was told that this error is due to OpenCV 3 library wich is installed with ROS Kinetic ,while The face recognition package is built on ROS indigo wich uses OpenCV 2. I think that this face recognition package did not been updated yet and they did not been migrated to work on ROS Kinetic and some API of OpenCV 2 are not anymore supported with OpenCV 3.

I tried to make some modification in the CmakeList.txt file and the cv_bridgeConfig.cmake as mentioned in this chinese tutorial: https://blog.csdn.net/bigdog_1027/art... to make the build's done with OpenCV 2 instead of OpenCV 3 but the error persisted while building.

So, does any one know how to add or adapt face recognition project on ROS Kinetic ? If anyone has a solution suggestion i will be glad to try it. Thanks in advance.

edit retag flag offensive close merge delete