aedat4 format details

1,073 views
Skip to first unread message

戴振宇

unread,
Aug 11, 2021, 10:23:36 PM8/11/21
to davis-users
I want to konw how to transform the aedat4 files to  numpy by python. and how to make the  timestamp start with zero every times. Thanks

adam.r...@inivation.com

unread,
Aug 12, 2021, 2:09:07 AM8/12/21
to davis-users
Hi,

You can use our dv-python module for this. The module itself can be installed using pip (pip install dv).

Here you have a description how to open aedat4 files using python

The timestamp is in Unix timestamp in microseconds. If you want it to start with zero you will have to subtract the timestamp from the first event.

Hope it helps!

Tobi Delbruck (UZH-ETH)

unread,
Aug 12, 2021, 2:57:52 AM8/12/21
to davis...@googlegroups.com
A working example is also in aedat4to2 - it uses dv-python to parse
aedat4 recording of DAVIS DVS events, APS frames, and IMU samples to
rewrite to AEDAT-2 format for using recordings in jAER.

https://github.com/SensorsINI/aedat4to2


adam.r...@inivation.com

unread,
Aug 12, 2021, 3:51:38 AM8/12/21
to davis-users
Question:

thumbnail_image.png    I wonder what the fifth and sixth columns mean about events.   

Can't the DV platform set time stamps? For example, if I want to record a stream of events for three milliseconds, the maximum timestamp will be three milliseconds at most, and the minimum will not necessarily be zero, depending on when the event occurred.   

In addition, do you have the internal matrix of DAVIS346 that has been calibrated? The result of my calibration varies greatly each time.

---

Answer:

The zeros at the end are due to zero-padding for better memory alignment (event is 13 bytes, but it's better to use multiples of 16, so 8bytes + 2 bytes + 2 bytes + 1 byte + 1 byte padding + 2 byte padding = 16 bytes). You can simply ignore the last 2 columns.

No, aedat4 timestamp from definition is a timestamp in UTC. DV can not set timestamps. It outputs the timestamps as the real time when the events happen. Timestamp "0" means January 1970.

The last question has been answered in the correct thread
Reply all
Reply to author
Forward
0 new messages