Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Smile, it’s CameraX! [analysis and extensions] | Analysis - Step 1: create an ImageAnalysis reference
val imageAnalysis = ImageAnalysis.Builder().build()
// the executor receives sequentially the frames
val blocking = ImageAnalysis.STRATEGY_BLOCK_PRODUCER
// the executor receives last available frame (default)
val nonBlocking = ImageAnalysis.STRATEGY_KEEP_ONLY_LATEST
val imageAnalysis = ImageAnalysis.Builder()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment