

Then in you simply run the command face_recognition, passing in

Next, you need a second folder with the files you want to identify: There should be one image file for each person with theįiles named according to who is in the picture: The face_recognition command lets you recognize faces in a photograph orįirst, you need to provide a folder with one picture of each person youĪlready know. face_detection - Find faces in a photograph or folder full for photographs.face_recognition - Recognize faces in a photograph or folder full for.When you install face_recognition, you get two simple command-line Download the pre-configured VM image (for VMware Player or VirtualBox).Installing a pre-configured Virtual Machine image Windows 10 installation guide (dlib + face_recognition).While Windows isn't officially supported, helpful users have posted instructions on how to install this library: Pkg install graphics/py-face_recognition Installing on Windows Then, make sure you have cmake installed:įinally, install this module from pypi using pip3 (or pip2 for Python 2): How to install dlib from source on macOS or Ubuntu.Installation Options: Installing on Mac or Linuxįirst, make sure you have dlib already installed with Python bindings: macOS or Linux (Windows not officially supported, but might work).User-contributed shared Jupyter notebook demo (not officially supported): Installation Requirements You can even use this library with other Python libraries to do real-time face recognition: load_image_file( "unknown.jpg")īiden_encoding = face_recognition. Import face_recognition known_image = face_recognition.
