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

Created on 12 Feb 2017  ·  5Comments  ·  Source: davisking/dlib

why thats arror accure ??

All 5 comments

You must not have dlib installed, because get_frontal_face_detector is always part of it.

I have installed dlib successfully but error is remain. you can view the
below image

On Mon, Feb 13, 2017 at 12:09 AM, Davis E. King notifications@github.com
wrote:

Closed #435 https://github.com/davisking/dlib/issues/435.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/davisking/dlib/issues/435#event-958742835, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AWZTjHHcfv8iBuPOh_J3jGGTx3wnStdnks5rb1jmgaJpZM4L-j1u
.

from pkg_resources import resource_filename
Traceback (most recent call last):
File "", line 1, in
File "/Users/binzhang/anaconda3/lib/python3.6/site-packages/face_recognition-1.2.2-py3.6.egg/face_recognition/__init__.py", line 7, in
from .api import load_image_file, face_locations, batch_face_locations, face_landmarks, face_encodings, compare_faces, face_distance
File "/Users/binzhang/anaconda3/lib/python3.6/site-packages/face_recognition-1.2.2-py3.6.egg/face_recognition/api.py", line 14, in
face_detector = dlib.get_frontal_face_detector()
AttributeError: module 'dlib' has no attribute 'get_frontal_face_detector'

I have the same issue with dlib. I have done all possible solution for that but the error is still stands on position.

`AttributeError
Traceback (most recent call last)
in
2 import numpy as np
3 import os
----> 4 import face_recognition

c:\users\imtia\anaconda3\envs\version3.6\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

c:\users\imtia\anaconda3\envs\version3.6\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'`

我对dlib有同样的问题。我已经完成了所有可能的解决方案,但是错误仍然存​​在。

在 2 import numpy as np中的AttributeError
Traceback(最近一次调用为最后) 3 import os ----> 4 import face_recognition

C:\用户\ imtia \ anaconda3 \ ENVS \ version3.6 \ lib中\站点包\ face_recognition_ _初始化_ _.py在
5 版本 = '1.2.3'
6
----> 7从.API进口load_image_file,face_locations, batch_face_locations,face_landmarks,face_encodings,compare_faces,face_distance

c:\ users \ imtia \ anaconda3 \ envs \ version3.6 \ 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预报器_68_point_model = face_recognition_models.pose_predictor_model_location()

AttributeError:模块'dlib'没有属性'get_frontal_face_detector'`您好,请问您解决了吗

Was this page helpful?
0 / 5 - 0 ratings

Related issues

unicorn7t picture unicorn7t  ·  3Comments

vijaysagi picture vijaysagi  ·  5Comments

lvella picture lvella  ·  4Comments

joeking11829 picture joeking11829  ·  5Comments

ardamavi picture ardamavi  ·  3Comments