AI-generated Key Takeaways
-
SelfieSegmenterOptions
provides configuration settings for theSegmenter
used for selfie segmentation in images or video streams. -
Two detector modes are available:
SINGLE_IMAGE_MODE
for individual images andSTREAM_MODE
for continuous video frames. -
Default options can be used with
DEFAULT_OPTIONS
, equivalent to creating an options object with a builder and no specific settings. -
This class includes standard methods like
equals
,hashCode
, andtoString
for object comparison and representation.
Options for Segmenter
.
Nested Class Summary
class | SelfieSegmenterOptions.Builder | Builder for
SelfieSegmenterOptions . |
|
@interface | SelfieSegmenterOptions.DetectorMode | The detector mode which indicates whether it is for single image or for streaming. |
Constant Summary
int | SINGLE_IMAGE_MODE | This mode is designed for single images that are not related. |
int | STREAM_MODE | This mode is designed for streaming frames from video or camera. |
Field Summary
public static final SelfieSegmenterOptions | DEFAULT_OPTIONS | The default
SelfieSegmenterOptions . |
Public Method Summary
boolean | |
int |
hashCode()
Returns a hash code value for the object.
|
String |
toString()
|
Inherited Method Summary
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.
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.
Fields
public static final SelfieSegmenterOptions DEFAULT_OPTIONS
The default
SelfieSegmenterOptions
.
This is equivalent to new SelfieSegmenterOptions.Builder().build()
.
Public Methods
public boolean equals (Object o)
Indicates whether some other object is "equal to" this one.
public int hashCode ()
Returns a hash code value for the object.