Frame-by-frame analysis on high speed capture

312 views
Skip to first unread message

Josh Hight

unread,
Feb 5, 2021, 4:56:09 PM2/5/21
to Android CameraX Discussion Group

Is it possible to use CameraConstrainedHighSpeedCaptureSession to perform live, frame-by-frame analysis on high speed video (>=120 fps) without first recording and saving it to disk? It seems as though using ImageReader is not supported as a surface.

If not, is there another approach?

Eino-Ville Talvala

unread,
Feb 5, 2021, 5:01:52 PM2/5/21
to Josh Hight, Android CameraX Discussion Group
Hi Josh,

(This isn't a CameraX question, but I'll answer anyway to save you trouble)

Unfortunately, no - high-speed recording is generally very taxing for a mobile device, so the only supported mode of operation for it so far is to send the frames straight to an encoder.

In theory, if a device is capable of doing more at such high frame rates, it'd list 120/240fps in its normal target FPS ranges, instead of only in the high-speed ranges.  Then the full capabilities of camera2 would be available at those rates.  Unfortunately, I'm not aware of any devices that do so today, probably because that's a lot of flexibility that'd be required at those high data rates.  

That said, other features with high bandwidth like 4K @ 60fps do exist today, so it's certainly a place where more flexibility could be added, even if it's not the full abilities of camera2. Nothing is currently on the short-term roadmap, however.

- Eddy

On Fri, Feb 5, 2021 at 1:56 PM Josh Hight <josh....@gmail.com> wrote:

Is it possible to use CameraConstrainedHighSpeedCaptureSession to perform live, frame-by-frame analysis on high speed video (>=120 fps) without first recording and saving it to disk? It seems as though using ImageReader is not supported as a surface.

If not, is there another approach?

--
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/78460dbd-203f-4517-9071-4e57a7be20e8n%40android.com.
Reply all
Reply to author
Forward
0 new messages