ageitgey / face_recognition

The world's simplest facial recognition api for Python and the command line
MIT License
53.34k stars 13.48k forks source link

Troubles starting python scripts #1219

Open dvojnic opened 4 years ago

dvojnic commented 4 years ago

Description

I have troubles running python scripts, console call works.

What I Did

I have copied the code to run from (https://github.com/ageitgey/face_recognition/blob/master/examples/facerec_from_webcam_faster.py) and when I tried to run it using PyCharm, I received this output:

Call this program like this:
   ./face_recognition.py shape_predictor_5_face_landmarks.dat dlib_face_recognition_resnet_model_v1.dat ../examples/faces
You can download a trained facial shape predictor and recognition model from:
    http://dlib.net/files/shape_predictor_5_face_landmarks.dat.bz2
    http://dlib.net/files/dlib_face_recognition_resnet_model_v1.dat.bz2

Process finished with exit code 0

I have downloaded those files, but the message doesn't really make sense, since it tells me that I have to run another file. The code finishes at line 1, when it tries to import face_recognition.

KhushMody commented 4 years ago

Hi, I think you need to install the dlib library as well to run face_recognition, then I guess it should work.

pip install dlib

Hope this helps

ThariqGIT commented 4 years ago

Hi python -m pip install Try that.