opencv4

Version:

4.5.4

Category:

ai

Cluster:

Loki

Author / Distributor

https://docs.opencv.org/4.5.4/index.html

Description

OpenCV (Open Source Computer Vision Library) is a leading open-source computer vision and machine learning library used in real-time image processing, robotics, deep learning, and visual AI applications.

Documentation

import cv2

print("OpenCV version:", cv2.__version__)
print("CUDA devices available:", cv2.cuda.getCudaEnabledDeviceCount())

# Simple object detection example
net = cv2.dnn.readNetFromONNX("model.onnx")
blob = cv2.dnn.blobFromImage(img, 1.0, (224, 224))
net.setInput(blob)
out = net.forward()

See full API documentation: https://docs.opencv.org/4.5.4/

Examples/Usage

  • List available modules:

    $ module avail opencv4
    
  • Load the opencv4 module:

    $ module load opencv4-py39-cuda11.2-gcc9/4.5.4
    
  • Check the loaded modules:

    $ module list
    
  • Unload the opencv4 module:

    $ module unload opencv4-py39-cuda11.2-gcc9/4.5.4
    

Installation

Source code is obtained from opencv4