ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

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

1 Answer

Sort by » oldest newest most voted
1

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:

https://docs.opencv.org/3.3.1/db/d3a/...

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 575 times

Last updated: May 07 '19