컴퓨터 비젼(Computer Vision)

이진 영상 처리 - 외곽선 검출

rongxian 2022. 2. 14. 15:46

외곽선 검출

cv2.findContours(image, mode, method, contours=None, hierarchy=None, offset=None) -> contours, hierarchy

 

외곽선 그리기

cv2.drawContours(image, contours, contourIdx, color, thickness=None, lineTy-e=None, hierarchy=None, maxLevel=None, offset=None) -> image