Instance Property


A value that determines whether the request prioritizes accuracy or speed in text recognition.


var recognitionLevel: VNRequestTextRecognitionLevel { get set }


The recognition level determines which techniques are used during the text recognition. Set this value to to prioritize speed over accuracy, and to VNRequestTextRecognitionLevel.accurate for longer, more computationally intensive recognition.

See Also

Customizing Recognition Constraints

var customWords: [String]

An array of strings to supplement the recognized languages at the word recognition stage.

var minimumTextHeight: Float

The minimum height of the text expected to be recognized, relative to the image height.

enum VNRequestTextRecognitionLevel

An enumeration of the tradeoff between fast and accurate text recognition.