HolisticLandmarker

public final class HolisticLandmarker

Performs holistic landmarks detection on images.

This API expects a pre-trained holistic landmarks model asset bundle.

  • Input image MPImage
    • The image that holistic landmarks detection runs on.
  • Output HolisticLandmarkerResult
    • A HolisticLandmarkerResult containing holistic landmarks.

Nested Classes

class HolisticLandmarker.HolisticLandmarkerOptions Options for setting up an HolisticLandmarker

Public Methods

static HolisticLandmarker
createFromBuffer(Context context, ByteBuffer modelAssetBuffer)
Creates a HolisticLandmarker instance from a model asset bundle buffer and the default HolisticLandmarker.HolisticLandmarkerOptions.
static HolisticLandmarker
createFromFile(Context context, String modelAssetPath)
Creates a HolisticLandmarker instance from a model asset bundle path and the default HolisticLandmarker.HolisticLandmarkerOptions.
static HolisticLandmarker
createFromFile(Context context, File modelAssetFile)
Creates a HolisticLandmarker instance from a model asset bundle file and the default HolisticLandmarker.HolisticLandmarkerOptions.
static HolisticLandmarker
HolisticLandmarkerResult
detect(MPImage image)
Performs holistic landmarks detection on the provided single image with default image processing options, i.e.
HolisticLandmarkerResult
detect(MPImage image, ImageProcessingOptions imageProcessingOptions)
Performs holistic landmarks detection on the provided single image.
void
detectAsync(MPImage image, ImageProcessingOptions imageProcessingOptions, long timestampMs)
Sends live image data to perform holistic landmarks detection, and the results will be available via the OutputHandler.ResultListener provided in the HolisticLandmarker.HolisticLandmarkerOptions.
void
detectAsync(MPImage image, long timestampMs)
Sends live image data to perform holistic landmarks detection with default image processing options, i.e.
HolisticLandmarkerResult
detectForVideo(MPImage image, ImageProcessingOptions imageProcessingOptions, long timestampMs)
Performs holistic landmarks detection on the provided video frame.
HolisticLandmarkerResult
detectForVideo(MPImage image, long timestampMs)
Performs holistic landmarks detection on the provided video frame with default image processing options, i.e.

Inherited Methods

Public Methods

public static HolisticLandmarker createFromBuffer (Context context, ByteBuffer modelAssetBuffer)

Creates a HolisticLandmarker instance from a model asset bundle buffer and the default HolisticLandmarker.HolisticLandmarkerOptions.

Parameters
context an Android ERROR(/Context).
modelAssetBuffer a direct ByteBuffer or a ERROR(/MappedByteBuffer) of the detection model.
Throws
if there is an error during HolisticLandmarker creation.

public static HolisticLandmarker createFromFile (Context context, String modelAssetPath)

Creates a HolisticLandmarker instance from a model asset bundle path and the default HolisticLandmarker.HolisticLandmarkerOptions.

Parameters
context an Android ERROR(/Context).
modelAssetPath path to the holistic landmarks model with metadata in the assets.
Throws
if there is an error during HolisticLandmarker creation.

public static HolisticLandmarker createFromFile (Context context, File modelAssetFile)

Creates a HolisticLandmarker instance from a model asset bundle file and the default HolisticLandmarker.HolisticLandmarkerOptions.

Parameters
context an Android ERROR(/Context).
modelAssetFile the holistic landmarks model File instance.
Throws
IOException if an I/O error occurs when opening the tflite model file.
if there is an error during HolisticLandmarker creation.

public static