android / android/camera-samples

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
#449 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
5.5k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Research direction

Start at the ImageAnalysis.Builder call using setTargetResolution(Size(1080, 720)) and the bindToLifecycle entry point shown in the report. Reproduce with an otherwise empty analyzer on a device supporting 720p at 30 fps, then measure the analyzer frame rate with and without the target resolution. Done means the cause is isolated and the reported low-frame-rate behavior is corrected or documented with a supported limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile-dev, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.