Items with no label
3335 Discussions

How to set the sampling frequency of SR3000?

康邹
Beginner
1,732 Views

hello, everyone,

I want to know how to set the sampling frequency of SR300?

Thank you for your help!!!

0 Kudos
5 Replies
MartyG
Honored Contributor III
532 Views

As sampling frequency / sample rate is the number of cycles per second in sound, this may not be applicable to RealSense cameras. I wonder if you want to set the 'frame rate' of the camera, which is measured in Frames Per Second (FPS)?

If this is the case, then you can select a particular FPS rate (30 or 60) by setting a particular resolution for the color, depth or IR cameras. The values below for the SR300 are taken from its data sheet document.

https://www.intel.com/content/dam/support/us/en/documents/emerging-technologies/intel-realsense-technology/realsense-sr300-datasheet1-0.pdf https://www.intel.com/content/dam/support/us/en/documents/emerging-technologies/intel-realsense-technology/realsense-sr3

In the '2016 R2' and '2016 R3' versions of the RealSense SDK in Windows, you can use the STREAM_TYPE_COLOR AND STREAM_TYPE_DEPTH instructions to set the resolution (and therefore the frame rate). for example, you could set a color resolution of 640x480 and an FPS of 60 with:

sm.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_COLOR, 640, 480, 60);

The first two numbers set the resolution (640, 480 is 640x480 resolution). The third number on the end (60) is the FPS. So by setting it at 60, you have set it as 640x480 resolution at 60 FPS.

If you wanted to set the stream type to color instead of depth, it would be:

sm.EnableStream(PXCMCapture.StreamType.STREAM_TYPE_DEPTH,640,480,60);

Please let me know if it was not the Frames Per Second that you were trying to set, and I will investigate your question further.

康邹
Beginner
532 Views

MartyG, thanks for your help!

It seems that I can't set the fps equals to 1.

If I want to get only one joint data set per second, could you please tell me to how to achieve it?

0 Kudos
MartyG
Honored Contributor III
532 Views

If you wanted to analyze data as slow as 1 FPS using the Windows '2016 R2' or '2016 R3' SDKs then you would need to pause the stream, check a frame and then un-pause and tell the camera to move on to analyzing the next frame.

The best tutorial for learning how to do this is linked to below, which takes you through the pause-analyze-unpause process step by step with sample scripting.

https://software.intel.com/en-us/blogs/2015/10/15/how-to-record-and-playback-streaming-sequences-in-intel-realsense-sdk Archived - How to Record and Playback Streaming Sequences in Intel® RealSense™ SDK | Intel® Software

0 Kudos
康邹
Beginner
532 Views

MartyG,Thank you so much!!!!!!!

0 Kudos
MartyG
Honored Contributor III
532 Views

You're totally welcome! Please feel free to come back to the forum any time that you have further questions.

0 Kudos
Reply