简体   繁体   中英

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. 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.

The major requirement is to have an NVIDIA graphics card with CUDA support and all required graphics drivers installed. 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.

As per the latest release 4.0.0-pre, GPU modules are not yet supported by OpenCV-python.

  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).

Source: OpenCV Docs

Related Question

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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