Event visualization

178 views
Skip to first unread message

xs wang

unread,
Jul 5, 2023, 9:40:43 PM7/5/23
to dv-users
Hello! 
   What I want to know is whether dv processing can visualize the events of the aedat4 file recorded by DAVIS346 instead of relying on connecting an external camera.
    Additionally, if the above functions can be implemented. What I would like to know about the format of the dataset recorded by DAVIS240 released by UZH-RPG, which is txt and rostag, is how to use Event visualization to play event data in this format.

Jonatan Kronander

unread,
Jul 6, 2023, 3:00:59 AM7/6/23
to dv-users
Hi, 
To read aedat4 you can use dv::io::MonoCameraRecording(). Assuming you are using Python you can look at the code snippet below. You can also read the documentation here: https://dv-processing.inivation.com/rel_1.7/reading_data.html#read-events-from-a-file
5 dv::io::MonoCameraRecording reader("path/to/file.aedat4"); 6 7 // Run the loop while data is available 8 while (reader.isRunning()) { 9 // Read batch of events, check whether received data is correct. 10 if (const auto events = reader.getNextEventBatch(); events.has_value()) { 11 // Print received event packet information 12 std::cout << *events << std::endl; 13 } 14 }

To visualize the events you can refer to this documentation: https://dv-processing.inivation.com/rel_1.7/accumulators.html#event-visualization
Note: In this Python tutorial code snippet there is a typo. Replace line 33 with: cv.imshow("Preview", frame)

As for the dataset, I am not sure what you are refering to. I would suggest that you read the specification/documentation of that dataset. Perhaps they have an accomioning code? 

best,
Jonatan

Luca Longinotti

unread,
Jul 10, 2023, 12:03:44 PM7/10/23
to dv-u...@googlegroups.com
Hello,
yes dv-processing can open AEDAT4 files:
and then visualize or work on it.
The UZH recording format we don't support directly, but it should be possible to write some code to open the TXT file and add the data to an EventStore, if I remember correctly they use CSV files: https://docs.python.org/3/library/csv.html
Hope this helps, have a nice day!
-- 
Luca Longinotti (llongi)

Head of Embedded Platforms
iniVation AG - https://inivation.com/
Zurich, Switzerland
Office: +41 44 500 32 14
Reply all
Reply to author
Forward
0 new messages