def get_hog(img):
    M = np.zeros(img.shape[:2], dtype='float32')
    O = np.zeros(img.shape[:2], dtype='float32')
    H = np.zeros([(img.shape[0] // 4), (img.shape[1] // 4), 32], dtype='float32')
    fhog.gradientMag(img.astype(np.float32), M, O)
    fhog.gradientHist(M, O, H)
    H = H[:, :, :31]
    return H
def get_hog(img):
    M = np.zeros(img.shape[:2], dtype='float32')
    O = np.zeros(img.shape[:2], dtype='float32')
    H = np.zeros([(img.shape[0] // 4), (img.shape[1] // 4), 32], dtype='float32')
    fhog.gradientMag(img.astype(np.float32), M, O)
    fhog.gradientHist(M, O, H)
    H = H[:, :, :31]
    return H