opencv3
- Version:
3.4.12
- Category:
ai
- Cluster:
Loki
Description
OpenCV (Open Source Computer Vision Library) is an open-source computer vision and machine learning software library. This module provides OpenCV 3.4.12 with Python 3.7 bindings, CUDA 10.2 GPU acceleration, and built using a GCC toolchain.
Documentation
import cv2
print(cv2.__version__)
# Output: 3.4.12
# Example: load and show an image
img = cv2.imread("image.png")
cv2.imshow("Preview", img)
cv2.waitKey(0)
cv2.destroyAllWindows()
# Use CUDA if available (limited in OpenCV 3)
print(cv2.cuda.getCudaEnabledDeviceCount())
More documentation: https://docs.opencv.org/3.4/
Examples/Usage
List available modules:
$ module avail opencv3
Load the opencv3 module:
$ module load opencv3-py37-cuda10.2-gcc/3.4.12
Check the loaded modules:
$ module list
Unload the opencv3 module:
$ module unload opencv3-py37-cuda10.2-gcc/3.4.12
Installation
Source code is obtained from opencv3