contours

Younghwan Cha·2022년 9월 4일
0

OpenCV

목록 보기
3/10

cv2.findContours

cv2.drawContours

cv2.drawContours(image, contours, controuIdx, color, thickness=None, lineType=No)

• image: 입출력 영상 • contours: (cv2.findContours() 함수로 구한) 외곽선 좌표 정보
• contourIdx: 외곽선 인덱스. 음수(-1)를 지정하면 모든 외곽선을 그린다.
• color: 외곽선 색상 • thickness: 외곽선 두께. thinkness < 0이면 내부를 채운다.
• lineType: LINE_4, LINE_8, LINE_AA 중 하나 지정
• hierarchy: 외곽선 계층 정보.
• maxLevel: 그리기를 수행할 최대 외곽선 레벨. maxLevel = 0 이면 contourIdx로 지정된 외곽선만 그린다.

[ref]
https://deep-learning-study.tistory.com/231

cv2.approxPolyDP

profile
개발 기록

0개의 댓글