Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Camerax preview freezes after 6 photos in zero_shutter_lag mode on Samsung S21

96 views
Skip to first unread message
Assigned to yas...@google.com by charco...@google.com

Frank D

unread,
Nov 23, 2024, 3:49:46 PM11/23/24
to Android CameraX Discussion Group
Both models of Samsung S21 5G are concerned.
To reproduce :
- use CameraXBasic demo app
- edit the cameraFragment file by changing :
imageCapture = ImageCapture.Builder()
//.setCaptureMode(ImageCapture.CAPTURE_MODE_MINIMIZE_LATENCY)
.setCaptureMode(ImageCapture.CAPTURE_MODE_ZERO_SHUTTER_LAG)
- launch the app
- take 6 photos normally (don't need to take them very fast)
- it freezes the preview (but you can still take new pictures)
- if you change screen orientation, the preview is unfreezed and you can take 6 pictures again before freeze.
Should I unbind/bind the camera after 5 pictures to prevent freezing or is there an other tip?

Frank

Scott Nien

unread,
Nov 24, 2024, 10:50:10 PM11/24/24
to Frank D, Android CameraX Discussion Group
Hi Frank 

Thanks so much for reporting the issue. I've created the bug here: https://issuetracker.google.com/380762631 to track it. 

Currently the CAPTURE_MODE_ZERO_SHUTTER_LAG is still an experimental API. This often means that the quality is still not good enough to be used in production yet. and in reality , ZSL does have some issues we haven't fixed. We will have a plan to improve it in the next quarter.  But before that,  we suggest you use other capture modes.

Scott



--
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 visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/387b958b-96cb-44fe-bc6e-979b14e5eab8n%40android.com.

Frank Derville

unread,
Dec 1, 2024, 11:23:14 AM12/1/24
to Android CameraX Discussion Group, scot...@google.com, Android CameraX Discussion Group, art.nouveau.ar...@gmail.com
Unfortunatly this is the best mode (by far) to sync picture triggering between to Android devices to take 3d pictures

Scott Nien

unread,
Dec 3, 2024, 6:30:55 PM12/3/24
to Frank Derville, Android CameraX Discussion Group, art.nouveau.ar...@gmail.com
> Unfortunatly this is the best mode (by far) to sync picture triggering between to Android devices to take 3d pictures
Hi Frank !  
This is interesting. Can you kindly tell us more information regarding why ZSL mode is the best mode for taking 3d pictures ?   

Frank D

unread,
Dec 9, 2024, 2:58:33 PM12/9/24
to Android CameraX Discussion Group, scot...@google.com, Frank D, camera...@gmail.com
Hi Scott,
In my use case I am trying to take 2 photos at the exact same time on two similar Android devices (e.g. S21). Exact same time is important when you take a 3d picture of a moving subject (or just a landscape with wind in the grass or tree leaves). So you need to reduce and control latency variance as much as possible. I have experienced several strategies and measured the time gap by taking the clock app of a third device. And the best results are with ZSL mode.
Thanks for the good work you are doing and I hope you will be able to fix this in a future version.
kr
Frank

Scott Nien

unread,
Dec 25, 2024, 11:35:18 PM12/25/24
to Frank D, Android CameraX Discussion Group, camera...@gmail.com
Hi Frank

Scott Nien

unread,
Dec 25, 2024, 11:37:05 PM12/25/24
to Frank D, Android CameraX Discussion Group, camera...@gmail.com
Hi Frank,  (Sorry for sending unfinished email)

Thanks for the information. Good news is that we have fixed the ZSL issues that you mentioned. The fix should be included in our next release. 

Scott
Reply all
Reply to author
Forward
0 new messages