Replies: 4 comments 1 reply
-
Hi @dwventer With multiple camera applications it is recommended to use poll_for_frames() instead of wait_for_frames(), which is better suited to single-camera applications. More information about this can be found at #2422 (comment) |
Beta Was this translation helpful? Give feedback.
-
A RealSense user who created in C++ a script at #2219 (comment) that captured from all attached cameras simultaneously took the approach of using threads. There is very limited information and code references available regarding implementing multi-threading in C# though, with one of the best available being the discussion at #8334 |
Beta Was this translation helpful? Give feedback.
-
Is there a way one can use the Timestamp and/or TimeOfArrival to determine the desired frame from a 'DateTime.Now' (taken on the Triggered event)? |
Beta Was this translation helpful? Give feedback.
-
THe only C# script I know of that uses DateTime.Now in relation to timestamps is the example at the link below, though it may not be what you are looking for.
|
Beta Was this translation helpful? Give feedback.
-
I have a c# WPF project and I'm trying to take a snapshot of incoming Frames when a button is pressed. So the idea is that when the user presses the button on the app that exact Frame is presented to the user from when the button was pressed. There can be 4 or more cameras connected via a USB port.
My problem is that it looks like there is an unpredictable lag between when the button is pressed and when the desired Frames are produced. I have tried numerous methods, all of which seem to suffer the same unpredictable lag. With lag, I'm referring to the fact that it can take 3, 4 or even 11 frames before the desired Frames are received.
To compound the issue, when I retrieve a FrameSet, the colour frame and IR frames are not always synchronized.
I use the following configuration to start my Camera stream:
As I said before, I have tried numerous methods. This is the latest code:
I'm using Intel RealSense D415 cameras. Can anybody, provide me with an acceptable solution?
Beta Was this translation helpful? Give feedback.
All reactions