-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows face_recognition run time error #1548
Comments
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
windows 11
python 3.10.0
face_recognition 1.3.0
dlib 19.24.2
import cv2
import face_recognition
def identify_known_face():
pass
def main():
count = 0
cap = cv2.VideoCapture(0)
while True:
ret, img = cap.read()
if name == "main":
main()
(.venv) PS D:\sathish\face_recognition> python main.py
Traceback (most recent call last):
File "D:\sathish\face_recognition\main.py", line 36, in
main()
File "D:\sathish\face_recognition\main.py", line 26, in main
face_encodings = face_recognition.face_encodings(rgb_small_frame, face_locations)
File "D:\sathish\face_recognition.venv\lib\site-packages\face_recognition\api.py", line 214, in face_encodings
return [np.array(face_encoder.compute_face_descriptor(face_image, raw_landmark_set, num_jitters)) for raw_landmark_set in raw_landmarks]
File "D:\sathish\face_recognition.venv\lib\site-packages\face_recognition\api.py", line 214, in
return [np.array(face_encoder.compute_face_descriptor(face_image, raw_landmark_set, num_jitters)) for raw_landmark_set in raw_landmarks]
TypeError: compute_face_descriptor(): incompatible function arguments. The following argument types are supported:
1. (self: _dlib_pybind11.face_recognition_model_v1, img: numpy.ndarray[(rows,cols,3),numpy.uint8], face: _dlib_pybind11.full_object_detection, num_jitters: int = 0, padding: float = 0.25) -> _dlib_pybind11.vector
2. (self: _dlib_pybind11.face_recognition_model_v1, img: numpy.ndarray[(rows,cols,3),numpy.uint8], num_jitters: int = 0) -> _dlib_pybind11.vector
3. (self: _dlib_pybind11.face_recognition_model_v1, img: numpy.ndarray[(rows,cols,3),numpy.uint8], faces: _dlib_pybind11.full_object_detections, num_jitters: int = 0, padding: float = 0.25) -> _dlib_pybind11.vectors
4. (self: _dlib_pybind11.face_recognition_model_v1, batch_img: List[numpy.ndarray[(rows,cols,3),numpy.uint8]], batch_faces: List[_dlib_pybind11.full_object_detections], num_jitters: int = 0, padding: float = 0.25) -> _dlib_pybind11.vectorss
5. (self: _dlib_pybind11.face_recognition_model_v1, batch_img: List[numpy.ndarray[(rows,cols,3),numpy.uint8]], num_jitters: int = 0) -> _dlib_pybind11.vectors
Invoked with: <_dlib_pybind11.face_recognition_model_v1 object at 0x00000261A75546B0>, array([[[187, 183, 173],
[190, 183, 172],
[190, 183, 170],
...,
[138, 121, 103],
[136, 119, 104],
[137, 118, 102]],
The text was updated successfully, but these errors were encountered: