microsoft / HoloLens2ForCV

Sample code and documentation for using the Microsoft HoloLens 2 for Computer Vision research.
MIT License
479 stars 144 forks source link

Sensors frame rate and frames timestamping #84

Open abdullahthabit opened 3 years ago

abdullahthabit commented 3 years ago

Hi everyone,

When I try calculate the frame rate of the camera sensors (Left front, Right front or Depth camear sensors) using the frames timestamps (as in SensorVisualization), it doesn't match the frame rate calculated using the system QPC/QPF, but not for the IMU sensors. When I looked into it further, I found out that the "timestamp.HostTicksPerSecond" for each camera sensor differes among the sensors. which shouldn't be the case, since the Host counter frequency should be independent of the sensor's one.

Anyone experiencing the same issue? or knows why is this? Thanks in advance!

dorinung commented 3 years ago

Please use file time units ( 10 000 000 per second) for HostTicksPerSecond. 100 nanosecods per tick.

Thanks, Dorin