![]() |
OpenCV 4.12.0
開源計算機視覺
|
函式 | |
| void | cv::cann::finalizeAcl () |
| 終結化 AscendCL。 | |
| void | cv::cann::finalizeDvpp () |
| 終結化 DVPP 系統。 | |
| int32_t | cv::cann::getDevice () |
| 獲取當前 Ascend 裝置。 | |
| AscendMat | cv::cann::getInputMat (InputArray src, AscendStream &stream) |
| 從輸入陣列獲取 Ascend 矩陣物件,如果需要則上傳矩陣記憶體。(非阻塞呼叫) | |
| AscendMat | cv::cann::getOutputMat (OutputArray dst, int rows, int cols, int type, AscendStream &stream) |
| 從輸出陣列獲取 Ascend 矩陣物件,如果需要則上傳矩陣記憶體。 | |
| void | cv::cann::initAcl () |
| 初始化 AscendCL。 | |
| void | cv::cann::initDvpp () |
| 初始化 DVPP 系統。 | |
| void | cv::cann::resetDevice () |
| 清除當前 Ascend 裝置中建立的所有上下文。 | |
| void | cv::cann::setDevice (int device) |
| 選擇 Ascend NPU 裝置。 | |
| void | cv::cann::syncOutput (const AscendMat &dst, OutputArray _dst, AscendStream &stream) |
| 將輸出矩陣同步到輸出陣列,如果需要則下載矩陣記憶體。 | |
| void cv::cann::finalizeAcl | ( | ) |
| void cv::cann::finalizeDvpp | ( | ) |
#include <opencv2/cann.hpp>
終結化 DVPP 系統。
| int32_t cv::cann::getDevice | ( | ) |
#include <opencv2/cann.hpp>
獲取當前 Ascend 裝置。
| AscendMat cv::cann::getInputMat | ( | InputArray | src, |
| AscendStream & | stream ) |
#include <opencv2/cann.hpp>
從輸入陣列獲取 Ascend 矩陣物件,如果需要則上傳矩陣記憶體。(非阻塞呼叫)
| AscendMat cv::cann::getOutputMat | ( | OutputArray | dst, |
| int | rows, | ||
| int | cols, | ||
| int | type, | ||
| AscendStream & | stream ) |
#include <opencv2/cann.hpp>
從輸出陣列獲取 Ascend 矩陣物件,如果需要則上傳矩陣記憶體。
| void cv::cann::initAcl | ( | ) |
#include <opencv2/cann.hpp>
初始化 AscendCL。
| void cv::cann::initDvpp | ( | ) |
#include <opencv2/cann.hpp>
初始化 DVPP 系統。
| void cv::cann::resetDevice | ( | ) |
#include <opencv2/cann.hpp>
清除當前 Ascend 裝置中建立的所有上下文。
| void cv::cann::setDevice | ( | int | device | ) |
#include <opencv2/cann.hpp>
選擇 Ascend NPU 裝置。
| void cv::cann::syncOutput | ( | const AscendMat & | dst, |
| OutputArray | _dst, | ||
| AscendStream & | stream ) |
#include <opencv2/cann.hpp>
將輸出矩陣同步到輸出陣列,如果需要則下載矩陣記憶體。