cv2 error OpenCV 4 5 3 tmp pip-req-build-dwj9trv5 opencv modules imgproc src color cpp 182 error -215 Assertion failed src empty in function cvtColor

0 votes
Traceback (most recent call last):
  File "main.py", line 86, in <module>
    image,face = face_detector(frame)
  File "main.py", line 59, in face_detector
    gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
cv2.error: OpenCV(4.5.3) /tmp/pip-req-build-dwj9trv5/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'
Dec 10, 2021 in Python by Kota

edited Mar 4, 2025 381 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP