|
| | 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="") |
| | サポートされている形式のいずれかで表現されたネットワークからテキスト検出モデルを作成する。model と config の引数の順序は問わない。
|
| |
| float | getConfidenceThreshold () const |
| | 検出の信頼度しきい値を取得する。
|
| |
| float | getNMSThreshold () const |
| | 検出の信頼度しきい値を取得する。
|
| |
| TextDetectionModel_EAST & | setConfidenceThreshold (float confThreshold) |
| | 検出の信頼度しきい値を設定する。
|
| |
| TextDetectionModel_EAST & | setNMSThreshold (float nmsThreshold) |
| | 検出のNMSフィルタしきい値を設定する。
|
| |
| 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 |
| | 検出を実行する。
|
| |
| | Model () |
| |
| | Model (const Model &)=default |
| |
| | Model (const Net &network) |
| | ディープラーニングのネットワークからモデルを作成する。
|
| |
| | Model (CV_WRAP_FILE_PATH const String &model, CV_WRAP_FILE_PATH const String &config="") |
| | サポートされている形式のいずれかで表現されたディープラーニングのネットワークからモデルを作成する。model と config 引数の順序は問わない。
|
| |
| | Model (Model &&)=default |
| |
| Model & | enableWinograd (bool useWinograd) |
| |
| Impl * | getImpl () const |
| |
| Impl & | getImplRef () const |
| |
| Net & | getNetwork_ () |
| |
| Net & | getNetwork_ () const |
| |
| | operator Net & () const |
| |
| Model & | operator= (const Model &)=default |
| |
| Model & | operator= (Model &&)=default |
| |
| void | predict (InputArray frame, OutputArrayOfArrays outs) const |
| | input フレームを与え、入力blobを作成し、netを実行して出力 blobs を返す。
|
| |
| Model & | setInputCrop (bool crop) |
| | フレームに対するcropフラグを設定する。
|
| |
| Model & | setInputMean (const Scalar &mean) |
| | フレームに対する平均値を設定する。
|
| |
| void | setInputParams (double scale=1.0, const Size &size=Size(), const Scalar &mean=Scalar(), bool swapRB=false, bool crop=false) |
| | フレームの前処理パラメータを設定する。
|
| |
| Model & | setInputScale (const Scalar &scale) |
| | フレームのscalefactor値を設定する。
|
| |
| Model & | setInputSize (const Size &size) |
| | フレームの入力サイズを設定する。
|
| |
| Model & | setInputSize (int width, int height) |
| |
| Model & | setInputSwapRB (bool swapRB) |
| | フレームのフラグswapRBを設定する。
|
| |
| Model & | setOutputNames (const std::vector< String > &outNames) |
| | フレームの出力名を設定する。
|
| |
| Model & | setPreferableBackend (dnn::Backend backendId) |
| |
| Model & | setPreferableTarget (dnn::Target targetId) |
| |
このクラスはEASTモデルと互換性のあるテキスト検出DLネットワークの高レベルAPIを表す。
設定可能な引数:
- (float) confThreshold - 信頼度によってボックスをフィルタリングするために使用する。デフォルト: 0.5f
- (float) nmsThreshold - non maximum suppression(非最大抑制)で使用する。デフォルト: 0.0f
- 例
- samples/dnn/text_detection.cpp.