You are here: Start » AVL.NET » AVL.ReadText_Format(AvlNet.Region[], AvlNet.OcrModel[], string, float, string, string[], float[])

AVL.ReadText_Format(AvlNet.Region[], AvlNet.OcrModel[], string, float, string, string[], float[])

Ready-to-use tool for reading text from images using the OCR technique.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void ReadText_Format(
	AvlNet.Region[] inCharacters,
	AvlNet.OcrModel[] inOcrModels,
	string inFormat,
	float inMinScore,
	out string outText,
	out string[] outCharacters,
	out float[] outScores
)

Parameters

inCharacters
Type: AvlNet.Region
Character regions
inOcrModels
Type: AvlNet.OcrModel
OCR model specific to a particular font
inFormat
Type: System.String
Description of entered text
inMinScore
Type: System.Single
Minimal score of reading a character
outText
Type: System.String
Read text
outCharacters
Type: System.String
Array of characters. NIL indicates invalid read when inMinScore is set,
outScores
Type: System.Single
Reading scores for each character

Errors

Error type Description
DomainError Uninitialized OCR model in ReadText_Format. OCR model must be trained before use.
DomainError Defined item exceed number of regions in inRegion.
DomainError Defined item exceed number of regions in inRegion in ReadText_Format.
DomainError Selected element in inContext exceeds number of models in inOcrModels in ReadText_Format.

See also