Ask Your Question

Revision history [back]

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

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