Open neilyoung opened 3 months ago
Try this GRAY conversion before calling face_recognition.face_locations. It resolved this issue for me.
rgb_small_frame = small_frame[:, :, ::-1] rgb_small_frame = cv2.cvtColor(rgb_small_frame , cv2.COLOR_BGR2RGB) face_locations = face_recognition.face_locations(rgb_small_frame)
Yes, that solved the issue. Thanks
It is working.
Description
I'm running into a problem with a fresh installation of dlib and face_recognition according to the doc. The sample code I ran is https://github.com/ageitgey/face_recognition/blob/master/examples/facerec_from_webcam_faster.py
What I Did
I'm getting this (and I'm getting this with various other samples too, so I suppose some incompatibility between face_recognition and dlib):