Astra S 1280x1024 Depth resolution set

Hello everybody!

I bought “Astra S”, I’m very interested in 1280x1024 depth resolution specification. There are some example with this depth resolution pre-configurated? or how can I config it in some example?

Sorry for my english

Best regards,
Thanks!!

Astra SDK v0.5.0 fixes 1280x1024 (SXGA) support.

Note: Only Astra cameras shipped with 1.05+ firmware (shipped after October 2015) support SXGA.

To enable SXGA for depth, please use this code:

auto depthStream = reader.stream<astra::DepthStream>();
astra::ImageStreamMode depthMode;
depthMode.set_width(1280);
depthMode.set_height(1024);
depthMode.set_pixel_format(astra_pixel_formats::ASTRA_PIXEL_FORMAT_DEPTH_MM);
depthMode.set_fps(5);

depthStream.set_mode(depthMode);

For SXGA color:

auto colorStream = reader.stream<astra::ColorStream>();
astra::ImageStreamMode colorMode;
colorMode.set_width(1280);
colorMode.set_height(1024);
colorMode.set_pixel_format(astra_pixel_formats::ASTRA_PIXEL_FORMAT_RGB888);
colorMode.set_fps(30); //NOTE: for now you need to set 30 fps but it will only produce 5 fps.

colorStream.set_mode(colorMode);
1 Like

Hi,

I modified the depth and color stream initialization in SimpleStreamViewer-SFML sample code. I have tried the code with Astra and Astra Mini S (shipped 2018). The depth stream works fine but successive color stream frames seem to be shifting up:

The same issue occurs with both OpenNI and Astra SDK. Is there a way to overcome this?

Thanks!

1 Like