Code Monkey home page Code Monkey logo

Comments (4)

AdrianEddy avatar AdrianEddy commented on June 10, 2024

Every camera is different, but telemetry-parser tries to return t = 0 at the middle of the first frame
Remember that there are many samples per frame, and the negative t is the top row of the first frame, then it goes to 0 in the middle and then positive at the bottom
That's assuming you're using util::normalized_imu() or util::normalized_imu_interpolated()

Gyroflow also takes into account exposure time and some other data depending on camera, for Insta360 it's here:
https://github.com/gyroflow/gyroflow/blob/master/src/core/gyro_source.rs#L390-L414
This is important for the most accurate timing

from gyroflow.

RigerLee avatar RigerLee commented on June 10, 2024

Thank you for your explanation.

In the given code snippet, it seems that only Timescalers with t>=0 have been considered.

Can I say that the first non negative Timescaler is the reference timestamp of the first frame, since the interval between two Timescaler is exactly 1/fps.
And the actual timestamp of the first frame is obtained based on the formula in the code snippet.

from gyroflow.

AdrianEddy avatar AdrianEddy commented on June 10, 2024

It's not that simple, every frame has an additional time offset, based on the exposure time, that offset is calculated in that code snippet I linked.
It also takes into account gyro_timestamp and first_frame_timestamp, but that's already calculated in telemetry-parser

To verify the timestamp per frame, you can Export project file (with processed gyro data) from Gyroflow, and then in that .gyroflow json file, you'll have "synced_imu_timestamps_with_per_frame_offset" field

from gyroflow.

RigerLee avatar RigerLee commented on June 10, 2024

Ok, I'll try to use the synced imu timestamp to sync with another imu.

from gyroflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.