Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get the bytes[] from a TotalCaptureResult

I am getting the TotalCaptureResults object from the camera, using the Camera2 API in Android. I am using a preview, not a single image. Is there a way to get bytes[] from TotalCaptureResults?

Thank you.

like image 662
Fustigador Avatar asked Sep 03 '26 00:09

Fustigador


1 Answers

Short answer: no.

All CaptureResults objects contain only metadata about a frame capture, no actual pixel information. The associated pixel data are sent to wherever you designated as the target Surface in your CaptureRequest.Builder. So you need to check with whatever Surface you set up, such as an ImageReader which will give you access to an Image output from the camera, which will give you access to the bytes[].

like image 67
rcsumner Avatar answered Sep 05 '26 14:09

rcsumner



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!