Movatterモバイル変換


[0]ホーム

URL:


WO2023061028A1 - Respiratory rate measurement method and apparatus, electronic device, and storage medium - Google Patents

Respiratory rate measurement method and apparatus, electronic device, and storage medium
Download PDF

Info

Publication number
WO2023061028A1
WO2023061028A1PCT/CN2022/112478CN2022112478WWO2023061028A1WO 2023061028 A1WO2023061028 A1WO 2023061028A1CN 2022112478 WCN2022112478 WCN 2022112478WWO 2023061028 A1WO2023061028 A1WO 2023061028A1
Authority
WO
WIPO (PCT)
Prior art keywords
thermal imaging
sequence
preset
time
respiration rate
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.)
Ceased
Application number
PCT/CN2022/112478
Other languages
French (fr)
Chinese (zh)
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.)
Shanghai Sensetime Intelligent Technology Co Ltd
Original Assignee
Shanghai Sensetime Intelligent Technology Co Ltd
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 Shanghai Sensetime Intelligent Technology Co LtdfiledCriticalShanghai Sensetime Intelligent Technology Co Ltd
Publication of WO2023061028A1publicationCriticalpatent/WO2023061028A1/en
Anticipated expirationlegal-statusCritical
Ceasedlegal-statusCriticalCurrent

Links

Images

Classifications

Definitions

Landscapes

Abstract

The present disclosure relates to a respiratory rate measurement method and apparatus, an electronic device, and a storage medium. The method comprises: determining a thermal imaging image sequence comprising a plurality of thermal imaging images used for representing the temperature distribution of a face breathing area, determining a feature value corresponding to at least one thermal imaging image, drawing a temperature change signal according to the position and the feature value of the at least one thermal imaging image in a time sequence, and further determining a target respiratory rate. According to embodiments of the present disclosure, the target respiration rate is determined by recognizing the temperature change of the face breathing area in a period of time, the accuracy of the respiratory rate prediction result is improved, and the non-contact respiration rate measurement is realized.

Description

Translated fromChinese
呼吸率检测方法及装置、电子设备和存储介质Respiration rate detection method and device, electronic equipment and storage medium

本申请要求2021年10月15日提交、申请号为202111204873.0,发明名称为“呼吸率检测方法及装置、电子设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on October 15, 2021, with the application number 202111204873.0, and the title of the invention is "breathing rate detection method and device, electronic equipment and storage medium", the entire content of which is incorporated by reference in this application middle.

技术领域technical field

本公开涉及计算机技术领域,尤其涉及一种呼吸率检测方法及装置、电子设备和存储介质。The present disclosure relates to the technical field of computers, and in particular to a breathing rate detection method and device, electronic equipment and a storage medium.

背景技术Background technique

呼吸率对衡量人的身体健康程度有着相当重要的意义,它是指每分钟呼吸的次数,是临床常规诊断的生理参数。相关技术通过连续采集胸腔信号或人脸图像进行呼吸率检测,前者具有不易操作和佩戴的弊端,后者抗干扰能力差且造价昂贵。The respiratory rate is of great significance to measure the health of a person. It refers to the number of breaths per minute and is a physiological parameter for routine clinical diagnosis. Related technologies detect breathing rate by continuously collecting chest signals or face images. The former has the disadvantages of being difficult to operate and wear, while the latter has poor anti-interference ability and is expensive.

发明内容Contents of the invention

本公开提出了一种呼吸率检测方法及装置、电子设备和存储介质,旨在提高呼吸率检测的准确程度。The disclosure proposes a breathing rate detection method and device, electronic equipment, and a storage medium, aiming at improving the accuracy of breathing rate detection.

根据本公开的第一方面,提供了一种呼吸率检测方法,包括:According to a first aspect of the present disclosure, there is provided a breathing rate detection method, comprising:

确定包括多个热成像图像的热成像图像序列,所述热成像图像表征人脸呼吸区域的温度变化;determining a sequence of thermal imaging images comprising a plurality of thermal imaging images, the thermal imaging images representing temperature changes in the breathing region of the human face;

确定所述热成像图像序列中至少一个所述热成像图像对应的特征值,所述特征值用于表征所述人脸呼吸区域的温度特征;determining a feature value corresponding to at least one of the thermal imaging images in the sequence of thermal imaging images, the feature value being used to characterize the temperature characteristics of the breathing area of the human face;

根据至少一个所述特征值对应热成像图像在时序上的位置,确定至少一个所述热成像图像序列对应的温度变化信号,所述温度变化信号用于表征所述人脸呼吸区域在所述热成像图像序列对应序列时间区间内的温度变化;Determine the temperature change signal corresponding to at least one of the thermal imaging image sequences according to the position of the thermal imaging image corresponding to at least one of the feature values, and the temperature change signal is used to characterize the breathing area of the human face in the thermal imaging The imaging image sequence corresponds to the temperature change within the sequence time interval;

根据所述温度变化信号确定目标呼吸率。A target respiration rate is determined according to the temperature change signal.

在一种可能的实现方式中,所述确定包括多个热成像图像的热成像图像序列包括:In a possible implementation manner, the determining the thermal imaging image sequence including multiple thermal imaging images includes:

在预设时间区间内依次采集多张热成像图像;Acquire multiple thermal imaging images sequentially within a preset time interval;

根据滑动时间窗和至少一个所述热成像图像确定多个热成像图像序列,至少一个所述热成像图像序列中均包括多个连续采集的热成像图像。A plurality of thermal imaging image sequences are determined according to the sliding time window and at least one of the thermal imaging images, and at least one of the thermal imaging image sequences each includes a plurality of continuously collected thermal imaging images.

在一种可能的实现方式中,所述方法还包括:In a possible implementation, the method further includes:

确定至少一个所述热成像图像序列对应的目标呼吸率;determining a target respiration rate corresponding to at least one sequence of thermal imaging images;

根据至少一个所述热成像图像序列在时序上的位置,以及对应的目标呼吸率确定呼吸率曲线,所述呼吸率曲线用于表征预设时间区间内的呼吸率变化。A respiration rate curve is determined according to the time sequence position of at least one thermal imaging image sequence and the corresponding target respiration rate, and the respiration rate curve is used to characterize the respiration rate change within a preset time interval.

在一种可能的实现方式中,所述根据滑动时间窗和至少一个所述热成像图像确定多个热成像图像序列包括:In a possible implementation manner, the determining a plurality of thermal imaging image sequences according to the sliding time window and at least one thermal imaging image includes:

确定所述滑动时间窗的预设长度和预设步长;determining a preset length and a preset step of the sliding time window;

根据所述滑动时间窗的预设长度、预设步长和所述预设时间区间确定多个序列时间区间;determining a plurality of sequence time intervals according to a preset length of the sliding time window, a preset step size, and the preset time interval;

根据至少一个所述序列时间区间和至少一个所述热成像图像确定多个热成像图像序列。A plurality of thermal imaging image sequences are determined according to at least one sequence time interval and at least one thermal imaging image.

在一种可能的实现方式中,所述根据所述滑动时间窗的预设长度、预设步长和所述预设时间区间确定多个序列时间区间包括:In a possible implementation manner, the determining multiple sequence time intervals according to the preset length of the sliding time window, the preset step size, and the preset time interval includes:

根据所述滑动时间窗的预设长度和预设步长,在所述预设时间区间的开始时刻在时序上向后滑动至少一次所述滑动时间窗;According to the preset length and preset step of the sliding time window, slide the sliding time window backward in time sequence at least once at the beginning moment of the preset time interval;

根据每一次滑动结束时滑动时间窗的开始时刻和结束时刻确定序列时间区间。The sequence time interval is determined according to the start time and end time of the sliding time window at the end of each sliding.

在一种可能的实现方式中,所述根据所述滑动时间窗的预设长度和预设步长,在所述预设时间区间的开始时刻在时序上向后滑动至少一次所述滑动时间窗包括:In a possible implementation manner, according to the preset length and preset step of the sliding time window, the sliding time window is slid backward in time sequence at least once at the beginning moment of the preset time interval include:

将所述预设长度作为所述滑动时间窗的固定长度,由所述预设时间区间的开始时刻起,根据所述预设步长在时序上向后滑动整个滑动时间窗。The preset length is used as a fixed length of the sliding time window, and the entire sliding time window is slid backward in time sequence according to the preset step size from the start moment of the preset time interval.

在一种可能的实现方式中,所述根据所述滑动时间窗的预设长度和预设步长,在所述预设时间区间的开始时刻在时序上向后滑动至少一次所述滑动时间窗包括:In a possible implementation manner, according to the preset length and preset step of the sliding time window, the sliding time window is slid backward in time sequence at least once at the beginning moment of the preset time interval include:

将所述预设长度作为初始长度,由所述预设时间区间的开始时刻起,根据所述预设步长在时序上向后滑动所述滑动时间窗的结束时刻。Using the preset length as an initial length, from the start moment of the preset time interval, the end moment of the sliding time window is slid backward in time sequence according to the preset step size.

在一种可能的实现方式中,所述根据至少一个所述序列时间区间和至少一个所述热成像图像确定多个热成像图像序列包括:In a possible implementation manner, the determining multiple thermal imaging image sequences according to at least one sequence time interval and at least one thermal imaging image includes:

对于至少一个所述序列时间区间,根据采集时间在所述序列时间区间内的至少两个热成像图像确定热成像图像序列。For at least one of the sequence time intervals, a thermal imaging image sequence is determined according to at least two thermal imaging images whose acquisition time is within the sequence time interval.

在一种可能的实现方式中,所述确定所述热成像图像序列中至少一个所述热成像图像对应的特征值包括:In a possible implementation manner, the determining the feature value corresponding to at least one thermal imaging image in the thermal imaging image sequence includes:

根据至少一个所述热成像图像中至少一个像素位置的像素值确定特征值。A feature value is determined according to a pixel value of at least one pixel position in at least one of the thermal imaging images.

在一种可能的实现方式中,所述根据至少一个所述特征值对应热成像图像在时序上的位置,确定至少一个所述热成像图像序列对应的温度变化信号包括:In a possible implementation manner, the determining the temperature change signal corresponding to at least one sequence of thermal imaging images according to the time series position of at least one feature value corresponding to the thermal imaging image includes:

根据至少一个所述特征值对应热成像图像在时序上的位置绘制候选变化曲线;Draw a candidate change curve according to the position of at least one of the characteristic values corresponding to the thermal imaging image in time series;

根据预设的呼吸率频带对所述候选变化曲线进行滤波,得到温度变化信号。The candidate change curve is filtered according to the preset respiration rate frequency band to obtain a temperature change signal.

在一种可能的实现方式中,所述根据所述温度变化信号确定目标呼吸率包括:In a possible implementation manner, the determining the target respiration rate according to the temperature change signal includes:

对所述温度变化信号进行傅里叶变换,并确定变换结果中对应幅值最高的频率为目标呼吸率。Perform Fourier transformation on the temperature change signal, and determine the frequency corresponding to the highest amplitude in the transformation result as the target respiration rate.

根据本公开的第二方面,提供了一种呼吸率检测装置,包括:According to a second aspect of the present disclosure, a breathing rate detection device is provided, comprising:

序列确定模块,用于确定包括多个热成像图像的热成像图像序列,所述热成像图像表征人脸呼吸区域的温度变化;A sequence determination module, configured to determine a sequence of thermal imaging images comprising a plurality of thermal imaging images, wherein the thermal imaging images represent temperature changes in the breathing area of the human face;

特征值确定模块,用于确定所述热成像图像序列中至少一个所述热成像图像对应的特征值,所述特征值用于表征所述人脸呼吸区域的温度特征;A feature value determination module, configured to determine a feature value corresponding to at least one of the thermal imaging images in the sequence of thermal imaging images, the feature value being used to characterize the temperature characteristics of the breathing area of the face;

