ARGear SDK Documentations
  • Introduction
  • Android
    • 1. Quickstart
    • 2. Configuration Settings
    • 3. ARGear Overview
    • 4. ARGSession
    • 5. Camera
    • 6. Rendering
    • 7. CMS Service
    • 8. Download Contents
    • 9. Set Contents
    • 10. Media
    • 11. Switch Camera Face
    • 12. Enable Debugging Mode
    • 13. ARCore Connect API
    • 14. API Reference
  • iOS
    • 1. Quickstart
    • 2. Configuration Settings
    • 3. ARGear Overview
    • 4. ARGSession
    • 5. Camera
    • 6. Rendering
    • 7. CMS Service
    • 8. Download Contents
    • 9. Set Contents
    • 10. Media
    • 11. Switch Camera Face
    • 12. Enable Debugging Mode
    • 13. ARKit Connect API
    • 14. API Reference
  • Unity
    • 1. Quickstart
    • 2. Configuration Settings
    • 3. ARGear Plugin Overview
    • 4. ARGearManager
    • 5. ARGearCamera
    • 6. CMS Service
    • 7. Download Contents
    • 8. Set Contents
    • 9. Switch Camera Face
    • 10. Enable Debugging Mode
    • 11. API Reference
Powered by GitBook
On this page

Was this helpful?

  1. Android

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

Previous11. Switch Camera FaceNext13. ARCore Connect API

Last updated 5 years ago

Was this helpful?