uzh-rpg / DSEC

MIT License
131 stars 16 forks source link

How I can convert .h5 event files to txt format? #56

Closed ramnamaqsood closed 1 year ago

ramnamaqsood commented 1 year ago

Hi, Thanks for the great work, Can you please guide me how can I convert event files from .h5 format to txt format? Is it valid to do with this dataset?

Thanks and regards,

magehrig commented 1 year ago

Thanks @ramnamaqsood

You can use this code to read out x, y, p, and t and then write it into a txt file.

ramnamaqsood commented 1 year ago

@magehrig Thank you very much for your response. I have modified the code to write data in txt file. Just for verification, I have shown few converted data. Can you please verify it?

307 201 1 57922807588 568 201 1 57922807588 572 205 1 57922807588 549 205 1 57922807588 247 205 0 57922807588 233 204 0 57922807588 58 204 1 57922807588 424 204 1 57922807588 526 206 1 57922807588 225 206 1 57922807588 227 206 1 57922807588

magehrig commented 1 year ago

yes that seems reasonable

stubborn111 commented 1 year ago

@ramnamaqsood hello,could you share your code that you used to convert .h5 event files to txt format ? I appreciate your support very much!