Click or drag to resize

OcrApiInitLang Method

Init only the lang model component of Tesseract.

Namespace: Patagames.Ocr
Assembly: Patagames.Ocr (in Patagames.Ocr.dll) Version: 4.6.411
Syntax
public void InitLang(
	string language,
	string dataPath = "tessdata"
)

Parameters

language  String
The language is (usually) an ISO 639-3 string or NULL will default to eng.
dataPath  String  (Optional)
Path to the directory with language files and config files. If null - TESSDATA_PREFIX environment variable is used. If variable is not set current directory is used.
Remarks
The only functions that work after this init are SetVariable(String, String, Boolean) and IsValidWord(String).
See Also