Abstract:To address the problems of poor comfort and limited application scenarios in traditional contact-based respiratory rate detection methods, a non-contact respiratory rate detection algorithm based on ordinary RGB video is studied. An optical flow field of the human respiratory region is constructed using image gradient optical flow, and the respiratory signal is extracted through optical flow accumulation tensor and directional projection. The Savitzky–Golay filter and short-time Fourier transform (STFT) are combined to estimate the respiratory rate. To verify the performance of the proposed algorithm, multi-posture experiments and multi-scenario stability experiments involving clothing thickness, clothing texture, and video duration are conducted, and two typical non-contact respiratory rate detection algorithms are se-lected for comparative analysis. The experimental results show that the proposed algorithm achieves high detection accuracy under different postures, including supine, lateral lying, upright sitting, and lateral sitting positions. The mean absolute error is less than 1 bpm, and the detection accuracy exceeds 95%. The algorithm maintains good stability and robustness under complex scenarios and long-term continuous monitoring conditions. The results indicate that the proposed algorithm can achieve accurate and stable non-contact respiratory rate detection and meet the requirements of respiratory rate detection in daily environments.