question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question about the timestamp returned by `dai::ImgFrame::getTimestamp()` method

See original GitHub issue

Greetings! I’d like to ask you one question about the timestamp. I am now working on synchronization between OAK-D camera and external IMU sensor. For that, I need to consider the latency on both sides, including the latency between image capture and its retrieval on the host (as you shared in this link). For example, in case of mono 400p, the latency is about 7.5ms. Instead of additionally setting timestamp right after the method dai::DataOutputQueue::get<dai::ImgFrame>() and then compensating for that latency, which is not that accurate, I intended to use your built-in method getTimestamp() of dai::ImgFrame, since I understand that the returned timestamp by getTimestamp() should have already considered that latency (since the returned ts is actually the one assigned when image being captured) and also be based on host time base. Right?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lenardxucommented, Sep 28, 2022

Thanks, I’ll try using getDeviceTimestamp() to get the problematic getTimestamp() corrected in my case.

0reactions
Erol444commented, Oct 17, 2022

Added IMU + frame syncing demo here. cc @lenardxu

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python embedded. timestamp() return same time over ...
I have implemented a system of callbacks. I want to display the time in unix epoch when I call the function. For example:...
Read more >
Java Program to Convert Date to TimeStamp
Create an object of the Timestamp class and pass the value returned by the getTime() method. Finally, print this Timestamp object value.
Read more >
Fun with dates and times
For this, DB2 provides a built in function called TIMESTAMPDIFF() . The value returned is just an approximation because it does not account...
Read more >
Python Timestamp With Examples
The timestamp() method of a datetime module returns the POSIX timestamp corresponding to the datetime instance. The return value is float.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found