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
- BFS
- GitHub
- Vue.js
- Linked list
- aws
- Algorithm
- 알고리듬
- Data Structure
- CSV
- 코테
- 알고리즘
- Priority Queue
- gpdb
- boj
- Python
- programmers
- 시뮬레이션
- DFS
- 구현
- SWEA
- django
- SQL
- hash table
- Trie
- Back tracking
- spring boot
- 모의SW역량테스트
- 코딩테스트
- JavaScript
- Bruth Force
Archives
- Today
- Total
목록matplotlib.image (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