Last active
March 25, 2019 14:17
-
-
Save missflash/e040bf8ae14abec32525e8e87c01aabc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install scikit-image | |
# Edge Detection | |
import skimage | |
image = skimage.data.camera() | |
edges = skimage.filter.sobel(image) | |
# HOG (Histogram of Oriented Gradient) | |
image = skimage.color.rgb2gray(skimage.data.astronaut()) | |
skimage.feature.hog(image, orientations=9, pixels_per_cell=(8, 8), cells_per_block=(3, 3), visualise=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment