Skip to content

Instantly share code, notes, and snippets.

View amineHorseman's full-sized avatar

Amine amineHorseman

View GitHub Profile
@amineHorseman
amineHorseman / hog_sliding_window.py
Created August 14, 2018 21:38
Apply a sliding window to an image to extract hog features (python)
from skimage.feature import hog
import numpy as np
image_height = 48
image_width = 48
window_size = 24
window_step = 6
def sliding_hog_windows(image):
hog_vector = []