Hog-feature icon indicating copy to clipboard operation
Hog-feature copied to clipboard

HOG feature extractor with simple python implementation

Hog-feature

HOG feature extractor with simple python implementation

Running

# hog.py
img = cv2.imread('data/picture1.png', cv2.IMREAD_GRAYSCALE)
hog = Hog_descriptor(img, cell_size=8, bin_size=8)
vector, image = hog.extract()
plt.imshow(image, cmap=plt.cm.gray)
plt.show()

Result