Click or drag to resize

OcrApiAdaptToWordStr Method

Applies the given word to the adaptive classifier if possible

Namespace: Patagames.Ocr
Assembly: Patagames.Ocr (in Patagames.Ocr.dll) Version: 4.6.411
Syntax
public bool AdaptToWordStr(
	PageSegMode mode,
	string 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

Boolean
false 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