Platforms to show: All Mac Windows Linux Cross-Platform
VNRecognizeTextRequestMBS class
Super class: VNImageBasedRequestMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Vision | MBS MacFrameworks Plugin | 19.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
By default, a text recognition request first locates all possible glyphs or characters in the input image, then analyzes each string. To specify or limit the languages sought in the request, set the recognitionLanguages property to an array containing the names of the languages of text you'd like to recognize. Vision returns the result of this request in a VNRecognizedTextObservationMBS object.
Available on MacOS 10.15.
Subclass of the VNImageBasedRequestMBS class.
- 4 properties
- property indeterminate as Boolean
- property minimumTextHeight as Double
- property recognitionLevel as Integer
- property usesLanguageCorrection as Boolean
- 6 methods
- method Constructor(DelegateHandler as VNRequestCompletedMBS = nil, tag as variant = nil)
- method customWords as String()
- method recognitionLanguages as String()
- method setCustomWords(customWords() as String)
- method setProgressHandler(ProgressHandler as VNProgressHandlerMBS, tag as variant = nil)
- method setRecognitionLanguages(recognitionLanguages() as String)
- 3 shared methods
- shared method available as Boolean
- shared method supportedRecognitionLanguages(recognitionLevel as Integer, byref error as NSErrorMBS) as String()
- shared method supportedRecognitionLanguages(recognitionLevel as Integer, requestRevision as Integer, byref error as NSErrorMBS) as String()
- 2 constants
Recognition Levels
Constant | Value | Description |
---|---|---|
RecognitionLevelAccurate | 0 |
Accurate text recognition takes more time to produce a more comprehensive result. |
RecognitionLevelFast | 1 |
Fast text recognition returns results more quickly at the expense of accuracy. |
Super class VNImageBasedRequestMBS
- property regionOfInterest as CGRectMBS
- method Constructor Private
Super class VNRequestMBS
- 6 properties
- property className as String
- property ClassPath as String
- property Handle as Integer
- property preferBackgroundProcessing as Boolean
- property revision as Integer
- property usesCPUOnly as Boolean
- 4 methods
- method cancel
- method Constructor Private
- method copy as VNRequestMBS
- method results as VNObservationMBS()
- 3 shared methods
- shared method currentRevision as Integer
- shared method defaultRevision as Integer
- shared method supportedRevisions as NSIndexSetMBS
This class has no sub classes.
Some examples using this class:
- /MacFrameworks/Vision Object Detection/Text Recognition
- /MacFrameworks/Vision Object Detection/Vision Object Detection
Blog Entries
The items on this page are in the following plugins: MBS MacFrameworks Plugin.
VNRecognizedTextObservationMBS - VNRectangleObservationMBS