用 Canny 查找边缘

Python 图像处理

Rebeca Gonzalez

Data Engineer

检测边缘

多米诺骨牌

Python 图像处理

边缘检测

硬币边缘

Python 图像处理

边缘检测

from skimage.feature import canny

# Convert image to grayscale coins = color.rgb2gray(coins)
# Apply Canny detector canny_edges = canny(coins)
# Show resulted image with edges show_image(canny_edges, "Edges with Canny")
Python 图像处理

边缘检测

Python 图像处理

Canny 边缘检测器

# Apply Canny detector with a sigma of 0.5
canny_edges_0_5 = canny(coins, sigma=0.5)

# Show resulted images with edges show_image(canny_edges, "Sigma of 1") show_image(canny_edges_0_5, "Sigma of 0.5")
Python 图像处理

Canny 边缘检测器

Python 图像处理

¡Vamos a practicar!

Python 图像处理

Preparing Video For Download...