Where the analyzeImage method process the camera output,. setImageReaderMode(_LATEST_IMAGE)įinal ImageAnalysis imageAnalysis = new ImageAnalysis(imageAnalysisConfig) ĬameraX.bindToLifecycle(this, preview, imageAnalysis) tOnPreviewOutputUpdateListener(output -> tSurfaceTexture(output.getSurfaceTexture())) įinal ImageAnalysisConfig imageAnalysisConfig = Final PreviewConfig previewConfig = new PreviewConfig.Builder().build() įinal Preview preview = new Preview(previewConfig)