OpenCV  5.0.0-pre
Open Source Computer Vision
Loading...
Searching...
No Matches
Functions
Initialization and Information

Detailed Description

Functions

void cv::cann::finalizeAcl ()
 finalize AscendCL.
 
void cv::cann::finalizeDvpp ()
 finalize DVPP system.
 
int32_t cv::cann::getDevice ()
 Get current Ascend device.
 
AscendMat cv::cann::getInputMat (InputArray src, AscendStream &stream)
 Get Ascend matrix object from Input array, upload matrix memory if need. (Non-Blocking call)
 
AscendMat cv::cann::getOutputMat (OutputArray dst, int rows, int cols, int type, AscendStream &stream)
 Get Ascend matrix object from Output array, upload matrix memory if need.
 
void cv::cann::initAcl ()
 init AscendCL.
 
void cv::cann::initDvpp ()
 init DVPP system.
 
void cv::cann::resetDevice ()
 Clear all context created in current Ascend device.
 
void cv::cann::setDevice (int device)
 Choose Ascend npu device.
 
void cv::cann::syncOutput (const AscendMat &dst, OutputArray _dst, AscendStream &stream)
 Sync output matrix to Output array, download matrix memory if need.
 

Function Documentation

◆ finalizeAcl()

void cv::cann::finalizeAcl ( )

#include <opencv2/cann.hpp>

finalize AscendCL.

Note
finalizeAcl only can be called once for a process. Call this function after all AscendCL options finished.

◆ finalizeDvpp()

void cv::cann::finalizeDvpp ( )

#include <opencv2/cann.hpp>

finalize DVPP system.

Note
Supported devices: Atlas Inference Series products, Atlas 200/500 A2 Inference products and Atlas A2 Training Series products/Atlas 300I A2 Inference products

◆ getDevice()

int32_t cv::cann::getDevice ( )

#include <opencv2/cann.hpp>

Get current Ascend device.

◆ getInputMat()

AscendMat cv::cann::getInputMat ( InputArray  src,
AscendStream stream 
)

#include <opencv2/cann.hpp>

Get Ascend matrix object from Input array, upload matrix memory if need. (Non-Blocking call)

◆ getOutputMat()

AscendMat cv::cann::getOutputMat ( OutputArray  dst,
int  rows,
int  cols,
int  type,
AscendStream stream 
)

#include <opencv2/cann.hpp>

Get Ascend matrix object from Output array, upload matrix memory if need.

◆ initAcl()

void cv::cann::initAcl ( )

#include <opencv2/cann.hpp>

init AscendCL.

◆ initDvpp()

void cv::cann::initDvpp ( )

#include <opencv2/cann.hpp>

init DVPP system.

Note
The DVPP interfaces used are all version V2. Supported devices: Atlas Inference Series products, Atlas 200/500 A2 Inference products and Atlas A2 Training Series products/Atlas 300I A2 Inference products

◆ resetDevice()

void cv::cann::resetDevice ( )

#include <opencv2/cann.hpp>

Clear all context created in current Ascend device.

◆ setDevice()

void cv::cann::setDevice ( int  device)

#include <opencv2/cann.hpp>

Choose Ascend npu device.

◆ syncOutput()

void cv::cann::syncOutput ( const AscendMat dst,
OutputArray  _dst,
AscendStream stream 
)

#include <opencv2/cann.hpp>

Sync output matrix to Output array, download matrix memory if need.