smartspectra_flutter library
Unofficial Flutter plugin for the Presage SmartSpectra SDK.
Measure pulse rate, breathing rate, heart-rate variability, blinking, talking and facial expressions from the phone camera.
final spectra = SmartSpectra.instance;
await spectra.configure(const SmartSpectraConfig(apiKey: 'YOUR_KEY'));
spectra.metrics.listen((m) => print(m.pulseRate?.value));
await spectra.start();
Classes
- Detection
- A yes/no detection such as blinking or talking.
- ExpressionReading
- Expression probabilities for one frame.
- HrvReading
- Heart-rate-variability statistics over a 60-second window.
- Reading
- A single value with confidence, such as pulse rate or breathing rate.
- SmartSpectra
- Entry point to the SmartSpectra SDK.
- SmartSpectraConfig
- Configuration passed to SmartSpectra.configure.
- SmartSpectraMetrics
- One update from the SDK.
- SmartSpectraPreview
- Live camera preview for the running SmartSpectra measurement.
- TraceSample
- One sample of a waveform.
- ValidationStatus
- Imaging guidance from the SDK, e.g. "Too dark" or "Face not centered".
Enums
- Expression
- Facial expressions the SDK classifies.
- ProcessingStatus
- Lifecycle state of the measurement pipeline.
- SmartSpectraCamera
- Which camera the SDK should open.
- SmartSpectraErrorCode
- Error codes reported by the SmartSpectra SDK.
- SmartSpectraMetric
- Groups of measurements the SDK can compute.
- ValidationCode
- Why the current frames may not give a good reading.
Exceptions / Errors
- SmartSpectraException
- An error raised by the SDK, delivered on SmartSpectra.errors or thrown from SmartSpectra.start / SmartSpectra.stop.