Siêu điểm ảnh & phân đoạn

Xử lý ảnh bằng Python

Rebeca Gonzalez

Data Engineer

Phân đoạn

Xử lý ảnh bằng Python

Phân đoạn

Xử lý ảnh bằng Python

Biểu diễn ảnh

Xử lý ảnh bằng Python

Siêu điểm ảnh

Xử lý ảnh bằng Python

Lợi ích của siêu điểm ảnh

  • Vùng có ý nghĩa hơn
  • Tính hiệu quả tính toán
Xử lý ảnh bằng Python

Phân đoạn

  • Có giám sát
  • Không giám sát

Xử lý ảnh bằng Python

Phân đoạn không giám sát

Gom cụm Lặp tuyến tính đơn giản (SLIC)

Xử lý ảnh bằng Python

Phân đoạn không giám sát (SLIC)

# Import the modules
from skimage.segmentation import slic
from skimage.color import label2rgb

# Obtain the segments segments = slic(image)
# Put segments on top of original image to compare segmented_image = label2rgb(segments, image, kind='avg')
show_image(image) show_image(segmented_image, "Segmented image")
Xử lý ảnh bằng Python

Phân đoạn không giám sát (SLIC)

Xử lý ảnh bằng Python

Nhiều đoạn hơn

# Import the modules
from skimage.segmentation import slic
from skimage.color import label2rgb

# Obtain the segmentation with 300 regions segments = slic(image, n_segments= 300) # Put segments on top of original image to compare segmented_image = label2rgb(segments, image, kind='avg')
show_image(segmented_image)
Xử lý ảnh bằng Python

Nhiều đoạn hơn

Xử lý ảnh bằng Python

Hãy luyện tập!

Xử lý ảnh bằng Python

Preparing Video For Download...