Installed all needed packages but doesn't seem to work.
Traceback (most recent call last): File "convert.py", line 5, in <module> gray = cv2.cvtColor(slika, cv2.COLOR.BGR2GRAY) AttributeError: module 'cv2.cv2' has no attribute 'COLOR'
gray = cv2.cvtColor(slika, cv2.COLOR.BGR2GRAY)
This is invalid, it should be COLOR_BGR2GRAY instead, like this:
COLOR_BGR2GRAY
gray = cv2.cvtColor(slika, cv2.COLOR_BGR2GRAY)
1.4m articles
1.4m replys
5 comments
57.0k users