OpenCV was built without CUDA Video decoding support(OpenCV 是在没有 CUDA 视频解码支持的情况下构建的)
问题描述
解压opencv3.1.0后,我是cmake的:
After unzip opencv3.1.0, I was cmake with:
sudo cmake -D CMAKE_BUILD_TYPE=RELEASE -D INSTALL_C_EXAMPLES=ON –D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_CUDA=ON -D CUDA_FAST_MATH=1 -D WITH_CUBLAS=1 -D WITH_OPENGL=ON -D WITH_V4L=ON –D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_TBB=ON ..
但是当我使用 compile 运行 opencv-3.1.0/sample/gpu/video_reader.cpp 时:
But when I run opencv-3.1.0/sample/gpu/video_reader.cpp with compile :
sudo g++ $(pkg-config --libs --cflags opencv) -o stream video_reader.cpp
我已收到通知:
OpenCV 是在没有 CUDA 视频解码支持的情况下构建的
OpenCV was built without CUDA Video decoding support
我使用的是 Raspberry 3.谢谢大家!
I'm using Raspberry 3. Thanks all !
推荐答案
Raspberry Pi 3 没有 NVIDIA GPU,因此不支持 CUDA.
Raspberry Pi 3 has no NVIDIA GPU, therefore CUDA is not supported.
来自 NVIDIA 页面:
CUDA® 是 NVIDIA 发明的并行计算平台和编程模型.通过利用图形处理单元 (GPU) 的强大功能,它可以显着提高计算性能.- 查看更多信息:http://www.nvidia.com/object/cuda_home_new.html#sthash.5wWaGnZI.dpuf
CUDA® is a parallel computing platform and programming model invented by NVIDIA. It enables dramatic increases in computing performance by harnessing the power of the graphics processing unit (GPU). - See more at: http://www.nvidia.com/object/cuda_home_new.html#sthash.5wWaGnZI.dpuf
来自与类似问题相关的答案:
问:是否可以使用 GPU 进行计算?(例如 CUDA/OpenCL)
Q: Is it possible to use the GPU for calculations? (e.g. CUDA/OpenCL)
A:目前没有 - 只有一个用于显示目的的帧缓冲区接口.没有 OpenCL,也没有针对它的计划,也没有可用于创建 OpenCL 的文档.CUDA 仅适用于 Nvida,因此不适用.一旦 OpenGL 驱动程序可用,您就可以通过 GPU 进行一些计算,但其实用性还有待观察.
A: Not at present - there is only a framebuffer interface for display purposes. There is no OpenCL and no plans for it nor is there documentation available to create OpenCL. CUDA is Nvida only so isn't applicable. Once an OpenGL driver becomes available you may be able to engineer some calculations via the GPU but how useful that will be remains to be seen.
相反,您可以使用 OpenGL ES 或 OpenVG 使用 GPU 编写代码. Raspberry PI视频接口
这篇关于OpenCV 是在没有 CUDA 视频解码支持的情况下构建的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:OpenCV 是在没有 CUDA 视频解码支持的情况下构建的
基础教程推荐
- 初始化列表*参数*评估顺序 2021-01-01
- CString 到 char* 2021-01-01
- 我应该对 C++ 中的成员变量和函数参数使用相同的名称吗? 2021-01-01
- GDB 显示调用堆栈上函数地址的当前编译二进制文 2022-09-05
- 通过引用传递 C++ 迭代器有什么问题? 2022-01-01
- 非静态 const 成员,不能使用默认赋值运算符 2022-10-09
- 如果我为无符号变量分配负值会发生什么? 2022-01-01
- 为什么 RegOpenKeyEx() 在 Vista 64 位上返回错误代码 2021-01-01
- 为什么 typeid.name() 使用 GCC 返回奇怪的字符以及如 2022-09-16
- 为什么派生模板类不能访问基模板类的标识符? 2021-01-01
