CameraObjectOutput
The CameraObjectOutput scans objects (codes, faces, bodies…) with the platform's built-in detectors. iOS only: on Android, use the barcode module (ML Kit) on a CameraFrameOutput instead.
val objectOutput = VisionCamera.createObjectOutput(ObjectOutputOptions(listOf(ScannedObjectType.QR)))
objectOutput.setOnObjectsScannedCallback { objects ->
objects.filterIsInstance<ScannedCode>().forEach { println(it.value) }
}Content copied to clipboard
See also
Properties
Functions
Link copied to clipboard
Same as dispose, to use a CameraOutput with use { }.
Link copied to clipboard
Sets the callback called with the objects scanned in each frame, or removes it with null.