简体   繁体   English

Python和gpu OpenCV函数

[英]Python and gpu OpenCV functions

I want to know if it is possible to use opencv gpu functions like those from here ? 我想知道是否可以使用像这里的 opencv gpu函数? Or I have to wrap it into python class. 或者我必须将其包装到python类中。

Right now OpenCV 2.4.7 doesn't support the GPU module on OpenCV-Python . 目前, OpenCV 2.4.7不支持OpenCV-Python上的GPU模块

That means that you must write wrappers yourself . 这意味着您必须自己编写包装器

To answer the question in the comment made by fbence in the accepted answer, this is now possible with OpenCV 3 and Python 2.7+ or Python 3+. 要在fbence在接受的答案中的注释中回答问题,现在可以使用OpenCV 3和Python 2.7+或Python 3+。 However, the OpenCV 3 GPU module must be compiled from source. 但是,OpenCV 3 GPU模块必须从源代码编译。

Assuming you are working on a Linux system you can follow these guides: 假设您正在Linux系统上工作,则可以遵循以下指南:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM