(.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:
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
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:
Traceback (most recent call last): File "D:\sathish\face_recognition\main.py", line 36, in
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]],