Class

VNRecognizedText

Text recognized in an image through a text recognition request.

Declaration

class VNRecognizedText : NSObject

Overview

A single VNRecognizedTextObservation can contain multiple recognized text objects—one for each candidate.

Topics

Determining Recognized Text

var string: String

The top candidate for recognized text.

var confidence: VNConfidence

A normalized confidence score for the text recognition result.

Locating Recognized Text

func boundingBox(for: Range<String.Index>) -> VNRectangleObservation?

Calculates the bounding box around the characters in the range of the string.

Relationships

Inherits From

See Also

Obtaining Recognized Text

func topCandidates(Int) -> [VNRecognizedText]

Requests the n top candidates for a recognized text string.