Links
Comment on page

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.