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.

// 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));

Last updated