12. Enable Debugging Mode

For debugging purposes, ARGear provides displaying AR information functions which shows face landmark, face rect, and face axes. The debugging function can be enabled or disabled in real time.

Sample code is written below.

Java
Kotlin
Java
// Enabling Debug Function
argsession.setDebugInference(EnumSet.of(ARGInferenceConfig.Debug.FACE_LANDMARK,
ARGInferenceConfig.Debug.FACE_RECT_HW,
ARGInferenceConfig.Debug.FACE_RECT_SW,
ARGInferenceConfig.Debug.FACE_AXIES));
// Disabling Debugging Function
argsession.setDebugInference(EnumSet.of(ARGInferenceConfig.Debug.NONE));
Kotlin
// Enabling Debug Function
argsession.setDebugInference(EnumSet.of(ARGInferenceConfig.Debug.FACE_LANDMARK,
ARGInferenceConfig.Debug.FACE_RECT_HW,
ARGInferenceConfig.Debug.FACE_RECT_SW,
ARGInferenceConfig.Debug.FACE_AXIES))
// Disabling Debugging Function
argsession.setDebugInference(EnumSet.of(ARGInferenceConfig.Debug.NONE))