I am getting error while connecting my python code with the SQLite3 database

asked 2017-03-31 03:21:19 -0600

updated 2019-01-19 13:03:43 -0600

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

edit retag flag offensive close merge delete

Comments

you don't show any code, but your img is either empty/invalid or not a color (3 or 4 channel) image

berak gravatar imageberak ( 2017-03-31 03:36:30 -0600 )edit