Last active
August 29, 2015 14:10
-
-
Save korenmiklos/7578ee6f913c68a7d16f to your computer and use it in GitHub Desktop.
This file contains 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
from skimage.feature import blob_log | |
from skimage.exposure import equalize_hist | |
from PIL import Image | |
from numpy import asarray | |
photo = Image.open("drone2.png").convert(mode="L") | |
ndarray = equalize_hist(asarray(photo)) | |
blobs_log = blob_log(ndarray, min_sigma=1, max_sigma=50, num_sigma=20, threshold=.1) | |
print len(blobs_log) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment