
Unpacking operation, Get the four position information of each face adopt face_locations Method to get the position of all faces in the imageįace_locations = face_recognition.face_locations(image) adopt load_image_file Method to load the image to be recognized Recognize the face part in the picture, Draw the matrix import face_recognition Call directly PIL Medium line Method in PIL Draw lines in the picture, Help us observe feature pointsĭ.line(face_landmarks, width=5)

#Cmake boost code
Print(" The length of information code is :".format(facial_feature, face_landmarks))

# Traverse all face information, according to 128 Characteristic values return a list # No matter how much personal face information is in the image, The return value is a listįace_encodings = face_recognition.face_encodings(image) Image = face_recognition.load_image_file(images) Next, let's produce images based on face coding 128 Eigenvalues import face_recognition Python There is a convenient face recognition database Face Recognition, Write a little code, Once encapsulated, it can be used as a serviceĬurrent training business scenarios, First, input the employee's photos into the system, Then find a random photo to code the face, Calculate the eigenvalue of the face according to the facial feature points ( Eigenvector )128 Measured values, etc # The face detector is used to read the image data to be detected, The second parameter 1 Represents reading picture pixels and zooming in 1 Times in order to collect more photo details Get a face detector, This detector contains face detection algorithmsĭetect = dlib.get_frontal_face_detector() Next, let's practice one dlib Example : import dlib

#Cmake boost install
Install again Dlib Library involved scikit-image ,cv 2 library pip install scikit-imageįinal installation dlib library pip install dlib So it gets hidden from the view of the users of your project.Dlib In the development process, Need to be used boost library, When compiling, you need to use cmake library, So in installation Dlib You need to install these two before the library, If it is not installed, an error will be reported pip install boost If not, though, myabe you could just do a "mark_as_advanced()" on it There's a way to mark the variable INTERNAL when it finds a boost that Maybe the FindBoost maintainers will chime in here, too. It's just one of the things I think you get used to with building a So many different ways of installing boost.) (In my view, it's unfortunate that there are quite I agree that it's confusing, but there are several different ways toīuild/install boost out in the wild, and FindBoost tries toĪccommodate all of them, even the installations without anyīoostConfig file. Internally setting that since it never found a BoostConfig.cmake file. > Powered by > Visit other Kitware open-source projects at > Please keep messages on-topic and check the CMake FAQ at: > Follow this link to subscribe/unsubscribe: > Boost_DIR-NOTFOUND, even though everything is configured properly! > for one of the first things a user sees in ccmake is > But as I mentioned, Boost_INCLUDE_DIR and Boost_LIBRARY_DIRS are set

> export Boost_DIR=/home/doriad/build/Boost_1_51/ > Boost_ROOT to be sure because previous versions of CMake > directory and an environnement variable Boost_DIR set to it. I have a custom build of boost in a specific > you provide Boost_DIR (root of your boost installation) and it finds the > I might be wrong but my understanding is that it's the other way arround: > On Wed, at 2:16 PM, Klaim - Joël Lamotte wrote: Next message: OS X spaces in paths issue.
