We will revisit the hand-written data OCR, but, with SVM instead of kNN. OCR of Hand-written Digits¶ In kNN, we directly used pixel intensity as the feature vector. This time we will use Histogram of Oriented Gradients (HOG) as feature vectors. Here, before finding the HOG, we deskew the image using its second order moments. So we first define a function deskew() which takes a digit image and desk

