HOG handwritten digit recognition not working

i have figured this out for a while but now got a chance to post so i wanted to share my findings.

I think when i was trying to “reshape” the array i was actually reshaping the WRONG array, and thats why it kept giving me an error.

So i guess to convert the 1D array i had into 2d, i took this line: digit = model.predict(hist)[0]

and changed it to this: digit = model.predict(hist.reshape(1,-1))[0]

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top