Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Algorithm
- 프로그래머스
- 백준
- 알고리즘 스터디
- Stack
- 노마드코딩
- python
- dataframe
- queue
- Matplotlib
- javascript
- 가상환경
- 선그래프
- 파이썬
- MySQL
- aws jupyter notebook
- 자료구조
- NumPy
- Join
- String Method
- 정보처리기사 c언어
- 데이터시각화
- 알고리즘스터디
- openCV
- type hint
- Selenium
- 코딩테스트
- 알고리즘
- pandas
- programmers
Archives
- Today
- Total
목록이미지저장 (1)
조금씩 꾸준히 완성을 향해

▶ openCV install pip install opencv-python import cv2 # 버전 확인 cv2.version.opencv_version # '4.6.0.66' ▶ Image read imagefile = './lena.jpg' #파일 경로 지정 # color (칼라로 가져오기) img = cv2.imread(imagefile) print(img.shape) # (512, 512, 3) # grayscale (흑백으로 가져오기) img2 = cv2.imread(imagefile, 0) print(img.shape) # (512, 512, 3) cv2.startWindowThread() cv2.imshow('Lena color', img) #칼라사진 띄우기 cv2.imshow('Len..
Python/OpenCV
2022. 11. 4. 11:01