Hi Team,
I hope this email finds you well.
Our team is currently developing a customized camera application using CameraX. We have successfully implemented a solution that allows us to capture images in RAW format using CameraX along with Camera2Interop.
Our next goal is to capture images in both RAW and JPEG formats simultaneously. While we know that when using Camera2 directly, the .addTarget method can be used to add multiple surfaces, enabling the capture of multiple image formats, we are curious whether a similar approach is possible within CameraX.
Is there a recommended way to achieve simultaneous RAW and JPEG image capture using CameraX? Any insights or guidance on this would be greatly appreciated.
Looking forward to your suggestions.
Best regards,
Kavan Gondalia
--
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/ff0317b6-6432-440b-91ba-fff371889ae6n%40android.com.
To view this discussion on the web visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/CADwyeNPLAQxYbXX1%2Bh0umFFH-Dmndsp7ynDSEHjSp--ajo3_CA%40mail.gmail.com.
Hi Kailiang,
Thanks for the response.
We've already tweaked the code such a way that we could capture RAW Image with CameraX and some minor usage of Interop.
We're currently focusing on capturing RAW as well as JPEG image simultaneously.
Also another thing I had in my mind, does CameraX support multiple lenses capturing (concurrent capture)? Or anyhow I can achieve using Interop? Or do you suggest to shift to Camera2 instead?
Hi Kailian,
Thank you for your detailed response.
I wanted to clarify that by "multiple lenses capturing (concurrent capture)," I am referring to the need to capture and display footage from two different lenses simultaneously using two separate PreviewView components. The captured image could either be a single composite preview of both lenses or two separate images from each lens. This would involve any combination of available rear cameras on the device, such as a standard lens and a wide-angle lens, similar to what is demonstrated in this video: Video Link.
Best regards,
Kavan