quic / sample-apps-for-robotics-platforms

Other
121 stars 50 forks source link

Accurate camera timestamps #61

Open lmuffang opened 2 years ago

lmuffang commented 2 years ago

Hi, I'm trying to get the timestamp when I capture an image on the tracking camera on the RB5 vision kit.

The gstreamer and camera-hal3 sample code works well but I can't see how to get an accurate timestamp of the capture (in micro seconds at least and compensating for the exposure time for example).

I see that there is a there is a SHUTTER event which include the timestamp for start of exposure. How can I get this timestamp _from camera3_capture_request_t.settings when process_capturerequest() is called as the api mentions? Is there another way to get an accurate timestamp on the camera?

Thanks for the help