Xử lý ảnh bằng Python
Rebeca Gonzalez
Data Engineer


from skimage.feature import canny# Chuyển ảnh sang thang xám coins = color.rgb2gray(coins)# Áp dụng bộ phát hiện Canny canny_edges = canny(coins)# Hiển thị ảnh biên thu được show_image(canny_edges, "Edges with Canny")

# Áp dụng Canny với sigma = 0.5 canny_edges_0_5 = canny(coins, sigma=0.5)# Hiển thị ảnh biên thu được show_image(canny_edges, "Sigma of 1") show_image(canny_edges_0_5, "Sigma of 0.5")

Xử lý ảnh bằng Python