Items with no label
3335 Discussions

Saving frames from multiple D415 cameras

RShar20
Beginner
1,132 Views

Hi,

I want to efficiently save depth frames from multiple(2 - 4) D415 cameras at a resolution of 1280 x 720 at 30fps.

 

I don't want to loose any frames.

 

I don't mind saving them in a raw format in one file, which I can later traverse to generate all the pngs.

What would be the best way to proceed about solving this issue.

 

I'm still getting used to the API and wanted to know if there are any functions that I am missing out on.

Thanks

0 Kudos
1 Solution
MartyG
Honored Contributor III
206 Views

A good starting point may be Intel's white paper on connecting together multiple D415 cameras with the hardware sync function.

https://realsense.intel.com/wp-content/uploads/sites/63/Multiple_Camera_WhitePaper_rev1.1.pdf https://realsense.intel.com/wp-content/uploads/sites/63/Multiple_Camera_WhitePaper_rev1.1.pdf

The paper says about collecting synchronous frames:

********

if no HW sync is applied, frames will be available asynchronously from each camera. If the "capacity" is set to the minimal number (1 for depth-only, and 2 for depth+color), then only the most recent frames will be available at any time, so frames from different cameras can never misalign by more than 1 frame.

If even better alignment is required, then the HW sync should be applied. In this case all cameras will fire and capture frames at essentially identical times. Since the calls are blocking from each camera, it should simply be a matter of collecting all frames and displaying them.

View solution in original post

0 Kudos
1 Reply
MartyG
Honored Contributor III
207 Views

A good starting point may be Intel's white paper on connecting together multiple D415 cameras with the hardware sync function.

https://realsense.intel.com/wp-content/uploads/sites/63/Multiple_Camera_WhitePaper_rev1.1.pdf https://realsense.intel.com/wp-content/uploads/sites/63/Multiple_Camera_WhitePaper_rev1.1.pdf

The paper says about collecting synchronous frames:

********

if no HW sync is applied, frames will be available asynchronously from each camera. If the "capacity" is set to the minimal number (1 for depth-only, and 2 for depth+color), then only the most recent frames will be available at any time, so frames from different cameras can never misalign by more than 1 frame.

If even better alignment is required, then the HW sync should be applied. In this case all cameras will fire and capture frames at essentially identical times. Since the calls are blocking from each camera, it should simply be a matter of collecting all frames and displaying them.

0 Kudos
Reply