You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :)
The text was updated successfully, but these errors were encountered:
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 arrayat 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 arrayThanks :)
The text was updated successfully, but these errors were encountered: