EOCR::LearnPatterns
Adds all the patterns from the source image to the font.
Namespace: Euresys::Open_eVision_2_5
[C++]
void LearnPatterns(
EROIBW8* sourceImage,
const std::string& text,
OEV_UINT32 singleClass,
BOOL autoSegmentation
)
void LearnPatterns(
EROIBW8* sourceImage,
const std::string& text,
const std::vector<OEV_UINT32>& classes,
BOOL autoSegmentation
)
Parameters
sourceImage
Pointer to the source image/ROI.
text
String containing character codes of the patterns.
singleClass
If specified, all the characters of the string are associated with the same class(es), that is specified by
autoSegmentation
Boolean indicating whether the calculation of the true threshold has to be forced (default
classes
If specified, the i-th character of the string is associated with the class specified by the i-th element of the vector
Remarks
Patterns are ordered by their index value, as assigned by the EOCR::FindAllChars process.
EOCR.LearnPatterns
Adds all the patterns from the source image to the font.
Namespace: Euresys::Open_eVision_2_5
[C#]
void LearnPatterns(
Euresys.Open_eVision_2_5.EROIBW8 sourceImage,
string text,
uint singleClass,
bool autoSegmentation
)
void LearnPatterns(
Euresys.Open_eVision_2_5.EROIBW8 sourceImage,
string text,
uint[] classes,
bool autoSegmentation
)
Parameters
sourceImage
Pointer to the source image/ROI.
text
String containing character codes of the patterns.
singleClass
If specified, all the characters of the string are associated with the same class(es), that is specified by
autoSegmentation
Boolean indicating whether the calculation of the true threshold has to be forced (default
classes
If specified, the i-th character of the string is associated with the class specified by the i-th element of the vector
Remarks
Patterns are ordered by their index value, as assigned by the EOCR::FindAllChars process.
EOCR.LearnPatterns
Adds all the patterns from the source image to the font.
[VB6]
void LearnPatterns(
EROIBW8 sourceImage,
String text,
Long singleClass,
Boolean autoSegmentation
)
void LearnPatterns(
EROIBW8 sourceImage,
String text,
()Long classes,
Boolean autoSegmentation
)
Parameters
sourceImage
Pointer to the source image/ROI.
text
String containing character codes of the patterns.
singleClass
If specified, all the characters of the string are associated with the same class(es), that is specified by
autoSegmentation
Boolean indicating whether the calculation of the true threshold has to be forced (default
classes
If specified, the i-th character of the string is associated with the class specified by the i-th element of the vector
Remarks
Patterns are ordered by their index value, as assigned by the EOCR::FindAllChars process.
See also in the Code Snippets