MediaPipeTasksVision Framework Reference

RegionOfInterest

class RegionOfInterest : NSObject

The Region-Of-Interest (ROI) to interact with in an interactive segmentation inference.

An instance can contain erither contain a single normalized point pointing to the object that the user wants to segment or array of normalized key points that make up scribbles over the object that the user wants to segment.

  • The normalized point pointing to the object that the user wants to segment. nil if scribbles is not nil.

    Declaration

    Swift

    var keypoint: NormalizedKeypoint? { get }
  • The array of normalized key points that make up scribbles over the object that the user wants to segment. nil if keypoint is not nil.

    Declaration

    Swift

    var scribbles: [NormalizedKeypoint]? { get }
  • Initializes a new RegionOfInterest that represents a single normalized point pointing to the object that the user wants to segment.

    Declaration

    Swift

    init(normalizedKeyPoint normalizedKeypoint: NormalizedKeypoint)

    Parameters

    normalizedKeypoint

    The normalized key point pointing to the object that the user wants to segment.

    Return Value

    An instance of RegionOfInterest initialized with the given normalized key point pointing to the object that the user wants to segment.

  • Initializes a new RegionOfInterest that represents scribbles over the object that the user wants to segment.

    Declaration

    Swift

    init(scribbles: [NormalizedKeypoint])

    Parameters

    scribbles

    The array of normalized key points that make up scribbles over the object that the user wants to segment.

    Return Value

    An instance of RegionOfInterest initialized with the given normalized key points that make up scribbles over the object that the user wants to segment.

  • Undocumented

  • Undocumented