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
1
// Enabling Debug Function
2
argsession.setDebugInference(EnumSet.of(ARGInferenceConfig.Debug.FACE_LANDMARK,
3
ARGInferenceConfig.Debug.FACE_RECT_HW,
4
ARGInferenceConfig.Debug.FACE_RECT_SW,
5
ARGInferenceConfig.Debug.FACE_AXIES));
6
7
// Disabling Debugging Function
8
argsession.setDebugInference(EnumSet.of(ARGInferenceConfig.Debug.NONE));
Copied!
1
// Enabling Debug Function
2
argsession.setDebugInference(EnumSet.of(ARGInferenceConfig.Debug.FACE_LANDMARK,
3
ARGInferenceConfig.Debug.FACE_RECT_HW,
4
ARGInferenceConfig.Debug.FACE_RECT_SW,
5
ARGInferenceConfig.Debug.FACE_AXIES))
6
7
// Disabling Debugging Function
8
argsession.setDebugInference(EnumSet.of(ARGInferenceConfig.Debug.NONE))
Copied!
Last modified 1yr ago
Copy link