🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
Package org.opencv.objdetect
クラス CCheckerDetector
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.objdetect.CCheckerDetector
public class CCheckerDetector extends Algorithm
画像内の ColorCharts の位置を見つけるためのクラス。
-
-
コンストラクタの要約
コンストラクタ Modifier Constructor Description protectedCCheckerDetector​(long addr)
-
メソッドの要約
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド Modifier and Type Method Description static CCheckerDetector__fromPtr__​(long addr)static CCheckerDetectorcreate()Returns the implementation of the CCheckerDetector.static CCheckerDetectorcreate​(Net net)Set the net which will be used to find the approximate bounding boxes for the color charts.DetectorParametersMCCgetDetectionParams()MatgetRefColors()Gets the reference color for chart.booleangetUseDnnModel()booleanprocess​(Mat image)Find the ColorCharts in the given image.booleanprocess​(Mat image, int nc)Find the ColorCharts in the given image.booleanprocessWithROI​(Mat image, MatOfRect regionsOfInterest)Find the ColorCharts in the given image.booleanprocessWithROI​(Mat image, MatOfRect regionsOfInterest, int nc)Find the ColorCharts in the given image.voidsetDetectionParams​(DetectorParametersMCC params)Sets the detection paramaters for mcc.voidsetUseDnnModel​(boolean useDnn)Enables or disables the use of the neural network for detection.-
クラス org.opencv.core.Algorithm から継承されたメソッド
clear, empty, getDefaultName, getNativeObjAddr, save
-
-
-
-
メソッドの詳細
-
__fromPtr__
public static CCheckerDetector __fromPtr__​(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()
-
getDetectionParams
public DetectorParametersMCC getDetectionParams()
-
-