I am getting error while connecting my python code with the SQLite3 database
Getting this error.
Traceback (most recent call last): File "<c:\users\anchal.a\downloads\new sqlite\detector.py="">", line 34, in <module> gray=cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) error: ........\opencv\modules\imgproc\src\color.cpp:3739: error: (-215) scn == 3 || scn == 4 in function cv::cvtColor
you don't show any code, but your img is either empty/invalid or not a color (3 or 4 channel) image