BossSensor
BossSensor copied to clipboard
run camera.py error
OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file /io/opencv/modules/imgproc/src/color.cpp, line 9748
Traceback (most recent call last):
File "camera_reader.py", line 17, in
I occured to this problem too. And I find out the reason is that you are using an image that is neither with 3 channels nor 4 channels. Check out your image. Probably it's already a grayscale image with only 1 channel.