Read OV files in Python?

Come here to discuss about OpenViBE in general!
Post Reply
nchild
Posts: 13
Joined: Fri Jan 27, 2023 10:23 pm

Read OV files in Python?

Post by nchild »

Hello,
I would like to read and annotate the data from my OpenVibe recordings in Python, and I am aware that they can be converted to GDF or CSV to make this process simpler, but the documentation says that some information may be lost in the conversion process, which other posts seem to agree with. Is there a Python package or method to reading the OV files in Python, or is the conversion currently our best option? Thank you,
-Nathan

Thomas
Posts: 212
Joined: Wed Mar 04, 2020 3:38 pm

Re: Read OV files in Python?

Post by Thomas »

Hi Nathan,

At the moment there is no library to read OV files from python directly.

What documentation and what lost information are you referring to? I am asking as there is a possibility that some posts refer to specific versions of OpenViBE.

Lastly, one way you could go about is to create a python box with a signal input, connected to a Generic Stream Reader. This was you could extract the content of the OV file in your preferred way within OpenViBE to process it offline.

Cheers,
Thomas

nchild
Posts: 13
Joined: Fri Jan 27, 2023 10:23 pm

Re: Read OV files in Python?

Post by nchild »

Hello Thomas,

The documentation I was reading is here:
https://openvibe.inria.fr/supported-file-formats/

It mentions that stimulation timing accuracy may be lost and that there have been problems reported with stimulations and file conversion, though that page is from 2015 so it could be referring to an older version. Thank you for the idea of a python box with a signal input; that could be a useful method. Thank you,
-Nathan

Post Reply