信号确定模块,用于根据至少一个所述特征值对应热成像图像在时序上的位置,确定至少一个所述热成像图像序列对应的温度变化信号,所述温度变化信号用于表征所述人脸呼吸区域在所述热成像图像序列对应序列时间区间内的温度变化;A signal determination module, configured to determine a temperature change signal corresponding to at least one thermal imaging image sequence according to the position of the thermal imaging image corresponding to at least one feature value in time series, and the temperature change signal is used to characterize the human face The temperature change of the breathing area in the corresponding sequence time interval of the thermal imaging image sequence;

呼吸率确定模块,用于根据所述温度变化信号确定目标呼吸率。A respiration rate determination module, configured to determine a target respiration rate according to the temperature change signal.

在一种可能的实现方式中,所述序列确定模块包括:In a possible implementation manner, the sequence determination module includes:

图像采集子模块,用于在预设时间区间内依次采集多张热成像图像;The image acquisition sub-module is used to sequentially acquire multiple thermal imaging images within a preset time interval;

序列确定子模块,用于根据滑动时间窗和至少一个所述热成像图像确定多个热成像图像序列,至少一个所述热成像图像序列中均包括多个连续采集的热成像图像。The sequence determining submodule is configured to determine a plurality of thermal imaging image sequences according to the sliding time window and at least one of the thermal imaging images, and at least one of the thermal imaging image sequences each includes a plurality of continuously collected thermal imaging images.

在一种可能的实现方式中,所述装置还包括:In a possible implementation manner, the device further includes:

对应呼吸率确定模块,用于确定至少一个所述热成像图像序列对应的目标呼吸率;A corresponding respiration rate determination module, configured to determine a target respiration rate corresponding to at least one sequence of thermal imaging images;

呼吸率曲线确定模块,用于根据至少一个所述热成像图像序列在时序上的位置,以及对应的目标呼吸率确定呼吸率曲线,所述呼吸率曲线用于表征预设时间区间内的呼吸率变化。A respiration rate curve determination module, configured to determine a respiration rate curve according to the position of at least one thermal imaging image sequence in time series and the corresponding target respiration rate, and the respiration rate curve is used to characterize the respiration rate within a preset time interval Variety.

在一种可能的实现方式中,所述序列确定子模块包括:In a possible implementation, the sequence determination submodule includes:

时间窗确定单元,用于确定所述滑动时间窗的预设长度和预设步长;a time window determination unit, configured to determine a preset length and a preset step of the sliding time window;

区间确定单元,用于根据所述滑动时间窗的预设长度、预设步长和所述预设时间区间确定多个序列时间区间;an interval determining unit, configured to determine a plurality of sequential time intervals according to the preset length of the sliding time window, the preset step size, and the preset time interval;

序列确定单元,用于根据至少一个所述序列时间区间和至少一个所述热成像图像确定多个热成像图像序列。A sequence determining unit, configured to determine a plurality of thermal imaging image sequences according to at least one sequence time interval and at least one thermal imaging image.

在一种可能的实现方式中,所述区间确定单元包括:In a possible implementation manner, the interval determination unit includes:

滑动子单元,用于根据所述滑动时间窗的预设长度和预设步长,在所述预设时间区间的开始时刻在时序上向后滑动至少一次所述滑动时间窗;a sliding subunit, configured to slide the sliding time window backward in time sequence at least once at the beginning of the preset time interval according to a preset length and a preset step of the sliding time window;

区间确定子单元,用于根据每一次滑动结束时滑动时间窗的开始时刻和结束时刻确定序列时间区间。The interval determination subunit is used to determine the sequence time interval according to the start time and end time of the sliding time window at the end of each sliding.

在一种可能的实现方式中,所述滑动子单元包括:In a possible implementation manner, the sliding subunit includes:

第一滑动子单元,用于将所述预设长度作为所述滑动时间窗的固定长度,由所述预设时间区间的开始时刻起,根据所述预设步长在时序上向后滑动整个滑动时间窗。The first sliding subunit is configured to use the preset length as the fixed length of the sliding time window, and slide the entire Sliding time window.

在一种可能的实现方式中,所述滑动子单元包括:In a possible implementation manner, the sliding subunit includes:

第二滑动子单元,用于将所述预设长度作为初始长度,由所述预设时间区间的开始时刻起,根据所述预设步长在时序上向后滑动所述滑动时间窗的结束时刻。The second sliding subunit is configured to use the preset length as the initial length, and slide the end of the sliding time window backward in time sequence according to the preset step size from the start moment of the preset time interval time.

在一种可能的实现方式中,所述序列确定单元包括:In a possible implementation manner, the sequence determination unit includes:

序列确定子单元,用于对于至少一个所述序列时间区间,根据采集时间在所述序列时间区间内的至少两个热成像图像确定热成像图像序列。The sequence determining subunit is configured to, for at least one of the sequence time intervals, determine a thermal imaging image sequence according to at least two thermal imaging images whose acquisition time is within the sequence time interval.

在一种可能的实现方式中,所述特征值确定模块包括:In a possible implementation manner, the feature value determination module includes:

特征值确定子模块,用于根据至少一个所述热成像图像中至少一个像素位置的像素值确定特征值。The feature value determination sub-module is configured to determine the feature value according to the pixel value of at least one pixel position in the at least one thermal imaging image.

在一种可能的实现方式中,所述信号确定包括:In a possible implementation manner, the signal determination includes:

曲线绘制子模块,用于根据至少一个所述特征值对应热成像图像在时序上的位置绘制候选变化曲线;The curve drawing submodule is used to draw a candidate change curve according to the position of at least one of the characteristic values corresponding to the thermal imaging image in time series;

信号确定子模块,用于根据预设的呼吸率频带对所述候选变化曲线进行滤波,得到温度变化信号。The signal determination sub-module is configured to filter the candidate change curve according to the preset respiration rate frequency band to obtain a temperature change signal.

在一种可能的实现方式中,所述呼吸率确定模块包括:In a possible implementation manner, the respiration rate determination module includes:

呼吸率确定子模块,用于对所述温度变化信号进行傅里叶变换,并确定变换结果中对应幅值最高的频率为目标呼吸率。The respiration rate determination sub-module is used to perform Fourier transformation on the temperature change signal, and determine the frequency corresponding to the highest amplitude in the transformation result as the target respiration rate.

根据本公开的第三方面,提供了一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为调用所述存储器存储的指令,以执行上述方法。According to a third aspect of the present disclosure, there is provided an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to call the instructions stored in the memory to execute the above method.

根据本公开的第四方面,提供了一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。According to a fourth aspect of the present disclosure, there is provided a computer-readable storage medium on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above method is implemented.

根据本公开的第五方面,提供了一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备的处理器中运行时,所述电子设备中的处理器执行用于实现上述方法According to a fifth aspect of the present disclosure, there is provided a computer program product, including computer readable codes, or a non-volatile computer readable storage medium bearing computer readable codes, when the computer readable codes are stored in an electronic device When running in the processor of the electronic device, the processor in the electronic device is used to implement the above method

本公开实施例确定包括多张表征人脸呼吸区域温度分布的热成像图像的热成像图像序列,并确定至少一个热成像图像对应的特征值,根据至少一个热成像图像在时序上的位置和特征值绘制温度变化信号,进一步确定目标呼吸率。本公开实施例通过识别一段时间内人脸呼吸区域的温度变化确定目标呼吸率,提高了呼吸率预测结果的准确程度,并且实现了无接触检测呼吸率。The embodiment of the present disclosure determines a thermal imaging image sequence including multiple thermal imaging images representing the temperature distribution of the human face breathing area, and determines the feature value corresponding to at least one thermal imaging image, according to the position and characteristics of at least one thermal imaging image in time series The value plots the temperature change signal to further determine the target respiration rate. The embodiment of the present disclosure determines the target respiration rate by identifying the temperature change of the respiration area of the face within a period of time, which improves the accuracy of the respiration rate prediction result and realizes non-contact detection of the respiration rate.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开。根据下面参考附图对示例性实施例的详细说明,本公开的其它特征及方面将变得清楚。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the accompanying drawings.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。The accompanying drawings here are incorporated into the description and constitute a part of the present description. These drawings show embodiments consistent with the present disclosure, and are used together with the description to explain the technical solution of the present disclosure.

图1示出根据本公开实施例的一种呼吸率检测方法的应用场景示意图;FIG. 1 shows a schematic diagram of an application scenario of a breathing rate detection method according to an embodiment of the present disclosure;

图2示出根据本公开实施例的一种呼吸率检测方法的流程图;FIG. 2 shows a flowchart of a breathing rate detection method according to an embodiment of the present disclosure;

图3示出根据本公开实施例的一种确定序列时间区间的示意图;Fig. 3 shows a schematic diagram of determining a sequence time interval according to an embodiment of the present disclosure;

图4示出根据本公开实施例的另一种确定序列时间区间的示意图;FIG. 4 shows another schematic diagram of determining a sequence time interval according to an embodiment of the present disclosure;

图5示出根据本公开实施例的人脸呼吸区域的示意图;Fig. 5 shows a schematic diagram of a human face breathing area according to an embodiment of the present disclosure;

图6示出根据本公开实施例的一种确定温度变化信号的示意图;Fig. 6 shows a schematic diagram of determining a temperature change signal according to an embodiment of the present disclosure;

图7示出根据本公开实施例的一种确定目标呼吸率过程的示意图;Fig. 7 shows a schematic diagram of a process of determining a target respiration rate according to an embodiment of the present disclosure;

图8示出根据本公开实施例的一种呼吸率检测装置的示意图;Fig. 8 shows a schematic diagram of a breathing rate detection device according to an embodiment of the present disclosure;

图9示出根据本公开实施例的一种电子设备的框图;Fig. 9 shows a block diagram of an electronic device according to an embodiment of the present disclosure;

图10示出根据本公开实施例的一种电子设备的框图。Fig. 10 shows a block diagram of an electronic device according to an embodiment of the present disclosure.

具体实施方式Detailed ways

以下将参考附图详细说明本公开的各种示例性实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。Various exemplary embodiments, features, and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numbers in the figures indicate functionally identical or similar elements. While various aspects of the embodiments are shown in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.

在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as superior or better than other embodiments.

本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中术语“至少 一种”表示多种中的任意一种或多种中的至少两种的任意组合,例如,包括A、B、C中的至少一种,可以表示包括从A、B和C构成的集合中选择的任意一个或多个元素。The term "and/or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three situations. In addition, the term "at least one" herein means any one of a variety or any combination of at least two of the more, for example, including at least one of A, B, and C, which may mean including from A, Any one or more elements selected from the set formed by B and C.

另外,为了更好地说明本公开,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本公开同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本公开的主旨。In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific implementation manners. It will be understood by those skilled in the art that the present disclosure may be practiced without some of the specific details. In some instances, methods, means, components and circuits that are well known to those skilled in the art have not been described in detail so as to obscure the gist of the present disclosure.

图1示出根据本公开实施例的一种呼吸率检测方法的应用场景示意图。如图1所示,在一种可能的实现方式中,应用本公开实施例的呼吸率检测方法的系统可以包括通过网络连接的第一电子设备10和第二电子设备11。其中,第二电子设备11用于在预设时间区间内多次采集用户人脸的热成像图像,通过网络发送至第一电子设备10。第一电子设备10用于在接收到多张热成像图像后,根据多张热成像图像确定热成像图像序列,并执行本公开实施例的呼吸率检测方法得到热成像图像序列对应的目标呼吸率。进一步地,还可以通过接收到的多张热成像图像确定多个具有时间顺序的热成像图像序列,并根据至少一个热成像图像序列的目标呼吸率绘制得到呼吸率变化曲线,表征被采集热成像图像的用户在预设时间区间内的呼吸率变化。Fig. 1 shows a schematic diagram of an application scenario of a breathing rate detection method according to an embodiment of the present disclosure. As shown in FIG. 1 , in a possible implementation manner, a system applying the breathing rate detection method of the embodiment of the present disclosure may include a firstelectronic device 10 and a secondelectronic device 11 connected through a network. Wherein, the secondelectronic device 11 is used for collecting thermal imaging images of the user's face multiple times within a preset time interval, and sending them to the firstelectronic device 10 through the network. The firstelectronic device 10 is configured to, after receiving multiple thermal imaging images, determine the thermal imaging image sequence according to the multiple thermal imaging images, and execute the respiration rate detection method of the embodiment of the present disclosure to obtain the target respiration rate corresponding to the thermal imaging image sequence . Further, it is also possible to determine a plurality of time-ordered thermal imaging image sequences through the received multiple thermal imaging images, and draw a respiratory rate change curve according to the target respiration rate of at least one thermal imaging image sequence, which characterizes the collected thermal imaging Changes in the user's respiration rate during a preset time interval of the image.

可选地,应用本公开实施例的呼吸率检测方法的系统还可以仅包括第二电子设备11,即由第二电子设备11在预设时间区间内多次采集用户人脸呼吸区域的热成像图像,并直接基于该热成像图像序列执行本公开实施例的呼吸率检测方法,确定热成像图像序列并得到对应的目标呼吸率。进一步地,还可以通过多个热成像图像序列的目标呼吸率,确定表征被采集热成像图像的用户在预设时间区间内的呼吸率变化的呼吸率曲线。可选地,人脸呼吸区域为人脸部因用户呼吸温度发生较大变化的区域,例如可以是口鼻区域。Optionally, the system applying the respiration rate detection method of the embodiment of the present disclosure may also only include the secondelectronic device 11, that is, the secondelectronic device 11 collects thermal images of the breathing area of the user's face multiple times within a preset time interval images, and directly execute the respiration rate detection method of the embodiment of the present disclosure based on the thermal imaging image sequence, determine the thermal imaging image sequence and obtain the corresponding target respiration rate. Further, the respiration rate curve representing the change of the respiration rate of the user whose thermal imaging images are collected within a preset time interval may also be determined through the target respiration rate of multiple thermal imaging image sequences. Optionally, the breathing area of the human face is an area where the temperature of the human face changes greatly due to the user's breathing, for example, the mouth and nose area.

在该呼吸率检测方法通过第一电子设备10和第二电子设备11组成的系统实现时,第一电子设备10可以为终端设备或服务器等电子设备。其中,终端设备可以为用户设备(User Equipment,UE)、移动设备、用户终端、终端、蜂窝电话、无绳电话、个人数字助理(Personal Digital Assistant,PDA)、手持设备、计算设备、车载设备、可穿戴设备等能够进行图像以及信号处理的设备。服务器可以为单独的服务器或多个服务器组成的服务器集群。第二电子设备11可以为能够采集热成像图像的图像采集设备,或者具有热成像图像采集功能的终端设备。本公开实施例的呼吸率检测方法可以通过第一电子设备10中的处理器调用存储器中存储的计算机可读指令的方式来实现。When the respiration rate detection method is implemented by a system composed of the firstelectronic device 10 and the secondelectronic device 11, the firstelectronic device 10 may be an electronic device such as a terminal device or a server. Wherein, the terminal device may be user equipment (User Equipment, UE), mobile device, user terminal, terminal, cellular phone, cordless phone, personal digital assistant (Personal Digital Assistant, PDA), handheld device, computing device, vehicle-mounted device, Wearable devices and other devices capable of image and signal processing. The server can be a single server or a server cluster composed of multiple servers. The secondelectronic device 11 may be an image acquisition device capable of acquiring thermal imaging images, or a terminal device having a thermal imaging image acquisition function. The respiration rate detection method in the embodiment of the present disclosure can be implemented by the processor in the firstelectronic device 10 calling computer-readable instructions stored in the memory.

在该呼吸率检测方法仅通过第二电子设备11实现时,第二电子设备11可以为具有热成像图像采集功能、且能够进行图像处理和信号处理的终端设备。可选地,可以为用户设备(User Equipment,UE)、移动设备、用户终端、终端、蜂窝电话、无绳电话、个人数字助理(Personal Digital Assistant,PDA)、手持设备、计算设备、车载设备、可穿戴设备等设备。When the respiration rate detection method is implemented only by the secondelectronic device 11, the secondelectronic device 11 may be a terminal device having a thermal imaging image acquisition function and capable of image processing and signal processing. Optionally, it may be user equipment (User Equipment, UE), mobile device, user terminal, terminal, cellular phone, cordless phone, personal digital assistant (Personal Digital Assistant, PDA), handheld device, computing device, vehicle-mounted device, Wearable equipment and other equipment.

本公开实施例可以应用于任意通过采集人体热成像图像检测呼吸率的应用场景。例如,可以通过具有图像处理和信号处理功能的热成像仪采集用户人脸呼吸区域的图像后,将执行该呼吸率检测方法得到的目标呼吸率,或者呼吸率曲线显示给用户查看。或者,还可以通过热成像仪采集用户人脸呼吸区域的图像后,通过有线或无线的方式发送至其他电子设备执行呼吸率检测后返回目标呼吸率,或者呼吸率曲线,由该热成像仪显示接收到的目标呼吸率,或者呼吸率曲线给用户查看。Embodiments of the present disclosure may be applied to any application scenario in which breathing rate is detected by collecting thermal imaging images of a human body. For example, after the image of the breathing area of the user's face is collected by a thermal imager with image processing and signal processing functions, the target breathing rate obtained by executing the breathing rate detection method, or the breathing rate curve is displayed to the user for viewing. Alternatively, the image of the breathing area of the user's face can also be collected by a thermal imager, and then sent to other electronic devices in a wired or wireless manner to perform respiration rate detection and return to the target respiration rate, or the respiration rate curve, which is displayed by the thermal imager The received target respiration rate, or the respiration rate curve is displayed to the user.

图2示出根据本公开实施例的一种呼吸率检测方法的流程图。如图2所示,在一种可能的实现方式 中,本公开实施例的呼吸率检测方法包括以下步骤:Fig. 2 shows a flowchart of a breathing rate detection method according to an embodiment of the present disclosure. As shown in Figure 2, in a possible implementation, the respiration rate detection method of the embodiment of the present disclosure includes the following steps:

步骤S10、确定包括多个热成像图像的热成像图像序列。Step S10, determining a sequence of thermal imaging images including a plurality of thermal imaging images.

在一种可能的实现方式中,热成像图像序列中包括多个连续采集人脸呼吸区域得到的热成像图像,用于表征人脸呼吸区域的温度变化。可选地,可以直接根据在预设设计区间内采集的多张热成像图像确定热成像图像序列。例如,可以通过热成像仪在预设的时间区间内多次拍摄用户的人脸,将得到多个热成像图像按时间顺序排列得到热成像图像序列,其中至少一个热成像图像分别用于表征在采集时刻用户人脸口鼻区域的温度分布。In a possible implementation manner, the sequence of thermal imaging images includes a plurality of thermal imaging images obtained by continuously collecting the breathing area of the face, which are used to characterize the temperature change of the breathing area of the face. Optionally, the sequence of thermal imaging images may be directly determined according to multiple thermal imaging images collected within the preset design interval. For example, the user's face can be photographed multiple times by a thermal imager within a preset time interval, and the multiple thermal imaging images obtained are arranged in chronological order to obtain a sequence of thermal imaging images, wherein at least one thermal imaging image is used to represent the The temperature distribution of the user's face, mouth and nose area at the time of collection.

可选地,本公开实施例还可以在预设时间区间内依次采集多张热成像图像,再根据滑动时间窗和至少一个热成像图像确定多个热成像图像序列,至少一个热成像图像序列中均包括多个连续采集的热成像图像。以进一步对其中至少一个热成像图像序列进行呼吸率检测,得到对应的目标呼吸率。Optionally, the embodiments of the present disclosure can also sequentially collect multiple thermal imaging images within a preset time interval, and then determine multiple thermal imaging image sequences according to the sliding time window and at least one thermal imaging image, and at least one thermal imaging image sequence Both consist of multiple consecutively acquired thermal imaging images. The respiration rate is further detected on at least one of the thermal imaging image sequences to obtain a corresponding target respiration rate.

在一种可能的实现方式中,在根据滑动时间窗和采集到的至少一个热成像图像确定多个热成像图像序列的情况下,得到的至少一个热成像图像序列中分别包括预设时间区间的一个连续的子区间内采集的多张热成像图像。对于至少一个热成像图像序列,其中包括的多张热成像图像的顺序为图像采集的时间顺序。可选地,滑动时间窗具有预设长度和预设步长,该预设长度表征滑动时间窗的预设时间长度,预设步长表征滑动时间窗每一次滑动过程移动的时间长度。In a possible implementation manner, in the case where multiple thermal imaging image sequences are determined according to the sliding time window and at least one collected thermal imaging image, the obtained at least one thermal imaging image sequence respectively includes Multiple thermal imaging images collected in a continuous sub-interval. For at least one sequence of thermal imaging images, the sequence of the multiple thermal imaging images included therein is the time sequence of image acquisition. Optionally, the sliding time window has a preset length and a preset step, the preset length represents the preset time length of the sliding time window, and the preset step represents the time length of each sliding process of the sliding time window.

可选地,根据滑动时间窗确定的多个热成像图像序列在时间上的顺序根据滑动时间窗的滑动方向确定。例如,当滑动时间窗的滑动方向为由预设时间区间的开始时刻向结束时刻滑动时,每次滑动后确定热成像图像序列在时间上的位置为上一次滑动后确定的热成像图像序列之后。当滑动时间窗的滑动方向为由预设时间区间的结束时刻向开始时刻滑动时,每次滑动后确定热成像图像序列在时间上的位置为上一次滑动后确定的热成像图像序列之前。Optionally, the sequence in time of the plurality of thermal imaging image sequences determined according to the sliding time window is determined according to the sliding direction of the sliding time window. For example, when the sliding direction of the sliding time window is to slide from the start moment to the end moment of the preset time interval, the position of the thermal imaging image sequence determined after each sliding is after the thermal imaging image sequence determined after the last sliding . When the sliding direction of the sliding time window is to slide from the end moment of the preset time interval to the beginning moment, the position of the thermal imaging image sequence after each sliding is determined to be before the thermal imaging image sequence determined after the last sliding.

进一步地,根据滑动时间窗和至少一个热成像图像确定热成像图像序列的过程包括:确定滑动时间窗的预设长度和预设步长。根据滑动时间窗的预设长度、预设步长和预设时间区间确定多个序列时间区间。根据至少一个序列时间区间和至少一个热成像图像确定多个热成像图像序列。Further, the process of determining the thermal imaging image sequence according to the sliding time window and at least one thermal imaging image includes: determining a preset length and a preset step of the sliding time window. A plurality of sequence time intervals are determined according to the preset length, the preset step size and the preset time interval of the sliding time window. A plurality of thermal imaging image sequences are determined according to at least one sequence time interval and at least one thermal imaging image.

可选地,序列时间区间为预设时间区间的子区间。确定序列时间区间的方式可以为根据滑动时间窗的预设长度和预设步长,在预设时间区间的开始时刻在时序上向后滑动至少一次滑动时间窗,根据每一次滑动结束时滑动时间窗的开始时刻和结束时刻确定序列时间区间。其中,面对不同的情况,可以通过不同的滑动方式滑动该滑动时间窗,以确定符合需求的序列时间区间。Optionally, the sequence time interval is a sub-interval of the preset time interval. The way to determine the time interval of the sequence can be to slide the time window backward at least once in the time series at the beginning of the preset time interval according to the preset length and the preset step of the sliding time window, and to slide the time window at least once according to the sliding time at the end of each sliding The start time and end time of the window determine the sequence time interval. Among them, in the face of different situations, the sliding time window can be slid through different sliding methods to determine the sequence time interval that meets the requirements.

