# 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.
- `
  ### [init(normalizedKeyPoint:)](https://developers.google.com/edge/api/mediapipe/swift/vision/Classes/RegionOfInterest.md.txt#/c:objc(cs)MPPRegionOfInterest(im)initWithNormalizedKeyPoint:)

  ` 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.
- `
  ### [init(scribbles:)](https://developers.google.com/edge/api/mediapipe/swift/vision/Classes/RegionOfInterest.md.txt#/c:objc(cs)MPPRegionOfInterest(im)initWithScribbles:)

  ` 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.
- `
  ### [keypoint](https://developers.google.com/edge/api/mediapipe/swift/vision/Classes/RegionOfInterest.md.txt#/c:objc(cs)MPPRegionOfInterest(py)keypoint)

  ` 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 }

- `
  ### [scribbles](https://developers.google.com/edge/api/mediapipe/swift/vision/Classes/RegionOfInterest.md.txt#/c:objc(cs)MPPRegionOfInterest(py)scribbles)

  ` 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 }