Software Archive
Read-only legacy content
17061 Discussions

Pausing streams or taking a snapshot

Thomas_5207
New Contributor I
482 Views

Hi,

I am having a lot of trouble streaming the higher resolution RGB streams at the same time as depth. Is it possible to just take a single image? Starting up the colour stream causes crashing. Alternatively, is there a good way of pausing a stream momentarily rather than destroying and recreating the stream? My best bet would be not to acquire the frames simulatenously but I cannot find any explicit implementation for pausing.

0 Kudos
2 Replies
samontab
Valued Contributor II
482 Views

You can set independent stream rates, and receive their images at different times.

Have a look here for more info:

https://www.youtube.com/watch?v=wIkIdjN6Oyw

0 Kudos
Thomas_5207
New Contributor I
482 Views

samontab wrote:

You can set independent stream rates, and receive their images at different times.

Have a look here for more info:

https://www.youtube.com/watch?v=wIkIdjN6Oyw

 

Thank you for the informative video. Unfortunately I did not have any success doing it this way. Here are my settings. The call to senseMgr->Init() fails with error code -3.

senseMgr->EnableStream(PXCCapture::STREAM_TYPE_COLOR, 1920, 1080, 15);
senseMgr->EnableStream(PXCCapture::STREAM_TYPE_DEPTH, 628, 468, 30);

Turning only one stream on at either 30 or 15 FPS fine. Turning both on at the same FPS is fine. Using different FPS it just does not like. I am also using acquireframe(false) for the unaligned streams as in your video. 

 

0 Kudos
Reply