FirebaseMLVision Framework Reference

VisionPoint

class VisionPoint : NSObject

A 2D or 3D point in the image. A valid point must have both x and y coordinates. The point’s coordinates are in the same scale as the original image.

  • x

    X coordinate. The value is float.

    Declaration

    Swift

    var x: NSNumber { get }
  • y

    Y coordinate. The value is float.

    Declaration

    Swift

    var y: NSNumber { get }
  • z

    Z coordinate (or depth). The value is float. Z is nil if it is a 2D point.

    Declaration

    Swift

    var z: NSNumber? { get }
  • Unavailable.