OrbbecSDK icon indicating copy to clipboard operation
OrbbecSDK copied to clipboard

Help, Question aboult timestamp

Open hplegend opened this issue 1 year ago • 2 comments
trafficstars

what's the different between "get_timestamp" and "get_system_timestamp"? I print the two timestamp, and found get_system_timestamp ahead of get_timestamp. On the other hand, get_timestamp need manual config 'aync' at orbbec viewer or it will return 0.

hplegend avatar May 26 '24 14:05 hplegend

i believe get_timestamp returns the timestamp from the camera and get_system_timestamp is from the host computer. on many cameras the clock on the camera does not persist if it is unplugged hence having to sync it after startup. i want to say some models of cameras start a timer from startup time too, but don't remember which ones did that.

natelowry avatar May 28 '24 19:05 natelowry

i believe get_timestamp returns the timestamp from the camera and get_system_timestamp is from the host computer. on many cameras the clock on the camera does not persist if it is unplugged hence having to sync it after startup. i want to say some models of cameras start a timer from startup time too, but don't remember which ones did that.

Yes, what you said is correct. The get_timestamp returns the timestamp from the camera, while the get_system_timestamp returns the timestamp from the host computer. The timestamps from the camera and the host computer might not be consistent. You can synchronize them by using the time synch interface to ensure that the camera's timestamp matches the host computer's timestamp.

zhonghong322 avatar Jun 04 '24 09:06 zhonghong322