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. iOS

12. Enable Debugging Mode

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

By using the setInferenceDebugOption function, you can set debug options for ARGSession. ARGInferenceDebugOption is defined in ARGSession.h.

<Definition. ARGInferenceDebugOption>
ARGSession.h

typedef NS_OPTIONS (NSInteger,ARGInferenceDebugOption)  {
   ARGInferenceOptionDebugNON               = 1 << 0,
   ARGInferenceOptionDebugFaceTracking      = 1 << 1,
   ARGInferenceOptionDebugFaceLandmark2D    = 1 << 2,
};

Sample code is written below.

// Sample Code. Enable and Disable Debugging Mode

ARGSession *argSession = [[ARGSession alloc] initWithARGConfig:argConfig error:&error];
…
 
// Enable Debugging Mode
[argSession setInferenceDebugOption:ARGInferenceOptionDebugFaceLandmark2D];

// Disable Debugging Mode
[argSession setInferenceDebugOption:ARGInferenceOptionDebugNON];
// Sample Code. Enable and Disable Debugging Mode

if let session = argSession {

    // Enable Debugging Mode
    session.inferenceDebugOption = .optionDebugFaceLandmark2D
    
    // Disable Debugging Mode
    session.inferenceDebugOption = .optionDebugNON
}

Previous11. Switch Camera FaceNext13. ARKit Connect API

Last updated 5 years ago

Was this helpful?