Example usage for android.hardware.camera2.params Face getRightEyePosition

List of usage examples for android.hardware.camera2.params Face getRightEyePosition

Introduction

In this page you can find the example usage for android.hardware.camera2.params Face getRightEyePosition.

Prototype

public Point getRightEyePosition() 

Source Link

Document

The coordinates of the center of the right eye.

Usage

From source file:com.android.camera2.its.ItsSerializer.java

@SuppressWarnings("unchecked")
private static Object serializeFace(Face face) throws org.json.JSONException {
    JSONObject faceObj = new JSONObject();
    faceObj.put("bounds", serializeRect(face.getBounds()));
    faceObj.put("score", face.getScore());
    faceObj.put("id", face.getId());
    faceObj.put("leftEye", serializePoint(face.getLeftEyePosition()));
    faceObj.put("rightEye", serializePoint(face.getRightEyePosition()));
    faceObj.put("mouth", serializePoint(face.getMouthPosition()));
    return faceObj;
}