def detect_edges(filename):
"""Return a normalized gray scale image."""
LOGGER.debug(filename)
image = rgb2grey(imread(filename)) # rgb2gray can be a noop
image = image / image.max()
return canny(image, sigma=CANNY_SIGMA)
评论列表
文章目录