[Samsung: Galaxy S7 & SM J600G] Issue with flash.

143 views
Skip to first unread message

Deven Singh

unread,
Dec 26, 2020, 1:28:11 AM12/26/20
to Android CameraX Discussion Group
Hi,
I have implemented cameraX using this sample,
And also added flash with three option Auto, On & Off.
All options are working well in all other devices except these two device Galaxy S7 and SM J600G.
I captured images with both phone in dark room using flash option Auto and On, result is:
Samsung Galaxy S7 in a dark room with flash On/Auto takes a completely washed out image.

Samsung SM J600G in a dark room with flash On/Auto takes a completely black image.

Used code for flash:
 private var flashMode = ImageCapture.FLASH_MODE_AUTO
 imageCapture = ImageCapture.Builder()
             ......
            .setFlashMode(flashMode)
            .build()

Used library versions:
camerax = 1.0.0-rc01
camerax_view = 1.0.0-alpha20
"androidx.camera:camera-core:${camerax}"
"androidx.camera:camera-camera2:${camerax}"
"androidx.camera:camera-lifecycle:${camerax}"
"androidx.camera:camera-view:${camerax_view}"

Is this any known issue in the library or I'm missing something in the code?

Thanks

Leo Huang

unread,
Dec 28, 2020, 9:18:21 AM12/28/20
to Android CameraX Discussion Group, deve...@idealittechno.com
Hi,
Thank you for reporting the issue. This is a quick update without solution.
The way you set up the flash mode is correct and it is not a known issue.
The issue is probably device specific. It can be reproduced on Galaxy S7 with latest device software update.

Device info
Model : SM-G930T (heroqltetmo)
Build number: R16NW.G930TUVSBCTA2
Android version: 8.0.0

CameraX is built upon Camera2 API. The issue can also be reproduced by Camera2Basic - https://github.com/googlearchive/android-Camera2Basic, which means a pure Camera2 API implementation may meet the issue on this device too. Since the process of flash firing, image capture timing and exposure adjustment are controlled by HAL, the issue could be not easy to fix or find a proper workaround. As for SM J600G, currently there is no this device from our side, would you mind to test it by Camera2Basic to see if it is the same case? e.g. does it happen on pure camera2 API implementation.

deve...@idealittechno.com 在 2020年12月26日 星期六下午2:28:11 [UTC+8] 的信中寫道:

Deven Singh

unread,
Dec 29, 2020, 7:40:53 AM12/29/20
to Android CameraX Discussion Group, leoh...@google.com, Deven Singh

Thank you for your reply,

I tested the Camera2Basics in SMJ600G, getting same issue.

Reply all
Reply to author
Forward
0 new messages