MediaPipeTasksVision Framework Reference

InteractiveSegmenterBrushMode

enum InteractiveSegmenterBrushMode : UInt, @unchecked Sendable

Specifies the brush mode used for an InteractiveSegmenterStroke (Swift name BrushMode).

  • Unspecified brush mode.

    Declaration

    Swift

    case unspecified = 0
  • Positive foreground brush stroke indicating regions to include.

    Declaration

    Swift

    case positive = 1
  • Negative background brush stroke indicating regions to exclude.

    Declaration

    Swift

    case negative = 2
  • Lasso contour stroke.

    Declaration

    Swift

    case lasso = 3