OpenCV 4.13.0
Open Source Computer Vision
読み込み中...
検索中...
見つかりません
🤖 AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
cv::text::TextDetectorCNN クラスabstract

TextDetectorCNN クラスはテキストのバウンディングボックス検出の機能を提供する。このクラスは、入力画像が与えられたときにテキスト単語のバウンディングボックスを検出することを表す。このクラスはOpenCVのdnnモジュールを使用して、[171] で説明されている学習済みモデルを読み込む。改変版SSD Caffeのオリジナルリポジトリ: https://github.com/MhLiao/TextBoxes。モデルは DropBox からダウンロードできる。モデル記述を含む改変版.prototxtファイルは opencv_contrib/modules/text/samples/textbox.prototxt にある。 続き...

#include <opencv2/text/textDetector.hpp>

Collaboration diagram for cv::text::TextDetectorCNN:

公開メンバ関数

virtual void detect (InputArray inputImage, std::vector< Rect > &Bbox, std::vector< float > &confidence) CV_OVERRIDE=0
 
- Public Member Functions inherited from cv::text::TextDetector
virtual ~TextDetector ()
 

静的公開メンバ関数

static Ptr< TextDetectorCNNcreate (const String &modelArchFilename, const String &modelWeightsFilename)
 
static Ptr< TextDetectorCNNcreate (const String &modelArchFilename, const String &modelWeightsFilename, std::vector< Size > detectionSizes)
 指定された引数を使用して TextDetectorCNN クラスのインスタンスを作成する。
 

詳細説明

TextDetectorCNN クラスはテキストのバウンディングボックス検出の機能を提供する。このクラスは、入力画像が与えられたときにテキスト単語のバウンディングボックスを検出することを表す。このクラスはOpenCVのdnnモジュールを使用して、[171] で説明されている学習済みモデルを読み込む。改変版SSD Caffeのオリジナルリポジトリ: https://github.com/MhLiao/TextBoxes。モデルは DropBox からダウンロードできる。モデル記述を含む改変版.prototxtファイルは opencv_contrib/modules/text/samples/textbox.prototxt にある。

メンバ関数詳解

◆ create() [1/2]

static Ptr< TextDetectorCNN > cv::text::TextDetectorCNN::create ( const String & modelArchFilename,
const String & modelWeightsFilename )
static
Python:
cv.text.TextDetectorCNN.create(modelArchFilename, modelWeightsFilename) -> retval
cv.text.TextDetectorCNN_create(modelArchFilename, modelWeightsFilename) -> retval

これは利便性のために提供されているオーバーロードされたメンバ関数である。上記の関数とは、受け取る引数のみが異なる。

◆ create() [2/2]

static Ptr< TextDetectorCNN > cv::text::TextDetectorCNN::create ( const String & modelArchFilename,
const String & modelWeightsFilename,
std::vector< Size > detectionSizes )
static
Python:
cv.text.TextDetectorCNN.create(modelArchFilename, modelWeightsFilename) -> retval
cv.text.TextDetectorCNN_create(modelArchFilename, modelWeightsFilename) -> retval

指定された引数を使用して TextDetectorCNN クラスのインスタンスを作成する。

引数
modelArchFilename分類器のアーキテクチャを記述したprototxtファイルへの相対パスまたは絶対パス。
modelWeightsFilenamecaffeバイナリ形式で学習済みモデルの重みを格納したファイルへの相対パスまたは絶対パス。
detectionSizesマルチスケール検出用のサイズのリスト。最良の品質を得るには、値[(300,300),(700,500),(700,300),(700,700),(1600,1600)][171] で推奨されている。

◆ detect()

virtual void cv::text::TextDetectorCNN::detect ( InputArray inputImage,
std::vector< Rect > & Bbox,
std::vector< float > & confidence )
pure virtual
Python:
cv.text.TextDetectorCNN.detect(inputImage) -> Bbox, confidence

これは利便性のために提供されているオーバーロードされたメンバ関数である。上記の関数とは、受け取る引数のみが異なる。

引数
inputImage任意のサイズのCV_U8C3であることが期待される画像
Bbox検出された単語のバウンディングボックスを格納するRectのベクトル
confidence選択されたバウンディングボックスに対して分類器が持つ信頼度で更新されるfloatのベクトル

cv::text::TextDetector を実装する。


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