Java Face Detector API

oneML model to detect faces in images, returning their confident score, bounding box, face landmarks and poses.

class org::sertiscorp::oneml::face::FaceDetector

Public Functions

inline synchronized void delete ()

Gracefully destroy the object and free memory.

inline FaceDetector(LicenseManager manager)

Construct a FaceDetector object.

Parameters
  • manager: LicenseManager instance.

inline FaceDetectorResultList detect(ImageBatch imgs)

Detect faces in images.

Return

an instance of FaceDetectorResultList.

Parameters

inline FaceDetectorResultList detect(ImageBatch imgs, float score_threshold)

Detect faces in images.

Return

an instance of FaceDetectorResultList.

Parameters
  • imgs: an instance of ImageBatch.

  • score_threshold: score threshold

inline FaceDetectorResult detect(Image img)

Detect faces in an image.

Return

an instance of FaceDetectorResult.

Parameters
  • img: an instance of Image.

inline FaceDetectorResult detect(Image img, float score_threshold)

Detect faces in an image.

Return

an instance of FaceDetectorResult.

Parameters
  • img: an instance of Image.

  • score_threshold: score threshold

class org::sertiscorp::oneml::face::FaceDetectorResult

Public Functions

inline synchronized void delete ()

Gracefully destroy the object and free memory.

inline int getSize()

Get number of detections.

Return

an integer.

inline BBoxList getBBoxes()

Get result Bounding Boxes.

Return

an instance of BBoxList.

inline FloatList getScores()

Get result scores.

Return

an instance of FloatList.

inline Landmark5List getLandmarks()

Get result landmarks.

Return

an instance of Landmark5List.

inline FacePoseList getPoses()

Get result face poses.

Return

an instance of FacePostList.

inline StatusCodeList getReturnStatus()

Get result status code.

Return

an instance of StatusCodeList.

org::sertiscorp::oneml::face::FaceDetectorResultList : public java::util::AbstractList< FaceDetectorResult > , public java.util.RandomAccess

Public Functions

inline synchronized void delete ()

Gracefully destroy the object and free memory.

namespace org::sertiscorp::oneml::face
enum FaceDetectorStatus

Public Members

Empty =(FaceJNI.FaceDetectorStatus_Empty_get())
Success =(FaceJNI.FaceDetectorStatus_Success_get())
Fail =(FaceJNI.FaceDetectorStatus_Fail_get())