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

クラス CCheckerDetector


  • public class CCheckerDetector extends Algorithm
    画像内の ColorCharts の位置を見つけるためのクラス。
    • コンストラクタの詳細

      • CCheckerDetector

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

      • processWithROI

        public boolean processWithROI​(Mat image,
                                      MatOfRect regionsOfInterest,
                                      int nc)
        Find the ColorCharts in the given image. The found charts are not returned but instead stored in the detector, these can be accessed later on using getBestColorChecker() and getListColorChecker()
        引数:
        image - BGR 色空間の画像
        regionsOfInterest - チャートを探す画像の領域。空の場合は画像全体からチャートを探す
        nc - 画像内のチャートの数。正確な数が分からない場合は、この数を大きめにしておくと役立つ。
        戻り値:
        少なくとも1枚のチャートが検出された場合は true、そうでなければ false
      • processWithROI

        public boolean processWithROI​(Mat image,
                                      MatOfRect regionsOfInterest)
        Find the ColorCharts in the given image. The found charts are not returned but instead stored in the detector, these can be accessed later on using getBestColorChecker() and getListColorChecker()
        引数:
        image - BGR 色空間の画像
        regionsOfInterest - チャートを探す画像の領域。空の場合は画像全体からチャートを探す。この数を大きめにしておくと役立つ。
        戻り値:
        少なくとも1枚のチャートが検出された場合は true、そうでなければ false
      • process

        public boolean process​(Mat image,
                               int nc)
        Find the ColorCharts in the given image. Differs from the above one only in the arguments. This version searches for the chart in the full image. The found charts are not returned but instead stored in the detector, these can be accessed later on using getBestColorChecker() and getListColorChecker()
        引数:
        image - BGR 色空間の画像
        nc - 画像内のチャートの数。正確な数が分からない場合は、この数を大きめにしておくと役立つ。
        戻り値:
        少なくとも1枚のチャートが検出された場合は true、そうでなければ false
      • process

        public boolean process​(Mat image)
        Find the ColorCharts in the given image. Differs from the above one only in the arguments. This version searches for the chart in the full image. The found charts are not returned but instead stored in the detector, these can be accessed later on using getBestColorChecker() and getListColorChecker()
        引数:
        image - BGR 色空間の画像。この数を大きめにしておくと役立つ。
        戻り値:
        少なくとも1枚のチャートが検出された場合は true、そうでなければ false
      • create

        public static CCheckerDetector create()
        Returns the implementation of the CCheckerDetector.
        戻り値:
        自動生成
      • create

        public static CCheckerDetector create​(Net net)
        Set the net which will be used to find the approximate bounding boxes for the color charts. And returns the implementation of the CCheckerDetector. It is not necessary to use this, but this usually results in better detection rate.
        引数:
        net - ニューラルネットワーク。ネットワークが空の場合、この関数は false を返す。
        戻り値:
        自動生成
      • getRefColors

        public Mat getRefColors()
        Gets the reference color for chart.
        戻り値:
        自動生成
      • setDetectionParams

        public void setDetectionParams​(DetectorParametersMCC params)
        Sets the detection paramaters for mcc.
        引数:
        params - 検出設定の引数を保持する DetectorParametersMCC 構造体。
      • setUseDnnModel

        public void setUseDnnModel​(boolean useDnn)
        Enables or disables the use of the neural network for detection.
        引数:
        useDnn - ニューラルネットワークを使用する (true) か否か (false) を示す真偽値フラグ。
      • getUseDnnModel

        public boolean getUseDnnModel()