CN118795454A - In-vehicle liveness detection method, device, equipment, storage medium and program product - Google Patents
In-vehicle liveness detection method, device, equipment, storage medium and program product Download PDFInfo
- Publication number
- CN118795454A CN118795454A CN202410862399.8A CN202410862399A CN118795454A CN 118795454 A CN118795454 A CN 118795454A CN 202410862399 A CN202410862399 A CN 202410862399A CN 118795454 A CN118795454 A CN 118795454A
- Authority
- CN
- China
- Prior art keywords
- detection result
- vehicle
- frame
- radar signal
- target
- 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.)
- Pending
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 209
- 238000000034 method Methods 0.000 claims abstract description 44
- 238000012545 processing Methods 0.000 claims abstract description 25
- 238000004590 computer program Methods 0.000 claims description 22
- 230000008569 process Effects 0.000 claims description 11
- 238000005070 sampling Methods 0.000 claims description 8
- 238000001574 biopsy Methods 0.000 claims 1
- 238000004891 communication Methods 0.000 description 9
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 3
- 238000010801 machine learning Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000029058 respiratory gaseous exchange Effects 0.000 description 3
- 238000012549 training Methods 0.000 description 3
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 241001465754 Metazoa Species 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000035565 breathing frequency Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000003066 decision tree Methods 0.000 description 1
- 238000013135 deep learning Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S13/00—Systems using the reflection or reradiation of radio waves, e.g. radar systems; Analogous systems using reflection or reradiation of waves whose nature or wavelength is irrelevant or unspecified
- G01S13/02—Systems using reflection of radio waves, e.g. primary radar systems; Analogous systems
- G01S13/0209—Systems with very large relative bandwidth, i.e. larger than 10 %, e.g. baseband, pulse, carrier-free, ultrawideband
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S13/00—Systems using the reflection or reradiation of radio waves, e.g. radar systems; Analogous systems using reflection or reradiation of waves whose nature or wavelength is irrelevant or unspecified
- G01S13/88—Radar or analogous systems specially adapted for specific applications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S7/00—Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
- G01S7/02—Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S13/00
- G01S7/41—Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S13/00 using analysis of echo signal for target characterisation; Target signature; Target cross-section
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- General Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Radar Systems Or Details Thereof (AREA)
Abstract
本公开实施例提供了车内活体检测方法、装置、设备、存储介质以及程序产品。该方法包括:获取当前设定时长内的多帧雷达信号;对所述当前设定时长内的多帧雷达信号进行下采样处理,获得下采样后的多帧雷达信号;对所述下采样后的多帧雷达信号进行处理,获得目标雷达信号;将所述目标雷达信号输入至设定的车内活体检测模型中,输出目标车内活体检测结果。本公开实施例,通过对当前设定时长内的多帧雷达信号进行下采样处理以及对下采样后的多帧雷达信号进行处理,获得目标雷达信号,并通过设定的车内活体检测模型对目标雷达信号进行车内活体检测的方式,可以提高车内活体检测的准确率以及效率。
The disclosed embodiments provide a method, device, equipment, storage medium and program product for in-vehicle liveness detection. The method includes: obtaining a multi-frame radar signal within a currently set time length; downsampling the multi-frame radar signal within the currently set time length to obtain a multi-frame radar signal after downsampling; processing the multi-frame radar signal after downsampling to obtain a target radar signal; inputting the target radar signal into a set in-vehicle liveness detection model to output a target in-vehicle liveness detection result. The disclosed embodiments improve the accuracy and efficiency of in-vehicle liveness detection by downsampling the multi-frame radar signal within the currently set time length and processing the multi-frame radar signal after downsampling to obtain a target radar signal, and performing in-vehicle liveness detection on the target radar signal through a set in-vehicle liveness detection model.
Description
技术领域Technical Field
本公开实施例涉及车内活体检测技术领域,尤其涉及一种车内活体检测方法、装置、设备、存储介质以及程序产品。The embodiments of the present disclosure relate to the technical field of in-vehicle liveness detection, and in particular to an in-vehicle liveness detection method, device, equipment, storage medium, and program product.
背景技术Background Art
随着汽车智能化和安全性要求的不断提升,车辆闭锁后的车内活体检测技术成为了保障车辆安全的重要措施之一。当前,基于超宽带(UltraWide Band,UWB)技术的雷达信号实现车辆闭锁后的车内活体检测方法,由于微控制单(MicrocontrollerUnit,MCU)在存储、算力、运行时间上的限制以及UWB雷达本身信号的影响,导致存在检测精度以及检测效率低的问题,从而导致车辆安全性低。With the continuous improvement of automobile intelligence and safety requirements, the technology of detecting live bodies in the vehicle after the vehicle is locked has become one of the important measures to ensure vehicle safety. At present, the method of detecting live bodies in the vehicle after the vehicle is locked is based on the radar signal of Ultra Wide Band (UWB) technology. Due to the limitations of the microcontroller unit (MCU) in storage, computing power, and running time, as well as the influence of the UWB radar signal itself, there are problems with low detection accuracy and detection efficiency, which leads to low vehicle safety.
发明内容Summary of the invention
本公开实施例提供一种车内活体检测方法、装置、设备、存储介质以及程序产品,可以提高车内活体检测的准确率以及效率,从而可以提高车辆的安全性。The embodiments of the present disclosure provide a method, device, equipment, storage medium and program product for in-vehicle liveness detection, which can improve the accuracy and efficiency of in-vehicle liveness detection, thereby improving the safety of the vehicle.
第一方面,本公开实施例提供了一种车内活体检测方法,包括:获取当前设定时长内的多帧雷达信号;对所述当前设定时长内的多帧雷达信号进行下采样处理,获得下采样后的多帧雷达信号;对所述下采样后的多帧雷达信号进行处理,获得目标雷达信号;将所述目标雷达信号输入至设定的车内活体检测模型中,输出目标车内活体检测结果。In a first aspect, an embodiment of the present disclosure provides a method for in-vehicle liveness detection, comprising: acquiring a multi-frame radar signal within a currently set time length; downsampling the multi-frame radar signal within the currently set time length to obtain a multi-frame radar signal after downsampling; processing the multi-frame radar signal after downsampling to obtain a target radar signal; inputting the target radar signal into a set in-vehicle liveness detection model, and outputting a target in-vehicle liveness detection result.
第二方面,本公开实施例还提供了一种车内活体检测装置,包括:信号获取模块,用于获取当前设定时长内的多帧雷达信号;下采样模块,用于对所述当前设定时长内的多帧雷达信号进行下采样处理,获得下采样后的多帧雷达信号;处理模块,用于对所述下采样后的多帧雷达信号进行处理,获得目标雷达信号;检测模块,用于将所述目标雷达信号输入至设定的车内活体检测模型中,输出目标车内活体检测结果。In the second aspect, the embodiment of the present disclosure also provides an in-vehicle liveness detection device, including: a signal acquisition module, used to acquire a multi-frame radar signal within a currently set time length; a downsampling module, used to downsample the multi-frame radar signal within the currently set time length to obtain the downsampled multi-frame radar signal; a processing module, used to process the downsampled multi-frame radar signal to obtain a target radar signal; a detection module, used to input the target radar signal into a set in-vehicle liveness detection model, and output the target in-vehicle liveness detection result.
第三方面,本公开实施例还提供了一种电子设备,所述电子设备包括:In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
一个或多个处理器;one or more processors;
存储装置,用于存储一个或多个程序,a storage device for storing one or more programs,
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如本公开实施例所述的车内活体检测方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the in-vehicle living body detection method as described in the embodiment of the present disclosure.
第四方面,本公开实施例还提供了一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如本公开实施例所述的车内活体检测方法。In a fourth aspect, an embodiment of the present disclosure further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the in-vehicle living body detection method as described in the embodiment of the present disclosure.
第五方面,本公开实施例还提供了一种计算机程序产品,包括计算机程序,所述计算机程序在被处理器执行时实现如本公开实施例所述的车内活体检测方法。In a fifth aspect, an embodiment of the present disclosure further provides a computer program product, including a computer program, which, when executed by a processor, implements the in-vehicle living body detection method as described in the embodiment of the present disclosure.
本实施例公开的技术方案,获取当前设定时长内的多帧雷达信号;对所述当前设定时长内的多帧雷达信号进行下采样处理,获得下采样后的多帧雷达信号;对所述下采样后的多帧雷达信号进行处理,获得目标雷达信号;将所述目标雷达信号输入至设定的车内活体检测模型中,输出目标车内活体检测结果。本公开实施例,通过对当前设定时长内的多帧雷达信号进行下采样处理以及对下采样后的多帧雷达信号进行处理,获得目标雷达信号,并通过设定的车内活体检测模型对目标雷达信号进行车内活体检测的方式,可以提高车内活体检测的准确率以及效率。The technical solution disclosed in this embodiment obtains a multi-frame radar signal within a currently set time length; downsamples the multi-frame radar signal within the currently set time length to obtain a multi-frame radar signal after downsampling; processes the multi-frame radar signal after downsampling to obtain a target radar signal; inputs the target radar signal into a set in-vehicle liveness detection model to output a target in-vehicle liveness detection result. The embodiment disclosed in this embodiment can improve the accuracy and efficiency of in-vehicle liveness detection by downsampling the multi-frame radar signal within the currently set time length and processing the multi-frame radar signal after downsampling to obtain a target radar signal, and performing in-vehicle liveness detection on the target radar signal through a set in-vehicle liveness detection model.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
图1为本发明实施例提供的一种车内活体检测方法流程示意图;FIG1 is a schematic flow chart of a method for detecting a living body in a vehicle provided by an embodiment of the present invention;
图2为本发明实施例提供的另一种车内活体检测方法的流程图;FIG2 is a flow chart of another in-vehicle living body detection method provided by an embodiment of the present invention;
图3为本公开实施例所提供的一种车内活体检测装置结构示意图;FIG3 is a schematic diagram of the structure of a liveness detection device in a vehicle provided by an embodiment of the present disclosure;
图4为本公开实施例所提供的一种电子设备的结构示意图。FIG. 4 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure.
具体实施方式DETAILED DESCRIPTION
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and/or in parallel. In addition, the method embodiments may include additional steps and/or omit the steps shown. The scope of the present disclosure is not limited in this respect.
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
可以理解的是,本技术方案所涉及的数据(包括但不限于数据本身、数据的获取或使用)应当遵循相应法律法规及相关规定的要求。It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
图1为本发明实施例提供的一种车内活体检测方法流程示意图;本实施例可适用于在车辆闭锁后,通过车内的雷达信号对车辆内部进行车内活体检测的情况,该方法可以由车内活体检测装置来执行,具体包括如下步骤:FIG1 is a flow chart of a method for detecting a live body in a vehicle provided by an embodiment of the present invention. This embodiment is applicable to the case where a live body detection is performed in a vehicle by using a radar signal in the vehicle after the vehicle is locked. The method can be performed by an in-vehicle live body detection device and specifically includes the following steps:
需要说明的是,本发明中的雷达可以是任意类型的雷达,例如可以是UWB雷达。雷达的数量可以有多个,可分别安装于车内的任意位置,示例性的,雷达数量为两个,可分别用于检测车内前排和后排是否存在活体。活体可以包括动物、人物等。本方案对应的程序可以运行于低算力、低存储设备上。本方案可以应用于防盗提醒、儿童或宠物遗忘提醒等场景。例如如果目标车内活体检测结果为存在活体,则可以进行相应的安全提醒,从而实现对车辆的安全监测,提高车辆的安全性。It should be noted that the radar in the present invention can be any type of radar, for example, it can be a UWB radar. There can be multiple radars, which can be installed at any position in the car. For example, there are two radars, which can be used to detect whether there are living things in the front and back rows of the car. Living things can include animals, people, etc. The program corresponding to this solution can run on low-computing power and low-storage devices. This solution can be applied to scenarios such as anti-theft reminders and reminders for forgotten children or pets. For example, if the liveness detection result in the target car is that there is a live thing, a corresponding safety reminder can be made, thereby realizing safety monitoring of the vehicle and improving the safety of the vehicle.
S110、获取当前设定时长内的多帧雷达信号。S110, obtaining multiple frames of radar signals within a currently set time length.
本实施例中,当前设定时长可以是任意时长,例如可以为6秒、7秒、8秒等。一帧可以对应任意毫秒,优选的,一帧可以对应40毫秒。当前设定时长内的多帧雷达信号,在时间上是连续的,也即多帧雷达信号包括时序特征。In this embodiment, the current set duration may be any duration, for example, 6 seconds, 7 seconds, 8 seconds, etc. One frame may correspond to any millisecond, preferably, one frame may correspond to 40 milliseconds. The multiple frames of radar signals within the current set duration are continuous in time, that is, the multiple frames of radar signals include a time sequence feature.
其中,所述当前设定时长内最后一帧雷达信号为当前帧雷达信号。雷达信号可以包括活体数据,例如人类呼吸频率数据。The last radar signal frame within the currently set time period is the current radar signal frame. The radar signal may include living body data, such as human breathing rate data.
本实施例,可以实时进行车内活体检测,也即可以对每帧雷达信号进行车内活体检测。但每次进行车内活体检测时,需要包括设定时长内的多帧雷达信号(设定时长内的多帧雷达信号可以较为明显的表现出是否存在活体)。当前设定时长内的多帧雷达信号可以用于对当前帧雷达信号进行车内活体检测。本实施例中,每次进行车内活体检测时,通过设定时长内的多帧雷达信号进行车内活体检测,相对单帧预测的方式,可以提高检测的准确率。In this embodiment, in-vehicle liveness detection can be performed in real time, that is, in-vehicle liveness detection can be performed on each frame of radar signal. However, each time in-vehicle liveness detection is performed, multiple frames of radar signals within a set duration are required (multiple frames of radar signals within a set duration can more clearly show whether there is a live body). Multiple frames of radar signals within the current set duration can be used to perform in-vehicle liveness detection on the current frame of radar signal. In this embodiment, each time in-vehicle liveness detection is performed, in-vehicle liveness detection is performed using multiple frames of radar signals within a set duration, which can improve the accuracy of detection relative to a single-frame prediction method.
示例性的,当前设定时长以8秒为例,每帧对应40毫秒,当前设定时长内的多帧雷达信号可以表示200帧雷达信号,在对当前帧雷达信号进行车内活体检测时,所需获取的输入数据为当前帧雷达信号及其前199帧的雷达信号。For example, the current set time length is 8 seconds, and each frame corresponds to 40 milliseconds. Multiple frames of radar signals within the current set time length can represent 200 frames of radar signals. When performing in-vehicle living body detection on the current frame radar signal, the input data required to be obtained is the current frame radar signal and the radar signals of the previous 199 frames.
可选的,其中,所述雷达信号为设定的距离范围内的信号。所述距离范围由多个连续的距离子范围组成;所述距离子范围对应设定长度的距离。Optionally, the radar signal is a signal within a set distance range. The distance range is composed of a plurality of continuous distance sub-ranges; and the distance sub-range corresponds to a distance of a set length.
本实施例,以UWB雷达为例,在实际应用中,对于UWB雷达车内活体检测,UWB雷达可以对应多个距离子范围。本实施例,对多个距离子范围的具体数量不作限制,对设定长度的具体距离不作限制。示例性的,距离子范围用“tap”表征,UWB雷达可以对应64个tap,tap0-tap13可以视为噪声,也即tap0-tap13内的每个tap可以对应0米,而从tap14至tap63内的每个tap对应15cm。本实施例中,设定的距离范围可以表示为tap18至tap26,tap18至tap26对应0.75米至1.95米,设定的距离范围可以符合车内空间(车内空间有限)的检测。多个连续的距离子范围也即tap18至tap26。设定长度也即15cm。本实施例中,选取雷达信号中设定的距离范围内的信号,可以解决车内空间受限的问题。In this embodiment, taking UWB radar as an example, in actual application, for UWB radar in-vehicle live body detection, UWB radar can correspond to multiple distance sub-ranges. In this embodiment, there is no restriction on the specific number of multiple distance sub-ranges, and there is no restriction on the specific distance of the set length. Exemplarily, the distance sub-range is represented by "tap", and the UWB radar can correspond to 64 taps, tap0-tap13 can be regarded as noise, that is, each tap in tap0-tap13 can correspond to 0 meters, and each tap from tap14 to tap63 corresponds to 15cm. In this embodiment, the set distance range can be expressed as tap18 to tap26, tap18 to tap26 corresponds to 0.75 meters to 1.95 meters, and the set distance range can meet the detection of the in-vehicle space (limited in-vehicle space). Multiple continuous distance sub-ranges are tap18 to tap26. The set length is 15cm. In this embodiment, selecting the signal within the set distance range in the radar signal can solve the problem of limited in-vehicle space.
其中,每个距离子范围对应的雷达信号为复数信号,也即包括实部和虚部,本实施例中,雷达信号为经过取模之后的数据,例如对tap18距离子范围对应的雷达信号进行取模之后,可以是418.9367494。Among them, the radar signal corresponding to each distance sub-range is a complex signal, that is, it includes a real part and an imaginary part. In this embodiment, the radar signal is the data after modulo taking. For example, after modulo taking the radar signal corresponding to the tap18 distance sub-range, it can be 418.9367494.
S120、对所述当前设定时长内的多帧雷达信号进行下采样处理,获得下采样后的多帧雷达信号。S120: down-sample the multiple frames of radar signals within the currently set time length to obtain the down-sampled multiple frames of radar signals.
本实施例中,可以采用任意下采样的方法对设定时长内的多帧雷达信号进行下采样,使得所述下采样后的多帧雷达信号的帧数量小于所述当前设定时长内的多帧雷达信号的帧数量。例如下采样的方式可以为:均匀采样下(如按照固定采样间隔抽取)、随机下采样(如随机抽取)、基于信道强度的下采样(如选取信号强度大于设定信号强度阈值的帧)等。In this embodiment, any downsampling method can be used to downsample the multi-frame radar signal within the set time length, so that the number of frames of the downsampled multi-frame radar signal is less than the number of frames of the multi-frame radar signal within the current set time length. For example, the downsampling method can be: uniform sampling (such as sampling according to a fixed sampling interval), random downsampling (such as random sampling), channel strength-based downsampling (such as selecting frames with signal strength greater than a set signal strength threshold), etc.
可选的,对所述当前设定时长内的多帧雷达信号进行下采样处理,获得下采样后的多帧雷达信号,包括:按照设定采样间隔对所述当前设定时长内的多帧雷达信号进行下采样处理,获得下采样后的多帧雷达信号;所述下采样后的多帧雷达信号的帧数量小于所述当前设定时长内的多帧雷达信号的帧数量。Optionally, downsampling is performed on the multi-frame radar signal within the currently set time length to obtain the downsampled multi-frame radar signal, including: downsampling is performed on the multi-frame radar signal within the currently set time length according to a set sampling interval to obtain the downsampled multi-frame radar signal; the number of frames of the downsampled multi-frame radar signal is less than the number of frames of the multi-frame radar signal within the currently set time length.
本实施例,可以在满足采集速度和人类呼吸频率的前提下,采用均匀下采样的方式对所述当前设定时长内的多帧雷达信号进行下采样处理,同时保留了呼吸相关特征数据,可解决现有技术中输入特征过大,设备资源受限的问题,提高检测的准确率和速度。示例性的:当前设定时长内的多帧雷达信号以200帧雷达信号为例,设定采样间隔可以为每隔一定数量帧(如10帧)抽取一帧,也即可以从200帧雷达信号中,每隔10帧抽取一帧,可以得到20帧雷达信号,20帧雷达信号依然保持200帧雷达信号的时间连续性,也即下采样后的多帧雷达信号依然具有时序特征,可以进一步增加检测的准确性。In this embodiment, under the premise of meeting the acquisition speed and human breathing frequency, the multi-frame radar signal within the current set time length can be downsampled by uniform downsampling, while retaining the breathing-related feature data, which can solve the problem of too large input features and limited equipment resources in the prior art, and improve the accuracy and speed of detection. Exemplary: Taking 200 frames of radar signals as an example of the multi-frame radar signal within the current set time length, the sampling interval can be set to extract one frame every a certain number of frames (such as 10 frames), that is, from the 200 frames of radar signals, one frame can be extracted every 10 frames, and 20 frames of radar signals can be obtained. The 20 frames of radar signals still maintain the time continuity of the 200 frames of radar signals, that is, the multi-frame radar signals after downsampling still have timing characteristics, which can further increase the accuracy of detection.
S130、对所述下采样后的多帧雷达信号进行处理,获得目标雷达信号。S130: Process the downsampled multiple frames of radar signals to obtain target radar signals.
其中,目标雷达信号可以为一维数据。本实施例中,可以采用任意方式对所述下采样后的多帧雷达信号进行处理,使得下采样后的多帧雷达信号变为一维数据即可。例如,将下采样后的多帧雷达信号进行叠加或平均、将下采样后的多帧雷达信号进行扁平化以及合并处理等。The target radar signal may be one-dimensional data. In this embodiment, the downsampled multi-frame radar signal may be processed in any manner so that the downsampled multi-frame radar signal becomes one-dimensional data. For example, the downsampled multi-frame radar signal may be superimposed or averaged, flattened, and merged.
可选的,对所述下采样后的多帧雷达信号进行处理,获得目标雷达信号,包括:对所述设定的距离范围对应的所述下采样后的多帧雷达信号依次进行扁平化处理以及合并处理,获得目标雷达信号。Optionally, the downsampled multi-frame radar signals are processed to obtain a target radar signal, including: flattening and merging the downsampled multi-frame radar signals corresponding to the set distance range in sequence to obtain a target radar signal.
本实施例中,可以先对设定的距离范围对应的所述下采样后的多帧雷达信号进行扁平化处理,得到每个距离子范围对应的扁平时序雷达信号,再对多个距离子范围对应的扁平时序雷达信号进行合并处理,得到目标雷达信号。扁平时序雷达信号可以理解为扁平且含有时序特征的雷达信号,也即含有时序特征的一维数据。In this embodiment, the downsampled multi-frame radar signals corresponding to the set distance range can be flattened to obtain a flat time-series radar signal corresponding to each distance sub-range, and then the flat time-series radar signals corresponding to multiple distance sub-ranges can be merged to obtain the target radar signal. The flat time-series radar signal can be understood as a flat radar signal with time-series features, that is, one-dimensional data with time-series features.
S140、将所述目标雷达信号输入至设定的车内活体检测模型中,输出目标车内活体检测结果。S140: Input the target radar signal into a set in-vehicle living body detection model, and output a target in-vehicle living body detection result.
其中,车内活体检测模型可以是机器学习类型的模型,也可以是深度学习类型的模型,本实施例对此不作限制。优选的,设定的车内活体检测模型可以是机器学习中算力小、时间快的决策树算法,可以满足在低算力、低存储设备上运行的要求。本实施例中,设定的车内活体检测模型可以是基于训练集进行训练得到的,训练集可以由多个历史设定时长内的多帧雷达信号构成,每个历史设定时长内的多帧雷达信号对应的标签为存在活体或不存在活体。Among them, the in-vehicle liveness detection model can be a machine learning type model or a deep learning type model, and this embodiment does not limit this. Preferably, the set in-vehicle liveness detection model can be a decision tree algorithm with low computing power and fast time in machine learning, which can meet the requirements of running on low computing power and low storage devices. In this embodiment, the set in-vehicle liveness detection model can be obtained by training based on a training set, and the training set can be composed of multiple frames of radar signals within a plurality of historical set time periods, and the labels corresponding to the multiple frames of radar signals within each historical set time period are the presence of a live body or the absence of a live body.
其中,目标车内活体检测结果可以包括第一检测结果和第二检测结果,第一检测结果可以是存在活体,第二检测结果可以是不存在活体。The target vehicle in-vehicle live body detection result may include a first detection result and a second detection result. The first detection result may be the presence of a live body, and the second detection result may be the absence of a live body.
本实施例中,通过设定的车内活体检测模型对目标雷达信号进行车内活体检测,可以快速输出目标车内活体检测结果,单次预测耗时可以为0.4毫秒。In this embodiment, the in-vehicle liveness detection is performed on the target radar signal through the set in-vehicle liveness detection model, and the target in-vehicle liveness detection result can be quickly output, and the time consumption for a single prediction can be 0.4 milliseconds.
本实施例公开的技术方案,获取当前设定时长内的多帧雷达信号;对所述当前设定时长内的多帧雷达信号进行下采样处理,获得下采样后的多帧雷达信号;对所述下采样后的多帧雷达信号进行处理,获得目标雷达信号;将所述目标雷达信号输入至设定的车内活体检测模型中,输出目标车内活体检测结果。本公开实施例,通过对当前设定时长内的多帧雷达信号进行下采样处理以及对下采样后的多帧雷达信号进行处理,获得目标雷达信号,并通过设定的车内活体检测模型对目标雷达信号进行车内活体检测的方式,可以提高车内活体检测的准确率以及效率,从而可以提高车辆的安全性。The technical solution disclosed in this embodiment obtains a multi-frame radar signal within a currently set time length; downsamples the multi-frame radar signal within the currently set time length to obtain a multi-frame radar signal after downsampling; processes the multi-frame radar signal after downsampling to obtain a target radar signal; inputs the target radar signal into a set in-vehicle liveness detection model to output a target in-vehicle liveness detection result. The disclosed embodiment of the present invention improves the accuracy and efficiency of in-vehicle liveness detection by downsampling the multi-frame radar signal within the currently set time length and processing the multi-frame radar signal after downsampling to obtain a target radar signal, and performs in-vehicle liveness detection on the target radar signal through a set in-vehicle liveness detection model, thereby improving the safety of the vehicle.
图2为本发明实施例提供的另一种车内活体检测方法的流程图。本发明实施例是在上述发明实施例基础上的具体化,参见图2,本发明实施例提供的方法具体包括如下步骤:FIG2 is a flow chart of another in-vehicle liveness detection method provided by an embodiment of the present invention. The embodiment of the present invention is a specific implementation of the above-mentioned embodiment of the invention. Referring to FIG2 , the method provided by the embodiment of the present invention specifically includes the following steps:
S210、获取当前设定时长内的多帧雷达信号。S210: Acquire multiple frames of radar signals within a currently set time period.
其中,所述雷达信号为设定的距离范围内的信号。所述距离范围由多个连续的距离子范围组成。The radar signal is a signal within a set distance range, and the distance range is composed of a plurality of continuous distance sub-ranges.
S220、对所述当前设定时长内的多帧雷达信号进行下采样处理,获得下采样后的多帧雷达信号。S220: down-sample the multiple frames of radar signals within the currently set time length to obtain the down-sampled multiple frames of radar signals.
S230、对每个距离子范围对应的下采样后的多帧雷达信号进行扁平化处理,获得每个距离子范围对应的扁平时序雷达信号。S230: Flatten the down-sampled multi-frame radar signals corresponding to each distance sub-range to obtain a flat time-series radar signal corresponding to each distance sub-range.
示例性的,设定的距离范围仍以tap18至tap26为例,也即距离子范围的数量包括9个,下采样后的多帧雷达信号仍以20帧为例,对tap18至tap26中每个距离子范围对应的20帧雷达信号进行扁平化处理,每个距离子范围对应的扁平时序雷达信号可以为1*20的一维数据。Exemplarily, the set distance range is still taken as tap18 to tap26, that is, the number of distance sub-ranges includes 9, and the multi-frame radar signal after downsampling is still taken as 20 frames. The 20 frames of radar signals corresponding to each distance sub-range in tap18 to tap26 are flattened, and the flattened time series radar signal corresponding to each distance sub-range can be a one-dimensional data of 1*20.
S240、按照设定顺序将每个距离子范围对应的扁平时序雷达信号进行横向拼接,获得目标雷达信号。S240 , horizontally splicing the flat time-series radar signals corresponding to each distance sub-range according to a set order to obtain a target radar signal.
其中,设定顺序可以为多个距离子范围在设定的距离范围内的顺序,如tap18至tap26对应的排列顺序。示例性的,设定的距离范围仍以tap18至tap26为例,得到tap18至tap26对应的扁平时序雷达信号之后,按照tap18至tap26对应的设定顺序,依次将tap18至tap26对应的扁平时序雷达信号进行横向拼接,得到目标雷达信号,也即目标雷达信号可以为1*180的一维数据(通过9个1*20的一维数据拼接得到)。The setting order may be the order of multiple distance sub-ranges within the set distance range, such as the arrangement order corresponding to tap18 to tap26. Exemplarily, the set distance range is still taken as tap18 to tap26. After obtaining the flat time-series radar signals corresponding to tap18 to tap26, the flat time-series radar signals corresponding to tap18 to tap26 are sequentially horizontally spliced in accordance with the setting order corresponding to tap18 to tap26 to obtain the target radar signal, that is, the target radar signal may be 1*180 one-dimensional data (obtained by splicing 9 1*20 one-dimensional data).
S250、将所述目标雷达信号输入至设定的车内活体检测模型中,输出目标车内活体检测结果。S250: Input the target radar signal into a set in-vehicle living body detection model, and output a target in-vehicle living body detection result.
可选的,将所述目标雷达信号输入至设定的车内活体检测模型中,输出目标车内活体检测结果,包括:将所述目标雷达信号输入至设定的车内活体检测模型中,输出初始车内活体检测结果;若所述初始车内活体检测结果的概率值小于设定概率阈值,则分别确定所述当前帧雷达信号对应的前设定数量的历史帧雷达信号对应的历史设定时长;其中,每个历史设定时长内的最后一帧雷达信号为相应的历史帧雷达信号;基于多个历史设定时长对应的多个初始检测结果和当前设定时长对应的初始检测结果确定目标车内活体检测结果;若所述初始车内活体检测结果的概率值等于或大于设定概率阈值,则将所述初始车内活体检测结果作为目标车内活体检测结果。Optionally, the target radar signal is input into a set in-vehicle liveness detection model, and the target in-vehicle liveness detection result is output, including: inputting the target radar signal into a set in-vehicle liveness detection model, and outputting an initial in-vehicle liveness detection result; if the probability value of the initial in-vehicle liveness detection result is less than a set probability threshold, then determining the historical set time lengths corresponding to the previous set number of historical frame radar signals corresponding to the current frame radar signal; wherein the last frame radar signal within each historical set time length is the corresponding historical frame radar signal; determining the target in-vehicle liveness detection result based on multiple initial detection results corresponding to multiple historical set time lengths and the initial detection result corresponding to the current set time length; if the probability value of the initial in-vehicle liveness detection result is equal to or greater than the set probability threshold, then using the initial in-vehicle liveness detection result as the target in-vehicle liveness detection result.
本实施例中,通过设定的车内活体检测模型输出初始检测结果时,存在一定的波动(人静止坐在车内和站在车窗附近呼吸频率数据存在一定的相似性),但从车内存在活体到不存在活体是一个时间性的过程,可以结合前设定数量的历史帧雷达信号以及当前帧雷达信号对设定的车内活体检测模型输出的初始检测结果进行纠正。In this embodiment, when the initial detection result is output by the set in-vehicle liveness detection model, there are certain fluctuations (there are certain similarities in the breathing rate data of a person sitting still in the car and standing near the car window), but the process from the presence of a living body in the car to the absence of a living body is a temporal process. The initial detection result output by the set in-vehicle liveness detection model can be corrected by combining the previously set number of historical frame radar signals and the current frame radar signal.
本实施例,对具体的设定概率阈值不作限制,例如可以为50%。本实施例,对设定数量的具体数量不作限制,例如可以为4。In this embodiment, there is no restriction on the specific setting probability threshold, which may be 50% for example. In this embodiment, there is no restriction on the specific number of the setting quantity, which may be 4 for example.
示例性的,将所述目标雷达信号输入至设定的车内活体检测模型中,输出初始车内活体检测结果;若所述初始车内活体检测结果的概率值等于或大于设定概率阈值,则将所述初始车内活体检测结果直接作为目标车内活体检测结果。Exemplarily, the target radar signal is input into a set in-vehicle liveness detection model, and an initial in-vehicle liveness detection result is output; if the probability value of the initial in-vehicle liveness detection result is equal to or greater than a set probability threshold, the initial in-vehicle liveness detection result is directly used as the target in-vehicle liveness detection result.
若所述初始车内活体检测结果的概率值小于设定概率阈值,则分别确定所述当前帧雷达信号对应的前4个历史帧雷达信号对应的历史设定时长;前4个历史帧雷达信号可以按照时间先后的顺序,分别记作第一历史帧雷达信号、第二历史帧雷达信号、第三历史帧雷达信号以及第四历史帧雷达信号。前4个历史帧雷达信号对应的历史设定时长,按照时间先后的顺序,也可以分别记作第一历史设定时长、第二历史设定时长、第三历史设定时长以及第四历史设定时长,第四历史设定时长后面的设定时长为当前设定时长。其中,每个历史设定时长内的最后一帧雷达信号为相应的历史帧雷达信号。If the probability value of the initial in-vehicle liveness detection result is less than the set probability threshold, the historical set durations corresponding to the first four historical frame radar signals corresponding to the current frame radar signal are determined respectively; the first four historical frame radar signals can be recorded as the first historical frame radar signal, the second historical frame radar signal, the third historical frame radar signal and the fourth historical frame radar signal in chronological order. The historical set durations corresponding to the first four historical frame radar signals can also be recorded as the first historical set duration, the second historical set duration, the third historical set duration and the fourth historical set duration in chronological order, and the set duration after the fourth historical set duration is the current set duration. Among them, the last frame radar signal within each historical set duration is the corresponding historical frame radar signal.
如果第一历史设定时长以第1帧至第200帧内的200帧雷达信号(均为历史帧雷达信号)为例,第一历史设定时长最后一帧雷达信号为第一历史帧雷达信号,则第二历史设定时长可以为第2帧至第201帧内的200帧雷达信号(均为历史帧雷达信号),第二历史设定时长最后一帧雷达信号为第二历史帧雷达信号,第三历史设定时长可以为第3帧至第202帧内的200帧雷达信号(均为历史帧雷达信号),第三历史设定时长最后一帧雷达信号为第三历史帧雷达信号,第四历史设定时长可以为第4帧至第203帧内的200帧雷达信号(均为历史帧雷达信号),第四历史设定时长最后一帧雷达信号为第四历史帧雷达信号,当前设定时长可以为第5帧至第204帧内的200帧雷达信号(均为历史帧雷达信号),当前设定时长最后一帧雷达信号为当前帧雷达信号。If the first historical setting time length takes the 200 frames of radar signals from the 1st frame to the 200th frame (all are historical frame radar signals) as an example, and the last frame of radar signal of the first historical setting time length is the first historical frame radar signal, then the second historical setting time length can be the 200 frames of radar signals from the 2nd frame to the 201st frame (all are historical frame radar signals), and the last frame of radar signal of the second historical setting time length is the second historical frame radar signal, the third historical setting time length can be the 200 frames of radar signals from the 3rd frame to the 202nd frame (all are historical frame radar signals), and the last frame of radar signal of the third historical setting time length is the third historical frame radar signal, the fourth historical setting time length can be the 200 frames of radar signals from the 4th frame to the 203rd frame (all are historical frame radar signals), and the last frame of radar signal of the fourth historical setting time length is the fourth historical frame radar signal, and the current setting time length can be the 200 frames of radar signals from the 5th frame to the 204th frame (all are historical frame radar signals), and the last frame of radar signal of the current setting time length is the current frame radar signal.
根据第一历史设定时长、第二历史设定时长、第三历史设定时长、第四历史设定时长以及当前设定时长分别对应的初始检测结果确定目标活体结果。The target liveness result is determined according to the initial detection results corresponding to the first historical setting time, the second historical setting time, the third historical setting time, the fourth historical setting time and the current setting time.
可选的,所述初始车内活体检测结果包括第一检测结果和第二检测结果;基于多个历史设定时长对应的多个初始检测结果和当前设定时长对应的初始检测结果确定目标车内活体检测结果,包括:在多个历史设定时长对应的多个初始检测结果和当前设定时长对应的初始检测结果中,分别统计第一检测结果出现的次数以及第二检测结果出现的次数;若所述第一检测结果出现的次数大于所述第二检测结果出现的次数,则将所述第一检测结果作为目标车内活体检测结果;若所述第二检测结果出现的次数大于所述第一检测结果出现的次数,则将所述第二检测结果作为目标车内活体检测结果。Optionally, the initial in-vehicle liveness detection result includes a first detection result and a second detection result; determining the target in-vehicle liveness detection result based on multiple initial detection results corresponding to multiple historical set time lengths and the initial detection result corresponding to the current set time length includes: counting the number of occurrences of the first detection result and the number of occurrences of the second detection result in the multiple initial detection results corresponding to the multiple historical set time lengths and the initial detection result corresponding to the current set time length; if the number of occurrences of the first detection result is greater than the number of occurrences of the second detection result, taking the first detection result as the target in-vehicle liveness detection result; if the number of occurrences of the second detection result is greater than the number of occurrences of the first detection result, taking the second detection result as the target in-vehicle liveness detection result.
其中,第一检测结果为存在活体,第二检测结果为不存在活体。示例性的,如果第一历史设定时长对应的初始检测结果为不存在活体,第二历史设定时长对应的初始检测结果为不存在活体,第三历史设定时长对应的初始检测结果为存在活体,第四历史设定时长对应的初始检测结果为存在活体,当前设定时长对应的初始检测结果为存在活体,第一检测结果出现的次数为3次,第二检测结果出现的次数为2次,则目标车内活体检测结果可以为存在活体。Among them, the first detection result is the presence of a living body, and the second detection result is the absence of a living body. Exemplarily, if the initial detection result corresponding to the first historical setting time is the absence of a living body, the initial detection result corresponding to the second historical setting time is the absence of a living body, the initial detection result corresponding to the third historical setting time is the presence of a living body, the initial detection result corresponding to the fourth historical setting time is the presence of a living body, the initial detection result corresponding to the current setting time is the presence of a living body, the first detection result appears 3 times, and the second detection result appears 2 times, then the detection result of the living body in the target vehicle may be the presence of a living body.
如果第一历史设定时长对应的初始检测结果为存在活体,第二历史设定时长对应的初始检测结果为存在活体,第三历史设定时长对应的初始检测结果为不存在活体,第四历史设定时长对应的初始检测结果为不存在活体,当前设定时长对应的初始检测结果为不存在活体,第一检测结果出现的次数为2次,第二检测结果出现的次数为3次,则目标车内活体检测结果可以为不存在活体。If the initial detection result corresponding to the first historical setting time is the presence of a living body, the initial detection result corresponding to the second historical setting time is the presence of a living body, the initial detection result corresponding to the third historical setting time is the absence of a living body, the initial detection result corresponding to the fourth historical setting time is the absence of a living body, and the initial detection result corresponding to the current setting time is the absence of a living body, the first detection result appears 2 times, and the second detection result appears 3 times, then the live body detection result in the target vehicle may be the absence of a living body.
本实施例所提供的技术方案,通过对所述当前设定时长内的多帧雷达信号进行下采样处理,对每个距离子范围对应的下采样后的多帧雷达信号进行扁平化处理,获得每个距离子范围对应的扁平时序雷达信号,按照设定顺序将每个距离子范围对应的扁平时序雷达信号进行横向拼接,获得目标雷达信号,将所述目标雷达信号输入至设定的车内活体检测模型中,输出目标车内活体检测结果的方式,可以进一步提高车内活体检测的准确率以及效率。The technical solution provided in this embodiment downsamples the multi-frame radar signals within the currently set time length, flattens the downsampled multi-frame radar signals corresponding to each distance sub-range, obtains the flattened time-series radar signal corresponding to each distance sub-range, horizontally splices the flattened time-series radar signals corresponding to each distance sub-range in a set order, obtains the target radar signal, inputs the target radar signal into the set in-vehicle liveness detection model, and outputs the target in-vehicle liveness detection result, which can further improve the accuracy and efficiency of in-vehicle liveness detection.
图3为本公开实施例所提供的一种车内活体检测装置结构示意图,如图3所示,所述装置包括:信号获取模块310、下采样模块320、处理模块330以及检测模块340;FIG3 is a schematic diagram of the structure of a vehicle-based liveness detection device provided by an embodiment of the present disclosure. As shown in FIG3 , the device includes: a signal acquisition module 310, a downsampling module 320, a processing module 330, and a detection module 340;
信号获取模块310,用于获取当前设定时长内的多帧雷达信号;The signal acquisition module 310 is used to acquire multiple frames of radar signals within a currently set time period;
下采样模块320,用于对所述当前设定时长内的多帧雷达信号进行下采样处理,获得下采样后的多帧雷达信号;A downsampling module 320 is used to perform downsampling processing on the multi-frame radar signal within the currently set time length to obtain the downsampled multi-frame radar signal;
处理模块330,用于对所述下采样后的多帧雷达信号进行处理,获得目标雷达信号;A processing module 330 is used to process the downsampled multi-frame radar signal to obtain a target radar signal;
检测模块340,用于将所述目标雷达信号输入至设定的车内活体检测模型中,输出目标车内活体检测结果。The detection module 340 is used to input the target radar signal into a set in-vehicle living body detection model and output a target in-vehicle living body detection result.
本实施例公开的技术方案,通过信号获取模块获取当前设定时长内的多帧雷达信号;通过下采样模块对所述当前设定时长内的多帧雷达信号进行下采样处理,获得下采样后的多帧雷达信号;通过处理模块对所述下采样后的多帧雷达信号进行处理,获得目标雷达信号;通过检测模块将所述目标雷达信号输入至设定的车内活体检测模型中,输出目标车内活体检测结果。本公开实施例,通过对当前设定时长内的多帧雷达信号进行下采样处理以及对下采样后的多帧雷达信号进行处理,获得目标雷达信号,并通过设定的车内活体检测模型对目标雷达信号进行车内活体检测的方式,可以提高车内活体检测的准确率以及效率,从而可以提高车辆的安全性。The technical solution disclosed in this embodiment is to obtain a multi-frame radar signal within a currently set time length through a signal acquisition module; to perform downsampling processing on the multi-frame radar signal within the currently set time length through a downsampling module to obtain a multi-frame radar signal after downsampling; to process the multi-frame radar signal after downsampling through a processing module to obtain a target radar signal; and to input the target radar signal into a set in-vehicle liveness detection model through a detection module to output a target in-vehicle liveness detection result. The embodiment disclosed in this embodiment can improve the accuracy and efficiency of in-vehicle liveness detection by downsampling the multi-frame radar signal within the currently set time length and processing the multi-frame radar signal after downsampling to obtain a target radar signal, and perform in-vehicle liveness detection on the target radar signal through a set in-vehicle liveness detection model, thereby improving the safety of the vehicle.
其中,所述雷达信号为设定的距离范围内的信号。The radar signal is a signal within a set distance range.
可选的,下采样模块具体用于:按照设定采样间隔对所述当前设定时长内的多帧雷达信号进行下采样处理,获得下采样后的多帧雷达信号;所述下采样后的多帧雷达信号的帧数量小于所述当前设定时长内的多帧雷达信号的帧数量。Optionally, the downsampling module is specifically used to: downsample the multi-frame radar signal within the current set time length according to a set sampling interval to obtain the downsampled multi-frame radar signal; the number of frames of the downsampled multi-frame radar signal is less than the number of frames of the multi-frame radar signal within the current set time length.
可选的,处理模块具体用于:对所述设定的距离范围对应的所述下采样后的多帧雷达信号依次进行扁平化处理以及合并处理,获得目标雷达信号。Optionally, the processing module is specifically used to: sequentially flatten and merge the down-sampled multiple frames of radar signals corresponding to the set distance range to obtain a target radar signal.
其中,所述距离范围由多个连续的距离子范围组成;所述距离子范围对应设定长度的距离;可选的,处理模块还用于对每个距离子范围对应的下采样后的多帧雷达信号进行扁平化处理,获得每个距离子范围对应的扁平时序雷达信号;按照设定顺序将每个距离子范围对应的扁平时序雷达信号进行横向拼接,获得目标雷达信号。Wherein, the distance range is composed of multiple continuous distance sub-ranges; the distance sub-range corresponds to a distance of a set length; optionally, the processing module is also used to flatten the down-sampled multi-frame radar signals corresponding to each distance sub-range to obtain a flat time-series radar signal corresponding to each distance sub-range; and horizontally splice the flat time-series radar signals corresponding to each distance sub-range in a set order to obtain a target radar signal.
其中,所述当前设定时长内最后一帧雷达信号为当前帧雷达信号;可选的,检测模块具体用于:将所述目标雷达信号输入至设定的车内活体检测模型中,输出初始车内活体检测结果;若所述初始车内活体检测结果的概率值小于设定概率阈值,则分别确定所述当前帧雷达信号对应的前设定数量的历史帧雷达信号对应的历史设定时长;其中,每个历史设定时长内的最后一帧雷达信号为相应的历史帧雷达信号;基于多个历史设定时长对应的多个初始检测结果和当前设定时长对应的初始检测结果确定目标车内活体检测结果;若所述初始车内活体检测结果的概率值等于或大于设定概率阈值,则将所述初始车内活体检测结果作为目标车内活体检测结果。Among them, the last frame radar signal within the current set time length is the current frame radar signal; optionally, the detection module is specifically used to: input the target radar signal into the set in-vehicle liveness detection model, and output the initial in-vehicle liveness detection result; if the probability value of the initial in-vehicle liveness detection result is less than the set probability threshold, then determine the historical set time lengths corresponding to the previous set number of historical frame radar signals corresponding to the current frame radar signal; wherein the last frame radar signal within each historical set time length is the corresponding historical frame radar signal; determine the target in-vehicle liveness detection result based on multiple initial detection results corresponding to multiple historical set time lengths and the initial detection result corresponding to the current set time length; if the probability value of the initial in-vehicle liveness detection result is equal to or greater than the set probability threshold, then use the initial in-vehicle liveness detection result as the target in-vehicle liveness detection result.
所述初始车内活体检测结果包括第一检测结果和第二检测结果;可选的,检测模块还用于:在多个历史设定时长对应的多个初始检测结果和当前设定时长对应的初始检测结果中,分别统计第一检测结果出现的次数以及第二检测结果出现的次数;若所述第一检测结果出现的次数大于所述第二检测结果出现的次数,则将所述第一检测结果作为目标车内活体检测结果;若所述第二检测结果出现的次数大于所述第一检测结果出现的次数,则将所述第二检测结果作为目标车内活体检测结果。The initial in-vehicle liveness detection result includes a first detection result and a second detection result; optionally, the detection module is also used to: respectively count the number of occurrences of the first detection result and the number of occurrences of the second detection result in multiple initial detection results corresponding to multiple historical set time lengths and the initial detection result corresponding to the current set time length; if the number of occurrences of the first detection result is greater than the number of occurrences of the second detection result, use the first detection result as the target in-vehicle liveness detection result; if the number of occurrences of the second detection result is greater than the number of occurrences of the first detection result, use the second detection result as the target in-vehicle liveness detection result.
本公开实施例所提供的车内活体检测装置可执行本公开任意实施例所提供的车内活体检测方法,具备执行方法相应的功能模块和有益效果。The in-vehicle liveness detection device provided in the embodiments of the present disclosure can execute the in-vehicle liveness detection method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
值得注意的是,上述装置所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本公开实施例的保护范围。It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
图3示出了可以用来实施本发明的实施例的电子设备10的结构示意图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备(如头盔、眼镜、手表等)和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本发明的实现。FIG3 shows a block diagram of an electronic device 10 that can be used to implement an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and/or required herein.
如图3所示,电子设备10包括至少一个处理器11,以及与至少一个处理器11通信连接的存储器,如只读存储器(ROM)12、随机访问存储器(RAM)13等,其中,存储器存储有可被至少一个处理器执行的计算机程序,处理器11可以根据存储在只读存储器(ROM)12中的计算机程序或者从存储单元18加载到随机访问存储器(RAM)13中的计算机程序,来执行各种适当的动作和处理。在RAM 13中,还可存储电子设备10操作所需的各种程序和数据。处理器11、ROM 12以及RAM 13通过总线14彼此相连。输入/输出(I/O)接口15也连接至总线14。As shown in FIG3 , the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11 in communication, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to the bus 14.
电子设备10中的多个部件连接至I/O接口15,包括:输入单元16,例如键盘、鼠标等;输出单元17,例如各种类型的显示器、扬声器等;存储单元18,例如磁盘、光盘等;以及通信单元19,例如网卡、调制解调器、无线通信收发机等。通信单元19允许电子设备10通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks.
处理器11可以是各种具有处理和计算能力的通用和/或专用处理组件。处理器11的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的处理器、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。处理器11执行上文所描述的各个方法和处理,例如方法车内活体检测。The processor 11 may be a variety of general and/or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the method for in-vehicle liveness detection.
在一些实施例中,方法车内活体检测可被实现为计算机程序,其被有形地包含于计算机可读存储介质,例如存储单元18。在一些实施例中,计算机程序的部分或者全部可以经由ROM 12和/或通信单元19而被载入和/或安装到电子设备10上。当计算机程序加载到RAM 13并由处理器11执行时,可以执行上文描述的方法车内活体检测的一个或多个步骤。备选地,在其他实施例中,处理器11可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行方法车内活体检测。In some embodiments, the method for in-vehicle liveness detection can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and/or installed on the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for in-vehicle liveness detection described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the method for in-vehicle liveness detection in any other appropriate manner (for example, by means of firmware).
本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and/or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
用于实施本发明的方法的计算机程序可以采用一个或多个编程语言的任何组合来编写。这些计算机程序可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器,使得计算机程序当由处理器执行时使流程图和/或框图中所规定的功能/操作被实施。计算机程序可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions/operations specified in the flow chart and/or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
在本发明的上下文中,计算机可读存储介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的计算机程序。计算机可读存储介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。备选地,计算机可读存储介质可以是机器可读信号介质。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
为了提供与用户的交互,可以在电子设备上实施此处描述的系统和技术,该电子设备具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给电子设备。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)、区块链网络和互联网。The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
计算系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与VPS服务中,存在的管理难度大,业务扩展性弱的缺陷。A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
本发明实施例还提供了一种计算机程序产品,包括计算机程序,该计算机程序在被处理器执行时实现如本申请任一实施例所提供的车内活体检测方法。An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the in-vehicle living body detection method provided in any embodiment of the present application.
计算机程序产品在实现的过程中,可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,程序设计语言包括面向对象的程序设计语言,诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言,诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410862399.8A CN118795454A (en) | 2024-06-28 | 2024-06-28 | In-vehicle liveness detection method, device, equipment, storage medium and program product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410862399.8A CN118795454A (en) | 2024-06-28 | 2024-06-28 | In-vehicle liveness detection method, device, equipment, storage medium and program product |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118795454A true CN118795454A (en) | 2024-10-18 |
Family
ID=93021191
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410862399.8A Pending CN118795454A (en) | 2024-06-28 | 2024-06-28 | In-vehicle liveness detection method, device, equipment, storage medium and program product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118795454A (en) |
-
2024
- 2024-06-28 CN CN202410862399.8A patent/CN118795454A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP4167137A1 (en) | Model determination method and apparatus, electronic device and memory | |
US20230005272A1 (en) | Method and apparatus for detecting traffic anomaly, device, storage medium and program product | |
CN113934958B (en) | Page loading method and device, electronic equipment and computer readable medium | |
CN118522057B (en) | Facial expression recognition method, device, electronic device and storage medium | |
US20220284888A1 (en) | Method and apparatus for in-vehicle call, device, medium and product | |
CN112948223A (en) | Method and device for monitoring operation condition | |
CN116994198A (en) | Passenger behavior detection method, apparatus, electronic device, and computer-readable medium | |
CN118795454A (en) | In-vehicle liveness detection method, device, equipment, storage medium and program product | |
CN114554110B (en) | Video generation method, device, electronic equipment and storage medium | |
CN114529945A (en) | Emotion recognition method, device, equipment and storage medium | |
CN117272941B (en) | Data processing method, apparatus, device, computer readable storage medium and product | |
CN113821537A (en) | Method, apparatus, device and storage medium for reading data | |
CN117253334A (en) | Electric vehicle charging station smoke fire early warning method, device and equipment | |
CN114445515B (en) | Image artifact removal method and device, electronic equipment and storage medium | |
CN113208566B (en) | A data processing method, device, electronic device and storage medium | |
CN114697247B (en) | Fault detection method, device, equipment and storage medium of streaming media system | |
CN114664410B (en) | Video-based focus classification method and device, electronic equipment and medium | |
CN111582031B (en) | Multi-model collaborative violence detection method and system based on neural network | |
CN114998273A (en) | Blood vessel image processing method and device, electronic equipment and storage medium | |
CN114947772A (en) | A method for detecting vital signs | |
CN116469576B (en) | Dispute event identification method, device, electronic equipment and computer readable medium | |
CN117649933B (en) | Online consultation assistance method and device, electronic equipment and storage medium | |
WO2022205400A1 (en) | Voice recognition-based safety alerting method and apparatus, and terminal device | |
CN113556575A (en) | Method, apparatus, device, medium and product for compressing data | |
CN115312042A (en) | Method, apparatus, device and storage medium for processing audio |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |