์ฝ๋ํ ๋ง
hit = cv2.resize(result, dsize=(WIDTH, HEIGHT), interpolation=cv2.INTER_NEAREST_EXACT)
map = cv2.imread('img/map.png', 1)
map = cv2.resize(background, dsize=(WIDTH, HEIGHT))
# ํค ์
๋ ฅ์ด ์์ ๋ ๋ง๋ค 0.2์ฉ ๋ ๊ฐํ๊ฒ ๋ธ๋ ๋
a = 0.0
while(a <= 1.0):
b = 1.0 - a
dst = cv2.addWeighted(hit, a, map, b, 0)
cv2.imshow('hitmap', dst)
cv2.waitKey()
a += 0.2
'๐ป > ๋ฉํฐ๋ฏธ๋์ด' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[์ปดํจํฐ๋น์ ] HoG (Histogram of Gradient) (0) | 2021.04.21 |
---|---|
[์์์ฒ๋ฆฌ] ์ปจ๋ฒ๋ฃจ์ vs ๊ต์ฐจ์๊ด (1) | 2021.04.21 |
[CUDA] ์ปดํ์ผ์ด ์๋ ๋(์ฝ๋ MSB 3721) (2) | 2021.02.04 |
[CUDA] VS 2019 ์ฐ๋ ์ ์ค๋ฅ ํด๊ฒฐ๋ฐฉ๋ฒ (0) | 2021.02.04 |
[openGL] VS2019 ํ๋ก์ ํธ ์์ฑ (0) | 2021.02.04 |