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

ValueError: input arrays do not match #22

Open
tsytiff opened this issue Oct 22, 2018 · 2 comments
Open

ValueError: input arrays do not match #22

tsytiff opened this issue Oct 22, 2018 · 2 comments

Comments

@tsytiff
Copy link

tsytiff commented Oct 22, 2018

Hi I m running with the file fun_util.py

However, the following Error occurs:

Using TensorFlow backend.
Traceback (most recent call last):
File "/xxx/Sign-Language-master-2/fun_util.py", line 317, in
recognize()
File "/xxx/Sign-Language-master-2/fun_util.py", line 310, in recognize
keypress = text_mode(cam)
File "/xxx/Sign-Language-master-2/fun_util.py", line 284, in text_mode
res = np.hstack((img, blackboard))
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/numpy/core/shape_base.py", line 288, in hstack
return _nx.concatenate(arrs, 1)
ValueError: all the input array dimensions except for the concatenation axis must match exactly

Since I am a beginner learning this, I can't figure what's happening.
May you please help? Thank you.

@kirtigodani
Copy link

kirtigodani commented Oct 22, 2018 via email

@EvilPort2
Copy link
Owner

It is mainly due to difference in the camera that you are using. In my case my camera gave me a 640x480 image. So my blackboard variable was hard coded as such. Hence the error. The current version resizes the image to 640x480. So the error is no more.

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