Easy ML Kit
  • Easy ML Kit
  • Setup
    • Installation
    • Settings
    • Common Errors and Solutions
  • Usage Overview
  • Release Notes
    • 2.3.1
    • 2.3.0
    • 2.2.0
    • 2.1.0
    • 2.0.0
    • 1.2.0
  • Input Sources
    • Image Input Source
    • Live Camera Input Source
    • AR Foundation Camera Input Source
  • Features
    • Barcode Scanner
    • Object Detector and Tracker
    • Text Recognizer
    • Digital Ink Recognizer
Powered by GitBook
On this page
  1. Input Sources

AR Foundation Camera Input Source

To use ARFoundation supported input source, you need to add EASY_ML_KIT_SUPPORT_AR_FOUNDATION scripting define symbol in in player settings for each platform.

Use ARFoundationCameraInputSource if you want to process the input directly from ar camera feed.

using VoxelBusters.EasyMLKit;
private IInputSource CreateARCameraInputSource()
{
    IInputSource inputSource = new ARFoundationCameraInputSource(arSession, arCameraManager);
    return inputSource;
}

Pass ArSession and ArCameraManager instances for creating the ARFoundationCameraInputSource instance.

You need to have AR Foundation and ARCore XR Plugin packages installed in your project from package manager.

PreviousLive Camera Input SourceNextBarcode Scanner

Last updated 1 year ago