OpenCV453
公開メンバ関数 | 全メンバ一覧
cv::dnn::TextDetectionModel_DB クラス

This class represents high-level API for text detection DL networks compatible with DB model. [詳解]

#include <dnn.hpp>

cv::dnn::TextDetectionModelを継承しています。

公開メンバ関数

CV_WRAP TextDetectionModel_DB (const Net &network)
 Create text detection algorithm from deep learning network. [詳解]
 
CV_WRAP TextDetectionModel_DB (const std::string &model, const std::string &config="")
 Create text detection model from network represented in one of the supported formats. An order of model and config arguments does not matter. [詳解]
 
CV_WRAP TextDetectionModel_DBsetBinaryThreshold (float binaryThreshold)
 
CV_WRAP float getBinaryThreshold () const
 
CV_WRAP TextDetectionModel_DBsetPolygonThreshold (float polygonThreshold)
 
CV_WRAP float getPolygonThreshold () const
 
CV_WRAP TextDetectionModel_DBsetUnclipRatio (double unclipRatio)
 
CV_WRAP double getUnclipRatio () const
 
CV_WRAP TextDetectionModel_DBsetMaxCandidates (int maxCandidates)
 
CV_WRAP int getMaxCandidates () const
 
- 基底クラス cv::dnn::TextDetectionModel に属する継承公開メンバ関数
CV_WRAP void detect (InputArray frame, CV_OUT std::vector< std::vector< Point > > &detections, CV_OUT std::vector< float > &confidences) const
 Performs detection [詳解]
 
CV_WRAP void detect (InputArray frame, CV_OUT std::vector< std::vector< Point > > &detections) const
 
CV_WRAP void detectTextRectangles (InputArray frame, CV_OUT std::vector< cv::RotatedRect > &detections, CV_OUT std::vector< float > &confidences) const
 Performs detection [詳解]
 
CV_WRAP void detectTextRectangles (InputArray frame, CV_OUT std::vector< cv::RotatedRect > &detections) const
 
- 基底クラス cv::dnn::Model に属する継承公開メンバ関数
 Model (const Model &)=default
 
 Model (Model &&)=default
 
Modeloperator= (const Model &)=default
 
Modeloperator= (Model &&)=default
 
CV_WRAP Model (const String &model, const String &config="")
 Create model from deep learning network represented in one of the supported formats. An order of model and config arguments does not matter. [詳解]
 
CV_WRAP Model (const Net &network)
 Create model from deep learning network. [詳解]
 
CV_WRAP ModelsetInputSize (const Size &size)
 Set input size for frame. [詳解]
 
CV_WRAP ModelsetInputSize (int width, int height)
 
CV_WRAP ModelsetInputMean (const Scalar &mean)
 Set mean value for frame. [詳解]
 
CV_WRAP ModelsetInputScale (double scale)
 Set scalefactor value for frame. [詳解]
 
CV_WRAP ModelsetInputCrop (bool crop)
 Set flag crop for frame. [詳解]
 
CV_WRAP ModelsetInputSwapRB (bool swapRB)
 Set flag swapRB for frame. [詳解]
 
CV_WRAP void setInputParams (double scale=1.0, const Size &size=Size(), const Scalar &mean=Scalar(), bool swapRB=false, bool crop=false)
 Set preprocessing parameters for frame. [詳解]
 
CV_WRAP void predict (InputArray frame, OutputArrayOfArrays outs) const
 Given the input frame, create input blob, run net and return the output blobs. [詳解]
 
CV_WRAP ModelsetPreferableBackend (dnn::Backend backendId)
 
CV_WRAP ModelsetPreferableTarget (dnn::Target targetId)
 
CV_DEPRECATED_EXTERNAL operator Net & () const
 
NetgetNetwork_ () const
 
NetgetNetwork_ ()
 
Impl * getImpl () const
 
Impl & getImplRef () const
 

その他の継承メンバ

- 基底クラス cv::dnn::Model に属する継承限定公開変数類
Ptr< Impl > impl
 

詳解

This class represents high-level API for text detection DL networks compatible with DB model.

Related publications: [liao2020real] Paper: https://arxiv.org/abs/1911.08947 For more information about the hyper-parameters setting, please refer to https://github.com/MhLiao/DB

Configurable parameters:

構築子と解体子

◆ TextDetectionModel_DB() [1/2]

CV_WRAP cv::dnn::TextDetectionModel_DB::TextDetectionModel_DB ( const Net network)

Create text detection algorithm from deep learning network.

引数
[in]networkNet object.

◆ TextDetectionModel_DB() [2/2]

CV_WRAP cv::dnn::TextDetectionModel_DB::TextDetectionModel_DB ( const std::string &  model,
const std::string &  config = "" 
)
inline

Create text detection model from network represented in one of the supported formats. An order of model and config arguments does not matter.

引数
[in]modelBinary file contains trained weights.
[in]configText file contains network configuration.

このクラス詳解は次のファイルから抽出されました: