research:201712
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
research:201712 [2018/07/18 15:03] – donghee | research:201712 [2018/07/18 15:05] (current) – donghee | ||
---|---|---|---|
Line 28: | Line 28: | ||
``` | ``` | ||
docker exec -it containerid / | docker exec -it containerid / | ||
- | ``` | + | ``` |
## Finding Lines of Color | ## Finding Lines of Color | ||
Line 41: | Line 41: | ||
| | ||
color_select[thresholds] = [0, 0, 0] | color_select[thresholds] = [0, 0, 0] | ||
- | ``` | + | ``` |
ndarray index and slicing | ndarray index and slicing | ||
Line 53: | Line 53: | ||
``` | ``` | ||
| | ||
- | ``` | + | ``` |
c[:,0,0] # 가장 왼쪽 컬럼 빨간 성분 | c[:,0,0] # 가장 왼쪽 컬럼 빨간 성분 | ||
array([ | array([ | ||
``` | ``` | ||
- | ``` | + | ``` |
c[:,:,0] # 모든 요소의 빨간성분 | c[:,:,0] # 모든 요소의 빨간성분 | ||
array([[ | array([[ | ||
Line 70: | Line 70: | ||
[216, 219, 222, 225, 228, 231, 234, 237, 240]]) | [216, 219, 222, 225, 228, 231, 234, 237, 240]]) | ||
``` | ``` | ||
- | |||
thresholds를 selector로 사용했다. | thresholds를 selector로 사용했다. | ||
Line 76: | Line 75: | ||
numpy.where를 참고 | numpy.where를 참고 | ||
- | ``` | + | ``` |
x = np.array([True, | x = np.array([True, | ||
y = np.arange(4) # [0 1 2 3 ] | y = np.arange(4) # [0 1 2 3 ] | ||
Line 97: | Line 96: | ||
blur_gray = cv2.GaussianBlur(gray, | blur_gray = cv2.GaussianBlur(gray, | ||
``` | ``` | ||
+ | |||
왜 GaussianBlue를 하지? 노이즈 제거. | 왜 GaussianBlue를 하지? 노이즈 제거. | ||
커널은 함수로 N x N matrix의 합성곱(convolution) | 커널은 함수로 N x N matrix의 합성곱(convolution) | ||
Canny | Canny | ||
- | ``` | + | ``` |
edges = cv2.Canny(blur_gray, | edges = cv2.Canny(blur_gray, | ||
``` | ``` |
research/201712.1531926192.txt.gz · Last modified: 2018/07/18 15:03 by donghee