Superpixels & การแบ่งกลุ่มภาพ

การประมวลผลภาพด้วย Python

Rebeca Gonzalez

Data Engineer

การแบ่งกลุ่มภาพ

การประมวลผลภาพด้วย Python

การแบ่งกลุ่มภาพ

การประมวลผลภาพด้วย Python

การแทนค่าภาพ

การประมวลผลภาพด้วย Python

Superpixels

การประมวลผลภาพด้วย Python

ประโยชน์ของ superpixels

  • บริเวณที่มีความหมายมากขึ้น
  • ประสิทธิภาพในการคำนวณ
การประมวลผลภาพด้วย Python

การแบ่งกลุ่มภาพ

  • แบบ supervised
  • แบบ unsupervised

การประมวลผลภาพด้วย Python

การแบ่งกลุ่มแบบ unsupervised

Simple Linear Iterative Clustering (SLIC)

การประมวลผลภาพด้วย Python

การแบ่งกลุ่มแบบ unsupervised (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")
การประมวลผลภาพด้วย Python

การแบ่งกลุ่มแบบ unsupervised (SLIC)

การประมวลผลภาพด้วย Python

เพิ่มจำนวน segments

# 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)
การประมวลผลภาพด้วย Python

เพิ่มจำนวน segments

การประมวลผลภาพด้วย Python

มาฝึกกันเถอะ!

การประมวลผลภาพด้วย Python

Preparing Video For Download...