Items with no label
3335 Discussions

Starting two samples simultaneously and saving output (SR300)

CChri32
Beginner
2,037 Views

Hi there,

I've recently purchased the SR300 camera and currently I'm dealing with two issues. On the one hand, I'd like to know whether there's a straightforward way to start two of the samples (e.g. the eye tracking and hand tracking samples) simultaneously. I'm not that versed in C++, so the simpler the solution the better. On the other hand, I have yet to find a way to save and/or export the data the camera creates and displays. I guess this requires adding a command (or set of commands), but I couldn't find anything neither in the manual nor in the forum.

Thanks in advance to anyone who might help me out

0 Kudos
1 Solution
idata
Employee
230 Views

Hello ChIm,

 

 

Thanks for reaching out!

 

 

Whether or not two applications can run simultaneously is a complex topic. Different SDK applications may require different camera settings. You can read more about it here: Algorithm Interoperability (Working with Multiple Modalities): https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?doc_advanced_working_with_multiple_modaliti.html.

 

 

There are some samples you can use simultaneously. For example, CameraViewer can work with any other sample. Most samples require the camera to be configured in a specific way so they will not work with each other. For example, hands and face will not work together.

 

 

Regarding how to save and/or export the data the camera creates and displays, this is a simpler topic, there are no RealSense specific APIs for this functions. Therefore, you will have to use the standard file saving methods that are implemented in the programming language that you use. For example, you can check these links:

 

 

https://msdn.microsoft.com/en-us/library/sfezx97z(v=vs.110).aspx?cs-save-lang=1&cs-lang=csharp# code-snippet-1

 

http://www.cplusplus.com/doc/tutorial/files/

 

 

I hope this helps.

 

-Peter.

View solution in original post

3 Replies
idata
Employee
231 Views

Hello ChIm,

 

 

Thanks for reaching out!

 

 

Whether or not two applications can run simultaneously is a complex topic. Different SDK applications may require different camera settings. You can read more about it here: Algorithm Interoperability (Working with Multiple Modalities): https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?doc_advanced_working_with_multiple_modaliti.html.

 

 

There are some samples you can use simultaneously. For example, CameraViewer can work with any other sample. Most samples require the camera to be configured in a specific way so they will not work with each other. For example, hands and face will not work together.

 

 

Regarding how to save and/or export the data the camera creates and displays, this is a simpler topic, there are no RealSense specific APIs for this functions. Therefore, you will have to use the standard file saving methods that are implemented in the programming language that you use. For example, you can check these links:

 

 

https://msdn.microsoft.com/en-us/library/sfezx97z(v=vs.110).aspx?cs-save-lang=1&cs-lang=csharp# code-snippet-1

 

http://www.cplusplus.com/doc/tutorial/files/

 

 

I hope this helps.

 

-Peter.
CChri32
Beginner
230 Views

Hi Peter,

Thank you for your prompt answer! I used the combination of hand and face tracking as a mere example, I'm intending to combine samples that are in fact compatible However, the questions remains how the samples can be started simultaneously. By that I mean whether there's a simple way to hit both start buttons at the same time so to speak. The data I'm trying to extract has to match in terms of timestamps; a venture that is rendered infinitely more convenient if both samples run perfectly parallelly

Thanks again!

0 Kudos
idata
Employee
230 Views

I'm glad to be of help!

 

 

If you are simply trying to start two examples at the same time, I believe it won't be possible to start them in parallel. However, if you modify both examples and "fuse" them into one single application, you can program a single button to start both processes.

 

 

So, in this case, I'd suggest you to try this. The modification shouldn't be too difficult and if in fact the processes you'd like to run at the same time are compatible, you shouldn't have many issues.

 

 

Let us know how it goes.

 

-Peter.
0 Kudos
Reply