Share via


OcrEngine.TryCreateFromLanguage(Language) Method

Definition

Creates a new instance of the OcrEngine class.

public:
 static OcrEngine ^ TryCreateFromLanguage(Language ^ language);
 static OcrEngine TryCreateFromLanguage(Language const& language);
public static OcrEngine TryCreateFromLanguage(Language language);
function tryCreateFromLanguage(language)
Public Shared Function TryCreateFromLanguage (language As Language) As OcrEngine

Parameters

language
Language

The language being used for text recognition.

Returns

If the specified language can be resolved to any of the OCR languages available on the device, returns new instance of OcrEngine class, otherwise returns null. See language matching for a further explanation of language resolving.

Applies to