Type Method

supportedRecognitionLanguages(for:revision:)

Requests a list of languages recognized by the specified revision.

Declaration

class func supportedRecognitionLanguages(for recognitionLevel: VNRequestTextRecognitionLevel, revision requestRevision: Int) throws -> [String]

Parameters

recognitionLevel

The level of recognition to prioritize. Set this level to VNRequestTextRecognitionLevel.fastto prioritize speed over accuracy, and to VNRequestTextRecognitionLevel.accurate to prioritize accuracy at the expense of speed.

requestRevision

The revision of the text recognition algorithm for the Vision framework to use.

error

An error that contains information about failed language support, or nil if no error occurred.

Return Value

An array of supported languages, listed as ISO language codes.

Discussion

A language supported in one recognition level may not be available in another recognition level.

See Also

Specifying Language

var recognitionLanguages: [String]

An array of languages to detect, in priority order.

var usesLanguageCorrection: Bool

A Boolean indicating whether Vision applies language correction during the recognition process.