MediaPipeTasksVision Framework Reference

InteractiveSegmenterStrokePoint

class InteractiveSegmenterStrokePoint : NSObject

Represents a 2D point with normalized x, y coordinates in [0.0, 1.0] forming part of an InteractiveSegmenterStroke.

  • x

    Normalized x coordinate in [0.0, 1.0].

    Declaration

    Swift

    var x: Float { get }
  • y

    Normalized y coordinate in [0.0, 1.0].

    Declaration

    Swift

    var y: Float { get }
  • Initializes a new normalized stroke point.

    Declaration

    Swift

    init(x: Float, y: Float)

    Parameters

    x

    Normalized x coordinate.

    y

    Normalized y coordinate.

    Return Value

    An initialized stroke point.