Face Engine
Polygon's voice engine hand in hand with a powerful liveness detection technology.
To implement the face engine in a given activity, it has to implement the interface AuthFaceCallback as shown in the example below.
public class ExampleActivity extends Activity
implements AuthFaceCallback {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_example);
}
@Override
public void analyzeFaceCallback(boolean status, SessionType sessionType, FaceResponseStatus faceResponseStatus, JSONObject jsonObject, Errors errors) {
}
@Override
public void findUserByFaceCallback(boolean status, String s, JSONObject jsonObject, Errors errors) {
}
@Override
public void livenessDetectionResult(boolean status, String file_path, LivenessResultStatus liveness, Errors errors) {
}
@Override
public void authFlowCallback(boolean status, Engine engine, JSONObject jsonObject, Errors errors) {
}
@Override
public void restartSessionCallback(boolean status, JSONObject jsonObject, Errors errors) {
}
}
For more information on this engine please check our API documentation here
Last updated