CameraX fast image capture

95 views
Skip to first unread message

Canberk Güllüoğlu

unread,
Sep 26, 2023, 9:02:39 AM9/26/23
to Android CameraX Discussion Group
Hi,

Is it possible to capture an image every 0.1 seconds using CameraX? I've implemented a handler to trigger image captures at this interval, and it appears that the capture requests are being sent successfully. However, the actual image capture process takes longer than 0.1 seconds, causing subsequent requests to accumulate and introducing significant delays. Is CameraX suitable for this specific use case? I implemented the same use case with Camera2. Thanks.

Eino-Ville Talvala

unread,
Sep 26, 2023, 2:18:20 PM9/26/23
to Canberk Güllüoğlu, Android CameraX Discussion Group
Hi Canberk -

When you say 'capture an image', what are your constraints? Do you need JPEG at maximum resolution, or are you fine with YUV or lower resolutions?
What kind of configuration did you use in camera2, for reference?

Thanks!

- Eddy

On Tue, Sep 26, 2023 at 6:02 AM Canberk Güllüoğlu <canberk....@gmail.com> wrote:
Hi,

Is it possible to capture an image every 0.1 seconds using CameraX? I've implemented a handler to trigger image captures at this interval, and it appears that the capture requests are being sent successfully. However, the actual image capture process takes longer than 0.1 seconds, causing subsequent requests to accumulate and introducing significant delays. Is CameraX suitable for this specific use case? I implemented the same use case with Camera2. Thanks.

--
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/46c05270-58e4-4ecf-8814-ac34a5cd8e65n%40android.com.

Canberk Güllüoğlu

unread,
Sep 28, 2023, 2:33:28 PM9/28/23
to Android CameraX Discussion Group, etal...@google.com, Android CameraX Discussion Group, Canberk Güllüoğlu
Hi,

Thanks for the quick reply. 
In my camera2 implementation, I have 2 channels (YUV) that I capture from, one is max resolution(4000x3000) and the other is 720p. I take approximately 1 max res photo a second and take 9 720p a second. 
I tried to imitate this approach in CameraX with a handler but I couldn't capture fast enough.(The request is sent but it gets in the queue and waits for the other capture process to end and at the end, there are a lot of delays.)
 I don't really have any specific format constraints.
26 Eylül 2023 Salı tarihinde saat 21:18:20 UTC+3 itibarıyla etal...@google.com şunları yazdı:
Reply all
Reply to author
Forward
0 new messages