Frame times, absolute time, and sync'ing
Posted: Sun Sep 16, 2012 10:14 pm
Hello
My setup includes the OptiTrack SDK v1.1.1 and 2 TrackIR-5 cameras. I need to know, for frames captured from both cameras:
1) Ideally: the computer time at which each frame was taken
2) Less ideally: their order and distance in time (which came first, and what the delta is)
My questions, thus:
1) Is there a cookbook way of doing this?
2) is CameraLibrary::Frame->TimeStamp() the camera time at which the frame was taken? I assume there's no guarantee about the relation between different camera's TimeStamp()'s? (order btween them, a constant delta)
3) Assuming a "no" to Q.1, will emptying the queue and registering a CameraListener on each help? I'll just register the PC time at which the FrameAvailable callback was called, and take the corresponding frame's TimeStamp(). I'll then have a baseline for converting each camera's frame's TimeStamp() to PC timestamp.
4) I understand #3 is only as accurate as the latency between the frame's availability and my callback being called. In what thread will the callback be called? Will this even work with my given camera and SDK?
Cheers,
Noam
My setup includes the OptiTrack SDK v1.1.1 and 2 TrackIR-5 cameras. I need to know, for frames captured from both cameras:
1) Ideally: the computer time at which each frame was taken
2) Less ideally: their order and distance in time (which came first, and what the delta is)
My questions, thus:
1) Is there a cookbook way of doing this?
2) is CameraLibrary::Frame->TimeStamp() the camera time at which the frame was taken? I assume there's no guarantee about the relation between different camera's TimeStamp()'s? (order btween them, a constant delta)
3) Assuming a "no" to Q.1, will emptying the queue and registering a CameraListener on each help? I'll just register the PC time at which the FrameAvailable callback was called, and take the corresponding frame's TimeStamp(). I'll then have a baseline for converting each camera's frame's TimeStamp() to PC timestamp.
4) I understand #3 is only as accurate as the latency between the frame's availability and my callback being called. In what thread will the callback be called? Will this even work with my given camera and SDK?
Cheers,
Noam