-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid number of channels in input image: #3
Comments
I guess that is a problem related to img format,are you using the test.jpg image ? |
My bad, wrong img format :) |
you are welcome bro :) |
Hello, guys can you please provide insight on how you fixed this error |
yes please how was the error fixed ? is it because the image was |
type error: OpenCV(4.2.0) c:\projects\opencv-python\opencv\modules\imgproc\src\color.simd_helpers.hpp:92: error: (-2:Unspecified error) in function '__cdecl cv::impl::
pls help me.. |
scn is 1 means that there is only one channel present, ergo a gray scale image, however it requires a RGB image with 3 channels. |
I think the problem is simple. You're converting an already gray_image to a gray_image. |
Hi,
After traning the Licence_plate_recognition model, runing
python3 main.py -mode predict -i test.jpg -model mlp.pkl
ended with the error :Any thoughts ? thank you in advance.
/Y
The text was updated successfully, but these errors were encountered: