Ask Your Question

Face recognition catkin_make error in ROS kinetic

asked 2019-05-07 04:01:09 -0500 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: )

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: 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

1 Answer

Sort by » oldest newest most voted

answered 2019-12-25 05:35:34 -0500

GabrielLuke gravatar image

Just forget this one for anyone who needs to face verification. A kit is available, and it works with film and melodic elements. 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:

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-05-07 03:59:13 -0500

Seen: 294 times

Last updated: May 07 '19