Overview
The Synheart Emotion Python SDK provides emotion inference from biosignals for research, backend services, and data analysis applications.Installation
Requirements
- Python >= 3.8
Quick Start
Basic Usage
Configuration
Real-Time Processing
API Reference
EmotionEngine
Main engine for emotion inference.
Methods:
| Method | Description | Returns |
|---|---|---|
from_pretrained(config) | Load pretrained model | EmotionEngine |
push(hr, rr_intervals_ms, timestamp) | Push biosignal data | None |
consume_ready() | Get ready results | List[EmotionResult] |
EmotionConfig
Configuration for the engine.
Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
window_duration | float | 60.0 | Window size (seconds) |
step_duration | float | 5.0 | Step size (seconds) |
EmotionResult
Emotion inference result.
Attributes:
| Attribute | Type | Description |
|---|---|---|
emotion | Emotion | Detected emotion |
confidence | float | Confidence score (0-1) |
timestamp | datetime | When inferred |
Resources
- PyPI: synheart-emotion
- Repository: synheart-emotion-python
- Full README: View on GitHub
- Issues: GitHub Issues
Author: Israel Goytom