Type Method

supportedRecognitionLanguagesForTextRecognitionLevel:revision:error:

Requests a list of languages recognized by the specified revision.

Declaration

+ (NSArray<NSString *> *)supportedRecognitionLanguagesForTextRecognitionLevel:(VNRequestTextRecognitionLevel)recognitionLevel revision:(NSUInteger)requestRevision error:(NSError * _Nullable *)error;

Parameters

recognitionLevel

The level of recognition to prioritize. Set this level to VNRequestTextRecognitionLevelFastto prioritize speed over accuracy, and to VNRequestTextRecognitionLevelAccurate 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

recognitionLanguages

An array of languages to detect, in priority order.

usesLanguageCorrection

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