Skip to content
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

Error in run.py #1

Open
st186 opened this issue Oct 13, 2018 · 3 comments
Open

Error in run.py #1

st186 opened this issue Oct 13, 2018 · 3 comments

Comments

@st186
Copy link

st186 commented Oct 13, 2018

VIDEOIO ERROR: V4L: can't open camera by index 0
Traceback (most recent call last):
File "run.py", line 19, in
image = scipy.misc.imresize(frame, [66, 200]) / 255.0
File "/usr/local/lib/python3.5/dist-packages/numpy/lib/utils.py", line 101, in newfunc
return func(*args, **kwds)
File "/usr/local/lib/python3.5/dist-packages/scipy/misc/pilutil.py", line 555, in imresize
im = toimage(arr, mode=mode)
File "/usr/local/lib/python3.5/dist-packages/numpy/lib/utils.py", line 101, in newfunc
return func(*args, **kwds)
File "/usr/local/lib/python3.5/dist-packages/scipy/misc/pilutil.py", line 327, in toimage
raise ValueError("'arr' does not have a suitable array shape for "
ValueError: 'arr' does not have a suitable array shape for any mode.

@1660211616
Copy link

1660211616 commented Feb 22, 2019

Can you solve this mistake?

@st186
Copy link
Author

st186 commented Mar 5, 2019

no

@tfg1434
Copy link

tfg1434 commented Oct 6, 2019

It's because you don't have a webcam plugged in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants