RecognitionFace

Package com.appliedrec.ver_id.model

public class RecognitionFace

Implements

Constructor

RecognitionFace

Introduced in version 2.0.1

public RecognitionFace(JSONObject)

Construct an instance from a JSON object

Parameters

jsonObject org.json.JSONObject
constructed using {@link #toJson()}

Throws

org.json.JSONException

Methods

toJson

Introduced in version 2.0.1

public toJson()

Serialize the instance to a JSON object. Useful when the object needs to persist across sessions.

Returns

org.json.JSONObject
JSON representation of the face

Throws

org.json.JSONException

getId

Introduced in version 2.0.1

public getId()

Returns

long
Unique identifier for the face

getEyeCoordinates

Introduced in version 2.0.1

public getEyeCoordinates()

Returns

android.graphics.PointF[]
Array of 2 PointF objects representing the eye coordinates. In pixels relative to the size of the original image.

getNose

Introduced in version 2.0.1

public getNose()

Returns

android.graphics.PointF
Coordinate of the nose in pixels relative to the size of the original image.

getMouth

Introduced in version 2.0.1

public getMouth()

Returns

android.graphics.PointF
Coordinate of the mouth in pixels relative to the size of the original image.

getBounds

Introduced in version 2.0.1

public getBounds()

Returns

android.graphics.RectF
Bounding box that contains the face. Dimensions are in pixels relative to the size of the original image.

getRotation

Introduced in version 2.0.1

public getRotation()

Returns

com.appliedrec.detreclib.detection.FBFace.Rotation
Rotation of the face represented as Euler angle (with properties yaw, pitch and roll).

getTemplate

Introduced in version 2.0.1

public getTemplate()

Returns

float[]
Face template that can be used for face comparison.

getTemplateString

Introduced in version 2.0.4

public getTemplateString()

Returns

java.lang.String
Face template that can be used for face comparison.

getCenterOfFace

Introduced in version 2.0.1

public getCenterOfFace()

Returns

android.graphics.PointF
Centre of the face. Dimensions are in pixels relative to the size of the original image.