When is RAW format available?

97 views
Skip to first unread message

Hyeon U Kim

unread,
Sep 19, 2024, 4:16:49 AMSep 19
to Android CameraX Discussion Group
Hi Team, 
I read that the RAW format capture would be released at 1.5 release.
Does 1.5.0-alpha01 have this API?
If not, please let me know when it will be released.
Thank you.

Kailiang Chen

unread,
Sep 19, 2024, 8:01:38 AMSep 19
to Android CameraX Discussion Group, hyeo...@gmail.com
Hi,

RAW image capture is not released in 1.5.0-alpha01 yet. 
We are still working on it and will release it very soon.

Thanks for your patience.

Best,
Kailiang

Hyeon U Kim

unread,
Sep 19, 2024, 7:45:46 PMSep 19
to Kailiang Chen, Android CameraX Discussion Group
Thank you for the reply.
I'm trying to capture RAW images using CameraX with Camera2Interop.
However, I have no idea whether to use ImageCapture.takePicture() of CameraX or ImageCaptureSession.capture() of Camera2 to start capture.
I'm currently working with the latter and I'm having trouble connecting the ImageReader that I generated to CaptureRequest and CameraCaptureSession in CameraX.
This is my current state and I'm not sure if it's the right approach. 
I'll have to keep working on capturing RAW images using Camera2Interop until the new version comes out.
Could you provide guidance?

Best Regards,

2024년 9월 19일 (목) 오후 9:01, Kailiang Chen <kail...@google.com>님이 작성:

Scott Nien

unread,
Sep 19, 2024, 9:57:22 PMSep 19
to Hyeon U Kim, Kailiang Chen, Android CameraX Discussion Group
Hi Hyeon, 
We strongly suggest you wait for the new alpha that contains the RAW capture feature. But if you really want to try it,  you can use the internal APIs like the following 

val imageCapture = ImageCapture.Builder()
                    .setBufferFormat(ImageFormat.RAW_SENSOR)
                     .build()
cameraProvider.bindToLifecycle(..)..
..
// you are only allowed to use in-memory version of takePicture after setting the RAW buffer format. 
imageCapture.takePicture(executor()
                                object: ImageCapture.OnImageCapturedCallback() {} ) 

Please keep it in mind that using it has the following potential issues:  (so we advise you not to use it in production)
1) the API could be changed or removed in the future without any notice 
2) There is no guarantee that it will work across all devices as we didn't test it in our lab 



--
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/CAMVQ1zt2Z0dq%3D1JB7S1q4337-D3kv0Vuan8s2F61ddoGhFGBrg%40mail.gmail.com.

Hyeon U Kim

unread,
Sep 24, 2024, 7:16:26 PMSep 24
to Android CameraX Discussion Group, scot...@google.com, kail...@google.com, Android CameraX Discussion Group, Hyeon U Kim
Hi,
Thank you for the information.
I was able to receive the RAW image through the API.
I'll keep what you said in mind and move to new version as soon as it's released.

Best Regards,

2024년 9월 20일 금요일 오전 10시 57분 22초 UTC+9에 scot...@google.com님이 작성:
Reply all
Reply to author
Forward
0 new messages