basler / gst-plugin-pylon

The official GStreamer plug-in for Basler cameras
BSD 3-Clause "New" or "Revised" License
40 stars 10 forks source link

Camera Time Synchronization #70

Open rwang5203 opened 10 months ago

rwang5203 commented 10 months ago

Hi,

I want to know if there is any method to sync my camera's system time or produce it in the data somehow in the plugin or the pylon viewer. Does it support PTP or GPS time synchronization? If so, can you provide some instructions on obtaining that synced timestamp?

Model: acA1920-150uc

thiesmoeller commented 10 months ago

Hi @rwang5203,

On USB3 there is no way to realize absolute time sync.

The buffer time you have in gstreamer is the best timestamp you can get for absolute time.

In the pylon metadata you can access the nano second timestamp from the camera which will give you a high-resolution timestamp information of when the image has been aquired. If you are interested in relative time between images only this would be the time information to has.