ageitgey / ageitgey/face_recognition
face_recognition in ROS
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 56.8k
- Forks
- 13.7k
- PR merge metrics
- No merged PRs in 30d
Description
- face_recognition version: 1.2.2 // dlib version: 19.7
- Python version: 2.7.6
- Operating System: Ubuntu 14.04.x (Trusty)
Description
I have installed the face_recognition package in the system (sudo pip2 install face_recognition) and also the dlib library.
I am trying to use the package in a ROS node with python. When I compile it (build the package) in ROS, it says: "face_recognition has no module called 'load_image'", so I guess I am not importing the package correctly in ROS. I have tested it as a simple python script and it gives no problems of compilation or execution, only when I use the package in ROS.
My guess is that I have not set up the CMakeLists.xml file correctly (I am starting to develop in ROS), so I have also tried to import the package in ROS, like:
find_package(face_recognition REQUIRED)
include_directories(${face_recognition_INCLUDE_DIRS})
But no luck, when I compile it (build it), it gives the next error:
By not providing "Findface_recognition.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"face_recognition", but CMake did not find one.
Could not find a package configuration file provided by "face_recognition"
with any of the following names:
face_recognitionConfig.cmake
face_recognition-config.cmake
Add the installation prefix of "face_recognition" to CMAKE_PREFIX_PATH or
set "face_recognition_DIR" to a directory containing one of the above
files. If "face_recognition" provides a separate development package or
SDK, be sure it has been installed.
Did you ever find this errors? How can I use the package in ROS?
Thank you in advance.
What I Did
Up to now, I am only using the next commands:
#! /usr/bin/env python
import rospy
import face_recognition
...
image_path = "pictures/ivan_2.png"
rospy.loginfo("Este es el path de la foto: ")
rospy.loginfo(image_path)
image = face_recognition.load_image(image_path)
face_encoding = face_recognition.face_encodings(image)[0]
I am not doing more, as there is where the first error appears.
Any help would me amazing.
Thanks!
//Ivan L
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the ROS Python node and its CMakeLists.xml, then compare how the package is imported in ROS with the standalone Python script described in the issue. Reproduce the ROS build and import error; the work is complete when the node builds and reaches face_recognition.load_image without the reported module or CMake package errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, python
- Domain
- build-system, robotics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100