본문 바로가기
OpenCV_with_Python

OpenCV Python3 tutorial_1

by decom0405 2018. 4. 6.

OpenCV Ptyhon3을 이용한 디지털 영상 처리에 관한 스터디 노트를 티스토리 블로그에 적어봄.


글보다는 사진이 많은 예정. 


실습 내용은 주로 Udemy의 강의를 기반으로 작성됨.


첫번째 내용은 먼저 특정 이미지를 불러오는 내용


1
2
3
4
5
6
7
8
# Load the first image
import cv2
 
input = cv2.imread('./images/input.jpg')
cv2.imshow('Hello World', input)
 
cv2.waitKey(0)
cv2.destroyAllWindows()
cs


해당 파이썬 스크립트를 실행하면 위와 같이 이미지를 불러올 수 있음.



반응형

'OpenCV_with_Python' 카테고리의 다른 글

OpenCV Python3 tutorial_3  (0) 2018.04.06
OpenCV Python3 tutorial_2  (0) 2018.04.06