How can I add frame by frame timestamps to the Oryx camera?
AnsweredI am using an ORX -10G camera to record to a computer through SpinView. Is there a way to use the computer system clock to add a timestamp to the recordings?
-
Hi Ella,
Spinnaker API does not have a method of adding computer system clock as the timestamp for any of our cameras, including the Oryx camera family; we rely on the camera clock to get a timestamp latch on when an image is captured (this latch occurs at the end of exposure for each image). However, it is possible to retrieve the computer system clock and associate them with the image, although this timestamp latch would occur "when the image has been retrieved from memory/RAM", rather than "when the image was captured (end of exposure)".
0 -
Thank you, how can I use the camera clock for the timestamp?
0 -
in Spinnaker, you can get the image timestamp (camera clock timestamp) as a part of the "Chunk data" that can be included with every image transferred to the PC. Chunk data is data that encompasses a variety of image settings for each image, items that include exposure time, frame id, image timestamp, and more. Further details on chunk data and how to enable it (including image timestamp) can be found in the example code, "ChunkData", that comes included with the Spinnaker SDK. http://softwareservices.flir.com/Spinnaker/latest/_chunk_data_8cpp-example.html
1 -
It is also possible to calculate the offset between the PC time and camera time and use that to map the chunk data image timestamp to the PC clock time:
1. Take PC time A
2. Latch timestamp on camera
3. Take PC time B
4. Read latched timestamp from camera
5. Calulate offset between camera time and A + (B-A)/2This can be repeated a few times to get a stable average.
Also, this process should be repeated from time to time due to the camera timestamp drift.
1 -
Hello Ella. Did the above feedback manage to help you out? Are you able to get a timestamps associated with your images by synchronizing the camera timestamp with PC timestamp?
0
Please sign in to leave a comment.
Comments
5 comments