Skip to content

Commit 15c2577

Browse files
committed
Colaboratory를 통해 생성됨
1 parent 4a9a75d commit 15c2577

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

Diff for: 13. OpenCV Contours/OpenCV Contours.ipynb

+30-30
Original file line numberDiff line numberDiff line change
@@ -36,36 +36,6 @@
3636
"[강의 노트](https://github.com/ndb796/Python-Data-Analysis-and-Image-Processing-Tutorial/blob/master/13.%20OpenCV%20Contours/Python%20데이터%20분석과%20이미지%20처리%20-%20OpenCV%20Contours.pdf)"
3737
]
3838
},
39-
{
40-
"cell_type": "markdown",
41-
"metadata": {
42-
"id": "TA5EbdcG0ZMI",
43-
"colab_type": "text"
44-
},
45-
"source": [
46-
"cv2.findContours(image, mode, method): 이미지에서 Contour들을 찾는 함수\n",
47-
"\n",
48-
"- mode: Contour들을 찾는 방법\n",
49-
"\n",
50-
"1) RETR_EXTERNAL: 바깥쪽 Line만 찾기\n",
51-
"\n",
52-
"2) RETR_LIST: 모든 Line을 찾지만, Hierarchy 구성 X\n",
53-
"\n",
54-
"3) RETR_TREE: 모든 Line을 찾으며, 모든 Hierarchy 구성 O\n",
55-
"\n",
56-
"- method: Contour들을 찾는 근사치 방법\n",
57-
"\n",
58-
"1) CHAIN_APPROX_NONE: 모든 Contour 포인트 저장 \n",
59-
"\n",
60-
"2) CHAIN_APPROX_SIMPLE: Contour Line을 그릴 수 있는 포인트만 저장\n",
61-
"\n",
62-
"- 입력 이미지는 Gray Scale Threshold 전처리 과정이 필요합니다.\n",
63-
"\n",
64-
"cv2.drawContours(image, contours, contour_index, color, thickness): Contour들을 그리는 함수\n",
65-
"\n",
66-
"- contour_index: 그리고자 하는 Contours Line (전체: -1)"
67-
]
68-
},
6939
{
7040
"cell_type": "code",
7141
"metadata": {
@@ -126,6 +96,36 @@
12696
}
12797
]
12898
},
99+
{
100+
"cell_type": "markdown",
101+
"metadata": {
102+
"id": "RE2_2T12ByH2",
103+
"colab_type": "text"
104+
},
105+
"source": [
106+
"cv2.findContours(image, mode, method): 이미지에서 Contour들을 찾는 함수\n",
107+
"\n",
108+
"- mode: Contour들을 찾는 방법\n",
109+
"\n",
110+
"1) RETR_EXTERNAL: 바깥쪽 Line만 찾기\n",
111+
"\n",
112+
"2) RETR_LIST: 모든 Line을 찾지만, Hierarchy 구성 X\n",
113+
"\n",
114+
"3) RETR_TREE: 모든 Line을 찾으며, 모든 Hierarchy 구성 O\n",
115+
"\n",
116+
"- method: Contour들을 찾는 근사치 방법\n",
117+
"\n",
118+
"1) CHAIN_APPROX_NONE: 모든 Contour 포인트 저장 \n",
119+
"\n",
120+
"2) CHAIN_APPROX_SIMPLE: Contour Line을 그릴 수 있는 포인트만 저장\n",
121+
"\n",
122+
"- 입력 이미지는 Gray Scale Threshold 전처리 과정이 필요합니다.\n",
123+
"\n",
124+
"cv2.drawContours(image, contours, contour_index, color, thickness): Contour들을 그리는 함수\n",
125+
"\n",
126+
"- contour_index: 그리고자 하는 Contours Line (전체: -1)"
127+
]
128+
},
129129
{
130130
"cell_type": "code",
131131
"metadata": {

0 commit comments

Comments
 (0)