ARCoreScanner

class ARCoreScanner(context: Context, useToFDepth: Boolean = false, arcoreSessionMp4Path: String? = null, recordArcoreSessions: Boolean = false) : GLSurfaceView.Renderer

Constructors

Link copied to clipboard
constructor(context: Context, useToFDepth: Boolean = false, arcoreSessionMp4Path: String? = null, recordArcoreSessions: Boolean = false)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class ScanResult(val frames: List<PointCloudFrame>, val metadata: PLYMetadata, val barcodes: List<BarcodeData>, val allPoses: List<TimedPose>, val jsonData: ARCoreScanner.ScanResult.ScannerDataJson)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun attachPreview(surfaceView: GLSurfaceView)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun cleanupSnapshotFiles(folderName: String? = null)

Clean up snapshot temp files

Link copied to clipboard
Link copied to clipboard

Get all detected barcodes

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Get the current scan folder for file storage

Link copied to clipboard
Link copied to clipboard

Get all captured frames for analysis

Link copied to clipboard

Get the current number of captured points for quality assessment

Link copied to clipboard

Get remaining stabilization time in seconds (for UI feedback)

Link copied to clipboard
Link copied to clipboard
fun observeDistanceWarning(): StateFlow<String?>
Link copied to clipboard
fun observeNewBarcodes(): StateFlow<BarcodeData?>
Link copied to clipboard
open override fun onDrawFrame(gl: GL10?)
Link copied to clipboard
open override fun onSurfaceChanged(gl: GL10?, width: Int, height: Int)
Link copied to clipboard
open override fun onSurfaceCreated(gl: GL10?, config: EGLConfig?)
Link copied to clipboard
Link copied to clipboard
fun processFrame(): Frame?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun restartSessionAfterDelay(delay: Long = 500)
Link copied to clipboard

Generates a new scan folder for file storage.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun startSession(textureId: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard