# SelfieSegmenterOptions

public class **SelfieSegmenterOptions** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
Options for `https://developers.google.com/android/reference/com/google/mlkit/vision/segmentation/Segmenter`.

### Nested Class Summary

|---|---|---|---|
| class | [SelfieSegmenterOptions.Builder](https://developers.google.com/android/reference/com/google/mlkit/vision/segmentation/selfie/SelfieSegmenterOptions.Builder) || Builder for `https://developers.google.com/android/reference/com/google/mlkit/vision/segmentation/selfie/SelfieSegmenterOptions`. |
| @interface | [SelfieSegmenterOptions.DetectorMode](https://developers.google.com/android/reference/com/google/mlkit/vision/segmentation/selfie/SelfieSegmenterOptions.DetectorMode) || The detector mode which indicates whether it is for single image or for streaming. |

### Constant Summary

|---|---|---|
| int | [SINGLE_IMAGE_MODE](https://developers.google.com/android/reference/com/google/mlkit/vision/segmentation/selfie/SelfieSegmenterOptions#SINGLE_IMAGE_MODE) | This mode is designed for single images that are not related. |
| int | [STREAM_MODE](https://developers.google.com/android/reference/com/google/mlkit/vision/segmentation/selfie/SelfieSegmenterOptions#STREAM_MODE) | This mode is designed for streaming frames from video or camera. |

### Field Summary

|---|---|---|
| public static final [SelfieSegmenterOptions](https://developers.google.com/android/reference/com/google/mlkit/vision/segmentation/selfie/SelfieSegmenterOptions) | [DEFAULT_OPTIONS](https://developers.google.com/android/reference/com/google/mlkit/vision/segmentation/selfie/SelfieSegmenterOptions#DEFAULT_OPTIONS) | The default `https://developers.google.com/android/reference/com/google/mlkit/vision/segmentation/selfie/SelfieSegmenterOptions`. |

### Public Method Summary

|---|---|
| boolean | [equals](https://developers.google.com/android/reference/com/google/mlkit/vision/segmentation/selfie/SelfieSegmenterOptions#equals(java.lang.Object))([Object](https://developer.android.com/reference/java/lang/Object.html) o) Indicates whether some other object is "equal to" this one. |
| int | [hashCode](https://developers.google.com/android/reference/com/google/mlkit/vision/segmentation/selfie/SelfieSegmenterOptions#hashCode())() Returns a hash code value for the object. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [toString](https://developers.google.com/android/reference/com/google/mlkit/vision/segmentation/selfie/SelfieSegmenterOptions#toString())() |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

## Constants

#### public static final int
**SINGLE_IMAGE_MODE**

This mode is designed for single images that are not related. In this mode, the
detector will process each image independently, with no smoothing over frames.
Constant Value: 2

#### public static final int
**STREAM_MODE**

This mode is designed for streaming frames from video or camera. In this mode, the
detector will leverage results from previous images to return smoother segmentation
results.
Constant Value: 1

## Fields

#### public static final SelfieSegmenterOptions **DEFAULT_OPTIONS**

The default `https://developers.google.com/android/reference/com/google/mlkit/vision/segmentation/selfie/SelfieSegmenterOptions`.

This is equivalent to `new SelfieSegmenterOptions.Builder().build()`.

## Public Methods

#### public boolean **equals** ([Object](https://developer.android.com/reference/java/lang/Object.html) o)

Indicates whether some other object is "equal to" this one.

#### public int **hashCode** ()

Returns a hash code value for the object.

#### public [String](https://developer.android.com/reference/java/lang/String.html) **toString** ()