Instance Property

bounds

A rectangle indicating the position and extent of the feature in image coordinates.

Declaration

var bounds: CGRect { get }

Discussion

This property identifies the rectangular region of the image containing the detected text region, not necessarily the shape of the region. A detected feature is rectangular in space, but may appear in perspective in the image. Use the properties listed in Identifying the Corners of a Detected Text Region to find the corners of the rectangle as it appears in perspective.

See Also

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