OpenCV 4.12.0
開源計算機視覺
載入中...
搜尋中...
無匹配項
cv::dnn::TextDetectionModel_EAST 類參考

此類表示與 EAST 模型相容的文字檢測深度學習網路的高階 API。 更多...

#include <opencv2/dnn/dnn.hpp>

cv::dnn::TextDetectionModel_EAST 的協作圖

公共成員函式

 TextDetectionModel_EAST ()
 
 TextDetectionModel_EAST (const Net &network)
 從深度學習網路建立文字檢測演算法。
 
 TextDetectionModel_EAST (CV_WRAP_FILE_PATH const std::string &model, CV_WRAP_FILE_PATH const std::string &config="")
 從以支援格式之一表示的網路建立文字檢測模型。 modelconfig 引數的順序無關緊要。
 
float getConfidenceThreshold () const
 獲取檢測置信度閾值。
 
float getNMSThreshold () const
 獲取檢測置信度閾值。
 
TextDetectionModel_EASTsetConfidenceThreshold (float confThreshold)
 設定檢測置信度閾值。
 
TextDetectionModel_EASTsetNMSThreshold (float nmsThreshold)
 設定檢測 NMS 過濾器閾值。
 
- 從 cv::dnn::TextDetectionModel 繼承的公共成員函式
void detect (InputArray frame, std::vector< std::vector< Point > > &detections) const
 
void detect (InputArray frame, std::vector< std::vector< Point > > &detections, std::vector< float > &confidences) const
 執行檢測。
 
void detectTextRectangles (InputArray frame, std::vector< cv::RotatedRect > &detections) const
 
void detectTextRectangles (InputArray frame, std::vector< cv::RotatedRect > &detections, std::vector< float > &confidences) const
 執行檢測。
 
- 從 cv::dnn::Model 繼承的公共成員函式
 Model (模型) ()
 
 Model (const Model &)=default
 
 Model (const Net &network)
 從深度學習網路建立模型。
 
 Model (CV_WRAP_FILE_PATH const String &model, CV_WRAP_FILE_PATH const String &config="")
 從以支援格式之一表示的深度學習網路建立模型。 modelconfig 引數的順序無關緊要。
 
 Model (Model &&)=default
 
ModelenableWinograd (bool useWinograd)
 
Impl * getImpl () const
 
Impl & getImplRef () const
 
NetgetNetwork_ ()
 
NetgetNetwork_ () const
 
 operator Net & () const
 
Modeloperator= (const Model &)=default
 
Modeloperator= (Model &&)=default
 
void predict (InputArray frame, OutputArrayOfArrays outs) const
 給定 input 幀,建立輸入 blob,執行網路並返回輸出 blobs
 
ModelsetInputCrop (bool crop)
 設定幀的 crop 標誌。
 
ModelsetInputMean (const Scalar &mean)
 設定幀的均值。
 
void setInputParams (double scale=1.0, const Size &size=Size(), const Scalar &mean=Scalar(), bool swapRB=false, bool crop=false)
 設定幀的預處理引數。
 
ModelsetInputScale (const Scalar &scale)
 設定幀的 scalefactor 值。
 
ModelsetInputSize (const Size &size)
 設定幀的輸入大小。
 
ModelsetInputSize (int width, int height)
 
ModelsetInputSwapRB (bool swapRB)
 設定幀的 swapRB 標誌。
 
ModelsetOutputNames (const std::vector< String > &outNames)
 設定幀的輸出名稱。
 
ModelsetPreferableBackend (dnn::Backend backendId)
 
ModelsetPreferableTarget (dnn::Target targetId)
 

其他繼承的成員

- 從 cv::dnn::TextDetectionModel 繼承的保護成員函式
 TextDetectionModel ()
 
- 從 cv::dnn::Model 繼承的保護屬性
Ptr< Impl > impl
 

詳細描述

此類表示與 EAST 模型相容的文字檢測深度學習網路的高階 API。

可配置引數

  • (float) confThreshold - 用於按置信度過濾框,預設值:0.5f
  • (float) nmsThreshold - 用於非極大值抑制,預設值:0.0f
示例
samples/dnn/text_detection.cpp.

建構函式 & 解構函式文件

◆ TextDetectionModel_EAST() [1/3]

cv::dnn::TextDetectionModel_EAST::TextDetectionModel_EAST ( )
Python
cv.dnn.TextDetectionModel_EAST(網路) -> <dnn_TextDetectionModel_EAST object>
cv.dnn.TextDetectionModel_EAST(model[, config]) -> <dnn_TextDetectionModel_EAST object>

◆ TextDetectionModel_EAST() [2/3]

cv::dnn::TextDetectionModel_EAST::TextDetectionModel_EAST ( const Net & 網路)
Python
cv.dnn.TextDetectionModel_EAST(網路) -> <dnn_TextDetectionModel_EAST object>
cv.dnn.TextDetectionModel_EAST(model[, config]) -> <dnn_TextDetectionModel_EAST object>

從深度學習網路建立文字檢測演算法。

引數
[輸入]網路Net 物件

◆ TextDetectionModel_EAST() [3/3]

cv::dnn::TextDetectionModel_EAST::TextDetectionModel_EAST ( CV_WRAP_FILE_PATH const std::string & model,
CV_WRAP_FILE_PATH const std::string & config = "" )
inline
Python
cv.dnn.TextDetectionModel_EAST(網路) -> <dnn_TextDetectionModel_EAST object>
cv.dnn.TextDetectionModel_EAST(model[, config]) -> <dnn_TextDetectionModel_EAST object>

從以支援格式之一表示的網路建立文字檢測模型。 modelconfig 引數的順序無關緊要。

引數
[輸入]model二進位制檔案包含訓練權重。
[輸入]config文字檔案包含網路配置。
此函式的呼叫圖如下

成員函式文件

◆ getConfidenceThreshold()

float cv::dnn::TextDetectionModel_EAST::getConfidenceThreshold ( ) const
Python
cv.dnn.TextDetectionModel_EAST.getConfidenceThreshold() -> retval

獲取檢測置信度閾值。

◆ getNMSThreshold()

float cv::dnn::TextDetectionModel_EAST::getNMSThreshold ( ) const
Python
cv.dnn.TextDetectionModel_EAST.getNMSThreshold() -> retval

獲取檢測置信度閾值。

◆ setConfidenceThreshold()

TextDetectionModel_EAST & cv::dnn::TextDetectionModel_EAST::setConfidenceThreshold ( float confThreshold)
Python
cv.dnn.TextDetectionModel_EAST.setConfidenceThreshold(confThreshold) -> retval

設定檢測置信度閾值。

引數
[輸入]confThreshold用於按置信度過濾框的閾值

◆ setNMSThreshold()

TextDetectionModel_EAST & cv::dnn::TextDetectionModel_EAST::setNMSThreshold ( float nmsThreshold)
Python
cv.dnn.TextDetectionModel_EAST.setNMSThreshold(nmsThreshold) -> retval

設定檢測 NMS 過濾器閾值。

引數
[輸入]nmsThreshold用於非極大值抑制的閾值

此類文件由以下檔案生成