arCoreInput

fun arCoreInput(context: Context, facingFront: Boolean): ImageProcessor.Input.Pausable?

Creates a ImageProcessor.Input.Pausable instance that uses ARCore development kit to provide surface tracking capabilities.

Return

null if ARCore initialization failed. A ImageProcessor.Input.Pausable input instance otherwise.

Since

1.6.0

fun arCoreInput(context: Context, mp4DataSetFile: File): ImageProcessor.Input.Pausable?

Creates a ImageProcessor.Input.Pausable instance that uses ARCore development kit to provide surface tracking capabilities. Uses a mp4DataSetFile to play back instead of using the live camera feed and IMU sensor data.

Return

null if ARCore initialization failed. A ImageProcessor.Input.Pausable input instance otherwise.

Since

1.17.0

See also

Recording and Playback to capture mp4DataSetFile for the ARCore based input.