[go: up one dir, main page]

CN106778695A - A kind of many people's examing heartbeat fastly methods based on video - Google Patents

A kind of many people's examing heartbeat fastly methods based on video Download PDF

Info

Publication number
CN106778695A
CN106778695A CN201710039731.0A CN201710039731A CN106778695A CN 106778695 A CN106778695 A CN 106778695A CN 201710039731 A CN201710039731 A CN 201710039731A CN 106778695 A CN106778695 A CN 106778695A
Authority
CN
China
Prior art keywords
heart rate
face
video
tracking
frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710039731.0A
Other languages
Chinese (zh)
Other versions
CN106778695B (en
Inventor
赵跃进
刘玲玲
刘明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Institute of Technology BIT
Original Assignee
Beijing Institute of Technology BIT
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Institute of Technology BIT filed Critical Beijing Institute of Technology BIT
Priority to CN201710039731.0A priority Critical patent/CN106778695B/en
Publication of CN106778695A publication Critical patent/CN106778695A/en
Application granted granted Critical
Publication of CN106778695B publication Critical patent/CN106778695B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/164Detection; Localisation; Normalisation using holistic features
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/0059Measuring for diagnostic purposes; Identification of persons using light, e.g. diagnosis by transillumination, diascopy, fluorescence
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording for evaluating the cardiovascular system, e.g. pulse, heart rate, blood pressure or blood flow
    • A61B5/024Measuring pulse rate or heart rate
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/255Detecting or recognising potential candidate objects based on visual cues, e.g. shapes
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/26Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
    • G06V10/267Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion by performing operations on regions, e.g. growing, shrinking or watersheds
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/30Noise filtering
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/162Detection; Localisation; Normalisation using pixel segmentation or colour matching

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Surgery (AREA)
  • Veterinary Medicine (AREA)
  • Public Health (AREA)
  • Animal Behavior & Ethology (AREA)
  • Medical Informatics (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Biophysics (AREA)
  • Pathology (AREA)
  • Biomedical Technology (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Human Computer Interaction (AREA)
  • Physiology (AREA)
  • Cardiology (AREA)
  • Signal Processing (AREA)
  • Artificial Intelligence (AREA)
  • Psychiatry (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Measuring And Recording Apparatus For Diagnosis (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

本发明涉及人体健康监测技术领域,公开了一种基于视频的多人快速心率检测方法,利用非接触方式通过摄像头采集被测者视频数据,并将视频数据的颜色空间由RGB转换成HSV,实现了多人的心率快速测量。其特征在于,该方法通过检测与跟踪由摄像头输入的视频或是已有视频中的多个人脸区域并分割出脸颊区域,提取脸颊区域的时域数据序列并进行预处理,然后转换到频域进行心率的提取。与现有技术相比,本发明基于改进的人脸检测算法与改进的跟踪算法并利用多线程方法加速,能够实现多人的快速心率检测,缩短了心率测量的时间,提高了生理信号的检测效率。

The invention relates to the technical field of human health monitoring, and discloses a video-based rapid heart rate detection method for multiple people, which uses a non-contact method to collect video data of the subject through a camera, and converts the color space of the video data from RGB to HSV to realize Quickly measure the heart rate of multiple people. It is characterized in that the method detects and tracks the video input by the camera or multiple face areas in the existing video and segments the cheek area, extracts the time domain data sequence of the cheek area and performs preprocessing, and then converts to the frequency domain Extract the heart rate. Compared with the prior art, the present invention is based on an improved face detection algorithm and an improved tracking algorithm and is accelerated by a multi-thread method, which can realize rapid heart rate detection of multiple people, shorten the time of heart rate measurement, and improve the detection of physiological signals efficiency.

Description

一种基于视频的多人快速心率检测方法A video-based fast heart rate detection method for multiple people

技术领域technical field

本发明专利涉及人体健康监测技术领域,具体涉及一种可以实现多人快速心率测量的方法。The patent of the present invention relates to the technical field of human health monitoring, in particular to a method that can realize rapid heart rate measurement of multiple people.

背景技术Background technique

心率是指心脏每分钟跳动的次数,因年龄、性别及其它生理情况的不同而不同。初生儿的心率很快,可达130次/分以上。正常成年人安静时的心率有显著的个体差异,平均在75次/分左右(60-100次/分之间)。同一个人,在安静或睡眠时心率减慢,运动或有情绪波动时心率加快。因此,心率可以充分反映一个人的身体状况,是进行自我健康监测的重要生理参数,也是医生对病人进行疾病诊断的重要依据。Heart rate refers to the number of times the heart beats per minute and varies with age, gender, and other physiological conditions. The heart rate of newborns is very fast, reaching more than 130 beats/min. There are significant individual differences in the resting heart rate of normal adults, with an average of about 75 beats/min (60-100 beats/min). For the same person, the heart rate slows down when resting or sleeping, and increases when exercising or having mood swings. Therefore, heart rate can fully reflect a person's physical condition, is an important physiological parameter for self-health monitoring, and is also an important basis for doctors to diagnose diseases for patients.

心率按照测量方式的不同可以分为接触式测量和非接触式测量。接触式测量的代表之一是心率测量的金标准—心电图(EEG),此外还有缠绕胸带、袖带或电极在手腕、指尖、耳垂等位置的接触式测量方法,接触式测量方法的最大缺点是测量操作复杂、测量周期较长以及接触皮肤会给被测者带来不适,而基于光电容积脉搏描记技术(IPPG)的非接触式测量方法很好地克服了接触式心率测量方法的缺点,是目前应用比较广泛的非接触式测量方法。Heart rate can be divided into contact measurement and non-contact measurement according to different measurement methods. One of the representatives of contact measurement is the gold standard of heart rate measurement—electrocardiogram (EEG). In addition, there are contact measurement methods that wrap chest straps, cuffs or electrodes on wrists, fingertips, earlobes, etc. The biggest disadvantage is that the measurement operation is complicated, the measurement period is long, and the contact with the skin will bring discomfort to the subject. The non-contact measurement method based on photoplethysmography (IPPG) overcomes the disadvantages of the contact heart rate measurement method. The disadvantage is that it is a non-contact measurement method that is widely used at present.

但是,基于现有IPPG的非接触式测量方法又存在对于光线的变化比较敏感、测量速度低、测量结果易受运动伪差的影响、心率测量结果精度低、大多数是基于单个人的心率测量等问题。However, the non-contact measurement method based on the existing IPPG is sensitive to light changes, the measurement speed is low, the measurement results are easily affected by motion artifacts, the accuracy of the heart rate measurement results is low, and most of them are based on the heart rate measurement of a single person. And other issues.

发明内容Contents of the invention

1.本发明旨在至少解决上述技术问题之一。1. The present invention aims to solve at least one of the above-mentioned technical problems.

2.为此,本发明的目的在于提出一种基于视频的非接触式多人快速心率检测方法,该方法可以对通过摄像头获取的包含多个人脸的视频或者含有多个人脸的视频中的人脸自动检测与快速跟踪,对获得的人脸区域分析处理后即可获得各个被测者的心率。2. For this reason, the object of the present invention is to propose a kind of non-contact multi-person fast heart rate detection method based on video, this method can be to the video that comprises a plurality of human faces or the people in the video that contains a plurality of human faces obtained by camera. Face automatic detection and fast tracking, after analyzing and processing the obtained face area, the heart rate of each subject can be obtained.

3.该方法包括以下部分:视频获取部分、人脸检测部分、人脸跟踪部分、ROI色调分帧提取部分、时域信号获取部分、时域信号处理部分、心率计算部分、人脸编号以及心率显示部分;3. The method includes the following parts: video acquisition part, face detection part, face tracking part, ROI tone frame extraction part, time domain signal acquisition part, time domain signal processing part, heart rate calculation part, face number and heart rate display part;

4.所述视频获取部分,用于选定工作方式:一是开启摄像头,在日常照明的室内环境下,确定成像设备可以对人脸区域清晰完整成像的位置后固定摄像头;二是选用一段本地已有的包含人脸区域的视频;4. The video acquisition part is used to select the working mode: one is to turn on the camera, and in the indoor environment of daily lighting, fix the camera after determining the position where the imaging device can clearly and completely image the face area; the other is to select a section of local Existing videos containing face regions;

5.所述人脸检测部分,用于从视频中检测出人脸区域,将各个人脸区域编号返回人脸编号及心率显示部分,并初始化人脸跟踪部分;5. The face detection part is used to detect the face area from the video, returns the face number and the heart rate display part to each face area number, and initializes the face tracking part;

6.所述人脸跟踪部分,对人脸检测部分检测到的各个人脸区域进行跟踪;6. The face tracking part tracks each face area detected by the face detection part;

7.所述ROI色调分帧提取部分,用于提取视频中每帧图像ROI区域的颜色空间由RGB转换为HSV后的Hue(色调)分量的值;7. The ROI tone sub-frame extraction part is used to extract the color space of each frame image ROI region in the video by the value of the Hue (hue) component after RGB is converted to HSV;

8.所述时域信号获取部分,用于将每帧ROI区域图像中的人脸划分出脸颊区域,并对这个区域HSV三种颜色分量中的Hue(色调)分量取像素的灰度均值,脸颊区域H分量的时域信号值X(t);8. The time-domain signal acquisition part is used to divide the face in the ROI area image of each frame into the cheek area, and get the grayscale mean value of the pixel for the Hue (tone) component in the three color components of HSV in this area, The time-domain signal value X(t) of the H component in the cheek area;

9.所述时域信号处理部分,用于将获得的时域信号值X(t)进行噪声抑制、信号去趋势化,获得处理后的时域信号值 9. The time-domain signal processing part is used to perform noise suppression and signal detrending on the obtained time-domain signal value X(t), and obtain the processed time-domain signal value

10.所述心率计算部分,用于对时域信号值进行频谱分析并生成频谱图,在频谱图中提取处于指定频带内的峰值频率进行心率计算;10. The heart rate calculation part is used for time domain signal value Perform spectrum analysis and generate a spectrogram, extract the peak frequency in the specified frequency band from the spectrogram for heart rate calculation;

11.所述人脸编号及心率显示部分,用于对人脸检测部分标记的各人脸区域编号以及由心率计算部分得到的该人脸区域编号所对应的心率值显示在视频中。11. The face number and heart rate display part is used to display the face area number marked by the face detection part and the heart rate value corresponding to the face area number obtained by the heart rate calculation part in the video.

较佳的,视频获取部分通过PC机控制成像设备实现。Preferably, the video acquisition part is realized by controlling the imaging device through a PC.

较佳的,人脸检测部分通过同时加载鼻子、嘴巴、正脸的分类器方法实现。Preferably, the face detection part is implemented by simultaneously loading the nose, mouth, and frontal face classifiers.

较佳的,人脸跟踪部分通过改进的适合多人跟踪的改进的适合多人的压缩跟踪的方法实现。Preferably, the face tracking part is realized by an improved compressed tracking method suitable for multiple people tracking.

较佳的,ROI色调分帧提取部分通过将颜色空间由RGB转化为HSV并提取H分量的方法实现。Preferably, the ROI hue frame extraction part is realized by converting the color space from RGB to HSV and extracting the H component.

较佳的,时域信号获取部分通过提取脸颊区域的灰度均值的方法实现。Preferably, the time-domain signal acquisition part is realized by extracting the gray mean value of the cheek area.

较佳的,时域信号处理部分通过均值滤波、小波除躁、滑动平均的方法实现。Preferably, the time-domain signal processing part is realized by means of mean filtering, wavelet denoising, and moving average.

较佳的,心率计算部分通过快速傅里叶变换的方法实现。Preferably, the heart rate calculation part is realized by fast Fourier transform method.

较佳的,人脸编号以及心率显示部分通过多线程的方法实现。Preferably, the face number and the heart rate display are partially implemented by a multi-threaded method.

附图说明Description of drawings

1.图1为本发明的心率测量方法步骤图1. Fig. 1 is a heart rate measurement method step diagram of the present invention

2.图2为本发明所包括的各部分的框图2. Fig. 2 is the block diagram of each part that the present invention comprises

3.图3为本发明的心率测量方法流程图以及多线程示意图3. Fig. 3 is a flow chart of the heart rate measurement method of the present invention and a multi-thread schematic diagram

4.图4为本发明的心率测量方法人脸检测部分流程图4. Fig. 4 is a flow chart of the human face detection part of the heart rate measurement method of the present invention

5.图5为本发明的心率测量方法人脸跟踪部分流程图5. Fig. 5 is the part flow chart of face tracking of heart rate measurement method of the present invention

6.图6为本发明的心率测量方法人脸跟踪部分目标检测框与其邻近检测框位置关系图6. Figure 6 is a positional diagram of the heart rate measurement method of the present invention in the face tracking part of the target detection frame and its adjacent detection frames

具体实施方式detailed description

1.为了清楚说明本发明的目的、技术方案及优点,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。1. In order to clearly illustrate the purpose, technical solutions and advantages of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

2.如图1所示,为本发明的基于视频的多人快速心率测量方法步骤图。2. As shown in Figure 1, it is a step diagram of the video-based rapid heart rate measurement method for multiple people of the present invention.

3.如图2所示,为本发明的基于视频的多人快速心率测量方法所包含各部分的框图。3. As shown in FIG. 2 , it is a block diagram of various parts included in the video-based rapid heart rate measurement method for multiple people of the present invention.

4.第一步,选择工作方式,本发明提供两种工作方式:一是通过摄像头直接对被测者进行实时的心率检测,二是本地视频中的被测者进行实时的心率检测。两种工作方式中的视频都需要选定照明合适的环境,确定成像设备可以对人脸区域清晰并较完整成像。以下步骤以工作方式一为实施例。4. The first step is to select the working mode. The present invention provides two working modes: one is to directly detect the real-time heart rate of the subject through the camera, and the other is to perform real-time heart rate detection on the subject in the local video. For videos in both working modes, it is necessary to select an environment with suitable lighting, and make sure that the imaging device can clearly and completely image the face area. The following steps take working mode 1 as an example.

5.第二步,启动成像设备,对待测对象进行脸部的视频采集,然后将摄像头输入的视频分解为图像序列并将RGB图像转换为灰度图,采集过程中允许人脸在成像场景范围内移动和偏转。5. The second step is to start the imaging device, collect the video of the face of the subject to be tested, and then decompose the video input by the camera into an image sequence and convert the RGB image into a grayscale image. During the acquisition process, the face is allowed to appear in the range of the imaging scene Internal movement and deflection.

6.第三步,判断当前人脸检测状态,若没有检测到人脸则启动人脸检测部分,直到检测到人脸,将人脸编号返回给人脸编号及心率显示部分,并用检测结果初始化跟踪部分,同时将人脸检测状态标记为已检测到人脸,该部分的工作流程参见图4。6. The third step is to judge the current face detection status. If no face is detected, start the face detection part until a face is detected, return the face number to the face number and heart rate display part, and initialize with the detection result In the tracking part, the face detection status is marked as a detected face at the same time. The workflow of this part is shown in Figure 4.

7.第四步,启动人脸跟踪部分,对当前检测到的所有人脸分别进行跟踪,并由跟踪模块返回跟踪状态,若跟踪成功则继续下一步,否则返回第三步,跟踪过程参见图5;跟踪中的搜索半径依据图6进行更新:其中,编号为1~8的8个框分别表示当前目标框周围可能存在的8个相邻位置的框,框的面积表示不同位置处所跟踪人脸区域大小。由图中坐标轴所示,假设目标框的参数分别为(x0,y0,w0,h0),四个参数依次表示目标框所对应矩形左上角顶点横坐标、纵坐标、矩形宽、矩形高;同理,可以假设8个跟踪框的参数为(xi,yi,wi,hi),其中i依次取1,2,3,4,5,6,7,8;下面以目标框与其右上角跟踪框之间距离计算为例,其他情况与此类似,此时满足条件:7. The fourth step is to start the face tracking part to track all the currently detected faces separately, and the tracking module returns to the tracking status. If the tracking is successful, continue to the next step, otherwise return to the third step. The tracking process is shown in the figure 5. The search radius in tracking is updated according to Figure 6: among them, the 8 frames numbered 1 to 8 represent the 8 adjacent frames that may exist around the current target frame, and the area of the frame represents the tracked people at different positions The size of the face area. As shown by the coordinate axes in the figure, assuming that the parameters of the target frame are (x 0 , y 0 , w 0 , h 0 ), the four parameters in turn indicate the abscissa, ordinate, and rectangle width of the top left corner of the rectangle corresponding to the target frame , the height of the rectangle; similarly, it can be assumed that the parameters of the eight tracking frames are ( xi , y i , w i , h i ), where i takes 1, 2, 3, 4, 5, 6, 7, 8 in sequence; The following is an example of calculating the distance between the target frame and the tracking frame in the upper right corner. Other situations are similar, and the conditions are met at this time:

得到最小距离为:The minimum distance obtained is:

则搜索半径为:Then the search radius is:

rsearch=lmin*0.8r search =l min *0.8

8.第五步,对跟踪的每个人脸区域(ROI)进行均值滤波,分割出脸颊区域,提取脸颊区域H分量的灰度均值,并对获得的时域信号X(t)进行小波去噪、滑动滤波、信号去趋势化,得到最终的时域信号 8. The fifth step is to perform mean filtering on each tracked face region (ROI), segment the cheek region, extract the gray mean value of the H component of the cheek region, and perform wavelet denoising on the obtained time domain signal X(t) , sliding filtering, and signal detrending to obtain the final time domain signal

9.第六步,对上步得到的时域信号进行快速傅里叶变换,选取0.5Hz~3Hz之间对应频谱值最大的频率,该频率值对应到每分钟的数值,即为心率。这里选取的0.5Hz~3Hz表示心率处于30~180拍/分钟的情况,包含了绝大多数心率可能出现的范围,同时剔除了其他生理信号的干扰,该步的实现过程参见图3中的线程2。9. The sixth step is to perform fast Fourier transform on the time domain signal obtained in the previous step, and select the frequency corresponding to the largest spectrum value between 0.5Hz and 3Hz, which corresponds to the value per minute, which is the heart rate. The 0.5Hz~3Hz selected here means that the heart rate is in the range of 30~180 beats/min, which covers most possible heart rate ranges and eliminates the interference of other physiological signals. For the implementation process of this step, see the thread in Figure 3 2.

10.第七步,启用线程3,将不同人脸编号对应的心率数据实时显示在视频中。10. The seventh step is to enable thread 3 to display the heart rate data corresponding to different face numbers in the video in real time.

11.有益效果:与现有技术相比,本发明基于图像处理,提出一种快速的多人心率测量方法,通过多线程方法以及改进的跟踪算法实现了多人心率检测的加速,通过改进的检测算法以及跟踪算法降低了误检率,提高了检测效率。11. Beneficial effects: Compared with the prior art, the present invention proposes a fast multi-person heart rate measurement method based on image processing, and realizes the acceleration of multi-person heart rate detection through a multi-thread method and an improved tracking algorithm. The detection algorithm and the tracking algorithm reduce the false detection rate and improve the detection efficiency.

Claims (11)

1.一种基于视频的多人快速心率检测方法,该方法包括如下步骤:1. A video-based multi-person fast heart rate detection method, the method may further comprise the steps: S100、选择工作模式,若是直接工作模式则调用程序自动打开摄像头,若是间接工作模式则调用程序自动读取视频,然后调用人脸检测部分检测视频中的人脸区域;S100, select the working mode, if it is the direct working mode, then call the program to automatically open the camera, if it is the indirect working mode, then call the program to automatically read the video, and then call the face detection part to detect the face area in the video; S200、将检测到的人脸区域位置信息传递给人脸跟踪部分,启动人脸的跟踪,同时获取所跟踪人脸区域灰度均值等图像信息;S200. Transfer the detected face area position information to the face tracking part, start the face tracking, and simultaneously obtain image information such as the average gray value of the tracked face area; S300、将获取的图像信息进行处理并转化为时域信号,然后对时域信号进行滤波、除噪、去趋势化等处理后得到预处理数据并启动线程2,将变换到频域,得到频域数据,根据频域数据计算出心率;S300. Process the obtained image information and convert it into a time-domain signal, and then filter, denoise, detrend, etc. the time-domain signal to obtain pre-processed data and start thread 2, transform it into the frequency domain, and obtain the frequency domain data, and calculate the heart rate according to the frequency domain data; S400、启动线程3,将每个检测对象的编号及其心率值在视频中实时显示。S400, start the thread 3, and display the number of each detected object and its heart rate value in the video in real time. 2.一种基于视频的多人快速心率检测方法,该方法主要应用于日常非接触心率测量系统中,利用网络摄像头、手机摄像头等成像设备对包含人脸的区域拍摄视频,实现自动心率测量;其特征在于,该方法包括视频获取部分、人脸检测部分、人脸跟踪部分、分帧提取ROI部分、时域信号获取部分、时域信号处理部分、心率计算部分、人脸编号以及心率显示部分;所述视频采集部分,用于借助摄像头获取一段包含多个人脸区域的彩色视频图像或者选择本地视频文件;所述人脸检测部分,用于对采集的视频图像进行人脸的检测;所述人脸跟踪部分,用于对检测到的人脸进行跟踪,加快每帧图像的处理速度;所述ROI色调分帧提取部分,用于提取每帧图片的颜色空间由RGB转换为HSV后的H(Hue)分量的值;所述时域信号获取部分,用于从每帧ROI区域划分出脸颊区域,并求取脸颊区域H分量的灰度均值,作为该帧图像的特征值,并生成时域信号X(t);所述时域信号处理部分,用于将获得的时域信号X(t)进行噪声抑制,获得处理后的时域信号所述心率计算部分,用于对时域信号值进行频谱分析并生成频谱图,在频谱图中提取处于指定频带内的峰值频率进行心率计算。2. A video-based rapid heart rate detection method for multiple people. This method is mainly used in daily non-contact heart rate measurement systems. Imaging devices such as web cameras and mobile phone cameras are used to shoot videos in areas containing faces to realize automatic heart rate measurement; It is characterized in that the method includes a video acquisition part, a face detection part, a face tracking part, a frame extraction ROI part, a time domain signal acquisition part, a time domain signal processing part, a heart rate calculation part, a face number and a heart rate display part ; The video collection part is used to obtain a section of color video images that include a plurality of human face regions by means of a camera or select a local video file; the face detection part is used to detect faces on the video images collected; The face tracking part is used to track the detected face to speed up the processing speed of each frame of image; the ROI tone sub-frame extraction part is used to extract the color space of each frame of picture from RGB to H after HSV conversion. The value of the (Hue) component; the time-domain signal acquisition part is used to divide the cheek region from the ROI region of each frame, and obtain the gray mean value of the H component of the cheek region as the feature value of the frame image, and generate the time domain Signal X(t) in the domain; the time domain signal processing part is used to perform noise suppression on the obtained time domain signal X(t) to obtain the processed time domain signal The heart rate calculation part is used for the time domain signal value Perform spectrum analysis and generate a spectrogram, and extract the peak frequency within the specified frequency band from the spectrogram for heart rate calculation. 3.根据权利要求1所述的多人快速心率检测方法,其特征是:所述步骤S200中,具体包括如下步骤:3. The multi-person rapid heart rate detection method according to claim 1, characterized in that: in the step S200, specifically comprising the following steps: S201、根据上一帧图像中该跟踪框与其最邻近跟踪框之间的距离大小以及位置关系设定新的搜索半径;S201. Set a new search radius according to the distance and positional relationship between the tracking frame and its nearest neighbor in the last image frame; S202、根据新的搜索半径在跟踪位置附近采集的样本中提取特征并映射到低维空间,得到待分类区域;S202. Extract features from samples collected near the tracking position according to the new search radius and map them to a low-dimensional space to obtain a region to be classified; S203、用上一帧得到的两个贝叶斯分类器分别对这些待分类区域对进行分类,选出最有可能是目标的矩形框,作为当前跟踪结果;S203. Use the two Bayesian classifiers obtained in the previous frame to classify the regions to be classified respectively, and select the most likely rectangular frame as the target as the current tracking result; 若判断出当前跟踪对象已经移动到整个视频画面中的边缘,则标记跟踪不成功,重启人脸检测模块,并将当前心率检测结果清空,否则执行步骤S204;If it is judged that the current tracking object has moved to the edge of the entire video frame, then the marker tracking is unsuccessful, the face detection module is restarted, and the current heart rate detection result is cleared, otherwise step S204 is performed; S204、以当前帧目标区域为中心,取两组正负样本,分别是:S204. Taking the target area of the current frame as the center, take two groups of positive and negative samples, which are: 1)在目标区域内以4个像素点为半径,取出45个正样本,在目标区域外以8为内半径,12为外半径的圆环中随机选取50个负样本;1) Take 4 pixels as the radius in the target area, take 45 positive samples, and randomly select 50 negative samples in a circle with 8 as the inner radius and 12 as the outer radius outside the target area; 2)在目标区域内以4个像素点为内经6个像素点为外径,取出60个正样本,在目标区域外以12为内半径,16为外半径的圆环中随机选取60个负样本;2) Take 4 pixels as the inner diameter and 6 pixels as the outer diameter in the target area, take out 60 positive samples, and randomly select 60 negative samples from a circle with 12 as the inner radius and 16 as the outer radius outside the target area. sample; S205、计算原图像的积分图与Haar特征提取模板;S205, calculating the integral map of the original image and the Haar feature extraction template; S206、根据积分图和所得的Haar特征提取模板,提取正负样本的特征,更新贝叶斯分离器,获取新的分类器,用该分类器对当前帧图像中目标进行跟踪。S206. According to the integral map and the obtained Haar feature extraction template, extract the features of the positive and negative samples, update the Bayesian separator, obtain a new classifier, and use the classifier to track the target in the current frame image. 4.根据权利要求1所述的多人快速心率检测方法,其特征是:使用网络摄像头或手机摄像头等日常生活中常用的成像设备来实现心率测量。4. The rapid heart rate detection method for multiple people according to claim 1, characterized in that: the heart rate measurement is realized by using imaging devices commonly used in daily life such as webcams or mobile phone cameras. 5.根据权利要求1所述的多人快速心率检测方法,其特征是:有两种工作方式可选,既可以通过摄像头直接检测被测者的心率也可以对本地视频中的人脸区域进行心率检测。5. The multi-person rapid heart rate detection method according to claim 1, characterized in that: there are two optional working modes, which can directly detect the heart rate of the person under test through the camera or can detect the face area in the local video. Heart rate detection. 6.根据权利要求1所述的多人快速心率检测方法,其特征是:所述人脸检测模块通过加载人脸分类器、鼻子分类器、嘴巴分类器三个分类器来降低误检率,通过对待检测图像进行直方图均衡化降低漏检率。6. the many people's fast heart rate detection method according to claim 1 is characterized in that: described human face detection module reduces misdetection rate by loading face classifier, nose classifier, mouth classifier three classifiers, The missed detection rate is reduced by performing histogram equalization on the image to be detected. 7.根据权利要求1所述的多人快速心率检测方法,其特征是:所述人脸跟踪模块是利用本发明改进的压缩跟踪(Compress Tracking)算法,通过两种方法抑制在跟踪过程中跟踪框的漂移,分别是:7. The multiple people's fast heart rate detection method according to claim 1 is characterized in that: the face tracking module utilizes the improved Compression Tracking (Compress Tracking) algorithm of the present invention to suppress tracking in the tracking process by two methods The drift of the frame is: 1)根据当前检测框与其邻近检测框之间存在的8种位置关系,分别计算出每种位置关系下的距离并从中选出最小距离lmin,令搜索半径rsearch=lmin*0.8,避免搜索半径过大造成各跟踪目标之间特征提取的混叠。1) According to the 8 kinds of positional relationships between the current detection frame and its adjacent detection frames, calculate the distance under each positional relationship and select the minimum distance l min from it, and set the search radius r search = l min *0.8, to avoid Too large a search radius results in aliasing of feature extraction between tracked targets. 2)利用集成学习的思想,分别在目标区域内以4个像素点为半径,取出45个正样本,在目标区域外以8为内半径,12为外半径的圆环中随机选取50个负样本;以4个像素点为内径6个像素点为外径,取出60个正样本,在目标区域外以12为内半径,16为外半径的圆环中随机选取60个负样本;分别将这两组正负样本送入分类器,并将这两种情况下分类器分别返回的最大位置的均值作为跟踪目标的位置。2) Using the idea of ensemble learning, 45 positive samples are taken in the target area with a radius of 4 pixels, and 50 negative samples are randomly selected in a circle with an inner radius of 8 and an outer radius of 12 outside the target area. Sample; take 4 pixels as the inner diameter and 6 pixels as the outer diameter, take 60 positive samples, and randomly select 60 negative samples in a circle with 12 as the inner radius and 16 as the outer radius outside the target area; The two groups of positive and negative samples are sent to the classifier, and the mean value of the maximum position returned by the classifier in these two cases is used as the position of the tracking target. 8.根据权利要求1所述的多人快速心率检测方法,其特征是:所述人脸跟踪模块检测到有检测对象中移出检测视野后,清空该对象的心率数据,退出人脸跟踪部分并重启人脸检测部分。8. The multi-person rapid heart rate detection method according to claim 1, characterized in that: the face tracking module detects that the detected object moves out of the detection field of view, clears the heart rate data of the object, exits the face tracking part and Restart the face detection part. 9.根据权利要求1所述的多人快速心率检测方法,其特征是:从人脸区域中划分出脸颊区域,进行心率信号的提取,避免了眼睛的眨动以及被测额头部分毛发的遮挡对ROI灰度值带来的影响,提高了心率测量精度。9. The rapid heart rate detection method for many people according to claim 1, characterized in that: divide the cheek area from the face area, and extract the heart rate signal, avoiding the blinking of the eyes and the blocking of the measured forehead part of the hair The impact on the gray value of ROI improves the accuracy of heart rate measurement. 10.一种基于视频的多人快速心率检测方法,利用多线程对心率检测进行加速,心率计算部分与人脸编号以及心率显示部分分别占用单独的线程,不影响其他模块的工作,实现了多人心率的快速探测。10. A video-based fast heart rate detection method for multiple people, which uses multi-threading to accelerate heart rate detection. The heart rate calculation part, face number and heart rate display part occupy separate threads, without affecting the work of other modules, and realize multiple Rapid detection of human heart rate. 11.根据权利要求1所述的多人快速心率检测方法,其特征是:所述人脸编号以及心率显示部分根据人脸检测部分检测出的人脸的顺序依次在各个人脸跟踪框上标记出其对应的编号,并在视频中按照编号由小到大的顺序依次显示各个被测者对应的心率值。11. The multi-person rapid heart rate detection method according to claim 1, characterized in that: said face number and heart rate display part are marked on each face tracking frame in sequence according to the order of faces detected by the face detection part The corresponding number is displayed, and the heart rate value corresponding to each subject is displayed in sequence in the order of the number from small to large in the video.
CN201710039731.0A 2017-01-19 2017-01-19 Multi-person rapid heart rate detection method based on video Active CN106778695B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710039731.0A CN106778695B (en) 2017-01-19 2017-01-19 Multi-person rapid heart rate detection method based on video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710039731.0A CN106778695B (en) 2017-01-19 2017-01-19 Multi-person rapid heart rate detection method based on video

Publications (2)

Publication Number Publication Date
CN106778695A true CN106778695A (en) 2017-05-31
CN106778695B CN106778695B (en) 2022-01-18

Family

ID=58944534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710039731.0A Active CN106778695B (en) 2017-01-19 2017-01-19 Multi-person rapid heart rate detection method based on video

Country Status (1)

Country Link
CN (1) CN106778695B (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107330945A (en) * 2017-07-05 2017-11-07 合肥工业大学 A kind of examing heartbeat fastly method based on video
CN107334469A (en) * 2017-07-24 2017-11-10 北京理工大学 Non-contact more people's method for measuring heart rate and device based on SVMs
CN107506716A (en) * 2017-08-17 2017-12-22 华东师范大学 A kind of contactless real-time method for measuring heart rate based on video image
CN109009052A (en) * 2018-07-02 2018-12-18 南京工程学院 The embedded heart rate measurement system and its measurement method of view-based access control model
CN109259748A (en) * 2018-08-17 2019-01-25 西安电子科技大学 The system and method for handset processes face video extraction heart rate signal
CN109480808A (en) * 2018-09-27 2019-03-19 深圳市君利信达科技有限公司 A kind of heart rate detection method based on PPG, system, equipment and storage medium
CN109871115A (en) * 2017-12-04 2019-06-11 腾讯科技(深圳)有限公司 Control method, device and computer readable storage medium in multimedia interactive
CN110276271A (en) * 2019-05-30 2019-09-24 福建工程学院 Non-contact Heart Rate Estimation Method Fusion IPPG and Depth Information Anti-Noise Interference
GB2572961A (en) * 2018-04-16 2019-10-23 Clinicco Ltd System for vital sign detection from a video stream
CN110393513A (en) * 2018-04-25 2019-11-01 财团法人交大思源基金会 Non-contact heartbeat measurement system, method and device
CN110866498A (en) * 2019-11-15 2020-03-06 北京华宇信息技术有限公司 Portable heart rate monitoring device and heart rate monitoring method thereof
CN111281367A (en) * 2018-12-10 2020-06-16 绍兴图聚光电科技有限公司 Anti-interference non-contact heart rate detection method based on face video
CN111540169A (en) * 2020-04-24 2020-08-14 重庆城市管理职业学院 A bus danger alarm method and system based on intelligent behavior monitoring
CN112797840A (en) * 2021-01-28 2021-05-14 杭州屹道科技有限公司 Firearm handing-over device and working method thereof
CN112890792A (en) * 2020-11-25 2021-06-04 合肥工业大学 Cloud computing cardiovascular health monitoring system and method based on network camera
CN113627396A (en) * 2021-09-22 2021-11-09 浙江大学 Health monitoring-based skipping rope counting method
CN113876311A (en) * 2021-09-02 2022-01-04 天津大学 Self-adaptively-selected non-contact multi-player heart rate efficient extraction device
CN116999044A (en) * 2023-09-07 2023-11-07 南京云思创智信息科技有限公司 Real-time motion full-connection bidirectional consistent optical flow field heart rate signal extraction method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104138254A (en) * 2013-05-10 2014-11-12 天津点康科技有限公司 Non-contact type automatic heart rate measurement system and measurement method
CN104173051A (en) * 2013-05-28 2014-12-03 天津点康科技有限公司 Automatic noncontact respiration assessing system and assessing method
CN104337509A (en) * 2013-07-26 2015-02-11 塔塔咨询服务有限公司 Measurement of physiological parameter
CN104866805A (en) * 2014-02-20 2015-08-26 腾讯科技(深圳)有限公司 Real-time face tracking method and device
US20160113521A1 (en) * 2014-10-25 2016-04-28 ARC Devices, Ltd Hand-held medical-data capture-device having detection of body core temperature by a microprocessor from a digital infrared sensor having only digital readout ports and having variation amplification and having interoperation with electronic medical record systems
CN105930808A (en) * 2016-04-26 2016-09-07 南京信息工程大学 Moving object tracking method based on vector boosting template updating

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104138254A (en) * 2013-05-10 2014-11-12 天津点康科技有限公司 Non-contact type automatic heart rate measurement system and measurement method
CN104173051A (en) * 2013-05-28 2014-12-03 天津点康科技有限公司 Automatic noncontact respiration assessing system and assessing method
CN104337509A (en) * 2013-07-26 2015-02-11 塔塔咨询服务有限公司 Measurement of physiological parameter
CN104866805A (en) * 2014-02-20 2015-08-26 腾讯科技(深圳)有限公司 Real-time face tracking method and device
US20160113521A1 (en) * 2014-10-25 2016-04-28 ARC Devices, Ltd Hand-held medical-data capture-device having detection of body core temperature by a microprocessor from a digital infrared sensor having only digital readout ports and having variation amplification and having interoperation with electronic medical record systems
CN105930808A (en) * 2016-04-26 2016-09-07 南京信息工程大学 Moving object tracking method based on vector boosting template updating

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
KAIHUA ZHANG ET.AL: ""Fast Compressive Tracking"", 《IEEE》 *

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107330945A (en) * 2017-07-05 2017-11-07 合肥工业大学 A kind of examing heartbeat fastly method based on video
CN107334469A (en) * 2017-07-24 2017-11-10 北京理工大学 Non-contact more people's method for measuring heart rate and device based on SVMs
CN107506716A (en) * 2017-08-17 2017-12-22 华东师范大学 A kind of contactless real-time method for measuring heart rate based on video image
CN109871115A (en) * 2017-12-04 2019-06-11 腾讯科技(深圳)有限公司 Control method, device and computer readable storage medium in multimedia interactive
CN109871115B (en) * 2017-12-04 2021-09-17 腾讯科技(深圳)有限公司 Control method, device and computer readable storage medium in multimedia interaction
GB2572961A (en) * 2018-04-16 2019-10-23 Clinicco Ltd System for vital sign detection from a video stream
CN110393513A (en) * 2018-04-25 2019-11-01 财团法人交大思源基金会 Non-contact heartbeat measurement system, method and device
CN109009052A (en) * 2018-07-02 2018-12-18 南京工程学院 The embedded heart rate measurement system and its measurement method of view-based access control model
CN109259748A (en) * 2018-08-17 2019-01-25 西安电子科技大学 The system and method for handset processes face video extraction heart rate signal
CN109480808A (en) * 2018-09-27 2019-03-19 深圳市君利信达科技有限公司 A kind of heart rate detection method based on PPG, system, equipment and storage medium
CN111281367A (en) * 2018-12-10 2020-06-16 绍兴图聚光电科技有限公司 Anti-interference non-contact heart rate detection method based on face video
CN110276271A (en) * 2019-05-30 2019-09-24 福建工程学院 Non-contact Heart Rate Estimation Method Fusion IPPG and Depth Information Anti-Noise Interference
CN110866498B (en) * 2019-11-15 2021-07-13 北京华宇信息技术有限公司 Heart rate monitoring method
CN110866498A (en) * 2019-11-15 2020-03-06 北京华宇信息技术有限公司 Portable heart rate monitoring device and heart rate monitoring method thereof
CN111540169A (en) * 2020-04-24 2020-08-14 重庆城市管理职业学院 A bus danger alarm method and system based on intelligent behavior monitoring
CN112890792A (en) * 2020-11-25 2021-06-04 合肥工业大学 Cloud computing cardiovascular health monitoring system and method based on network camera
CN112797840A (en) * 2021-01-28 2021-05-14 杭州屹道科技有限公司 Firearm handing-over device and working method thereof
CN112797840B (en) * 2021-01-28 2023-03-10 杭州屹道科技有限公司 Firearm handing-over device and working method thereof
CN113876311A (en) * 2021-09-02 2022-01-04 天津大学 Self-adaptively-selected non-contact multi-player heart rate efficient extraction device
CN113876311B (en) * 2021-09-02 2023-09-15 天津大学 An adaptive selection non-contact multi-player heart rate efficient extraction device
CN113627396A (en) * 2021-09-22 2021-11-09 浙江大学 Health monitoring-based skipping rope counting method
CN113627396B (en) * 2021-09-22 2023-09-05 浙江大学 Rope skipping counting method based on health monitoring
CN116999044A (en) * 2023-09-07 2023-11-07 南京云思创智信息科技有限公司 Real-time motion full-connection bidirectional consistent optical flow field heart rate signal extraction method
CN116999044B (en) * 2023-09-07 2024-04-16 南京云思创智信息科技有限公司 Real-time motion full-connection bidirectional consistent optical flow field heart rate signal extraction method

Also Published As

Publication number Publication date
CN106778695B (en) 2022-01-18

Similar Documents

Publication Publication Date Title
CN106778695B (en) Multi-person rapid heart rate detection method based on video
Li et al. Remote heart rate measurement from face videos under realistic situations
Wang et al. A comparative survey of methods for remote heart rate detection from frontal face videos
Hsu et al. Deep learning with time-frequency representation for pulse estimation from facial videos
US10004410B2 (en) System and methods for measuring physiological parameters
Stricker et al. Non-contact video-based pulse rate measurement on a mobile service robot
Niu et al. Continuous heart rate measurement from face: A robust rppg approach with distribution learning
KR102285999B1 (en) Heart rate estimation based on facial color variance and micro-movement
CN113693573B (en) Video-based non-contact multi-physiological-parameter monitoring system and method
JP6521845B2 (en) Device and method for measuring periodic fluctuation linked to heart beat
KR101738278B1 (en) Emotion recognition method based on image
CN110269600A (en) Based on polynary empirical mode decomposition and the contactless video heart rate detection method for combining blind source separating
WO2021257737A1 (en) Systems and methods for measuring vital signs using multimodal health sensing platforms
CN103908236A (en) Automatic blood pressure measuring system
Yin et al. Heart rate estimation based on face video under unstable illumination
CN111281367A (en) Anti-interference non-contact heart rate detection method based on face video
Huang et al. A motion-robust contactless photoplethysmography using chrominance and adaptive filtering
CN107334469A (en) Non-contact more people's method for measuring heart rate and device based on SVMs
Panigrahi et al. Non-contact HR extraction from different color spaces using RGB camera
Karmuse et al. A robust rppg approach for continuous heart rate measurement based on face
Ben Salah et al. Contactless heart rate estimation from facial video using skin detection and multi-resolution analysis
WO2018192246A1 (en) Contactless emotion detection method based on machine vision
US12414696B2 (en) Multimodal contactless vital sign monitoring
TWI652040B (en) Non-contact living body identification method
Kopeliovich et al. Color signal processing methods for webcam-based heart rate evaluation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170531

RA01 Restoration of patent right
RA01 Restoration of patent right

Former decision: The withdrawal of the patent application shall be deemed to be withdrawn

Former decision publication date: 20200717

RA01 Restoration of patent right
RA01 Restoration of patent right

Former decision: After the publication of the patent application, it shall be deemed to have been withdrawn

Former decision publication date: 20200717

GR01 Patent grant
GR01 Patent grant