FaceStylizerResult

public abstract class FaceStylizerResult

Represents the stylized image generated by FaceStylizer.

Public Constructors

Public Methods

static FaceStylizerResult
create(Optional<MPImage> stylizedImage, long timestampMs)
Creates an FaceStylizerResult instance from a MPImage.
abstract Optional<MPImage>
abstract long
timestampMs()
Returns the timestamp that is associated with the task result object.

Inherited Methods

boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
com.google.mediapipe.tasks.core.TaskResult
abstract long
timestampMs()
Returns the timestamp that is associated with the task result object.

Public Constructors

public FaceStylizerResult ()

Public Methods

public static FaceStylizerResult create (Optional<MPImage> stylizedImage, long timestampMs)

Creates an FaceStylizerResult instance from a MPImage.

Parameters
stylizedImage an Optional MPImage representing the stylized image of the most visible face. Empty if no face is detected on the input image.
timestampMs a timestamp for this result.

public abstract Optional<MPImage> stylizedImage ()

public abstract long timestampMs ()

Returns the timestamp that is associated with the task result object.