Open ivllopis opened 6 years ago
I have never used ROS and am not familiar with it in particular, so I don't know for sure.
But face_recognition itself is purely python and has no CMake component to compile. Nothing with CMake would be required. Only dlib (which this depends on) uses CMake.
Based on the error you got, one obvious thing to check is to make sure you didn't name your own file face_recogntion.py
because that is one thing that could cause the error you saw since that name would conflict with the name of the library itself and make Python load your file again instead of loading the real library.
Beyond that, I'm not sure because I've never seen ROS.
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
I am not doing more, as there is where the first error appears. Any help would me amazing. Thanks!
//Ivan L