Platforms to show: All Mac Windows Linux Cross-Platform

Back to VNRecognizeTextRequestMBS class.

VNRecognizeTextRequestMBS.available as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Vision MBS MacFrameworks Plugin 19.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Whether this class is available.

Returns true on MacOS 10.15 or newer.

VNRecognizeTextRequestMBS.supportedRecognitionLanguages(recognitionLevel as Integer, byref error as NSErrorMBS) as String()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Vision MBS MacFrameworks Plugin 19.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Requests a list of languages recognized by the specified revision.
Example
Dim recognitionLevel As Integer = VNRecognizeTextRequestMBS.RecognitionLevelAccurate
Dim languages() As String
Dim error As NSErrorMBS

languages = VNRecognizeTextRequestMBS.supportedRecognitionLanguages(recognitionLevel, error)

MsgBox Join(languages, EndOfLine)

If error <> Nil Then
MsgBox error.LocalizedDescription
End If

recognitionLevel: The level of recognition to prioritize. Set this level to RecognitionLevelFast to prioritize speed over accuracy, and to RecognitionLevelAccurate to prioritize accuracy at the expense of speed.
error: An error that contains information about failed language support, or nil if no error occurred.

Request revision is set automatically by OS version.
Returns an array of supported languages, listed as ISO language codes.

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

Returns en-US in macOS 10.15 and iOS 13.0.
Returns en-US, fr-FR, it-IT, de-DE, es-ES and pt-BR in macOS 11.0 and iOS 14.0.
Returns en-US, fr-FR, it-IT, de-DE, es-ES, pt-BR, zh-Hans, zh-Hant in macOS 12.0
Returns en-US, fr-FR, it-IT, de-DE, es-ES, pt-BR, zh-Hans, zh-Hant, yue-Hans, yue-Hant, ko-KR, ja-JP, ru-RU, uk-UA in macOS 13.0 and iOS 16.0.

See also:

VNRecognizeTextRequestMBS.supportedRecognitionLanguages(recognitionLevel as Integer, requestRevision as Integer, byref error as NSErrorMBS) as String()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Vision MBS MacFrameworks Plugin 19.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Requests a list of languages recognized by the specified revision.
Example
Dim recognitionLevel As Integer = VNRecognizeTextRequestMBS.RecognitionLevelAccurate
Dim languages() As String
Dim error As NSErrorMBS

languages = VNRecognizeTextRequestMBS.supportedRecognitionLanguages(recognitionLevel, error)

MsgBox Join(languages, EndOfLine)

If error <> Nil Then
MsgBox error.LocalizedDescription
End If

recognitionLevel: The level of recognition to prioritize. Set this level to RecognitionLevelFast to prioritize speed over accuracy, and to RecognitionLevelAccurate to prioritize accuracy at the expense of speed.
requestRevision: The revision of the text recognition algorithm for the Vision framework to use. Can be 1, 2 or 3. Or leave away for automatic mode.
error: An error that contains information about failed language support, or nil if no error occurred.

Returns an array of supported languages, listed as ISO language codes.

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

Returns en-US in macOS 10.15 and iOS 13.0.
Returns en-US, fr-FR, it-IT, de-DE, es-ES and pt-BR in macOS 11.0 and iOS 14.0.
Returns en-US, fr-FR, it-IT, de-DE, es-ES, pt-BR, zh-Hans, zh-Hant in macOS 12.0 with requestRevision = 2.
Returns en-US, fr-FR, it-IT, de-DE, es-ES, pt-BR, zh-Hans, zh-Hant, yue-Hans, yue-Hant, ko-KR, ja-JP, ru-RU, uk-UA in macOS 13.0 and iOS 16.0 with requestRevision = 3.

See also:

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


The biggest plugin in space...