Open siddux opened 2 years ago
Try
rgb_frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
instead of
rgb_frame = frame[:, :, ::-1]
@ManivannanMurugavel You are correct. I have the same issue on MacOS 12.6.1 and Python 3.9.6. It is fixed when changing the code from rgb_frame = frame[:, :, ::-1]
to rgb_frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
Same issue, also worked for me Win10 and Python 3.11.1 and dlib-19.24.99 Many thanks for the fix. Might worths a commit to fix the examples ;)
Same issue on Raspberry Pi4B Bullseye 64bit. It was fixed. Thanks, too
Thanks @ManivannanMurugavel my code is working now, I have also provided this answer in two above mentioned issue thank you once again
Description
I am trying to run the examples which uses the webcam. If any person appears in front of it the code works but when any face appears on the webcam it crashes with the following error:
Any idea on where the problem can be?