Skip to main content
extracts physiological signal from video via Haar Cascade face detection, ROI sampling, and CHROM rPPG.

Constructor

Primary method

PhysiologicalSignals dataclass

Library dependencies

  • OpenCV (cv2) — face detection
  • rPPG library (heartpy) — HR / HRV
  • SciPy (scipy.signal, scipy.interpolate, scipy.fft) — filtering
  • NumPy (numpy) — arrays

Failure modes

The engine returns the metric with confidence: 0.0 rather than fabricated values when:
  • Face detection fails on > 30 % of frames
  • SNR ≤ 3.0
  • Recording shorter than the declared minimum duration