在一种可能的实现方式中,可以通过滑动时间窗确定多个与预设长度时间长度相同的序列时间区间。例如将预设长度作为滑动时间窗的固定长度,由预设时间区间的开始时刻起,根据预设步长在时序上向后滑动整个滑动时间窗。也就是说,滑动时间窗在每一次滑动时,将开始时刻和结束时刻在时序上均向后移动一个预设步长。例如,在当前滑动时间窗对应的序列时间区间为[10:00,10:10],预设步长为1时,滑动该滑动时间窗得到的下一个序列时间区间为[10:01,10:11]。In a possible implementation manner, a plurality of sequence time intervals having the same time length as the preset length may be determined through a sliding time window. For example, the preset length is used as the fixed length of the sliding time window, and the entire sliding time window is slid backward in time sequence according to the preset step size from the start moment of the preset time interval. That is to say, each time the sliding time window slides, both the start time and the end time are moved backward in time series by a preset step. For example, when the sequence time interval corresponding to the current sliding time window is [10:00,10:10] and the preset step size is 1, the next sequence time interval obtained by sliding the sliding time window is [10:01,10 :11].

在一种可能的实现方式中,还可以通过滑动时间窗确定多个依次增加时间长度的序列时间区间。例如将预设长度作为滑动时间窗的固定长度,由预设时间区间的开始时刻起,根据预设步长在时序上向后滑动滑动时间窗的结束时刻。也就是说,滑动时间窗在每一次滑动时,将结束时刻在时序上向后移动一个预设步长。例如,在当前滑动时间窗对应的序列时间区间为[10:00,10:10],预设步长为1时, 滑动该滑动时间窗得到的下一个序列时间区间为[10:00,10:11]。In a possible implementation manner, multiple sequential time intervals with successively increasing time lengths may also be determined through a sliding time window. For example, the preset length is used as the fixed length of the sliding time window, and the end time of the sliding time window is slid backward in time sequence according to the preset step length from the start time of the preset time interval. That is to say, each time the sliding time window slides, the end moment is moved backward in time series by a preset step. For example, when the sequence time interval corresponding to the current sliding time window is [10:00,10:10] and the preset step size is 1, the next sequence time interval obtained by sliding the sliding time window is [10:00,10 :11].

可选地,还可以同时应用上述两种滑动时间窗的方式确定序列时间区间。例如先根据预设长度的滑动时间窗由预设时间区间的开始时刻起向后滑动,每一次向后滑动时将滑动时间窗的结束时刻向后移动一个预设步长。在滑动时间窗的长度增加到符合要求时,每一次向后滑动时将滑动时间窗的开始时刻和结束时刻同时向后移动一个预设步长。或者,还可以根据预设长度的滑动时间窗由预设时间区间开始时刻起向后滑动,每一次向后滑动时将滑动时间窗的开始时刻和结束时刻同时向后移动一个预设步长,直到确定的序列时间区间数量满足要求时,固定滑动时间窗的开始时刻,每一次向后滑动时将滑动时间窗的结束时刻向后移动一个预设步长。Optionally, the sequence time interval can also be determined by applying the above two sliding time window manners at the same time. For example, first slide backwards from the start time of the preset time interval according to the sliding time window of the preset length, and move the end time of the sliding time window backward by a preset step every time when sliding backward. When the length of the sliding time window is increased to meet the requirements, the start time and the end time of the sliding time window are simultaneously moved backward by a preset step every time the sliding time window is slid backward. Alternatively, it is also possible to slide backwards from the start moment of the preset time interval according to the sliding time window of the preset length, and move the start moment and the end moment of the sliding time window backward by a preset step at the same time each time the slide is backward, Until the number of determined sequence time intervals meets the requirements, the start time of the sliding time window is fixed, and the end time of the sliding time window is moved backward by a preset step every time it slides backward.

进一步地,在根据滑动时间窗确定多个序列时间区间后,根据至少一个序列时间区间和至少一个热成像图像确定多个热成像图像序列。例如,对于至少一个序列时间区间,可以根据采集时间在序列时间区间内的至少两个热成像图像确定热成像图像序列。采集时间为获取热成像图像的时间。Further, after the multiple sequence time intervals are determined according to the sliding time window, multiple thermal imaging image sequences are determined according to at least one sequence time interval and at least one thermal imaging image. For example, for at least one sequence time interval, a thermal imaging image sequence may be determined according to at least two thermal imaging images whose acquisition time is within the sequence time interval. Acquisition time is the time when the thermal imaging image is acquired.

图3示出根据本公开实施例的一种确定序列时间区间的示意图。如图3所示,在一种可能的实现方式中,在预设时间区间内采集多张热成像图像30。根据预设长度的滑动时间窗由预设时间区间开始时刻起向后滑动,每一次向后滑动时将滑动时间窗的开始时刻和结束时刻同时向后移动一个预设步长,得到预设时间区间的多个子区间作为序列时间区间,至少一个序列时间区间在时间顺序根据滑动时间窗滑动的方向确定,依次为序列时间区间1、序列时间区间2和序列时间区间3。进一步地,对于上述至少一个序列时间区间,根据采集时间在该序列时间区间中的多个热成像图像确定对应的热成像图像序列。Fig. 3 shows a schematic diagram of determining a sequence time interval according to an embodiment of the present disclosure. As shown in FIG. 3 , in a possible implementation manner, multiplethermal imaging images 30 are collected within a preset time interval. According to the sliding time window of the preset length, it slides backwards from the start time of the preset time interval, and each time it slides backward, the start time and the end time of the sliding time window are moved backward by a preset step at the same time to obtain the preset time Multiple subintervals of the interval are used as sequence time intervals, and at least one sequence time interval is determined in time order according to the sliding direction of the sliding time window, which aresequence time interval 1, sequence time interval 2, and sequence time interval 3. Further, for the aforementioned at least one sequence time interval, a corresponding sequence of thermal imaging images is determined according to a plurality of thermal imaging images whose acquisition time is within the sequence time interval.

图4示出根据本公开实施例的另一种确定序列时间区间的示意图。如图4所述,在一种可能的实现方式中,在预设时间区间内采集多张热成像图像40。根据预设长度的滑动时间窗由预设时间区间开始时刻起向后滑动,每一次向后滑动时将滑动时间窗的结束时刻向后移动一个预设步长,得到预设时间区间的多个子区间作为序列时间区间,至少一个序列时间区间在时间顺序根据滑动时间窗滑动的方向确定,依次为序列时间区间1、序列时间区间2和序列时间区间3。进一步地,对于上述至少一个序列时间区间,根据采集时间在该序列时间区间中的多个热成像图像确定对应的热成像图像序列。Fig. 4 shows another schematic diagram of determining a sequence time interval according to an embodiment of the present disclosure. As shown in FIG. 4 , in a possible implementation manner, multiplethermal imaging images 40 are collected within a preset time interval. According to the sliding time window of the preset length, it slides backwards from the start moment of the preset time interval, and moves the end moment of the sliding time window backward by a preset step every time it slides backwards, so as to obtain multiple subsections of the preset time interval Intervals are sequence time intervals, and at least one sequence time interval is determined in time order according to the sliding direction of the sliding time window, which aresequence time interval 1, sequence time interval 2, and sequence time interval 3. Further, for the aforementioned at least one sequence time interval, a corresponding sequence of thermal imaging images is determined according to a plurality of thermal imaging images whose acquisition time is within the sequence time interval.

本公开实施例通过滑动时间窗滑动的方式,能够在较短预设时间区间内确定多个热成像图像序列,且由于时序位置相邻的热成像图像序列中的部分热成像图像相同,能够在进一步处理后根据至少一个热成像图像序列的目标呼吸率得到一个平稳且准确的呼吸率曲线。In the embodiment of the present disclosure, multiple thermal imaging image sequences can be determined within a short preset time interval by sliding the sliding time window, and since some thermal imaging images in the thermal imaging image sequences with adjacent temporal positions are the same, it is possible to After further processing, a smooth and accurate respiration rate curve is obtained according to the target respiration rate of at least one thermal imaging image sequence.

步骤S20、确定所述热成像图像序列中至少一个所述热成像图像对应的特征值。Step S20, determining a feature value corresponding to at least one of the thermal imaging images in the sequence of thermal imaging images.

在一种可能的实现方式中,由于人脸呼吸区域的温度会随着呼气和吸气发生变化,在呼气时温度升高,吸气时温度降低。因此,每一次呼吸过程都会导致人脸呼吸区域的温度发生变化,可以根据人脸呼吸区域的温度变化频率确定呼吸频率。至少一个热成像图像序列中包括一段连续时间内采集的多张人脸呼吸区域的热成像图像,可以直接根据热成像图像序列中包括的多张热成像图像的温度变化确定对应的目标呼吸率。可选地,人脸呼吸区域为人脸部会随呼吸发生较大温度变化的区域,例如鼻子与嘴唇之间的口鼻呼吸区域。In a possible implementation manner, since the temperature of the breathing area of the human face changes with exhalation and inhalation, the temperature increases during exhalation and decreases during inhalation. Therefore, each breathing process will cause the temperature of the breathing area of the face to change, and the breathing frequency can be determined according to the temperature change frequency of the breathing area of the face. At least one thermal imaging image sequence includes a plurality of thermal imaging images of the breathing area of the face collected in a continuous period of time, and the corresponding target respiration rate may be directly determined according to temperature changes of the multiple thermal imaging images included in the thermal imaging image sequence. Optionally, the breathing area of the human face is an area where the temperature of the human face changes greatly with breathing, for example, the breathing area of the mouth and nose between the nose and lips.

图5示出根据本公开实施例的人脸呼吸区域的示意图。如图5所示,由于人脸中鼻子和嘴唇之间的区域通常会随着呼吸发生较大的温差变化,因此可以确定这一区域为人脸呼吸区域51。可选地,在对 用户人脸进行热成像采集时,将获取到的人脸热成像图像50中的人脸呼吸区域51的作为热成像图像。Fig. 5 shows a schematic diagram of a human face breathing area according to an embodiment of the present disclosure. As shown in FIG. 5 , since the area between the nose and the lips in the human face usually has a large temperature difference change with breathing, this area can be determined as the human face breathing area 51 . Optionally, when thermal imaging is performed on the user's face, the breathing region 51 of the human face in the acquiredthermal imaging image 50 of the human face is used as the thermal imaging image.

在一种可能的实现方式中,可以先确定热成像图像序列中至少一个热成像图像对应的特征值,再根据至少一个特征值的变化情况确定热成像图像序列对应的目标呼吸率。其中,特征值用于表征对应热成像图像中人脸呼吸区域的温度特征。In a possible implementation manner, the feature value corresponding to at least one thermal imaging image in the thermal imaging image sequence may be determined first, and then the target respiration rate corresponding to the thermal imaging image sequence is determined according to a change of the at least one feature value. Among them, the feature value is used to characterize the temperature feature of the breathing area of the face in the corresponding thermal imaging image.

可选地,特征值可以根据热成像图像中至少一个像素位置的像素值直接确定,即根据人脸呼吸区域的像素值确定特征值。或者,还可以根据热成像图像中至少一个像素位置的像素值表征的温度值确定。即确定至少一个热成像图像对应的特征值的过程为确定至少一个热成像图像中至少一个像素位置的像素值确定特征值。可选地,该特征值可以为任意表征人脸呼吸区域温度特征的值,例如至少一个像素值的均值、方差、中位数等。Optionally, the feature value may be directly determined according to the pixel value of at least one pixel position in the thermal imaging image, that is, the feature value is determined according to the pixel value of the breathing area of the human face. Alternatively, it may also be determined according to a temperature value represented by a pixel value of at least one pixel position in the thermal imaging image. That is, the process of determining the feature value corresponding to at least one thermal imaging image is to determine the feature value for determining the pixel value of at least one pixel position in the at least one thermal imaging image. Optionally, the feature value may be any value that characterizes the temperature feature of the breathing area of the human face, such as the mean, variance, median, etc. of at least one pixel value.

步骤S30、根据至少一个所述特征值对应热成像图像在时序上的位置,确定至少一个所述热成像图像序列对应的温度变化信号。Step S30 : Determine a temperature change signal corresponding to at least one sequence of thermal imaging images according to the time series position of at least one feature value corresponding to the thermal imaging image.

在一种可能的实现方式中,为了更精确的根据至少一个热成像图像序列对应的温度变化情况确定呼吸率,可以根据热成像图像序列中至少一个热成像图像的特征值确定热成像图像序列的温度变化信号,基于温度变化信号确定对应的呼吸率。例如,可以根据至少一个特征值对应热成像图像在时序上的位置,确定至少一个热成像图像序列对应的温度变化信号,温度变化信号用于表征人脸呼吸区域在热成像图像序列对应序列时间区间内的温度变化。进一步地,可以根据至少一个温度变化曲线确定目标呼吸率。其中,温度变化信号可以为通过曲线表征的连续信号,或者多个离散的点表征的离散信号。In a possible implementation manner, in order to more accurately determine the respiration rate according to the temperature change corresponding to at least one thermal imaging image sequence, the temperature of the thermal imaging image sequence may be determined according to the characteristic value of at least one thermal imaging image sequence. a temperature change signal, and determine a corresponding respiration rate based on the temperature change signal. For example, the temperature change signal corresponding to at least one thermal imaging image sequence can be determined according to the position of at least one eigenvalue corresponding to the thermal imaging image in time series, and the temperature change signal is used to represent the breathing area of the face in the sequence time interval corresponding to the thermal imaging image sequence temperature changes within. Further, the target respiration rate can be determined according to at least one temperature change curve. Wherein, the temperature change signal may be a continuous signal represented by a curve, or a discrete signal represented by a plurality of discrete points.

可选地,在计算得到热成像图像序列中至少一个热成像图像的特征值后,可以根据至少一个热成像图像的时序位置,即在热成像图像序列中的排列位置和特征值确定温度变化曲线作为温度变化信号。其中,该温度变化曲线的横坐标表征时间,纵坐标表征特征值,曲线上任意一点用于表征在该时间上的特征值。Optionally, after calculating the characteristic value of at least one thermal imaging image in the thermal imaging image sequence, the temperature change curve can be determined according to the time series position of at least one thermal imaging image, that is, the arrangement position and characteristic value in the thermal imaging image sequence as a temperature change signal. Wherein, the abscissa of the temperature change curve represents the time, the ordinate represents the characteristic value, and any point on the curve is used to represent the characteristic value at the time.

为降低噪声影响温度变化信号的准确程度的可能性,在一种可能的实现方式中,确定温度变化曲线的方式可以为根据至少一个特征值对应热成像图像在时序上的位置绘制候选变化曲线,再根据预设的呼吸率频带对候选变化曲线进行滤波,得到温度变化信号。其中,该呼吸率频带根据人体的呼吸率范围预先确定。也就是说,先根据至少一个特征值以及至少一个特征值的时序位置生成一个候选变化曲线,再基于人体可能的呼吸率范围对候选变化曲线进行滤波,去除噪音得到准确的表征述人脸呼吸区域在对应序列时间区间内的温度变化情况的温度变化曲线。可选地,由于人体的呼吸率通常为10-30次每分钟,可以根据该呼吸率范围确定对应的呼吸率频带为1/6-1/2HZ。In order to reduce the possibility of noise affecting the accuracy of the temperature change signal, in a possible implementation, the method of determining the temperature change curve may be to draw a candidate change curve according to the position of the thermal imaging image corresponding to at least one characteristic value in time series, The candidate change curve is then filtered according to the preset respiration rate frequency band to obtain a temperature change signal. Wherein, the respiration rate frequency band is predetermined according to the respiration rate range of the human body. That is to say, first generate a candidate change curve based on at least one eigenvalue and the time-series position of at least one eigenvalue, and then filter the candidate change curve based on the possible breathing rate range of the human body to remove noise to obtain an accurate representation of the breathing area of the face The temperature change curve of the temperature change in the corresponding sequence time interval. Optionally, since the breathing rate of the human body is generally 10-30 breaths per minute, it can be determined according to the breathing rate range that the corresponding breathing rate frequency band is 1/6-1/2HZ.

图6示出根据本公开实施例的一种确定温度变化信号的示意图。如图6所示,对于任意热成像图像序列,可以根据其中包括的多个热成像图像在时序上的位置以及对应的特征值绘制得到候选变化曲线60。其中,候选变化曲线60中掺杂了部分噪声分量,导致曲线出现异常波动。进一步地,基于人体呼吸率预先确定的呼吸率频带对该候选变化曲线60进行滤波,去除掉其中干扰结果的噪声分量,得到平滑的温度变化曲线61作为温度变化信号。该温度变化曲线61能够准确的表征人脸呼吸区域在当前热成像图像序列对应的序列时间区间内的温度变化。Fig. 6 shows a schematic diagram of determining a temperature change signal according to an embodiment of the present disclosure. As shown in FIG. 6 , for any sequence of thermal imaging images, acandidate change curve 60 may be drawn according to the temporal positions of the multiple thermal imaging images included therein and the corresponding feature values. Wherein, thecandidate variation curve 60 is doped with some noise components, which causes the curve to fluctuate abnormally. Further, thecandidate change curve 60 is filtered based on the predetermined respiration rate frequency band of the human body respiration rate to remove noise components that interfere with the result, and obtain a smoothtemperature change curve 61 as a temperature change signal. Thetemperature change curve 61 can accurately characterize the temperature change of the breathing area of the human face in the sequence time interval corresponding to the current thermal imaging image sequence.

步骤S40、根据所述温度变化信号确定目标呼吸率。Step S40, determining the target respiration rate according to the temperature change signal.

在一种可能的实现方式中,在确定热成像图像序列对应的温度变化信号后,根据温度变化信号确 定对应的目标呼吸率。目标呼吸率表征热成像图像序列对应人体的呼吸率,即被采集人脸热成像图像的用户的呼吸率。可选地,根据温度变化信号确定目标呼吸率的方式可以为对温度变化信号进行傅里叶变换,并确定变换结果中对应幅值最高的频率为目标呼吸率。即将温度变化信号由时域转换为频域,确定其中幅值最高的分量为目标呼吸率,其他分量为噪声分量。In a possible implementation manner, after the temperature change signal corresponding to the thermal imaging image sequence is determined, the corresponding target respiration rate is determined according to the temperature change signal. The target respiration rate represents the respiration rate of the human body corresponding to the thermal imaging image sequence, that is, the respiration rate of the user whose face thermal imaging image is collected. Optionally, the manner of determining the target respiration rate according to the temperature change signal may be to perform Fourier transform on the temperature change signal, and determine the frequency corresponding to the highest amplitude in the transformation result as the target respiration rate. That is, the temperature change signal is converted from the time domain to the frequency domain, and the component with the highest amplitude is determined as the target respiration rate, and the other components are noise components.

图7示出根据本公开实施例的一种确定目标呼吸率过程的示意图。如图7所示,本公开实施例确定目标呼吸率的过程为对于热成像图像序列70中包括的至少一个热成像图像71,分别确定其中表征用户呼吸位置的人脸呼吸区域72。通过提取人脸呼吸区域72中至少一个像素位置的像素值,计算至少一个热成像图像71的特征值73。Fig. 7 shows a schematic diagram of a process of determining a target respiration rate according to an embodiment of the present disclosure. As shown in FIG. 7 , the process of determining the target respiration rate in the embodiment of the present disclosure is to respectively determine theface respiration area 72 representing the breathing position of the user for at least onethermal imaging image 71 included in the thermalimaging image sequence 70 . Thefeature value 73 of at least onethermal imaging image 71 is calculated by extracting the pixel value of at least one pixel position in thebreathing region 72 of the human face.

进一步地,根据至少一个热成像图像71在热成像图像序列70中的排列顺序,以及其对应的特征值73绘制候选变化曲线74。为保证候选变化曲线74的真实性以及准确性,根据人体可能的呼吸率范围确定呼吸率频带,对候选变化曲线74滤波后去除其他噪声得到准确性较高的温度变化曲线75。可选地,可以通过傅里叶变换的方式将温度变化曲线75由时域转换至频域得到变换结果76。其中,变化结果76包括多个组成温度变化曲线76的分量,确定其中幅值最高的分量对应的频率为目标呼吸率77,即采集热成像图像51的用户的呼吸率。Further, acandidate variation curve 74 is drawn according to the arrangement order of the at least onethermal imaging image 71 in the thermalimaging image sequence 70 and itscorresponding feature value 73 . In order to ensure the authenticity and accuracy of thecandidate change curve 74, the respiration rate frequency band is determined according to the possible respiration rate range of the human body, and thecandidate change curve 74 is filtered to remove other noises to obtain atemperature change curve 75 with higher accuracy. Optionally, thetemperature change curve 75 can be converted from the time domain to the frequency domain by way of Fourier transformation to obtain thetransformation result 76 . Wherein, thechange result 76 includes a plurality of components constituting thetemperature change curve 76 , and the frequency corresponding to the component with the highest amplitude is determined as thetarget respiration rate 77 , that is, the respiration rate of the user who collects the thermal imaging image 51 .

本公开实施例通过带通滤波以及傅里叶变化信号的方式实现了对热成像图像序列中微弱的温度变化信号提取,准确的确定了用户的呼吸率。The embodiment of the present disclosure realizes the extraction of the weak temperature change signal in the thermal imaging image sequence by means of band-pass filtering and Fourier change signal, and accurately determines the breathing rate of the user.

在一种可能的实现方式中,在根据多个热成像图像确定了多个具有时间顺序的热成像图像序列的情况下,确定至少一个热成像图像序列对应的目标呼吸率后,还根据至少一个热成像图像序列在时序上的位置,以及对应的目标呼吸率确定呼吸率曲线,该呼吸率曲线用于表征预设时间区间内的呼吸率变化。也就是采集热成像图像的用户在预设时间区间内的呼吸率情况。可选地,至少一个热成像图像序列在时序上的位置还可以根据其中包括的最后一张热成像图像的采集时间确定。In a possible implementation manner, in the case that multiple thermal imaging image sequences with time sequence are determined according to multiple thermal imaging images, after determining the target respiration rate corresponding to at least one thermal imaging image sequence, further according to at least one The position of the thermal imaging image sequence in time series and the corresponding target respiration rate determine a respiration rate curve, and the respiration rate curve is used to characterize the respiration rate change within a preset time interval. That is, the breathing rate of the user who collects the thermal imaging image within the preset time interval. Optionally, the time sequence position of at least one thermal imaging image sequence may also be determined according to the acquisition time of the last thermal imaging image included therein.

基于呼吸与温度变化的关联,本公开实施例根据一段时间内人脸呼吸区域的温度变化情况确定目标呼吸率,提高了呼吸率预测结果的准确程度,并且实现了无接触检测呼吸率。也就是说,该呼吸率检测方法能够仅通过一个具有数据处理功能或通信功能的热成像仪实现,降低呼吸率检测成本的同时提高了便携性与普适性。同时,本公开实施例还能够通过滑动时间窗滑动确定多个热成像图像序列,确定至少一个热成像图像序列对应的目标呼吸率,能够确定呼吸率曲线,得到用户一段时间内呼吸率变化情况。Based on the correlation between respiration and temperature change, the embodiment of the present disclosure determines the target respiration rate according to the temperature change of the face respiration area within a period of time, which improves the accuracy of respiration rate prediction results and realizes non-contact detection of respiration rate. That is to say, the respiration rate detection method can be realized only by a thermal imager with data processing function or communication function, which reduces the cost of respiration rate detection and improves portability and universality. At the same time, the embodiment of the present disclosure can also determine multiple thermal imaging image sequences by sliding the time window, determine the target respiration rate corresponding to at least one thermal imaging image sequence, determine the respiration rate curve, and obtain the change of the user's respiration rate within a period of time.

可以理解,本公开提及的上述至少一个个方法实施例,在不违背原理逻辑的情况下,均可以彼此相互结合形成结合后的实施例,限于篇幅,本公开不再赘述。本领域技术人员可以理解,在具体实施方式的上述方法中,至少一个步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。It can be understood that at least one of the above method embodiments mentioned in this disclosure can be combined with each other to form a combined embodiment without violating the principle and logic. Due to space limitations, this disclosure will not repeat them. Those skilled in the art can understand that, in the above-mentioned method in the specific implementation manner, the specific execution order of at least one step should be determined by its function and possible internal logic.

此外,本公开还提供了呼吸率检测装置、电子设备、计算机可读存储介质、程序,上述均可用来实现本公开提供的任一种呼吸率检测方法,相应技术方案和描述和参见方法部分的相应记载,不再赘述。In addition, the present disclosure also provides a breathing rate detection device, electronic equipment, computer-readable storage media, and programs, all of which can be used to implement any breathing rate detection method provided in the present disclosure, and refer to the corresponding technical solutions and descriptions in the method section Corresponding records are omitted.

图8示出根据本公开实施例的一种呼吸率检测装置的示意图,如图8所示,所述装置包括:Fig. 8 shows a schematic diagram of a breathing rate detection device according to an embodiment of the present disclosure. As shown in Fig. 8, the device includes:

序列确定模块80,用于确定包括多个热成像图像的热成像图像序列,所述热成像图像表征人脸呼吸区域的温度变化;Asequence determination module 80, configured to determine a sequence of thermal imaging images comprising a plurality of thermal imaging images, the thermal imaging images representing temperature changes in the respiratory area of the face;

特征值确定模块81,用于确定所述热成像图像序列中至少一个所述热成像图像对应的特征值,所述特征值用于表征所述人脸呼吸区域的温度特征;A featurevalue determining module 81, configured to determine a feature value corresponding to at least one of the thermal imaging images in the sequence of thermal imaging images, the feature value being used to characterize the temperature characteristics of the breathing area of the face;

信号确定模块82,用于根据至少一个所述特征值对应热成像图像在时序上的位置,确定至少一个所述热成像图像序列对应的温度变化信号,所述温度变化信号用于表征所述人脸呼吸区域在所述热成像图像序列对应序列时间区间内的温度变化;Thesignal determination module 82 is configured to determine a temperature change signal corresponding to at least one thermal imaging image sequence according to the position of the thermal imaging image corresponding to at least one feature value in time series, and the temperature change signal is used to characterize the human body. The temperature change of the breathing area of the face in the corresponding sequence time interval of the thermal imaging image sequence;

呼吸率确定模块83,用于根据所述温度变化信号确定目标呼吸率。A respirationrate determining module 83, configured to determine a target respiration rate according to the temperature change signal.

在一种可能的实现方式中,所述序列确定模块包括:In a possible implementation manner, the sequence determination module includes:

图像采集子模块,用于在预设时间区间内依次采集多张热成像图像;The image acquisition sub-module is used to sequentially acquire multiple thermal imaging images within a preset time interval;

序列确定子模块,用于根据滑动时间窗和至少一个所述热成像图像确定多个热成像图像序列,至少一个所述热成像图像序列中均包括多个连续采集的热成像图像。The sequence determining submodule is configured to determine a plurality of thermal imaging image sequences according to the sliding time window and at least one of the thermal imaging images, and at least one of the thermal imaging image sequences each includes a plurality of continuously collected thermal imaging images.

在一种可能的实现方式中,所述装置还包括:In a possible implementation manner, the device further includes:

对应呼吸率确定模块,用于确定至少一个所述热成像图像序列对应的目标呼吸率;A corresponding respiration rate determination module, configured to determine a target respiration rate corresponding to at least one sequence of thermal imaging images;

呼吸率曲线确定模块,用于根据至少一个所述热成像图像序列在时序上的位置,以及对应的目标呼吸率确定呼吸率曲线,所述呼吸率曲线用于表征预设时间区间内的呼吸率变化。A respiration rate curve determination module, configured to determine a respiration rate curve according to the position of at least one thermal imaging image sequence in time series and the corresponding target respiration rate, and the respiration rate curve is used to characterize the respiration rate within a preset time interval Variety.

在一种可能的实现方式中,所述序列确定子模块包括:In a possible implementation, the sequence determination submodule includes:

时间窗确定单元,用于确定所述滑动时间窗的预设长度和预设步长;a time window determination unit, configured to determine a preset length and a preset step of the sliding time window;

区间确定单元,用于根据所述滑动时间窗的预设长度、预设步长和所述预设时间区间确定多个序列时间区间;an interval determining unit, configured to determine a plurality of sequential time intervals according to the preset length of the sliding time window, the preset step size, and the preset time interval;

序列确定单元,用于根据至少一个所述序列时间区间和至少一个所述热成像图像确定多个热成像图像序列。A sequence determining unit, configured to determine a plurality of thermal imaging image sequences according to at least one sequence time interval and at least one thermal imaging image.

在一种可能的实现方式中,所述区间确定单元包括:In a possible implementation manner, the interval determination unit includes:

滑动子单元,用于根据所述滑动时间窗的预设长度和预设步长,在所述预设时间区间的开始时刻在时序上向后滑动至少一次所述滑动时间窗;a sliding subunit, configured to slide the sliding time window backward in time sequence at least once at the beginning of the preset time interval according to a preset length and a preset step of the sliding time window;

区间确定子单元,用于根据每一次滑动结束时滑动时间窗的开始时刻和结束时刻确定序列时间区间。The interval determination subunit is used to determine the sequence time interval according to the start time and end time of the sliding time window at the end of each sliding.

在一种可能的实现方式中,所述滑动子单元包括:In a possible implementation manner, the sliding subunit includes:

第一滑动子单元,用于将所述预设长度作为所述滑动时间窗的固定长度,由所述预设时间区间的开始时刻起,根据所述预设步长在时序上向后滑动整个滑动时间窗。The first sliding subunit is configured to use the preset length as the fixed length of the sliding time window, and slide the entire Sliding time window.

在一种可能的实现方式中,所述滑动子单元包括:In a possible implementation manner, the sliding subunit includes:

第二滑动子单元,用于将所述预设长度作为初始长度,由所述预设时间区间的开始时刻起,根据所述预设步长在时序上向后滑动所述滑动时间窗的结束时刻。The second sliding subunit is configured to use the preset length as the initial length, and slide the end of the sliding time window backward in time sequence according to the preset step size from the start moment of the preset time interval time.

在一种可能的实现方式中,所述序列确定单元包括:In a possible implementation manner, the sequence determination unit includes:

序列确定子单元,用于对于至少一个所述序列时间区间,根据采集时间在所述序列时间区间内的至少两个热成像图像确定热成像图像序列。The sequence determining subunit is configured to, for at least one of the sequence time intervals, determine a thermal imaging image sequence according to at least two thermal imaging images whose acquisition time is within the sequence time interval.

在一种可能的实现方式中,所述特征值确定模块包括:In a possible implementation manner, the feature value determination module includes:

特征值确定子模块,用于根据至少一个所述热成像图像中至少一个像素位置的像素值确定特征值。The feature value determination sub-module is configured to determine the feature value according to the pixel value of at least one pixel position in the at least one thermal imaging image.

在一种可能的实现方式中,所述信号确定包括:In a possible implementation manner, the signal determination includes:

曲线绘制子模块,用于根据至少一个所述特征值对应热成像图像在时序上的位置绘制候选变化曲线;The curve drawing submodule is used to draw a candidate change curve according to the position of at least one of the characteristic values corresponding to the thermal imaging image in time series;

信号确定子模块,用于根据预设的呼吸率频带对所述候选变化曲线进行滤波,得到温度变化信号。The signal determination sub-module is configured to filter the candidate change curve according to the preset respiration rate frequency band to obtain a temperature change signal.

在一种可能的实现方式中,所述呼吸率确定模块包括:In a possible implementation manner, the respiration rate determination module includes:

呼吸率确定子模块,用于对所述温度变化信号进行傅里叶变换,并确定变换结果中对应幅值最高的频率为目标呼吸率。The respiration rate determination sub-module is used to perform Fourier transformation on the temperature change signal, and determine the frequency corresponding to the highest amplitude in the transformation result as the target respiration rate.

在一些实施例中,本公开实施例提供的装置具有的功能或包含的模块可以用于执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述,为了简洁,这里不再赘述。In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the methods described in the method embodiments above, and its specific implementation can refer to the description of the method embodiments above. For brevity, here No longer.

本公开实施例还提出一种计算机可读存储介质,其上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述方法。计算机可读存储介质可以是易失性或非易失性计算机可读存储介质。Embodiments of the present disclosure also provide a computer-readable storage medium, on which computer program instructions are stored, and the above-mentioned method is implemented when the computer program instructions are executed by a processor. Computer readable storage media may be volatile or nonvolatile computer readable storage media.

本公开实施例还提出一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为调用所述存储器存储的指令,以执行上述方法。An embodiment of the present disclosure also proposes an electronic device, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to invoke the instructions stored in the memory to execute the above method.

本公开实施例还提供了一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备的处理器中运行时,所述电子设备中的处理器执行上述方法。An embodiment of the present disclosure also provides a computer program product, including computer-readable codes, or a non-volatile computer-readable storage medium carrying computer-readable codes, when the computer-readable codes are stored in a processor of an electronic device When running in the electronic device, the processor in the electronic device executes the above method.

电子设备可以被提供为终端、服务器或其它形态的设备。Electronic devices may be provided as terminals, servers, or other forms of devices.

图9示出根据本公开实施例的一种电子设备900的框图。例如,电子设备900可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等终端。FIG. 9 shows a block diagram of anelectronic device 900 according to an embodiment of the present disclosure. For example, theelectronic device 900 may be a terminal such as a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, or a personal digital assistant.

参照图9,电子设备900可以包括以下一个或多个组件:处理组件902,存储器904,电源组件906,多媒体组件908,音频组件910,输入/输出(I/O)接口912,传感器组件914,以及通信组件916。Referring to FIG. 9, anelectronic device 900 may include one or more of the following components: aprocessing component 902, amemory 904, apower supply component 906, amultimedia component 908, anaudio component 910, an input/output (I/O)interface 912, asensor component 914, andcommunication component 916 .

处理组件902通常控制电子设备900的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件902可以包括一个或多个处理器920来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件902可以包括一个或多个模块,便于处理组件902和其他组件之间的交互。例如,处理组件902可以包括多媒体模块,以方便多媒体组件908和处理组件902之间的交互。Theprocessing component 902 generally controls the overall operations of theelectronic device 900, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. Theprocessing component 902 may include one ormore processors 920 to execute instructions to complete all or part of the steps of the above method. Additionally,processing component 902 may include one or more modules that facilitate interaction betweenprocessing component 902 and other components. For example,processing component 902 may include a multimedia module to facilitate interaction betweenmultimedia component 908 andprocessing component 902 .

存储器904被配置为存储各种类型的数据以支持在电子设备900的操作。这些数据的示例包括用于在电子设备900上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器904可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Thememory 904 is configured to store various types of data to support operations at theelectronic device 900 . Examples of such data include instructions for any application or method operating on theelectronic device 900, contact data, phonebook data, messages, pictures, videos, and the like. Thememory 904 can be implemented by any type of volatile or non-volatile memory device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件906为电子设备900的各种组件提供电力。电源组件906可以包括电源管理系统,一个或多个电源,及其他与为电子设备900生成、管理和分配电力相关联的组件。Thepower supply component 906 provides power to various components of theelectronic device 900 .Power components 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power forelectronic device 900 .

多媒体组件908包括在所述电子设备900和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触 摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件908包括一个前置摄像头和/或后置摄像头。当电子设备900处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Themultimedia component 908 includes a screen providing an output interface between theelectronic device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, themultimedia component 908 includes a front camera and/or a rear camera. When theelectronic device 900 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件910被配置为输出和/或输入音频信号。例如,音频组件910包括一个麦克风(MIC),当电子设备900处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器904或经由通信组件916发送。在一些实施例中,音频组件910还包括一个扬声器,用于输出音频信号。Theaudio component 910 is configured to output and/or input audio signals. For example, theaudio component 910 includes a microphone (MIC), which is configured to receive external audio signals when theelectronic device 900 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored inmemory 904 or sent viacommunication component 916 . In some embodiments, theaudio component 910 also includes a speaker for outputting audio signals.

I/O接口912为处理组件902和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 912 provides an interface between theprocessing component 902 and a peripheral interface module. The peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件914包括一个或多个传感器,用于为电子设备900提供各个方面的状态评估。例如,传感器组件914可以检测到电子设备900的打开/关闭状态,组件的相对定位,例如所述组件为电子设备900的显示器和小键盘,传感器组件914还可以检测电子设备900或电子设备900一个组件的位置改变,用户与电子设备900接触的存在或不存在,电子设备900方位或加速/减速和电子设备900的温度变化。传感器组件914可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件914还可以包括光传感器,如互补金属氧化物半导体(CMOS)或电荷耦合装置(CCD)图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件914还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 914 includes one or more sensors for providing various aspects of status assessment forelectronic device 900 . For example, thesensor component 914 can detect the open/close state of theelectronic device 900, the relative positioning of components, such as the display and the keypad of theelectronic device 900, thesensor component 914 can also detect theelectronic device 900 or a Changes in the position of components, presence or absence of user contact with theelectronic device 900 ,electronic device 900 orientation or acceleration/deceleration and temperature changes in theelectronic device 900 .Sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Thesensor assembly 914 may also include an optical sensor, such as a complementary metal-oxide-semiconductor (CMOS) or charge-coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, thesensor component 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件916被配置为便于电子设备900和其他设备之间有线或无线方式的通信。电子设备900可以接入基于通信标准的无线网络,如无线网络(WiFi),第二代移动通信技术(2G)或第三代移动通信技术(3G),或它们的组合。在一个示例性实施例中,通信组件916经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件916还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Thecommunication component 916 is configured to facilitate wired or wireless communication between theelectronic device 900 and other devices. Theelectronic device 900 can access a wireless network based on a communication standard, such as a wireless network (WiFi), a second generation mobile communication technology (2G) or a third generation mobile communication technology (3G), or a combination thereof. In one exemplary embodiment, thecommunication component 916 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, thecommunication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,电子设备900可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment,electronic device 900 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.

在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器904,上述计算机程序指令可由电子设备900的处理器920执行以完成上述方法。In an exemplary embodiment, there is also provided a non-volatile computer-readable storage medium, such as thememory 904 including computer program instructions, which can be executed by theprocessor 920 of theelectronic device 900 to implement the above method.

图10示出根据本公开实施例的一种电子设备1000的框图。例如,电子设备1000可以被提供为一服务器。参照图10,电子设备1000包括处理组件1022,其进一步包括一个或多个处理器,以及由存储器1032所代表的存储器资源,用于存储可由处理组件1022的执行的指令,例如应用程序。存储器1032中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件1022被配置为执行指令,以执行上述方法。FIG. 10 shows a block diagram of anelectronic device 1000 according to an embodiment of the present disclosure. For example, theelectronic device 1000 may be provided as a server. Referring to FIG. 10 ,electronic device 1000 includesprocessing component 1022 , which further includes one or more processors, and a memory resource represented bymemory 1032 for storing instructions executable byprocessing component 1022 , such as application programs. The application program stored inmemory 1032 may include one or more modules each corresponding to a set of instructions. In addition, theprocessing component 1022 is configured to execute instructions to perform the above method.

电子设备1000还可以包括一个电源组件1026被配置为执行电子设备1000的电源管理,一个有线或无线网络接口1050被配置为将电子设备1000连接到网络,和一个输入输出(I/O)接口1058。电子设备1000可以操作基于存储在存储器1032的操作系统,例如微软服务器操作系统(Windows ServerTM),苹果公司推出的基于图形用户界面操作系统(Mac OS XTM),多用户多进程的计算机操作系统(UnixTM),自由和开放原代码的类Unix操作系统(LinuxTM),开放原代码的类Unix操作系统(FreeBSDTM)或类似。Electronic device 1000 may also include apower supply component 1026 configured to perform power management ofelectronic device 1000, a wired orwireless network interface 1050 configured to connectelectronic device 1000 to a network, and an input-output (I/O)interface 1058 . Theelectronic device 1000 can operate based on the operating system stored in thememory 1032, such as the Microsoft server operating system (Windows ServerTM ), the graphical user interface-based operating system (Mac OS XTM ) introduced by Apple Inc., and the multi-user and multi-process computer operating system (Unix ), a free and open-source Unix-like operating system (Linux ), an open-source Unix-like operating system (FreeBSD ), or the like.

在示例性实施例中,还提供了一种非易失性计算机可读存储介质,例如包括计算机程序指令的存储器1032,上述计算机程序指令可由电子设备1000的处理组件1022执行以完成上述方法。In an exemplary embodiment, there is also provided a non-volatile computer-readable storage medium, such as thememory 1032 including computer program instructions, which can be executed by theprocessing component 1022 of theelectronic device 1000 to implement the above method.

本公开可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本公开的各个方面的计算机可读程序指令。The present disclosure can be a system, method and/or computer program product. A computer program product may include a computer readable storage medium having computer readable program instructions thereon for causing a processor to implement various aspects of the present disclosure.

计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是(但不限于)电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。A computer readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device. A computer readable storage medium may be, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory), static random access memory (SRAM), compact disc read only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanically encoded device, such as a printer with instructions stored thereon A hole card or a raised structure in a groove, and any suitable combination of the above. As used herein, computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., pulses of light through fiber optic cables), or transmitted electrical signals.

这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。Computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or downloaded to an external computer or external storage device over a network, such as the Internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. A network adapter card or a network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .

用于执行本公开操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本公开的各个方面。Computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or Source or object code written in any combination, including object-oriented programming languages—such as Smalltalk, C++, etc., and conventional procedural programming languages—such as the “C” language or similar programming languages. Computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as via the Internet using an Internet service provider). connect). In some embodiments, an electronic circuit, such as a programmable logic circuit, field programmable gate array (FPGA), or programmable logic array (PLA), can be customized by utilizing state information of computer-readable program instructions, which can Various aspects of the present disclosure are implemented by executing computer readable program instructions.

这里参照根据本公开实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本公开的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合, 都可以由计算机可读程序指令实现。Aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It should be understood that each block of the flowchart and/or block diagram and combinations of blocks in the flowchart and/or block diagram can be implemented by computer readable program instructions.

这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine such that when executed by the processor of the computer or other programmable data processing apparatus , producing an apparatus for realizing the functions/actions specified in one or more blocks in the flowchart and/or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause computers, programmable data processing devices and/or other devices to work in a specific way, so that the computer-readable medium storing instructions includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks in flowcharts and/or block diagrams.

也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。It is also possible to load computer-readable program instructions into a computer, other programmable data processing device, or other equipment, so that a series of operational steps are performed on the computer, other programmable data processing device, or other equipment to produce a computer-implemented process , so that instructions executed on computers, other programmable data processing devices, or other devices implement the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams.

附图中的流程图和框图显示了根据本公开的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, a portion of a program segment, or an instruction that includes one or more Executable instructions. In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.

该计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software Development Kit,SDK)等等。The computer program product can be specifically realized by means of hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK) etc. wait.

以上已经描述了本公开的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。Having described various embodiments of the present disclosure above, the foregoing description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and alterations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principle of each embodiment, practical application or improvement of technology in the market, or to enable other ordinary skilled in the art to understand each embodiment disclosed herein.

Claims (15)

Translated fromChinese
一种呼吸率检测方法,其特征在于,所述方法包括:A method for detecting respiration rate, characterized in that the method comprises:确定包括多个热成像图像的热成像图像序列,所述热成像图像表征人脸呼吸区域的温度变化;determining a sequence of thermal imaging images comprising a plurality of thermal imaging images, the thermal imaging images representing temperature changes in the breathing region of the human face;确定所述热成像图像序列中至少一个所述热成像图像对应的特征值,所述特征值用于表征所述人脸呼吸区域的温度特征;determining a feature value corresponding to at least one of the thermal imaging images in the sequence of thermal imaging images, the feature value being used to characterize the temperature characteristics of the breathing area of the human face;根据至少一个所述特征值对应热成像图像在时序上的位置,确定至少一个所述热成像图像序列对应的温度变化信号,所述温度变化信号用于表征所述人脸呼吸区域在所述热成像图像序列对应序列时间区间内的温度变化;Determine the temperature change signal corresponding to at least one of the thermal imaging image sequences according to the position of the thermal imaging image corresponding to at least one of the feature values, and the temperature change signal is used to characterize the breathing area of the human face in the thermal imaging The imaging image sequence corresponds to the temperature change within the sequence time interval;根据所述温度变化信号确定目标呼吸率。A target respiration rate is determined according to the temperature change signal.根据权利要求1所述的方法,其特征在于,所述确定包括多个热成像图像的热成像图像序列包括:The method according to claim 1, wherein said determining a sequence of thermal imaging images comprising a plurality of thermal imaging images comprises:在预设时间区间内依次采集多张热成像图像;Acquire multiple thermal imaging images sequentially within a preset time interval;根据滑动时间窗和至少一个所述热成像图像确定多个热成像图像序列,至少一个所述热成像图像序列中均包括多个连续采集的热成像图像。A plurality of thermal imaging image sequences are determined according to the sliding time window and at least one of the thermal imaging images, and at least one of the thermal imaging image sequences each includes a plurality of continuously collected thermal imaging images.根据权利要求2所述的方法,其特征在于,所述方法还包括:The method according to claim 2, further comprising:确定至少一个所述热成像图像序列对应的目标呼吸率;determining a target respiration rate corresponding to at least one sequence of thermal imaging images;根据至少一个所述热成像图像序列在时序上的位置,以及对应的目标呼吸率确定呼吸率曲线,所述呼吸率曲线用于表征预设时间区间内的呼吸率变化。A respiration rate curve is determined according to the time sequence position of at least one thermal imaging image sequence and the corresponding target respiration rate, and the respiration rate curve is used to characterize the respiration rate change within a preset time interval.根据权利要求2或3所述的方法,其特征在于,所述根据滑动时间窗和至少一个所述热成像图像确定多个热成像图像序列包括:The method according to claim 2 or 3, wherein said determining a plurality of thermal imaging image sequences according to the sliding time window and at least one thermal imaging image comprises:确定所述滑动时间窗的预设长度和预设步长;determining a preset length and a preset step of the sliding time window;根据所述滑动时间窗的预设长度、预设步长和所述预设时间区间确定多个序列时间区间;determining a plurality of sequence time intervals according to a preset length of the sliding time window, a preset step size, and the preset time interval;根据至少一个所述序列时间区间和至少一个所述热成像图像确定多个热成像图像序列。A plurality of thermal imaging image sequences are determined according to at least one sequence time interval and at least one thermal imaging image.根据权利要求4所述的方法,其特征在于,所述根据所述滑动时间窗的预设长度、预设步长和所述预设时间区间确定多个序列时间区间包括:The method according to claim 4, wherein said determining a plurality of sequence time intervals according to the preset length of the sliding time window, the preset step size, and the preset time interval comprises:根据所述滑动时间窗的预设长度和预设步长,在所述预设时间区间的开始时刻在时序上向后滑动至少一次所述滑动时间窗;According to the preset length and preset step of the sliding time window, slide the sliding time window backward in time sequence at least once at the beginning moment of the preset time interval;根据每一次滑动结束时滑动时间窗的开始时刻和结束时刻确定序列时间区间。The sequence time interval is determined according to the start time and end time of the sliding time window at the end of each sliding.根据权利要求5所述的方法,其特征在于,所述根据所述滑动时间窗的预设长度和预设步长,在所述预设时间区间的开始时刻在时序上向后滑动至少一次所述滑动时间窗包括:The method according to claim 5, characterized in that, according to the preset length and the preset step of the sliding time window, at the beginning moment of the preset time interval, the time sequence is slid backward at least once. The sliding time windows described include:将所述预设长度作为所述滑动时间窗的固定长度,由所述预设时间区间的开始时刻起,根据所述预设步长在时序上向后滑动整个滑动时间窗。The preset length is used as a fixed length of the sliding time window, and the entire sliding time window is slid backward in time sequence according to the preset step size from the start moment of the preset time interval.根据权利要求5所述的方法,其特征在于,所述根据所述滑动时间窗的预设长度和预设步长,在所述预设时间区间的开始时刻在时序上向后滑动至少一次所述滑动时间窗包括:The method according to claim 5, characterized in that, according to the preset length and the preset step of the sliding time window, at the beginning moment of the preset time interval, the time sequence is slid backward at least once. The sliding time windows described include:将所述预设长度作为初始长度,由所述预设时间区间的开始时刻起,根据所述预设步长在时序上向后滑动所述滑动时间窗的结束时刻。Using the preset length as an initial length, from the start moment of the preset time interval, the end moment of the sliding time window is slid backward in time sequence according to the preset step size.根据权利要求4-7中任意一项所述的方法,其特征在于,所述根据至少一个所述序列时间区间 和至少一个所述热成像图像确定多个热成像图像序列包括:The method according to any one of claims 4-7, wherein said determining a plurality of thermal imaging image sequences according to at least one said sequence time interval and at least one said thermal imaging image comprises:对于至少一个所述序列时间区间,根据采集时间在所述序列时间区间内的至少两个热成像图像确定热成像图像序列。For at least one of the sequence time intervals, a thermal imaging image sequence is determined according to at least two thermal imaging images whose acquisition time is within the sequence time interval.根据权利要求1-8中任意一项所述的方法,其特征在于,所述确定所述热成像图像序列中至少一个所述热成像图像对应的特征值包括:The method according to any one of claims 1-8, wherein the determining the characteristic value corresponding to at least one of the thermal imaging images in the sequence of thermal imaging images comprises:根据至少一个所述热成像图像中至少一个像素位置的像素值确定特征值。A feature value is determined according to a pixel value of at least one pixel position in at least one of the thermal imaging images.根据权利要求1-8中任意一项所述的方法,其特征在于,所述根据至少一个所述特征值对应热成像图像在时序上的位置,确定至少一个所述热成像图像序列对应的温度变化信号包括:The method according to any one of claims 1-8, wherein the temperature corresponding to at least one sequence of thermal imaging images is determined according to the position of the thermal imaging images corresponding to at least one of the feature values in time series Change signals include:根据至少一个所述特征值对应热成像图像在时序上的位置绘制候选变化曲线;Draw a candidate change curve according to the position of at least one of the characteristic values corresponding to the thermal imaging image in time series;根据预设的呼吸率频带对所述候选变化曲线进行滤波,得到温度变化信号。The candidate change curve is filtered according to the preset respiration rate frequency band to obtain a temperature change signal.根据权利要求1-10中任意一项所述的方法,其特征在于,所述根据所述温度变化信号确定目标呼吸率包括:The method according to any one of claims 1-10, wherein the determining the target respiration rate according to the temperature change signal comprises:对所述温度变化信号进行傅里叶变换,并确定变换结果中对应幅值最高的频率为目标呼吸率。Perform Fourier transform on the temperature change signal, and determine the frequency corresponding to the highest amplitude in the transform result as the target respiration rate.一种心率检测装置,其特征在于,所述装置包括:A heart rate detection device, characterized in that the device comprises:序列确定模块,用于确定包括多个热成像图像的热成像图像序列,所述热成像图像表征人脸呼吸区域的温度变化;A sequence determination module, configured to determine a sequence of thermal imaging images comprising a plurality of thermal imaging images, the thermal imaging images representing temperature changes in the breathing area of the human face;特征值确定模块,用于确定所述热成像图像序列中至少一个所述热成像图像对应的特征值,所述特征值用于表征所述人脸呼吸区域的温度特征;A feature value determination module, configured to determine a feature value corresponding to at least one of the thermal imaging images in the sequence of thermal imaging images, the feature value being used to characterize the temperature characteristics of the breathing area of the face;信号确定模块,用于根据至少一个所述特征值对应热成像图像在时序上的位置,确定至少一个所述热成像图像序列对应的温度变化信号,所述温度变化信号用于表征所述人脸呼吸区域在所述热成像图像序列对应序列时间区间内的温度变化;A signal determination module, configured to determine a temperature change signal corresponding to at least one thermal imaging image sequence according to the position of the thermal imaging image corresponding to at least one feature value in time series, and the temperature change signal is used to characterize the human face The temperature change of the breathing area in the corresponding sequence time interval of the thermal imaging image sequence;呼吸率确定模块,用于根据所述温度变化信号确定目标呼吸率。A respiration rate determination module, configured to determine a target respiration rate according to the temperature change signal.一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:处理器;processor;用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;其中,所述处理器被配置为调用所述存储器存储的指令,以执行权利要求1至11中任意一项所述的方法。Wherein, the processor is configured to invoke instructions stored in the memory to execute the method according to any one of claims 1-11.一种计算机可读存储介质,其上存储有计算机程序指令,其特征在于,所述计算机程序指令被处理器执行时实现权利要求1至11中任意一项所述的方法。A computer-readable storage medium, on which computer program instructions are stored, wherein, when the computer program instructions are executed by a processor, the method according to any one of claims 1 to 11 is implemented.一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备的处理器中运行时,所述电子设备中的处理器执行用于实现权利要求1至11中任意一项所述的方法。A computer program product, comprising computer readable codes, or a non-volatile computer readable storage medium bearing computer readable codes, when the computer readable codes are run in a processor of an electronic device, the electronic The processor in the device executes the method for realizing any one of claims 1-11.
PCT/CN2022/1124782021-10-152022-08-15Respiratory rate measurement method and apparatus, electronic device, and storage mediumCeasedWO2023061028A1 (en)

Applications Claiming Priority (2)

Application NumberPriority DateFiling DateTitle
CN202111204873.0ACN113887474B (en)2021-10-152021-10-15Respiration rate detection method and device, electronic device and storage medium
CN202111204873.02021-10-15

Publications (1)

Publication NumberPublication Date
WO2023061028A1true WO2023061028A1 (en)2023-04-20

Family

ID=79003029

Family Applications (1)

Application NumberTitlePriority DateFiling Date
PCT/CN2022/112478CeasedWO2023061028A1 (en)2021-10-152022-08-15Respiratory rate measurement method and apparatus, electronic device, and storage medium

Country Status (2)

CountryLink
CN (1)CN113887474B (en)
WO (1)WO2023061028A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113576451A (en)*2021-07-302021-11-02深圳市商汤科技有限公司Respiration rate detection method and device, storage medium and electronic equipment
CN113887474B (en)*2021-10-152022-09-23深圳市商汤科技有限公司Respiration rate detection method and device, electronic device and storage medium
CN114869253A (en)*2022-04-182022-08-09西安商汤智能科技有限公司Object state identification method, device, equipment and storage medium
WO2023219081A1 (en)*2022-05-102023-11-16公立大学法人大阪Breath visualization system and method, and breath evaluation system and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108960144A (en)*2018-07-042018-12-07泰康保险集团股份有限公司heart rate detection method and device, storage medium and electronic equipment
CN111568388A (en)*2020-04-302020-08-25清华大学 A non-contact mouth breathing detection device, method and storage medium
CN113887474A (en)*2021-10-152022-01-04深圳市商汤科技有限公司Respiration rate detection method and device, electronic device and storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US9521954B2 (en)*2013-06-192016-12-20Xerox CorporationVideo acquisition system for monitoring a subject for a desired physiological function
CN103885057B (en)*2014-03-202016-08-24西安电子科技大学Adaptive strain sliding window multi-object tracking method
US9862247B2 (en)*2014-09-222018-01-09Ford Global Technologies, LlcDirectional climate control system with infrared targeting
US10130308B2 (en)*2015-06-142018-11-20Facense Ltd.Calculating respiratory parameters from thermal measurements
CN107358220A (en)*2017-07-312017-11-17江西中医药大学A kind of human heart rate and the contactless measurement of breathing
CN108955900A (en)*2018-08-022018-12-07华电福新能源股份有限公司古田溪水力发电厂A kind of booster stations temperature measurement early warning system and method based on infrared thermal imaging
CN112057074A (en)*2020-07-212020-12-11北京迈格威科技有限公司Respiration rate measuring method, respiration rate measuring device, electronic equipment and computer storage medium
CN112255141B (en)*2020-10-262021-05-11光谷技术有限公司Thermal imaging gas monitoring system
CN112396011B (en)*2020-11-242023-07-18华南理工大学 A face recognition system based on video image heart rate detection and living body detection
CN113100748B (en)*2021-03-302022-11-22联想(北京)有限公司Respiratory frequency determination method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108960144A (en)*2018-07-042018-12-07泰康保险集团股份有限公司heart rate detection method and device, storage medium and electronic equipment
CN111568388A (en)*2020-04-302020-08-25清华大学 A non-contact mouth breathing detection device, method and storage medium
CN113887474A (en)*2021-10-152022-01-04深圳市商汤科技有限公司Respiration rate detection method and device, electronic device and storage medium

Also Published As

Publication numberPublication date
CN113887474B (en)2022-09-23
CN113887474A (en)2022-01-04

Similar Documents

PublicationPublication DateTitle
WO2023061028A1 (en)Respiratory rate measurement method and apparatus, electronic device, and storage medium
WO2023061042A1 (en)Heart rate measurement method and apparatus, and electronic device and storage medium
CN105224195B (en)Terminal operation method and device
JP7292325B2 (en) Video clip extraction method, video clip extraction device and storage medium
CN106375782B (en) Video playback method and device
CN107025419B (en)Fingerprint template inputting method and device
CN110890083B (en)Audio data processing method and device, electronic equipment and storage medium
CN112911239B (en) Video processing method and device, electronic device and storage medium
CN107102772B (en)Touch control method and device
WO2018098865A1 (en)Message reading method and apparatus
CN106372204A (en)Push message processing method and device
CN107368221B (en)Pressure determination method and device and fingerprint identification method and device
WO2023040202A1 (en)Face recognition method and apparatus, electronic device, and storage medium
WO2017140109A1 (en)Pressure detection method and apparatus
WO2017140108A1 (en)Pressure detection method and apparatus
CN209496378U (en) terminal
CN106341712A (en)Processing method and apparatus of multimedia data
CN106528385A (en)System fluency monitoring method and apparatus, and terminal
CN107566615B (en)Message treatment method, device and computer readable storage medium
US20170034347A1 (en)Method and device for state notification and computer-readable storage medium
CN107886956B (en)Audio recognition method and device and computer storage medium
CN114547073B (en)Aggregation query method and device for time series data and storage medium
US10198614B2 (en)Method and device for fingerprint recognition
HK40065006A (en)Respiratory rate detection method and device, electronic apparatus, and storage medium
CN104954683B (en)Determine the method and device of photographic device

Legal Events

DateCodeTitleDescription
121Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number:22879975

Country of ref document:EP

Kind code of ref document:A1

NENPNon-entry into the national phase

Ref country code:DE

122Ep: pct application non-entry in european phase

Ref document number:22879975

Country of ref document:EP

Kind code of ref document:A1

122Ep: pct application non-entry in european phase

Ref document number:22879975

Country of ref document:EP

Kind code of ref document:A1

32PNEp: public notification in the ep bulletin as address of the adressee cannot be established

Free format text:NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM XXXX DATED 27/11/2024)

122Ep: pct application non-entry in european phase

Ref document number:22879975

Country of ref document:EP

Kind code of ref document:A1


[8]ページ先頭

©2009-2025 Movatter.jp