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.COLOR_BGR2GRAY is not working #4

Open
nagaajay4 opened this issue Apr 15, 2021 · 0 comments
Open

cv2.COLOR_BGR2GRAY is not working #4

nagaajay4 opened this issue Apr 15, 2021 · 0 comments

Comments

@nagaajay4
Copy link

i don't why for the new version of opencv it is not working..

Traceback (most recent call last):
File "c:/Users/Naja Ajay/Desktop/project/face_detection.py", line 10, in
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
cv2.error: OpenCV(4.5.1) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-kh7iq4w7\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function
'cv::cvtColor'

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

1 participant