Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cv2 Error #51

Open
PTze opened this issue Feb 12, 2023 · 1 comment
Open

cv2 Error #51

PTze opened this issue Feb 12, 2023 · 1 comment

Comments

@PTze
Copy link

PTze commented Feb 12, 2023

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

@kmhmubin
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants