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

Facing Type Error #3

Open
suravijayjilla opened this issue Jun 20, 2019 · 0 comments
Open

Facing Type Error #3

suravijayjilla opened this issue Jun 20, 2019 · 0 comments

Comments

@suravijayjilla
Copy link

Hi,

These are all the list of issues I get when i try to run the source.
Please give some suggestion to solve this error.
Thanks in advance...

Cell : Calculate the Histogram of Oriented Gradients¶
line 360 : fd_train[i], hog_image = hog(X_train_chars[i].reshape(28, 28), orientations=8, pixels_per_cell=(4, 4), cells_per_block=(1, 1), visualise=True)

File "/home/cd005/hulk/lib/python3.6/site-packages/skimage/feature/_hog.py", line 202, in hog
g_row, g_col = _hog_channel_gradient(image)
File "/home/cd005/hulk/lib/python3.6/site-packages/skimage/feature/_hog.py", line 38, in _hog_channel_gradient
g_row[1:-1, :] = channel[2:, :] - channel[:-2, :]
TypeError: numpy boolean subtract, the - operator, is deprecated, use the bitwise_xor, the ^ operator, or the logical_xor function instead.

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