SelfieSegmenterOptions

Stay organized with collections Save and categorize content based on your preferences.
public class SelfieSegmenterOptions extends Object

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
equals(Object o)
Indicates whether some other object is "equal to" this one.
int
hashCode()
Returns a hash code value for the object.
String

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.

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 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.

public String toString ()