CogOCVMaxRunParams SetConfidenceThreshold Method (CogOCVMaxParagraphIterator, Double)Cognex VisionPro 9.7
Sets the confidence threshold for the specified paragraph.

Namespace: Cognex.VisionPro.OCVMax
Assembly: Cognex.VisionPro.OCVMax (in Cognex.VisionPro.OCVMax.dll) Version: 73.0.0.0
Syntax

public void SetConfidenceThreshold(
	CogOCVMaxParagraphIterator pPI,
	double dNewVal
)

Return Value

Type:
The confidence threshold in the range 0.0 to 1.0.
Events

Event TypeReason
ICogChangedEvent ChangedFires when this method changes the confidence threshold for the specified paragraph.
Exceptions

ExceptionCondition
ArgumentNullExceptionIf the supplied paragraph iterator argument is NULL.
ObjectDisposedExceptionIf this CogOCVMaxRunParams object has already been disposed.
Remarks

The confidence threshold is the amount that the score of the highest-scoring in the current key set must be above the highest-scoring character that has a non-zero confusion score with any character in the keyset.

If a potentially confusing character has a high score than the highest-scoring key set member, the status of the result is always Confused, but the returned key will still be the one from the key set not from the confusing key.

Only keys that pass the confusion threshold test are considered for this scoring or verification step.

See Also