camera-samples
camera-samples copied to clipboard
CameraXBasic:If you set the target resolution for the analyzer, the frame rate of the analyzer will drop to a particularly low level, even if nothing is done in the analyzer, but my device supports 720P, 30fps
val imageAnalyzer = ImageAnalysis.Builder()
.setTargetResolution(Size(1080, 720))
.build()
val cameraSelector = CameraSelector.Builder().requireLensFacing(lensFacing).build()
val camera = cameraProvider.bindToLifecycle( this, cameraSelector , imageAnalyzer)
may you share your analyzer code? make sure to release the imageProxy in your analyzer (even no meaningful work).