Face-Recognition-Attendance-System icon indicating copy to clipboard operation
Face-Recognition-Attendance-System copied to clipboard

cv2 Error

Open PTze opened this issue 2 years ago • 1 comments

Hi @kmhmubin I'm facing some problems with the cv2 error on option 1,2,4 and I couldn't solve it. Here the error: gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) cv2.error: OpenCV(4.7.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'

Thanks

PTze avatar Feb 12 '23 16:02 PTze

This is a simple error that means the picture you're attempting to process did not load and was empty.

If you took the image dara from the camera, it signifies the camera connection failed or was incorrectly configured. If you loaded an image file, the loading process failed.

kmhmubin avatar Feb 12 '23 16:02 kmhmubin