How to save Time of the object when it detected in Video using YoloV5 or YoloV8

@Mohamed It saving the timestamp like below

33 0.808984 0.968843 0.0539063 0.0623145, {‘timestamp’: ‘2023-03-25 07:02:08’}

But I want the time of the Video no the current time

1 Like