|
| Mat | cv::dnn::blobFromImage (InputArray image, double scalefactor=1.0, const Size &size=Size(), const Scalar &mean=Scalar(), bool swapRB=false, bool crop=false, int ddepth=CV_32F) |
| | 從影像建立 4 維 Blob。可選地,從中心調整和裁剪 image,減去 mean 值,按 scalefactor 縮放值,交換藍色和紅色通道。
|
| |
| void | cv::dnn::blobFromImage (InputArray image, OutputArray blob, double scalefactor=1.0, const Size &size=Size(), const Scalar &mean=Scalar(), bool swapRB=false, bool crop=false, int ddepth=CV_32F) |
| | 從影像建立4維Blob。
|
| |
| Mat | cv::dnn::blobFromImages (InputArrayOfArrays images, double scalefactor=1.0, Size size=Size(), const Scalar &mean=Scalar(), bool swapRB=false, bool crop=false, int ddepth=CV_32F) |
| | 從影像序列建立 4 維 Blob。可選地,從中心調整和裁剪 images,減去 mean 值,按 scalefactor 縮放值,交換藍色和紅色通道。
|
| |
| void | cv::dnn::blobFromImages (InputArrayOfArrays images, OutputArray blob, double scalefactor=1.0, Size size=Size(), const Scalar &mean=Scalar(), bool swapRB=false, bool crop=false, int ddepth=CV_32F) |
| | 從系列影像建立4維Blob。
|
| |
| Mat | cv::dnn::blobFromImagesWithParams (InputArrayOfArrays images, const Image2BlobParams ¶m=Image2BlobParams()) |
| | 使用給定引數從影像序列建立 4 維 Blob。
|
| |
| void | cv::dnn::blobFromImagesWithParams (InputArrayOfArrays images, OutputArray blob, const Image2BlobParams ¶m=Image2BlobParams()) |
| |
| Mat | cv::dnn::blobFromImageWithParams (InputArray image, const Image2BlobParams ¶m=Image2BlobParams()) |
| | 根據給定引數從影像建立4維Blob。
|
| |
| void | cv::dnn::blobFromImageWithParams (InputArray image, OutputArray blob, const Image2BlobParams ¶m=Image2BlobParams()) |
| |
| void | cv::dnn::enableModelDiagnostics (bool isDiagnosticsMode) |
| | 啟用使用 CV DNN API 載入 DNN 模型的詳細日誌記錄。
|
| |
| std::vector< std::pair< Backend, Target > > | cv::dnn::getAvailableBackends () |
| |
| std::vector< Target > | cv::dnn::getAvailableTargets (dnn::Backend be) |
| |
| void | cv::dnn::imagesFromBlob (const cv::Mat &blob_, OutputArrayOfArrays images_) |
| | 解析 4D Blob 並將其包含的影像作為 2D 陣列透過更簡單的資料結構 (std::vector<cv::Mat>) 輸出。
|
| |
| void | cv::dnn::NMSBoxes (const std::vector< Rect > &bboxes, const std::vector< float > &scores, const float score_threshold, const float nms_threshold, std::vector< int > &indices, const float eta=1.f, const int top_k=0) |
| | 根據給定邊界框和相應分數執行非極大值抑制。
|
| |
| void | cv::dnn::NMSBoxes (const std::vector< Rect2d > &bboxes, const std::vector< float > &scores, const float score_threshold, const float nms_threshold, std::vector< int > &indices, const float eta=1.f, const int top_k=0) |
| |
| void | cv::dnn::NMSBoxes (const std::vector< RotatedRect > &bboxes, const std::vector< float > &scores, const float score_threshold, const float nms_threshold, std::vector< int > &indices, const float eta=1.f, const int top_k=0) |
| |
| void | cv::dnn::NMSBoxesBatched (const std::vector< Rect > &bboxes, const std::vector< float > &scores, const std::vector< int > &class_ids, const float score_threshold, const float nms_threshold, std::vector< int > &indices, const float eta=1.f, const int top_k=0) |
| | 對給定邊界框和不同類別的相應分數執行批次非極大值抑制。
|
| |
| void | cv::dnn::NMSBoxesBatched (const std::vector< Rect2d > &bboxes, const std::vector< float > &scores, const std::vector< int > &class_ids, const float score_threshold, const float nms_threshold, std::vector< int > &indices, const float eta=1.f, const int top_k=0) |
| |
| Net | cv::dnn::readNet (const String &framework, const std::vector< uchar > &bufferModel, const std::vector< uchar > &bufferConfig=std::vector< uchar >()) |
| | 讀取以支援格式之一表示的深度學習網路。
|
| |
| Net | cv::dnn::readNet (CV_WRAP_FILE_PATH const String &model, CV_WRAP_FILE_PATH const String &config="", const String &framework="") |
| | 讀取以支援格式之一表示的深度學習網路。
|
| |
| Net | cv::dnn::readNetFromCaffe (const char *bufferProto, size_t lenProto, const char *bufferModel=NULL, size_t lenModel=0) |
| | 讀取記憶體中以Caffe模型格式儲存的網路模型。
|
| |
| Net | cv::dnn::readNetFromCaffe (const std::vector< uchar > &bufferProto, const std::vector< uchar > &bufferModel=std::vector< uchar >()) |
| | 讀取記憶體中以Caffe模型格式儲存的網路模型。
|
| |
| Net | cv::dnn::readNetFromCaffe (CV_WRAP_FILE_PATH const String &prototxt, CV_WRAP_FILE_PATH const String &caffeModel=String()) |
| | 讀取以 Caffe 框架格式儲存的網路模型。
|
| |
| Net | cv::dnn::readNetFromDarknet (const char *bufferCfg, size_t lenCfg, const char *bufferModel=NULL, size_t lenModel=0) |
| | 讀取以 Darknet 模型檔案格式儲存的網路模型。
|
| |
| Net | cv::dnn::readNetFromDarknet (const std::vector< uchar > &bufferCfg, const std::vector< uchar > &bufferModel=std::vector< uchar >()) |
| | 讀取以 Darknet 模型檔案格式儲存的網路模型。
|
| |
| Net | cv::dnn::readNetFromDarknet (CV_WRAP_FILE_PATH const String &cfgFile, CV_WRAP_FILE_PATH const String &darknetModel=String()) |
| | 讀取以 Darknet 模型檔案格式儲存的網路模型。
|
| |
| Net | cv::dnn::readNetFromModelOptimizer (const std::vector< uchar > &bufferModelConfig, const std::vector< uchar > &bufferWeights) |
| | 從 Intel 的 Model Optimizer 中間表示載入網路。
|
| |
| Net | cv::dnn::readNetFromModelOptimizer (const uchar *bufferModelConfigPtr, size_t bufferModelConfigSize, const uchar *bufferWeightsPtr, size_t bufferWeightsSize) |
| | 從 Intel 的 Model Optimizer 中間表示載入網路。
|
| |
| Net | cv::dnn::readNetFromModelOptimizer (CV_WRAP_FILE_PATH const String &xml, CV_WRAP_FILE_PATH const String &bin="") |
| | 從 Intel 的 Model Optimizer 中間表示載入網路。
|
| |
| Net | cv::dnn::readNetFromONNX (const char *buffer, size_t sizeBuffer) |
| | 從 ONNX 記憶體緩衝區讀取網路模型。
|
| |
| Net | cv::dnn::readNetFromONNX (const std::vector< uchar > &buffer) |
| | 從 ONNX 記憶體緩衝區讀取網路模型。
|
| |
| Net | cv::dnn::readNetFromONNX (CV_WRAP_FILE_PATH const String &onnxFile) |
| | 讀取 ONNX 網路模型。
|
| |
| Net | cv::dnn::readNetFromTensorflow (const char *bufferModel, size_t lenModel, const char *bufferConfig=NULL, size_t lenConfig=0) |
| | 讀取以 TensorFlow 框架格式儲存的網路模型。
|
| |
| Net | cv::dnn::readNetFromTensorflow (const std::vector< uchar > &bufferModel, const std::vector< uchar > &bufferConfig=std::vector< uchar >()) |
| | 讀取以 TensorFlow 框架格式儲存的網路模型。
|
| |
| Net | cv::dnn::readNetFromTensorflow (CV_WRAP_FILE_PATH const String &model, CV_WRAP_FILE_PATH const String &config=String()) |
| | 讀取以 TensorFlow 框架格式儲存的網路模型。
|
| |
| Net | cv::dnn::readNetFromTFLite (const char *bufferModel, size_t lenModel) |
| | 讀取以 TFLite 框架格式儲存的網路模型。
|
| |
| Net | cv::dnn::readNetFromTFLite (const std::vector< uchar > &bufferModel) |
| | 讀取以 TFLite 框架格式儲存的網路模型。
|
| |
| Net | cv::dnn::readNetFromTFLite (CV_WRAP_FILE_PATH const String &model) |
| | 讀取以 TFLite 框架格式儲存的網路模型。
|
| |
| Net | cv::dnn::readNetFromTorch (CV_WRAP_FILE_PATH const String &model, bool isBinary=true, bool evaluate=true) |
| | 讀取以 Torch7 框架格式儲存的網路模型。
|
| |
| Mat | cv::dnn::readTensorFromONNX (CV_WRAP_FILE_PATH const String &path) |
| | 從 .pb 檔案建立Blob。
|
| |
| Mat | cv::dnn::readTorchBlob (const String &filename, bool isBinary=true) |
| | 載入作為 Torch7 框架的 torch.Tensor 物件序列化的 Blob。
|
| |
| void | cv::dnn::shrinkCaffeModel (CV_WRAP_FILE_PATH const String &src, CV_WRAP_FILE_PATH const String &dst, const std::vector< String > &layersTypes=std::vector< String >()) |
| | 將 Caffe 網路的所有權重轉換為半精度浮點數。
|
| |
| void | cv::dnn::softNMSBoxes (const std::vector< Rect > &bboxes, const std::vector< float > &scores, std::vector< float > &updated_scores, const float score_threshold, const float nms_threshold, std::vector< int > &indices, size_t top_k=0, const float sigma=0.5, SoftNMSMethod method=SoftNMSMethod::SOFTNMS_GAUSSIAN) |
| | 根據給定邊界框和相應分數執行軟非極大值抑制。參考:https://arxiv.org/abs/1704.04503。
|
| |
| void | cv::dnn::writeTextGraph (CV_WRAP_FILE_PATH const String &model, CV_WRAP_FILE_PATH const String &output) |
| | 為以協議緩衝區格式儲存的二進位制網路建立文字表示。
|
| |