Java Face Embedder API

oneML model to embed faces in images, returning faces as vectors.

class org::sertiscorp::oneml::face::FaceEmbedder

Public Functions

inline synchronized void delete ()

Gracefully destroy the object and free memory.

inline FaceEmbedder(LicenseManager manager)

Construct a FaceEmbedder object.

Parameters
  • manager: LicenseManager instance.

inline FaceEmbedderResultList embed(ImageBatch imgs, boolean flip)

Create embedding vector.

Return

an instance of FaceEmbedderResultList.

Parameters
  • imgs: an instance of ImageBatch.

  • flip: flag to enable flipped image embedding. If true, returns the average between the original and flipped image embeddings. Default to false.

inline FaceEmbedderResultList embed(ImageBatch imgs)

Create embedding vector.

Return

an instance of FaceEmbedderResultList.

Parameters

inline FaceEmbedderResult embed(Image img, boolean flip)

Create embedding vector.

Return

an instance of FaceEmbedderResult.

Parameters
  • img: an instance of Image.

  • flip: flag to enable flipped image embedding. If true, returns the average between the original and flipped image embeddings. Default to false.

inline FaceEmbedderResult embed(Image img)

Create embedding vector.

Return

an instance of FaceEmbedderResult.

Parameters
  • img: an instance of Image.

class org::sertiscorp::oneml::face::FaceEmbedderResult

Public Functions

inline synchronized void delete ()

Gracefully destroy the object and free memory.

inline float[] getEmbedding ()

Get an embedding of size EMB_SIZE.

Return

an embedding of type float[EMB_SIZE]

inline int getReturnStatus()

returns return status.

Return

an int return status.

org::sertiscorp::oneml::face::FaceEmbedderResultList : public java::util::AbstractList< FaceEmbedderResult > , public java.util.RandomAccess

Public Functions

inline synchronized void delete ()

Gracefully destroy the object and free memory.

namespace org::sertiscorp::oneml::face
enum FaceEmbedderStatus

Public Members

Empty =(FaceJNI.FaceEmbedderStatus_Empty_get())
Success =(FaceJNI.FaceEmbedderStatus_Success_get())
Fail =(FaceJNI.FaceEmbedderStatus_Fail_get())