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

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

public void SetConfidenceThreshold(
	int paragraphPosition,
	double dNewVal
)

Parameters

paragraphPosition
Type: System Int32
A zero-based index that specifies the position of the paragraph of interest.
dNewVal
Type: System Double
n/a

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
ArgumentOutOfRangeExceptionIf the paragraphPosition argument is less than zero or greater than or equal to the number of paragraphs described in this CogOCVMaxRunParams object.
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