Instance Property

minimumTextHeight

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

Declaration

var minimumTextHeight: Float { get set }

Discussion

Specify a floating-point number relative to the image height. For example, to limit recognition to text that is half of the image height, use 0.5. Increasing the size reduces memory consumption and expedites recognition with the tradeoff of ignoring text smaller than the minimum height. The default value is 1/32, or 0.03125.

See Also

Customizing Recognition Constraints

var customWords: [String]

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

Beta
var recognitionLevel: VNRequestTextRecognitionLevel

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

Beta
enum VNRequestTextRecognitionLevel

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

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software