Package-level declarations
Types
Properties
Functions
Link copied to clipboard
fun createCameraImageAnalyser(ratioDeprecated: Int? = null, ratio: ResolutionSelector? = null): ImageAnalysis
Creates an ImageAnalysis object for a given resolution and format. This builds a UseCase that's used with the cameraProvider and is used to process the frames that are captured
Link copied to clipboard
Link copied to clipboard
Util function to get a camera provider, specially since the get()
operation is blocking and can throw exception (although it might be very rare) suspendCoroutine is used to treat this blocking and synchronous get()
call to an asynchronous call that can be used with coroutines
Link copied to clipboard
This function is used to calculate the size of a Box (our camera preview) after scaling it down to be fitted in a Container while preserving the aspect ration of the Box
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard