You are here: Start » AVL.NET » AVS.TrainOcr_MLP Method

AVS.TrainOcr_MLP Method

Trains an OCR multilayer perceptron classifier.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void TrainOcr_MLP
(
	IList<AvlNet.CharacterSample> inCharacterSamples,
	AvlNet.Size inNormalizationSize,
	AvlNet.CharacterFeatures inCharacterFeatures,
	float inLearningRate,
	float inMomentum,
	int inIterationCount,
	AvlNet.OcrModel outOcrModel,
	out float outTrainingAccuracy
)

Parameters

Name Type Range Default Description
inCharacterSamplesSystem.Collections.Generic.IList<AvlNet.CharacterSample>Training font created from sample regions.
inNormalizationSizeAvlNet.Size(Width: 16, Height: 16)The character size after normalization. Default value: (Width: 16, Height: 16).
inCharacterFeaturesAvlNet.CharacterFeatures(Pixels: True)Character features used to distinguish characters from each other. Default value: (Pixels: True).
inLearningRatefloat<0.01f, 1.0f>0.6fSuppression level of changes during learning process. Default value: 0.6f.
inMomentumfloat<0.0f, 1.0f>0.75fValue of classifier learning momentum. Default value: 0.75f.
inIterationCountint<1, +INF>100Learning iteration count. Default value: 100.
outOcrModelAvlNet.OcrModelTrained OcrMlpModel used to recognize characters.
outTrainingAccuracyfloatThe overall training score.

Function Overrides

See also