cortex
is an API for communicating with your Emotiv EEG device via websockets.
Source: Emotiv
To run the existing example you will need to do a few things.
-
You will need an EMOTIV headset. You can purchase a headset in an online store
-
Next, download and install the Cortex service. Please note that currently, the Cortex service is only available for Windows and macOS.
-
We have updated our Terms of Use, Privacy Policy and EULA to comply with GDPR. Please login via the EMOTIV Launcher to read and accept our latest policies in order to proceed using the following examples.
-
Next, to get a client id and a client secret, you must connect to your Emotiv account on emotiv.com and create a Cortex app. If you don't have a EmotivID, you can register here.
-
Then, if you have not already, you will need to login with your Emotiv id in the EMOTIV Launcher.
-
Finally, the first time you run these examples, you also need to authorize them in the EMOTIV Launcher.
To get started, you will need to install the cortex
package. You should check out
some examples to get you started.
poetry install
For testing and development, you can install the package with the test
and dev
flags respectively.
poetry install --with test,dev
You'll also need to set your client id and client secret as environment variables.
export EMOTIV_CLIENT_ID="your-client-id"
export EMOTIV_CLIENT_SECRET="your-client-secret"
You are very welcome to modify and use them in your own projects.
Please keep a link to the original repository. If you have made a fork with substantial modifications that you feel may be useful, then please open a new issue on GitHub with a link and short description.
This project is opened under the MIT which allows very broad use for both private and commercial purposes.
A few of the images used for demonstration purposes may be under copyright. These images are included under the "fair usage" laws.