Instance Property

corners

The points defining the (x, y) locations of the corners.

Declaration

@property(readonly) NSArray<NSDictionary *> *corners;

Discussion

The value of this property is an array of CFDictionary objects, each of which has been created from a CGPoint struct using the CGPointCreateDictionaryRepresentation function, representing the coordinates of the corners of the object with respect to the image in which it resides.

If the metadata originates from video, the points may be expressed as scalar values from 0 to 1.

The points in the corners differ from the bounds rectangle in that bounds is axis aligned to orientation of the captured image, and the values of the corners reside within the bounds rectangle.

The points are arranged in counterclockwise order (clockwise if the code or image is mirrored), starting with the top left of the code in its canonical orientation.

See Also

Getting Machine Readable Code Values

descriptor

A barcode description for use in Core Image.

stringValue

Returns the error-corrected data decoded into a human-readable string.

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