일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- BFS
- 이진탐색
- 구현
- 시뮬레이션
- 포탑부수기
- dfs
- 코드트리빵
- DP
- ros
- PQ
- 백준
- 순서대로방문하기
- 조합
- 왕실의기사대결
- 삼성기출
- ICER
- 코드트리
- 토끼와 경주
- Calibration
- 3Dreconstruction
- 나무박멸
- ARM
- DenseDepth
- 소프티어
- 싸움땅
- 슈퍼컴퓨터클러스터
- 마이크로프로세서
- 마법의숲탐색
- 루돌프의반란
- 수영대회결승전
Archives
- Today
- Total
목록correlation (1)
from palette import colorful_colors

correlation을 이용해 템플릿매칭을 하는 python code입니다.import numpy as np import cv2 # 소스, 템플릿 이미지 가져오기 img_path = "picture4.jpg" templete_path = "./templete2/heart2.png" img = cv2.imread(img_path,0) template = cv2.imread(templete_path,0) # correlation을 이용해 결과 찾기 cor_result = cv2.matchTemplate(img, template, cv2.TM_CCORR_NORMED) # 위치 찾기 min_value, max_value, min_location, max_location = cv2.minMaxLoc(cor_res..
AI/Computer Vision
2023. 5. 6. 00:20