すぐ近くにあります

Pythonで学ぶ画像処理

Rebeca Gonzalez

Data Engineer

コーナー検出

Pythonで学ぶ画像処理

注目点

Pythonで学ぶ画像処理

コーナー

Pythonで学ぶ画像処理

コーナーのマッチング

Pythonで学ぶ画像処理

コーナーのマッチング

Pythonで学ぶ画像処理

Harris コーナー検出器

Pythonで学ぶ画像処理

Harris コーナー検出器

Pythonで学ぶ画像処理

Harris コーナー検出器

from skimage.feature import corner_harris

# Convert image to grayscale image = rgb2gray(image)
# Apply the Harris corner detector on the image measure_image = corner_harris(image)
# Show the Harris response image show_image(measure_image)
Pythonで学ぶ画像処理

Harris コーナー検出器

Pythonで学ぶ画像処理

Harris コーナー検出器

# Finds the coordinates of the corners 
coords = corner_peaks(corner_harris(image), min_distance=5)

print("A total of", len(coords), "corners were detected.")
合計で 122 個のコーナーが、応答画像から検出されました。
Pythonで学ぶ画像処理

検出されたコーナー

# Show image with marks in detected corners
show_image_with_detected_corners(image, coords)

Pythonで学ぶ画像処理

輪郭つきで表示

def show_image_with_corners(image, coords, title="Corners detected"):
    plt.imshow(image, interpolation='nearest', cmap='gray')
    plt.title(title)
    plt.plot(coords[:, 1], coords[:, 0], '+r', markersize=15)
    plt.axis('off')
    plt.show()
Pythonで学ぶ画像処理

練習しましょう!

Pythonで学ぶ画像処理

Preparing Video For Download...