Contents

supportedRecognitionLanguages(for:revision:)

Requests a list of languages that the specified revision recognizes.

Declaration

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

Parameters

  • recognitionLevel:

    The level of recognition to prioritize. Set this level to Fastto prioritize speed over accuracy, and to Accurate to prioritize accuracy at the expense of speed.

  • requestRevision:

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

Mentioned in

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 the Language