모퉁이를 돌아서

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.")
A total of 122 corners were found from measure response image.
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...