| OpenCV 4.5.3(日本語機械翻訳)
 | 
Base class for text detection networks [詳解]
#include <dnn.hpp>
cv::dnn::Modelを継承しています。
cv::dnn::TextDetectionModel_DB, cv::dnn::TextDetectionModel_EASTに継承されています。
| 公開メンバ関数 | |
| CV_WRAP void | detect (InputArray frame, CV_OUT std::vector< std::vector< Point > > &detections, CV_OUT std::vector< float > &confidences) const | 
| 検出を行う[【詳解】(英語] | |
| 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 | 
| 検出を行う[【詳解】(英語] | |
| CV_WRAP void | detectTextRectangles (InputArray frame, CV_OUT std::vector< cv::RotatedRect > &detections) const | 
|  基底クラス
cv::dnn::Model
に属する継承公開メンバ関数 | |
| Model (const Model &)=default | |
| Model (Model &&)=default | |
| Model & | operator= (const Model &)=default | 
| Model & | operator= (Model &&)=default | 
| CV_WRAP | Model (const String &model, const String &config="") | 
| サポートされている形式のいずれかで表現された深層学習ネットワークからモデルを作成します。の順になります。 modelおよびconfig引数の順番は関係ありません。[【詳解】(英語] | |
| CV_WRAP | Model (const Net &network) | 
| 深層学習ネットワークからモデルを作成します。[【詳解】(英語] | |
| CV_WRAP Model & | setInputSize (const Size &size) | 
| フレームの入力サイズを設定します。[【詳解】(英語] | |
| CV_WRAP Model & | setInputSize (int width, int height) | 
| CV_WRAP Model & | setInputMean (const Scalar &mean) | 
| フレームの平均値を設定[【詳解】(英語] | |
| CV_WRAP Model & | setInputScale (double scale) | 
| フレームのスケールファクタ値の設定[【詳解】(英語] | |
| CV_WRAP Model & | setInputCrop (bool crop) | 
| フレームにflag cropを設定する。[【詳解】(英語] | |
| CV_WRAP Model & | setInputSwapRB (bool swapRB) | 
| フレームのためのフラグ swapRB を設定する。[【詳解】(英語] | |
| CV_WRAP void | setInputParams (double scale=1.0, const Size &size=Size(), const Scalar &mean=Scalar(), bool swapRB=false, bool crop=false) | 
| フレームの前処理パラメータの設定[【詳解】(英語] | |
| CV_WRAP void | predict (InputArray frame, OutputArrayOfArrays outs) const | 
| blobが与えられると inputフレームを作成し、入力blobを作成し、ネットを実行し、出力を返す。blobs.[【詳解】(英語] | |
| CV_WRAP Model & | setPreferableBackend (dnn::Backend backendId) | 
| CV_WRAP Model & | setPreferableTarget (dnn::Target targetId) | 
| CV_DEPRECATED_EXTERNAL | operator Net & () const | 
| Net & | getNetwork_ () const | 
| Net & | getNetwork_ () | 
| Impl * | getImpl () const | 
| Impl & | getImplRef () const | 
| その他の継承メンバ | |
|  基底クラス
cv::dnn::Model
に属する継承限定公開変数類 | |
| Ptr< Impl > | impl | 
テキスト検出ネットワークのベースクラス
| CV_WRAP void cv::dnn::TextDetectionModel::detect | ( | InputArray | frame, | 
| CV_OUT std::vector< std::vector< Point > > & | detections | ||
| ) | const | 
これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。
| CV_WRAP void cv::dnn::TextDetectionModel::detect | ( | InputArray | frame, | 
| CV_OUT std::vector< std::vector< Point > > & | detections, | ||
| CV_OUT std::vector< float > & | confidences | ||
| ) | const | 
検出を行う
入力があるとframe入力が与えられた場合、ネットワーク入力の準備、ネットワーク推論の実行、ネットワーク出力の後処理を行い、検出結果を返します。
それぞれの結果は、四角形の4つの点をこの順序で表します。
を使用します。cv::getPerspectiveTransform視点変換を行わずに画像領域を復元する関数です.
| [in]. | frame | 入力画像 | 
| [out]. | detections | 検出結果の四角形の配列(1つの結果につき4点). | 
| [out]. | confidences | 検出結果の信頼度を表す配列 | 
| CV_WRAP void cv::dnn::TextDetectionModel::detectTextRectangles | ( | InputArray | frame, | 
| CV_OUT std::vector< cv::RotatedRect > & | detections | ||
| ) | const | 
これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。
| CV_WRAP void cv::dnn::TextDetectionModel::detectTextRectangles | ( | InputArray | frame, | 
| CV_OUT std::vector< cv::RotatedRect > & | detections, | ||
| CV_OUT std::vector< float > & | confidences | ||
| ) | const | 
検出を行う
入力があるとframe入力が与えられた場合、ネットワーク入力の準備、ネットワーク推論の実行、ネットワーク出力の後処理を行い、検出結果を返します。
各結果は回転した長方形です。
| [in]. | frame | 入力画像の | 
| [out]. | detections | 検出結果のRotationRectを含む配列 | 
| [out]. | confidences | 検出結果の信頼度を表す配列 |