rk3399 opencv调用gpu
时间: 2023-08-08 08:09:45
浏览: 101
要在RK3399上使用OpenCV调用GPU,您需要安装支持GPU加速的OpenCV库。可以按照以下[步骤](https://geek.csdn.net/educolumn/41e918968ef7840279c31b7f6a0950e3?spm=1055.2569.3001.10083)进行操作:
1. 安装RK3399的GPU驱动程序和OpenCL库。
2. 下载并[编译](https://geek.csdn.net/educolumn/57c44078296f9f5a6e4818c666b5a953?spm=1055.2569.3001.10083)OpenCV库。您可以使用以下[命令](https://geek.csdn.net/educolumn/4641683097031caa4ae7258fda89dcae?spm=1055.2569.3001.10083)进行[编译](https://geek.csdn.net/educolumn/57c44078296f9f5a6e4818c666b5a953?spm=1055.2569.3001.10083):
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D WITH_CUDA=ON \
-D ENABLE_NEON=ON \
-D ENABLE_VFPV3=ON \
-D WITH_OPENCL=ON \
-D WITH_[opengl](https://geek.csdn.net/educolumn/18c57ca3ac9138ac35520712cd495f68?spm=1055.2569.3001.10083)=ON \
-D OPENCV_ENABLE_NONFREE=ON \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D BUILD_EXAMPLES=ON ..
```
相关推荐
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)