Class CCheckerDetector
A class to find the positions of the ColorCharts in the image.
public class CCheckerDetector : SharedPtrObject, IDisposable, IAlgorithm
- Inheritance
-
CCheckerDetector
- Implements
- Inherited Members
- Extension Methods
Constructors
CCheckerDetector()
Create a new CCheckerDetector.
public CCheckerDetector()
Properties
AlgorithmPtr
Pointer to the native algorithm object
public nint AlgorithmPtr { get; }
Property Value
BestColorChecker
Get the best color checker. By the best it means the one detected with the highest confidence.
public CChecker BestColorChecker { get; }
Property Value
Methods
DisposeObject()
Release the unmanaged memory associated with this object
protected override void DisposeObject()
Process(IInputArray, TypeChart, int, bool, DetectorParameters)
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 BestColorChecker and GetListColorChecker()
public bool Process(IInputArray image, CChecker.TypeChart chartType, int nc = 1, bool useNet = false, DetectorParameters p = null)
Parameters
image
IInputArrayImage in color space BGR
chartType
CChecker.TypeChartType of the chart to detect
nc
intNumber of charts in the image, if you don't know the exact then keeping this number high helps.
useNet
boolIf it is true, the network provided using the setNet() is used for preliminary search for regions where chart could be present, inside the regionsOfInterest provided.
p
DetectorParametersParameters of the detection system
Returns
- bool
true if at least one chart is detected, otherwise false