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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to run test-classifier.py from direct camera stream #7

Open
andro-galexy opened this issue Dec 18, 2016 · 0 comments
Open

how to run test-classifier.py from direct camera stream #7

andro-galexy opened this issue Dec 18, 2016 · 0 comments

Comments

@andro-galexy
Copy link

I modifed the test_classfier.py to get live frames from camera and detect object from live camera stream, but am getting this error:
ValueError: The parameter image must be a 2-dimensional array
at this line 馃憤
fd = hog(im_window, orientations, pixels_per_cell, cells_per_block, visualize, normalize)

here the complete Traceback:

File "../object-detector/cam-classifier.py", line 81, in
fd = hog(im_window, orientations, pixels_per_cell, cells_per_block, visualize, normalize)
File "/usr/lib/python2.7/site-packages/skimage/feature/_hog.py", line 79, in hog
assert_nD(image, 2)
File "/usr/lib/python2.7/site-packages/skimage/_shared/utils.py", line 166, in assert_nD
raise ValueError(msg % (arg_name, '-or-'.join([str(n) for n in ndim])))
ValueError: The parameter image must be a 2-dimensional array

Thanks :)

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

1 participant