Contents

bounds

A rectangle that indicates the position and extent of the text feature in image coordinates.

Declaration

var bounds: CGRect { get }

Discussion

This property identifies the rectangular region of the image containing the detected text, not necessarily the shape of the text box. A detected feature is rectangular in space, but may appear as a four-sided polygon in the image. Use the properties listed in CITextFeature to find the corners of the rectangle as it appears in perspective.