 | OcrApiAdaptToWordStr Method |
Applies the given word to the adaptive classifier if possible
Namespace: Patagames.OcrAssembly: Patagames.Ocr (in Patagames.Ocr.dll) Version: 4.6.411
Syntaxpublic bool AdaptToWordStr(
PageSegMode mode,
string word
)
Public Function AdaptToWordStr (
mode As PageSegMode,
word As String
) As Boolean
public:
bool AdaptToWordStr(
PageSegMode mode,
String^ word
)
member AdaptToWordStr :
mode : PageSegMode *
word : string -> bool public boolean AdaptToWordStr(
PageSegMode mode,
String word
)
function AdaptToWordStr(mode, word);
Parameters
- mode PageSegMode
- PageSegMode should be PSM_SINGLE_WORD or PSM_CIRCLE_WORD
- word String
- The word must be SPACE-DELIMITED l i k e t h i s
Return Value
Booleanfalse if adaption was not possible for some reason
Remarks
The word must be SPACE-DELIMITED UTF-8 - l i k e t h i s , so it can tell the boundaries of the graphemes.
Assumes that
SetImage/
Rectangle have been used to set the image
to the given word.The mode arg should be PSM_SINGLE_WORD or
PSM_CIRCLE_WORD, as that will be used to control layout analysis.
The currently set PageSegMode is preserved.
See Also