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 |
Tags
- pip
- JSON
- 컨테이너
- 프로그래머스
- VS Code
- label
- Python
- C#
- Docker
- windows forms
- Selenium
- SSH
- ubuntu
- 채보
- Linux
- nvidia-smi
- C
- OpenCV
- 오류
- pytorch
- pandas
- Numpy
- 기타 연주
- C++
- error
- 핑거스타일
- paramiko
- YOLO
- mysql
- Visual Studio
Archives
- Today
- Total
기계는 거짓말하지 않는다
Python OpenCV, PIL Image shape, size 본문
from PIL import Image
import cv2
img = cv2.imread("img.png") # 299 x 507
h, w, c = img.shape # height, width, channel
print(h, w, c)
img = Image.open("img.png")
w, h = img.size # wdith, height
print(w, h)

'Python' 카테고리의 다른 글
| Python 파일 이름 변경 (0) | 2021.08.19 |
|---|---|
| Python Numpy any Filter (0) | 2021.08.15 |
| Python PermissionError: [Errno 13] Permission denied (0) | 2021.08.05 |
| Python list 특정 길이, 값으로 초기화 (0) | 2021.08.05 |
| Python Numpy transpose (0) | 2021.08.04 |
Comments