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

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.