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
- 구현
- SWEA
- Trie
- 코테
- 시뮬레이션
- 모의SW역량테스트
- spring boot
- CSV
- Data Structure
- 코딩테스트
- DFS
- boj
- BFS
- Algorithm
- django
- gpdb
- Vue.js
- Back tracking
- hash table
- Python
- Bruth Force
- Linked list
- Priority Queue
- programmers
- aws
- SQL
- GitHub
- 알고리즘
- 알고리듬
- JavaScript
Archives
- Today
- Total
목록pillow (1)
hotamul의 개발 이야기
[Python] image 파일 numpy.ndarray로 불러오기
image 파일을 numpy.ndarray로 불러오는 방법은 3가지가 있다. OpenCV $ pip install opencv-python-headless import cv2 img_cv = cv2.imread('./testimg.jpg') print(img_cv) [[[ 21 48 92] [ 19 46 90] [ 16 42 88] ... [ 0 14 13] [ 0 11 10] [ 0 15 14]] [[ 17 44 88] ... OpenCV의 imread는 BGR (Blue, Green, Red) 순서의 numpy.ndarray를 리턴한다. matplotlib.image $ pip install matplotlib import matplotlib.image as matimg img_mat ..
Dev./Python
2023. 1. 1. 11:35