openyou / emokit

Open source driver for accessing raw data from the Emotiv EPOC EEG headset
http://www.openyou.org
Other
521 stars 235 forks source link

How could I get sensors value array #261

Closed shihray closed 7 years ago

shihray commented 7 years ago

hi everyone i'm try to use headset.dequeue() to get values gust like packet.sensors['AF3']['value'] but this just can get one value how to get sensors value to array

ghost commented 7 years ago

packet.sensors is a dictionary of all the values.

shihray commented 7 years ago

@bschumacher thanks for your answer but I want to get an array its length is 128 in one second how could I make that come true

ghost commented 7 years ago

You would append the packet.sensors to a list, unless you're using numpy arrays.

When the list length is equal to 128 append that list to another list assuming you want to keep it around or perform your processing or whatever.

shihray commented 7 years ago

@bschumacher thanks a lot I got it