cc_staff
284
edits
(Created OpenCV page.) |
(Marked this version for translation) |
||
Line 1: | Line 1: | ||
<languages /> | <languages /> | ||
<translate> | <translate> | ||
<!--T:1--> | |||
[https://opencv.org/ OpenCV] (Open Source Computer Vision Library) is a library of programming functions mainly aimed at real-time computer vision. | [https://opencv.org/ OpenCV] (Open Source Computer Vision Library) is a library of programming functions mainly aimed at real-time computer vision. | ||
== CUDA == | == CUDA == <!--T:2--> | ||
OpenCV is also available with CUDA. | OpenCV is also available with CUDA. | ||
{{Command|module load gcc/9.3.0 cuda/11.4 opencv}} | {{Command|module load gcc/9.3.0 cuda/11.4 opencv}} | ||
== Extra modules == | == Extra modules == <!--T:3--> | ||
The module also contains the [https://github.com/opencv/opencv_contrib/tree/4.x/modules#an-overview-of-the-opencv_contrib-modules extra modules (contrib)]. | The module also contains the [https://github.com/opencv/opencv_contrib/tree/4.x/modules#an-overview-of-the-opencv_contrib-modules extra modules (contrib)]. | ||
== Python bindings == | == Python bindings == <!--T:4--> | ||
The module contains bindings for multiple Python versions. | The module contains bindings for multiple Python versions. | ||
To discover which are the compatible Python versions, run | To discover which are the compatible Python versions, run | ||
Line 17: | Line 18: | ||
{{Command|module spider opencv_python/4.5.5}} | {{Command|module spider opencv_python/4.5.5}} | ||
=== Usage === | === Usage === <!--T:5--> | ||
1. Load the required modules. | 1. Load the required modules. | ||
{{Command|module load gcc/9.3.0 opencv python scipy-stack}} | {{Command|module load gcc/9.3.0 opencv python scipy-stack}} | ||
<!--T:6--> | |||
2. Import OpenCV. | 2. Import OpenCV. | ||
{{Command|python -c "import cv2"}} | {{Command|python -c "import cv2"}} | ||
<!--T:7--> | |||
If the command displays nothing, the import was successful. | If the command displays nothing, the import was successful. | ||
==== Fulfilling other Python package dependency ==== | ==== Fulfilling other Python package dependency ==== <!--T:8--> | ||
Other Python packages depends on OpenCV bindings in order to be installed. | Other Python packages depends on OpenCV bindings in order to be installed. | ||
OpenCV provides four different packages: | OpenCV provides four different packages: | ||
Line 43: | Line 46: | ||
}} | }} | ||
<!--T:9--> | |||
With the <tt>opencv</tt> module loaded, your package dependency for one of the OpenCV named will be satisfied. | With the <tt>opencv</tt> module loaded, your package dependency for one of the OpenCV named will be satisfied. | ||
</translate> | </translate> |