CameraFactory
The CameraFactory allows creating various other Camera related objects.
Use the VisionCamera instance:
if (VisionCamera.cameraPermissionStatus != PermissionStatus.AUTHORIZED) {
VisionCamera.requestCameraPermission()
}
val session = VisionCamera.createCameraSession(enableMultiCam = false)Inheritors
Properties
The current Camera PermissionStatus.
The current Microphone PermissionStatus.
Whether the platform supports creating multi-cam CameraSessions. Older phones may not support this.
Functions
Creates a new CameraSession.
Create a new CameraDepthFrameOutput with the given options, to stream Depth frames.
Create a new CameraDeviceFactory.
Create a new CameraFrameOutput with the given options, to stream Frames (Frame Processing).
Create a new FrameRenderer, to render Frames into a FrameRendererView.
Create a MeteringPoint from normalized coordinates, from 0.0 to 1.0. You are responsible for handling orientation, cropping and scaling; to create a point from a tap on a PreviewView, use its createMeteringPoint instead.
Create a new CameraObjectOutput with the given options, to scan codes, faces and bodies.
Create a new OrientationManager tracking the given orientationSource.
Create a new CameraOutputSynchronizer synchronizing the given outputs.
Create a new CameraPhotoOutput with the given options.
Create a new CameraPreviewOutput.
Create a new TapToFocusGestureController, to attach to a PreviewView.
Create a new CameraVideoOutput with the given options.
Create a new ZoomGestureController, to attach to a PreviewView.
Request Camera permission.
Request Microphone permission.
Resolves the given constraints to a fully validated CameraSessionConfig respecting the given device's capabilities negotiated with the given outputConfigurations.