일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 사전설치
- ExtendWith
- SQLite3
- LINK2001
- c++ set struct
- git 대용량 파일
- Mqtt
- winsock.h Broadcast
- 정적 라이브러리에서 MFC 사용
- .gitattributes
- __vsnprintf
- 설치 테스트
- 확인할 수 없는 외부 기호
- OpenCPN
- c++ Broadcast
- Plugins
- _sprintf
- __snprintf
- OpenXLSX 한글
- git 최초 설정
- wxWidget
- OpenCPN설치
- esp-wroom-32d
- sts4
- c2678
- MFC
- Console
- 의존주입
- Flutter
- 멀티바이트 문자 집합 사용
- Today
- Total
세상을 이롭게
03. opencv GPU(CUDA) 로 영상 처리하기(설치편) 본문
기본적으로 opencv는 cpu로 영상을 처리한다. 하지만 GPU로 영상을 처리할 수 도 있다.
GPU로 돌리기 위해서는 CUDA 를 사용해야한다.
하지만 릴리즈로 나온 라이브러리는 CUDA에 대한 내용이 없다.
그렇기 때문에 CMAKE 로 필요한 옵션을 주어 다시 빌드해주어야 한다.
또, NVIDIA 그래픽카드라면 드라이버가 필요하다.
무조건 다 할 순 없다.
아래 링크를 통해 해당하는 조건인지 확인해봐야한다.
조건을 확인하고 다운받자.
https://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html


https://developer.nvidia.com/cuda-downloads?target_os=Windows&target_arch=x86_64&target_version=11
CUDA Toolkit 12.1 Downloads
Get the latest feature updates to NVIDIA's proprietary compute stack.
developer.nvidia.com




다시 시작을 통해 완료해준다.
완료 후
https://github.com/nvidia/cuda-samples
GitHub - NVIDIA/cuda-samples: Samples for CUDA Developers which demonstrates features in CUDA Toolkit
Samples for CUDA Developers which demonstrates features in CUDA Toolkit - GitHub - NVIDIA/cuda-samples: Samples for CUDA Developers which demonstrates features in CUDA Toolkit
github.com
다운받은 파일에 보면 sln 파일이 있다. 빌드해주자





잘 뜬다면 이제 CUDA를 사용할 준비가 되었다는 뜻입니다.
'OpenCV' 카테고리의 다른 글
02. opencv 캠으로 확인하기 (0) | 2023.08.20 |
---|---|
01. opencv 시작하기(opencv 4.8.0, C++, VS2022) (0) | 2023.08.20 |