简体   繁体   English

我想知道opencv3和python3是否有GPU模式?

[英]I want to know whether opencv3 and python3 have GPU mode?

我想知道opencv3和python3是否具有GPU模式,我查看了这个链接并且知道opencv2时没有GPU模式,但opencv3现在是否具有GPU模式?

You can manually compile the OpenCV 3 source with GPU support for Python 3. All steps are outlined in this blog post. 您可以使用GPU支持Python 3手动编译OpenCV 3源。本博文中概述了所有步骤。 To answer your question, follow all parts of Step 0 up to and including step 5 to install OpenCV 3 with GPU support for Python 3. 要回答您的问题,请按照步骤0的所有部分(包括步骤5)安装具有GPU 3支持的OpenCV 3。

The major requirement is to have an NVIDIA graphics card with CUDA support and all required graphics drivers installed. 主要要求是拥有支持CUDA的NVIDIA显卡以及所有必需的图形驱动程序。 These steps should work for any debian-like linux distro, I have tested on Ubuntu 16.04, 17.04 and Linux Mint 18.3 without problem. 这些步骤适用于任何类似debian的linux发行版,我已经在Ubuntu 16.04,17.04和Linux Mint 18.3上测试过没有问题。

As per the latest release 4.0.0-pre, GPU modules are not yet supported by OpenCV-python. 根据最新版本4.0.0-pre,OpenCV-python尚不支持GPU模块。

  1. Remaining fields specify what modules are to be built. 剩余字段指定要构建的模块。 Since GPU modules are not yet supported by OpenCV-Python, you can completely avoid it to save time (But if you work with them, keep it there). 由于OpenCV-Python尚不支持GPU模块,因此您可以完全避免使用它来节省时间(但如果您使用它们,请将其保留在那里)。

Source: OpenCV Docs 来源: OpenCV Docs

Related Question 相关问题

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

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