🤖 AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
Package org.opencv.dnn
クラス TextDetectionModel
- java.lang.Object
-
- org.opencv.dnn.Model
-
- org.opencv.dnn.TextDetectionModel
-
- 既知の直接サブクラス:
TextDetectionModel_DB,TextDetectionModel_EAST
public class TextDetectionModel extends Model
Base class for text detection networks
-
-
コンストラクタの要約
コンストラクタ Modifier Constructor Description protectedTextDetectionModel​(long addr)
-
メソッドの要約
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド Modifier and Type Method Description static TextDetectionModel__fromPtr__​(long addr)voiddetect​(Mat frame, java.util.List<MatOfPoint> detections)voiddetect​(Mat frame, java.util.List<MatOfPoint> detections, MatOfFloat confidences)Performs detection Given the inputframe, prepare network input, run network inference, post-process network output and return result detections.voiddetectTextRectangles​(Mat frame, MatOfRotatedRect detections)voiddetectTextRectangles​(Mat frame, MatOfRotatedRect detections, MatOfFloat confidences)Performs detection Given the inputframe, prepare network input, run network inference, post-process network output and return result detections.-
クラス org.opencv.dnn.Model から継承したメソッド
enableWinograd, getNativeObjAddr, predict, setInputCrop, setInputMean, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputScale, setInputSize, setInputSize, setInputSwapRB, setOutputNames, setPreferableBackend, setPreferableTarget
-
-
-
-
メソッドの詳細
-
__fromPtr__
public static TextDetectionModel __fromPtr__​(long addr)
-
detect
public void detect​(Mat frame, java.util.List<MatOfPoint> detections, MatOfFloat confidences)
Performs detection Given the inputframe, prepare network input, run network inference, post-process network output and return result detections. Each result is quadrangle's 4 points in this order: - bottom-left - top-left - top-right - bottom-right Use cv::getPerspectiveTransform function to retrieve image region without perspective transformations. 覚え書き: If DL model doesn't support that kind of output then result may be derived from detectTextRectangles() output.- 引数:
frame- 入力画像detections- 検出された四角形の配列(1結果につき4点)confidences- 検出の信頼度の配列
-
detect
public void detect​(Mat frame, java.util.List<MatOfPoint> detections)
-
detectTextRectangles
public void detectTextRectangles​(Mat frame, MatOfRotatedRect detections, MatOfFloat confidences)
Performs detection Given the inputframe, prepare network input, run network inference, post-process network output and return result detections. Each result is rotated rectangle. 覚え書き: Result may be inaccurate in case of strong perspective transformations.- 引数:
frame- 入力画像detections- 検出されたRotationRect結果の配列confidences- 検出の信頼度の配列
-
detectTextRectangles
public void detectTextRectangles​(Mat frame, MatOfRotatedRect detections)
-
-