Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read AEDAT4 file #22

Open
IsmailAM1999 opened this issue Nov 27, 2023 · 5 comments
Open

Read AEDAT4 file #22

IsmailAM1999 opened this issue Nov 27, 2023 · 5 comments

Comments

@IsmailAM1999
Copy link

Hi, thank you very much for your work.

I tried with a sequence of MVSEC and it works fine, and I want to try with raw events from a mono-type event camera (.aedat4), is there any way to read this type of extension?

I also want to try the approach to format source data in hdf5, can you guide me through the hierarchical structure? And what script should I use/modify to accept this type of data?

Thanks in advance for your time and help.

Event camera : DVXplorer Mini

@shiba24
Copy link
Collaborator

shiba24 commented Dec 4, 2023

Actually my private code has the interface to read aedat and hdf5 files as you requested. I'm thinking of how to merge it into the repo. Give me some time for preparation.

@IsmailAM1999
Copy link
Author

Thank you very much for your quick response. I am looking forward to your merge, and I will be pleased to test it out.

@shiba24
Copy link
Collaborator

shiba24 commented Dec 8, 2023

We can keep this issue open to remind me

@shiba24 shiba24 reopened this Dec 8, 2023
@nikky4D
Copy link

nikky4D commented Nov 7, 2024

Were you able to include this reader in the codebase?

@shiba24
Copy link
Collaborator

shiba24 commented Nov 8, 2024

@nikky4D I hope to have time to do during this winter holiday.
If you are in a hurry, you could try my other library. Will be something like:

from evlib.codec import fileformat

# Setup iterator reader
file_path = "./sample.aedat"
ev_iter = fileformat. IteratorAedat4Event(file_path)

# Define key mapping for the hdf5 file
data_keys = {"x": "raw_events/x", "y": "raw_events/y", "t": "raw_events/t", "p": "raw_events/p"}

# Convert
output_file_name = "event.hdf5"
fileformat.convert_iterator_access_to_hdf5(ev_iter, output_file_name, data_keys)
print(f"Finished conversion: {output_file_name}")

Refs:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants