Samsung Galaxy A21 ImageCapture returns only 8MP image instead of 16MP

106 views
Skip to first unread message

Hiren Patel

unread,
Sep 9, 2020, 4:26:02 PM9/9/20
to Android CameraX Discussion Group
Using the latest CameraX release, I have setup an ImageCapture use case as below.

imageCapture = ImageCapture.Builder()
.setCaptureMode(ImageCapture.CAPTURE_MODE_MINIMIZE_LATENCY)
.setTargetAspectRatio(AspectRatio.RATIO_4_3)
.setTargetRotation(rotation)
.build()

The output image received has dimenstions of 3264x2448. When using the native camera app capturing in 4:3 aspect ratio yeilds an image of size 4608x3456.

How would one go about requesting imageCapture to capture at the highest possible resolution?

Thank you

Charcoal Chen

unread,
Sep 9, 2020, 11:14:45 PM9/9/20
to Hiren Patel, Android CameraX Discussion Group
Hi Hiren,

CameraX selects an available size that is obtained by StreamConfigurationMap#getOutputSizes(). Some devices may support extra high resolutions that are listed in StreamConfigurationMap#getHighResolutionOutputSizes(). I guess the case mentioned by you should be caused by this reason.

There is an issue to track this feature request. Please refer to https://b.corp.google.com/issues/162121234. This might be added when CameraX enters the next alpha stage to add new APIs.

--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.
To view this discussion on the web visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/ac5ec3b5-54fd-43de-bb93-9eb2794e9e0cn%40android.com.

Android CameraX Discussion Group

unread,
Sep 10, 2020, 1:35:02 PM9/10/20
to Android CameraX Discussion Group, Charcoal Chen, Android CameraX Discussion Group, Hiren Patel
Hi Hiren,

The feature request can be found at https://issuetracker.google.com/issues/162121234

Thanks!

Reply all
Reply to author
Forward
0 new messages