Face-Recognition-Attendance-System
Face-Recognition-Attendance-System copied to clipboard
cv2 Error
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
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.