camera-samples icon indicating copy to clipboard operation
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

Open cwl-git opened this issue 3 years ago • 1 comments

val imageAnalyzer = ImageAnalysis.Builder()
.setTargetResolution(Size(1080, 720)) .build() val cameraSelector = CameraSelector.Builder().requireLensFacing(lensFacing).build() val camera = cameraProvider.bindToLifecycle( this, cameraSelector , imageAnalyzer)

cwl-git avatar Dec 09 '21 07:12 cwl-git

may you share your analyzer code? make sure to release the imageProxy in your analyzer (even no meaningful work).

ggfan avatar Jan 11 '22 17:01 ggfan