Explorepy overview¶
Explorepy is an open-source Python-based biosignal acquisition API for Mentalab’s Explore device. It provides users the following features:
- Real-time streaming of ExG, orientation and environmental data
- Real-time visualization
- Data recording in CSV and BDF+ formats
- LSL integration
- Impedance measurement
- Explore device configuration
Quick installation¶
Requirements¶
- Python 3.5 or newer version
- numpy
- pybluez 0.22 (check their repo for the requirements of pybluez)
- pylsl
- scipy
- bokeh 1.4.0
Please check installation page for more detailed instruction.
To install explorepy
from PyPI run:
pip install explorepy
To install the latest development version run:
pip install git+https://github.com/Mentalab-hub/explorepy
Get started¶
Python code¶
The following code connects to the Explore device and prints the data.
import explorepy
explorer = explorepy.Explore()
explorer.connect(device_name="Explore_XXXX") # Put your device Bluetooth name
explorer.acquire()
You can also visualize signals in real-time.
import explorepy
explorer = explorepy.Explore()
explorer.connect(device_name="Explore_XXXX") # Put your device Bluetooth name
explorer.visualize(bp_freq=(.5, 30), notch_freq=50)
EEG:
ECG with heart beat detection:
Documentation¶
To see full documentation of the API, visit: https://explorepy.readthedocs.io/