You are here: Start » AVL.NET » AVL.MakeCharacterSamples(AvlNet.Region[], string, AvlNet.CharacterSample[])
AVL.MakeCharacterSamples(AvlNet.Region[], string, AvlNet.CharacterSample[])
Creates training font samples from the provided regions.
| Namespace: | AvlNet |
|---|---|
| Assembly: | AVL.NET.dll |
Syntax
public static void MakeCharacterSamples( AvlNet.Region[] inCharacterRegions, string inCharacters, out AvlNet.CharacterSample[] outCharacterSamples )
Parameters
- inCharacterRegions
- Type: AvlNet.Region
Array of character regions - inCharacters
- Type: System.String
Character that should be assigned to corresponding regions - outCharacterSamples
- Type: AvlNet.CharacterSample
Array of CharacterSamples
Description
The operation creates a set of character samples used to train OcrMlpModel in the TrainOcr_MLP filter. Consecutive letters in inCharacters correspond to consecutive regions in inCharacterRegions.
Remarks
The length of inCharacters must be equal to the size of the inCharacterRegions array.
To read more about how to use OCR technique, refer to Machine Vision Guide: Optical Character Recognition
Errors
| Error type | Description |
|---|---|
| DomainError | At least a single character should be provided in MakeCharacterSamples. |
| DomainError | The size of inCharacterRegions and the length of inCharacters are not equal in MakeCharacterSamples. |
| DomainError | Parameter inCharacterRegions contains empty region in MakeCharacterSamples. |
