TrainFont
Trains font characters. When TrainFont is selected from the Insert Function Dialog, the OCV/OCR Font Training dialog is automatically opened. For more information, see How to Train a Font for the ReadText and VerifyText Functions.
About In-Sight Fonts
A font is a set of up to 255 character models that are "trained"using one or more character instances extracted from an image. Each character model in a trained font must be assigned a label.
A trained font is stored in a Font data structure.
- VerifyText compares the characters in a text string with the existing character models stored in a font to verify the contents of the text string (OCV). For more information, see VerifyText.
- ReadText compares the characters in a text string with the character models in a font to "read" the string (OCR). For more information, see ReadText
TrainFont Inputs
Parameter | Description | ||||||
---|---|---|---|---|---|---|---|
This argument must reference a spreadsheet cell that contains a valid Image data structure. By default, the cell referenced is A0, the cell containing the Image data structure returned by AcquireImage. For more information, see AcquireImage. |
|||||||
Specifies the display mode for TrainFont graphics on the image when a Font data structure is selected in the spreadsheet. Note: The value for the Show parameter can be modified in the Formula Bar once the function has been inserted into the spreadsheet. For more information, see Spreadsheet Cell Execution and Editing Reference.
|
TrainFont Outputs
Returns |
A Font data structure containing a database of character models. |
TrainFont Vision Data Access Functions
The following data elements can be accessed using Vision Data Access functions. For more information, see Text (OCV/OCR)
GetFontLabel(Font, Index) |
Returns the label of the indexed character model from the referenced Font data structure. |
GetFontName(Font) |
Returns the name of the font from the referenced Font data structure. |
GetFontNumCharacter(Font) |
Returns the number of character models in the referenced Font data structure. |