Modul „dlib“ hat kein Attribut „get_frontal_face_detector“. FEHLERPython

Python-Programme
Anonymous
 Modul „dlib“ hat kein Attribut „get_frontal_face_detector“. FEHLER

Post by Anonymous »

Ich versuche, das Face_Recognition-Paket auf Anaconda zu verwenden. Ich habe sowohl dlib als auch die face_recognition-Bibliothek installiert.

aber wenn ich face_recognition in meinen Code importiere, erhalte ich diese Fehlermeldung

Code: Select all

import dlib
import face_recognition

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
 in ()
1 import dlib
----> 2 import face_recognition

~\Anaconda3\lib\site-packages\face_recognition\__init__.py in ()
5 __version__ = '1.2.3'
6
----> 7 from .api import load_image_file, face_locations, batch_face_locations, face_landmarks, face_encodings, compare_faces, face_distance

~\Anaconda3\lib\site-packages\face_recognition\api.py in ()
15 ImageFile.LOAD_TRUNCATED_IMAGES = True
16
---> 17 face_detector = dlib.get_frontal_face_detector()
18
19 predictor_68_point_model = face_recognition_models.pose_predictor_model_location()

AttributeError: module 'dlib' has no attribute 'get_frontal_face_detector'

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post