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 |
Tags
- 자료구조
- center loss
- 3D
- 큐
- Object Detection
- level2
- attention
- transformer
- OpenCV
- cv2
- Computer Vision
- 프로그래머스
- point cloud
- deep learning
- 스택
- Knowledge Distillation
- 파이썬
- Threshold
- 논문 구현
- numpy
- Python
- 임계처리
- re-identification
- Object Tracking
- NLP
- 알고리즘
- reconstruction
- flame
- 딥러닝
- Deeplearning
Archives
- Today
- Total
목록임계 처리 (1)
공돌이 공룡의 서재
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/btZUKd/btqHwhmOsVP/XvwxuU7pIpoiKpj5mQbmkK/img.png)
오늘 갖고놀 이미지. 임계 처리란 임계값(threshold value. 경계가 되는 기준 값)을 기준으로 이미지를 이진화화는 것을 말한다. 이진화를 이진화를 했을 때 0과 255로 이루어진 흑백 이미지로 만들 수 있고 값이 2개만 있기 때문에 True False형태로 바꾸어서 다른 작업을 수행하는 것이 가능하다. 간단하게 구현하면 다음과 같다. import cv2 import time road = cv2.imread('./road.jpg') gray = cv2.cvtColor(road, cv2.COLOR_BGR2GRAY) height, width = gray.shape th = 150 start = time.perf_counter() for i in range(height): for j in range(..
코딩/opencv
2020. 9. 2. 13:42