How to get image acquisition time from the camera

asked 2021-03-31 02:10:34 -0500

AnandGeorge gravatar image

Hey,

I would like to know if it is possible to get the image acquisition time which is populated from the camera, not by taking the system time. Image message definition says the timestamp in the header of the message should be the acquisition time of the image. But as far as I understand, that timestamp corresponds to the time when the image is received by the system (correct me if I am wrong). How can I get the time which corresponds to camera exposure or the time associated with an image in its metadata?

Regards,
Anand

edit retag flag offensive close merge delete

Comments

Image message definition says the timestamp in the header of the message should be the acquisition time of the image. But as far as I understand, that timestamp corresponds to the time when the image is received by the system

I don't believe you can state this like this.

Which time specifically will be assigned to the header.stamp field will depend on how the driver author has structured things.

If a camera provides the exact acquisition time (via its SDK fi) and the driver author uses that timestamp to populate the header.stamp, you'll have access to that value.

If the driver author decides to use something else, you'll get that "something else".

gvdhoorn gravatar image gvdhoorn  ( 2021-03-31 03:31:14 -0500 )edit

Thanks for clarifying!

AnandGeorge gravatar image AnandGeorge  ( 2021-03-31 14:48:27 -0500 )edit