EOCR::ReadText

Reads one or more rows of characters, i.e. finds the best match between the patterns in the font and the segmented characters.

Namespace: Euresys::Open_eVision_2_11

[C++]

std::string ReadText(
   EROIBW8* sourceImage,
   OEV_INT32 maximumNumberOfCharacters,
   OEV_UINT32 classes,
   BOOL autoSegmentation
)

std::string ReadText(
   EROIBW8* sourceImage,
   OEV_INT32 maximumNumberOfCharacters,
   const std::vector<OEV_UINT32>& classes,
   BOOL autoSegmentation
)

Parameters

sourceImage

Pointer to the source image/ROI.

maximumNumberOfCharacters

Maximum number of characters to be read.

classes

Pointer to an array of logical masks obtained by combining the values of EOCRClass, to specify to what classes the character may belong. Each mask value in the array applies to the corresponding character.

autoSegmentation

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

Remarks

This operation can only be performed after a call to EOCR::FindAllChars. In case the text contains character with a code > 255, EOCR::ReadText will throw an exception. In this case, you should use EOCR::ReadTextWide.

EOCR.ReadText

Reads one or more rows of characters, i.e. finds the best match between the patterns in the font and the segmented characters.

Namespace: Euresys.Open_eVision_2_11

[C#]

string ReadText(
   Euresys.Open_eVision_2_11.EROIBW8 sourceImage,
   int maximumNumberOfCharacters,
   uint classes,
   bool autoSegmentation
)

string ReadText(
   Euresys.Open_eVision_2_11.EROIBW8 sourceImage,
   int maximumNumberOfCharacters,
   uint[] classes,
   bool autoSegmentation
)

Parameters

sourceImage

Pointer to the source image/ROI.

maximumNumberOfCharacters

Maximum number of characters to be read.

classes

Pointer to an array of logical masks obtained by combining the values of EOCRClass, to specify to what classes the character may belong. Each mask value in the array applies to the corresponding character.

autoSegmentation

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

Remarks

This operation can only be performed after a call to EOCR::FindAllChars. In case the text contains character with a code > 255, EOCR::ReadText will throw an exception. In this case, you should use EOCR::ReadTextWide.