Skip to content
/ CameraXX Public

Kotlin extensions, BindingAdapters, Composable functions for Android CameraX

License

Notifications You must be signed in to change notification settings

skgmn/CameraXX

Repository files navigation

Setup

dependencies {
    implementation "com.github.skgmn:cameraxx:0.7.0"
}

Features

CameraXX provides extensions methods for CameraX to use functions with coroutines and flows.

suspend fun Context.getProcessCameraProvider(): ProcessCameraProvider
suspend fun ImageCapture.takePicture(): ImageProxy
suspend fun ImageCapture.takePicture(ImageCapture.OutputFileOptions): ImageCapture.OutputFileResults
fun <T> ImageAnalysis.analyze(suspend (ImageProxy) -> T): Flow<T>
fun ImageProxy.toBitmap(): Bitmap
fun ImageProxy.toByteArray(): ByteArray
fun PreviewView.listenPreviewStreamState(): StateFlow<PreviewView.StreamState?>

About

Kotlin extensions, BindingAdapters, Composable functions for Android CameraX

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages