This invention discloses an indoor mid-to-long-range camera
heart rate detection method and
system with resistance to environmental interference. The host computer acquires one video
stream from each camera to determine the video
frame sequence of the current optimal viewing angle.
Face detection, tracking, and ROI localization are performed on the video
frame sequence to obtain the face ROI region for each video frame.
Rigid motion noise filtering is applied to the video
frame sequence to obtain an aligned frame sequence and a
reference frame sequence. The face ROI region of each aligned frame is determined based on the face ROI region of the
reference frame. The ROI
signal is determined based on the face ROI region of the aligned frame, and non-rigid
noise is filtered out to obtain a
pulse wave signal. The
heart rate value corresponding to the current sliding window is determined based on the
pulse wave signal, and a corresponding
quality score is determined. This, combined with a preset correspondence between distance and available
focal length, allows for adaptive adjustment of the camera
focal length. This invention exhibits high robustness, accuracy, and stability.