EOCR::LearnPatterns
Adds all the patterns from the source image to the font.
Namespace: Euresys::Open_eVision
[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 singleClass
.
autoSegmentation
Boolean indicating whether the calculation of the true threshold has to be forced (default true
) or bypassed (false
).
classes
If specified, the i-th character of the string is associated with the class specified by the i-th element of the vector classes
.
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
[C#]
void LearnPatterns(
EROIBW8
sourceImage,
string text,
uint singleClass,
bool autoSegmentation
)
void LearnPatterns(
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 singleClass
.
autoSegmentation
Boolean indicating whether the calculation of the true threshold has to be forced (default true
) or bypassed (false
).
classes
If specified, the i-th character of the string is associated with the class specified by the i-th element of the vector classes
.
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.
Module: open_evision
[Python]
LearnPatterns(
sourceImage: EROIBW8
text: str
singleClass: int
autoSegmentation: bool
) -> None
LearnPatterns(
sourceImage: EROIBW8
text: str
singleClass: int
) -> None
LearnPatterns(
sourceImage: EROIBW8
text: str
) -> None
LearnPatterns(
sourceImage: EROIBW8
text: str
classes: list[int]
autoSegmentation: bool
) -> None
LearnPatterns(
sourceImage: EROIBW8
text: str
classes: list[int]
) -> None
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 singleClass
.
autoSegmentation
Boolean indicating whether the calculation of the true threshold has to be forced (default true
) or bypassed (false
).
classes
If specified, the i-th character of the string is associated with the class specified by the i-th element of the vector classes
.
Remarks
Patterns are ordered by their index value, as assigned by the EOCR.FindAllChars
process.