openyou / emokit

Open source driver for accessing raw data from the Emotiv EPOC EEG headset

Home Page:http://www.openyou.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How could I get sensors value array

shihray opened this issue · comments

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

packet.sensors is a dictionary of all the values.

@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

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.

@bschumacher thanks a lot
I got it