Skip to content

Instantly share code, notes, and snippets.

@korenmiklos
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save korenmiklos/7578ee6f913c68a7d16f to your computer and use it in GitHub Desktop.
Save korenmiklos/7578ee6f913c68a7d16f to your computer and use it in GitHub Desktop.
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