Adds the additional tune record to the tune data
and performs an incremental auto tune.
Namespace: Cognex.VisionPro.OCRMaxThe input record should be verified to be a correct record by the user.
The input record should be a representative example of the image you wish the tuned tool to read.
After calling this function the TuneData will be in the "tuned" state.
When in the tuned state the user can call GetTunedSegmenter(), and GetTunedFont() to extract tuned OCRMax operators.
Assembly: Cognex.VisionPro.OCRMax (in Cognex.VisionPro.OCRMax.dll) Version: 69.0.0.0
Syntax
Parameters
- record
- Type: Cognex.VisionPro.OCRMax CogOCRMaxTuneRecord
A corrected tune record which contains the image, region, correct character codes, as well as the correct mark and cell rectangles.
- tuneParams
- Type: Cognex.VisionPro.OCRMax CogOCRMaxTuneParams
A CogOCRMaxTuneParams object which controls the AutoTune process.
- segmenter
- Type: Cognex.VisionPro.OCRMax CogOCRMaxSegmenter
The current CogOCRMaxSegmenter to use as a hint or starting point for the AutoTune process.
- classifierTrainParams
- Type: Cognex.VisionPro.OCRMax CogOCRMaxClassifierTrainParams
The current CogOCRMaxClassifierTrainParams, this argument is ignored by AutoTune.
- classifierRunParams
- Type: Cognex.VisionPro.OCRMax CogOCRMaxClassifierRunParams
The current CogOCRMaxClassifierRunParams, this argument is ignored by AutoTune.
Events
| Event Type | Reason |
|---|---|
| ICogChangedEvent Changed | Fires when this function is called. The following state flag may be affected:
|
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException |
|
| ArgumentException |
|
| CogOCRMaxInvalidTuneRecordException |
|
See Also