i have large svo2 files, 4gb+ and in order to synchronise between them i am forced to go through r each image grab it get it’s timestamp and do this for 3 svo2 and for each image, it takes 40+ minutes each time, my question is if in svo2 you made it easier to get the timestamps of each frame or am i required to do the same?
Hi @DailyNir,
Retrieving timestamps can only be done currently after running the grab() method, you are correct.
However, there are ways for you to speed up your script:
- Remove any unnecessary compute: when going through the SVOs, you probably don’t need to compute the depth or positional tracking. Make sure all modules of the ZED SDK are disable using the
disable[Module]method, e.g.disablePositionalTracking(). You should also set the depth mode to sl::DEPTH_MODE::NONE, which disables the depth compute. - Only compute a few timestamps: if you wish to synchronize the timestamps from a collection of SVOs to start them all at the same time, you can find the latest beginning timestamp of the SVOs by running grab() only once for each. Once you find this timestamp in common for all SVOs, you will have to go through the SVOs until you reach this timestamp.