Get color frame and IR frame same time

I just bought an Astra Mini S for a project.
I want to get the IR frame and the color frame at the same time. I tried to edit the SFML multiSensorView example to achive this goal. But I find that I cannot get them at the same time. Is there any way to get these two frames together?

1 Like

Same problem here, cannot get those frame together

Check SimpleStreamViewer sample.

You can define class MultiFrameListener : public astra::FrameListener, register it with your astra::StreamReader and then in on_frame_ready() method you will have a set of frames from the camera.

Or you can use get_latest_frame() method from your astra::StreamReader , which gives you the same frame set.