EOCR::LearnPattern

Adds a new pattern to the font.

Namespace: Euresys::Open_eVision

[C++]

void LearnPattern(
   EROIBW8* sourceImage,
   OEV_UINT32 charIndex,
   int code,
   OEV_UINT32 classes,
   bool autoSegmentation
)

Parameters

sourceImage

Pointer to the source image/ROI.

charIndex

Index of the character (ASCII or Unicode) to learn.

code

Character code of the pattern.

classes

Class of the pattern, as defined by EOCRClass.

autoSegmentation

Boolean indicating whether the calculation of the true threshold has to be forced (default true) or bypassed (false).

Remarks

The pattern is selected by its index value, as assigned by the EOCR::FindAllChars process.

EOCR.LearnPattern

Adds a new pattern to the font.

Namespace: Euresys.Open_eVision

[C#]

void LearnPattern(
   Euresys.Open_eVision.EROIBW8 sourceImage,
   uint charIndex,
   int code,
   uint classes,
   bool autoSegmentation
)

Parameters

sourceImage

Pointer to the source image/ROI.

charIndex

Index of the character (ASCII or Unicode) to learn.

code

Character code of the pattern.

classes

Class of the pattern, as defined by EOCRClass.

autoSegmentation

Boolean indicating whether the calculation of the true threshold has to be forced (default true) or bypassed (false).

Remarks

The pattern is selected by its index value, as assigned by the EOCR::FindAllChars process.