🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。

クラス TextDetectionModel

    • コンストラクタの詳細

      • TextDetectionModel

        protected TextDetectionModel​(long addr)
    • メソッドの詳細

      • detect

        public void detect​(Mat frame,
                           java.util.List<MatOfPoint> detections,
                           MatOfFloat confidences)
        Performs detection Given the input frame, 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 input frame, 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)