CN117711075A - Biological information living body identification method, system, equipment and storage medium - Google Patents

Biological information living body identification method, system, equipment and storage medium Download PDF

Info

Publication number
CN117711075A
CN117711075A CN202311598706.8A CN202311598706A CN117711075A CN 117711075 A CN117711075 A CN 117711075A CN 202311598706 A CN202311598706 A CN 202311598706A CN 117711075 A CN117711075 A CN 117711075A
Authority
CN
China
Prior art keywords
speckle
brightness
speckles
relation
living body
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
Application number
CN202311598706.8A
Other languages
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.)
Chongqing Guangjian Aoshen Technology Co ltd
Zhuhai Hengqin Guangjian Technology Co ltd
Shenzhen Guangjian Technology Co Ltd
Original Assignee
Chongqing Guangjian Aoshen Technology Co ltd
Zhuhai Hengqin Guangjian Technology Co ltd
Shenzhen Guangjian 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 Chongqing Guangjian Aoshen Technology Co ltd, Zhuhai Hengqin Guangjian Technology Co ltd, Shenzhen Guangjian Technology Co Ltd filed Critical Chongqing Guangjian Aoshen Technology Co ltd
Priority to CN202311598706.8A priority Critical patent/CN117711075A/en
Publication of CN117711075A publication Critical patent/CN117711075A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/40Spoof detection, e.g. liveness detection
    • G06V40/45Detection of the body part being alive
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/0464Convolutional networks [CNN, ConvNet]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/34Smoothing or thinning of the pattern; Morphological operations; Skeletonisation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/60Extraction of image or video features relating to illumination properties, e.g. using a reflectance or lighting model
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/75Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
    • G06V10/759Region-based matching
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/82Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Evolutionary Computation (AREA)
  • Software Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Biomedical Technology (AREA)
  • General Engineering & Computer Science (AREA)
  • Biophysics (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Molecular Biology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Medical Informatics (AREA)
  • Computational Linguistics (AREA)
  • Human Computer Interaction (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

一种生物信息活体识别方法,包括:步骤S1:获取散斑图,并检测到目标区域;所述目标区域是包含生物信息的区域;步骤S2:识别所述目标区域上的多个散斑及散斑亮度;步骤S3:计算每个散斑与相邻散斑的亮度关系;步骤S4:根据多个散斑的所述亮度关系、所述散斑亮度与形状的关系判断目标对象是否为活体。本发明在散斑图上检测目标区域,获得多个散斑与相邻散斑的亮度关系,进而利用多个散斑的亮度关系、散斑亮度与形状的关系判断目标对象是否为活体,具有识别速度快、适应性强、生物信息活体识别效果好、算力要求低的优点。

A biological information living body recognition method, including: Step S1: Obtain a speckle pattern and detect a target area; the target area is an area containing biological information; Step S2: Identify multiple speckles on the target area and Speckle brightness; Step S3: Calculate the brightness relationship between each speckle and adjacent speckles; Step S4: Determine whether the target object is a living body based on the brightness relationship of multiple speckles and the relationship between the speckle brightness and shape. . The present invention detects the target area on the speckle map, obtains the brightness relationship between multiple speckles and adjacent speckles, and then uses the brightness relationship between multiple speckles, the relationship between speckle brightness and shape to determine whether the target object is a living body, and has It has the advantages of fast recognition speed, strong adaptability, good biological information recognition effect, and low computing power requirements.

Description

一种生物信息活体识别方法、系统、设备及存储介质A biological information living identification method, system, equipment and storage medium

技术领域Technical field

本发明涉及人体生物特征识别技术领域,具体地,涉及一种生物信息活体识别方法、系统、设备及存储介质。The present invention relates to the technical field of human biometric identification, and specifically, to a biological information identification method, system, equipment and storage medium.

背景技术Background technique

激光散斑是指激光在散射体表面的漫反射或通过一个透明散射体(如毛玻璃)时,在散射表面或附近的光场中可以观察到一种无规分布的亮暗斑点,这种斑点称为激光散斑。Laser speckle refers to the diffuse reflection of laser light on the surface of a scattering body or when it passes through a transparent scattering body (such as frosted glass). A randomly distributed bright and dark spot can be observed in the light field on or near the scattering surface. This kind of spot It's called laser speckle.

人体的皮肤内部结构复杂,其中的毛细血管遍布皮肤内表面,皮肤的真皮层内包含多种复杂皮肤组织(如:神经纤维、皮脂腺、毛囊、汗腺等),是典型的各向异性材料,而目前很难将攻击假体做成具有和真人皮肤相似的各向异性特性,目前市面可见的攻击假体基本上由均质材料制成。由于真人皮肤和攻击假体的在不同方向上的材质均匀性不同,而激光散斑具有较强的穿透性能,光束会穿透角质层和皮下组织,角质层的厚度、形态、皮下组织内的发色团等因素都会影响光的散射和吸收现象,这导致真人皮肤和攻击假体对于激光散斑吸收和反射的光学特性存在显著差异。The internal structure of human skin is complex, with capillaries all over the inner surface of the skin. The dermis layer of the skin contains a variety of complex skin tissues (such as nerve fibers, sebaceous glands, hair follicles, sweat glands, etc.), which is a typical anisotropic material. It is currently difficult to make an attack prosthesis with anisotropic properties similar to that of real skin. Attack prostheses currently available on the market are basically made of homogeneous materials. Since the material uniformity of real skin and implants is different in different directions, laser speckle has strong penetrating performance, and the beam will penetrate the stratum corneum and subcutaneous tissue. Factors such as chromophores will affect the scattering and absorption of light, which leads to significant differences in the optical properties of laser speckle absorption and reflection between real skin and attack prostheses.

活体判定算法是对人体生物图像,如人脸图像、手掌图像、瞳孔图像、指纹图像等,进行识别之前的重要一环,在进行识别之前,算法需要判断所要识别的图像属于活体真人的图像,需要抵挡打印照片,电子视频,3D手模等非真人活体图像的攻击。目前常用的手掌活体算法有:基于RGB的手掌活体算法,基于近红外活体算法以及基于深度手掌活体算法。对于一些特别逼真或者和真人特别接近的攻击假体(比如3D硅胶手套,3D硅胶手模等)基于近红外或者RGB的活体算法很容易出现误判,而基于深度的活体算法能够抵挡2D假体攻击,但是对于3D类别的假体攻击(比如3D硅胶手套,3D手模等等)往往是无能为力。因此,本发明所提出的基于散斑图的活体判定方法,作为上述已有方法的补充,抓住了假体攻击材质和真人皮肤的本质特性区别,对于各类不同假体均具有良好的抵挡能力,能够很好的弥补上述已有活体判定算法的不足。The liveness determination algorithm is an important step before identifying human biological images, such as face images, palm images, pupil images, fingerprint images, etc. Before identification, the algorithm needs to determine that the image to be recognized belongs to a live real person. It is necessary to resist attacks from printed photos, electronic videos, 3D hand models and other non-real-life images. Currently commonly used palm living algorithms include: RGB-based palm living algorithm, near-infrared based palm living algorithm and depth-based palm living algorithm. For some attack prostheses that are particularly realistic or close to real people (such as 3D silicone gloves, 3D silicone hand models, etc.), the near-infrared or RGB-based in vivo algorithm is prone to misjudgment, while the depth-based in vivo algorithm can withstand 2D prostheses. Attacks, but are often powerless against 3D prosthetic attacks (such as 3D silicone gloves, 3D hand models, etc.). Therefore, the living body determination method based on the speckle pattern proposed by the present invention, as a supplement to the above-mentioned existing methods, captures the essential characteristic difference between the prosthesis attack material and real skin, and has good resistance to various types of different prostheses. ability, which can well make up for the shortcomings of the above-mentioned existing living body determination algorithms.

以上背景技术内容的公开仅用于辅助理解本发明的发明构思及技术方案,其并不必然属于本专利申请的现有技术,在没有明确的证据表明上述内容在本专利申请的申请日已经公开的情况下,上述背景技术不应当用于评价本申请的新颖性和创造性。The disclosure of the above background technology content is only used to assist in understanding the inventive concepts and technical solutions of the present invention. It does not necessarily belong to the prior art of this patent application. In the absence of clear evidence that the above content has been disclosed on the filing date of this patent application, In this case, the above background technology should not be used to evaluate the novelty and inventiveness of this application.

发明内容Contents of the invention

为此,本发明在散斑图上检测目标区域,获得多个散斑与相邻散斑的亮度关系,进而利用多个散斑的亮度关系、散斑亮度与形状的关系判断目标对象是否为活体,具有识别速度快、适应性强、生物信息活体识别效果好、算力要求低的优点。To this end, the present invention detects the target area on the speckle map, obtains the brightness relationship between multiple speckles and adjacent speckles, and then uses the brightness relationship between multiple speckles and the relationship between speckle brightness and shape to determine whether the target object is Living bodies have the advantages of fast recognition speed, strong adaptability, good biological information living body recognition effect, and low computing power requirements.

第一方面,本发明提供一种生物信息活体识别方法,其特征在于,包括:In a first aspect, the present invention provides a biological information identification method, which is characterized in that it includes:

步骤S1:获取散斑图,并检测到目标区域;所述目标区域是包含生物信息的区域;Step S1: Obtain the speckle pattern and detect the target area; the target area is an area containing biological information;

步骤S2:识别所述目标区域上的多个散斑及散斑亮度;Step S2: Identify multiple speckles and speckle brightness on the target area;

步骤S3:计算每个散斑与相邻散斑的亮度关系;Step S3: Calculate the brightness relationship between each speckle and adjacent speckles;

步骤S4:根据多个散斑的所述亮度关系、所述散斑亮度与形状的关系判断目标对象是否为活体。Step S4: Determine whether the target object is a living body according to the brightness relationship of multiple speckles and the relationship between the speckle brightness and shape.

可选地,所述的一种生物信息活体识别方法,其特征在于,步骤S1包括:Optionally, the biological information identification method is characterized in that step S1 includes:

步骤M11:采集散斑图像;Step M11: Collect speckle images;

步骤M12:对采集到的散斑图像进行预处理;Step M12: Preprocess the collected speckle images;

步骤M13:从预处理后的散斑图像中提取特征;Step M13: Extract features from the preprocessed speckle image;

步骤M14:将提取到的特征与已知的目标区域进行匹配;Step M14: Match the extracted features with the known target area;

步骤M15:将匹配结果输出。Step M15: Output the matching results.

可选地,所述的一种生物信息活体识别方法,其特征在于,步骤S2包括:Optionally, the biological information identification method is characterized in that step S2 includes:

步骤S21:根据边缘检测算法检测所述散斑图中的边缘,得到每个散斑的位置;Step S21: Detect edges in the speckle pattern according to an edge detection algorithm and obtain the position of each speckle;

步骤S22:对所述边缘进行膨胀和腐蚀操作,得到每个散斑的精确位置;Step S22: Perform expansion and erosion operations on the edge to obtain the precise position of each speckle;

步骤S23:对每个散斑进行位置标记,确定在图像中的具体位置;Step S23: Mark the position of each speckle to determine its specific position in the image;

步骤S24:根据每个散斑的具体位置,计算每个散斑的平均亮度值及亮度分布比重。Step S24: Calculate the average brightness value and brightness distribution proportion of each speckle based on the specific location of each speckle.

可选地,所述的一种生物信息活体识别方法,其特征在于,步骤S3包括:Optionally, the biological information identification method is characterized in that step S3 includes:

步骤S31:根据每个散斑的位置,在距离约束下,找到多个相邻散斑;Step S31: Find multiple adjacent speckles according to the position of each speckle and under distance constraints;

步骤S32:根据所述散斑与所述相邻散斑的最大亮度的差值向量相乘,得到所述散斑的高差值向量;Step S32: Multiply the difference vector of the maximum brightness of the speckle and the adjacent speckle to obtain the high difference vector of the speckle;

步骤S33:根据所述散斑与所述相邻散斑的平均亮度的差值向量相乘,得到所述散斑的均差值向量。Step S33: Multiply the difference vector of the average brightness of the speckle and the adjacent speckle to obtain the mean difference vector of the speckle.

可选地,所述的一种生物信息活体识别方法,其特征在于,在步骤S4中采用深度学习模型判断目标对象是否为活体,所述深度学习模型在训练时的神经网络包括:第一反向残差模块、第一池化层、第二反向残差模块、第二池化层、第三反向残差模块、第一叠加层、第三池化层、第四反向残差模块、第二叠加层、第四池化层、第五反向残差模块、第三卷积层、第五池化层、随机丢弃层、分类器、第一卷积层、第二卷积层;其中,所述第一反向残差模块输出到所述第一池化层和所述第一卷积层,所述第一卷积层和所述第三反向残差模块输入所述第一叠加层,所述第二反向残差模块输出到所述第二卷积层和所述第二池化层,所述第二卷积层和所述第四反向残差模块输入所述第二叠加层;所述分类器输出活体概率和假体概率。Optionally, the biological information living body identification method is characterized in that in step S4, a deep learning model is used to determine whether the target object is a living body. The neural network of the deep learning model during training includes: a first inverse reaction. Directional residual module, first pooling layer, second reverse residual module, second pooling layer, third reverse residual module, first overlay layer, third pooling layer, fourth reverse residual module Module, second stacking layer, fourth pooling layer, fifth inverse residual module, third convolutional layer, fifth pooling layer, random dropout layer, classifier, first convolutional layer, second convolution layer; wherein, the first reverse residual module outputs to the first pooling layer and the first convolution layer, and the first convolution layer and the third reverse residual module input the The first overlay layer, the second reverse residual module output to the second convolution layer and the second pooling layer, the second convolution layer and the fourth reverse residual module The second overlay is input; the classifier outputs a live probability and a prosthetic probability.

可选地,所述的一种生物信息活体识别方法,其特征在于,步骤S4包括:Optionally, the biological information identification method is characterized in that step S4 includes:

步骤T41:统计多个散斑的所述亮度关系,如果符合预设条件,执行步骤T42,否则判定为假体;Step T41: Count the brightness relationships of multiple speckles. If the preset conditions are met, step T42 is executed. Otherwise, it is determined to be a prosthesis;

步骤T42:统计散斑的所述平均亮度与所述形状的关系,如果符合预设条件,执行步骤T43,否则判定为假体;Step T42: Calculate the relationship between the average brightness of the speckle and the shape. If it meets the preset conditions, execute step T43; otherwise, it is determined to be a prosthesis;

步骤T43:统计散斑的所述亮度分布比重与所述形状的关系,如果符合预设条件,判定为活体,否则判定为假体。Step T43: Calculate the relationship between the brightness distribution proportion of the speckle and the shape. If it meets the preset conditions, it is determined to be a living body, otherwise it is determined to be a prosthesis.

可选地,所述的一种生物信息活体识别方法,其特征在于,步骤S4包括:Optionally, the biological information identification method is characterized in that step S4 includes:

步骤S41:统计所述散斑亮度与形状的关系,如果符合预设条件,执行步骤S42,否则判定为假体;Step S41: Calculate the relationship between the speckle brightness and shape. If it meets the preset conditions, execute step S42; otherwise, it is determined to be a prosthesis;

步骤S42:统计所述高差值向量的分布,获得大于第一阈值的散斑数量m;Step S42: Statistics the distribution of the high difference vectors to obtain the number m of speckles greater than the first threshold;

步骤S43:如果m大于第二阈值,执行步骤S44,否则判定为假体;Step S43: If m is greater than the second threshold, execute step S44, otherwise it is determined to be a prosthesis;

步骤S44:统计所述均差值向量的分布,获得大于第三阈值的散斑数量n;Step S44: Statistics the distribution of the mean difference vector, and obtains the number n of speckles greater than the third threshold;

步骤S45:如果n大于第四阈值,判定为活体,否则判定为假体。Step S45: If n is greater than the fourth threshold, it is determined to be a living body, otherwise it is determined to be a prosthesis.

第二方面,本发明提供一种生物信息活体识别系统,用于实现前述任一项所述的生物信息活体识别方法,其特征在于,包括:In a second aspect, the present invention provides a biological information identification system for implementing any of the aforementioned biological information identification methods, which is characterized in that it includes:

获取模块,用于获取散斑图,并检测到目标区域;所述目标区域是包含生物信息的区域;An acquisition module is used to acquire a speckle pattern and detect a target area; the target area is an area containing biological information;

识别模块,用于识别所述目标区域上的多个散斑及散斑亮度;An identification module, used to identify multiple speckles and speckle brightness on the target area;

计算模块,用于计算每个散斑与相邻散斑的亮度关系;A calculation module used to calculate the brightness relationship between each speckle and adjacent speckles;

判断模块,用于根据多个散斑的所述亮度关系、所述散斑亮度与形状的关系判断目标对象是否为活体。A judgment module configured to judge whether the target object is a living body according to the brightness relationship of multiple speckles and the relationship between the speckle brightness and shape.

第三方面,本发明提供一种生物信息活体识别设备,其特征在于,包括:In a third aspect, the present invention provides a biological information identification device, which is characterized in that it includes:

处理器;processor;

存储器,其中存储有所述处理器的可执行指令;A memory in which executable instructions of the processor are stored;

其中,所述处理器配置为经由执行所述可执行指令来执行前述中任意一项所述生物信息活体识别方法的步骤。Wherein, the processor is configured to execute any of the foregoing steps of the biological information identification method by executing the executable instructions.

第四方面,本发明提供一种计算机可读存储介质,用于存储程序,其特征在于,所述程序被执行时实现前述任意一项所述生物信息活体识别方法的步骤。In a fourth aspect, the present invention provides a computer-readable storage medium for storing a program, characterized in that when the program is executed, the steps of any one of the aforementioned biological information identification methods are implemented.

与现有技术相比,本发明具有如下的有益效果:Compared with the prior art, the present invention has the following beneficial effects:

本发明利用散斑图直接进行活体检测,利用了散斑在不同深度、不同材质表面的效果不同,根据多个散斑之间的亮度关系与形态,判断目标对象是否为活体,比利用单个散斑特性进行活体识别具有更好的效果,同时因为是多个散斑间的对比,也可以更好地识别三维假体的攻击。The present invention uses speckle patterns to directly conduct living body detection, taking advantage of the different effects of speckles at different depths and surfaces of different materials. Based on the brightness relationship and shape between multiple speckles, it is judged whether the target object is a living body, which is better than using a single speckle pattern. Speckle characteristics have better results in living body recognition. At the same time, because of the comparison between multiple speckles, it can also better identify attacks on three-dimensional prostheses.

本发明可以对三维硅胶手模,三维塑料手模,三维橡胶手模,三维硅胶套,二维平面假手做出假体的判断,能够有效的抓住活体真人手和攻击假体的本质特征,对于各类攻击假体具有广泛的抵挡作用。The invention can make prosthetic judgments on three-dimensional silicone hand models, three-dimensional plastic hand models, three-dimensional rubber hand models, three-dimensional silicone sleeves, and two-dimensional planar prosthetic hands, and can effectively grasp the essential characteristics of living real hands and attack the prostheses. It has a wide range of resistance to various types of attack prostheses.

本发明可以有效的降低环境光照给算法所带来的影响,在白天黑夜以及各种极端光照之下,能够稳定的工作而不受影响。The invention can effectively reduce the impact of ambient lighting on the algorithm, and can work stably without being affected during the day and night and under various extreme lighting conditions.

附图说明Description of the drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。通过阅读参照以下附图对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显:In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only These are embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on the provided drawings without exerting creative efforts. Other features, objects and advantages of the present invention will become more apparent by reading the detailed description of the non-limiting embodiments with reference to the following drawings:

图1为本发明实施例中一种生物信息活体识别方法的步骤流程图;Figure 1 is a step flow chart of a biological information identification method in an embodiment of the present invention;

图2为本发明实施例中一种散斑图;Figure 2 is a speckle pattern in an embodiment of the present invention;

图3为本发明实施例中一种检测目标区域的步骤流程图;Figure 3 is a flow chart of steps for detecting a target area in an embodiment of the present invention;

图4为本发明实施例中一种识别散斑及散斑亮度的步骤流程图;Figure 4 is a flow chart of steps for identifying speckles and speckle brightness in an embodiment of the present invention;

图5为本发明实施例中一种计算散斑与相邻散斑的亮度关系的步骤流程图;Figure 5 is a flow chart of steps for calculating the brightness relationship between speckles and adjacent speckles in an embodiment of the present invention;

图6为本发明实施例中一种神经网络的结构示意图;Figure 6 is a schematic structural diagram of a neural network in an embodiment of the present invention;

图7为本发明实施例中一种反向残差模块的结构示意图;Figure 7 is a schematic structural diagram of a reverse residual module in an embodiment of the present invention;

图8为本发明实施例中一种判断是否为活体的步骤流程图;Figure 8 is a flow chart of steps for determining whether it is a living body in an embodiment of the present invention;

图9为本发明实施例中另一种判断是否为活体的步骤流程图;Figure 9 is another step flow chart for determining whether it is a living body in an embodiment of the present invention;

图10为本发明实施例中一种生物信息活体识别系统的结构示意图;Figure 10 is a schematic structural diagram of a biological information identification system in an embodiment of the present invention;

图11为本发明实施例中一种生物信息活体识别设备的结构示意图;以及Figure 11 is a schematic structural diagram of a biological information identification device in an embodiment of the present invention; and

图12为本发明实施例中计算机可读存储介质的结构示意图。Figure 12 is a schematic structural diagram of a computer-readable storage medium in an embodiment of the present invention.

具体实施方式Detailed ways

下面结合具体实施例对本发明进行详细说明。以下实施例将有助于本领域的技术人员进一步理解本发明,但不以任何形式限制本发明。应当指出的是,对本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进。这些都属于本发明的保护范围。The present invention will be described in detail below with reference to specific embodiments. The following examples will help those skilled in the art to further understand the present invention, but do not limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例,例如能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if present) in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects without necessarily using Used to describe a specific order or sequence. It is to be understood that the figures so used are interchangeable under appropriate circumstances so that the embodiments of the invention described herein, for example, can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "include" and "having" and any variations thereof are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus that encompasses a series of steps or units and need not be limited to those explicitly listed. Those steps or elements may instead include other steps or elements not expressly listed or inherent to the process, method, product or apparatus.

本发明实施例提供的一种生物信息活体识别深度模组的方法,旨在解决现有技术中存在的问题。The embodiment of the present invention provides a biological information living body recognition depth module method, aiming to solve the problems existing in the existing technology.

下面以具体地实施例对本发明的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本发明的实施例进行描述。The technical solution of the present invention and how the technical solution of the present application solves the above technical problems will be described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of the present invention will be described below with reference to the accompanying drawings.

本发明在散斑图上检测目标区域,获得多个散斑与相邻散斑的亮度关系,进而利用多个散斑的亮度关系、散斑亮度与形状的关系判断目标对象是否为活体,具有识别速度快、适应性强、生物信息活体识别效果好、算力要求低的优点。The present invention detects the target area on the speckle map, obtains the brightness relationship between multiple speckles and adjacent speckles, and then uses the brightness relationship between multiple speckles, the relationship between speckle brightness and shape to determine whether the target object is a living body, and has It has the advantages of fast recognition speed, strong adaptability, good biological information recognition effect, and low computing power requirements.

图1为本发明实施例中一种生物信息活体识别方法的步骤流程图。如图1所示,本发明实施例中一种生物信息活体识别方法的步骤包括:Figure 1 is a step flow chart of a biological information identification method in an embodiment of the present invention. As shown in Figure 1, the steps of a biological information identification method in an embodiment of the present invention include:

步骤S1:获取散斑图,并检测到目标区域。Step S1: Obtain the speckle image and detect the target area.

在本步骤中,所述目标区域是包含生物信息的区域。散斑图是包含多个散斑的图像。散斑可以为稀疏散斑,也可以为密集散斑。检测目标区域时,既可以直接利用散斑图进行检测,又可以利用其他图像进行检测,然后再根据图像的对应关系获得目标区域。比如在利用其他图像进行检测时,同时获得散斑图与红外图,在红外图上利用目标检测模型获得红外图上的目标区域,再根据散斑图与红外图的对应关系,获得散斑图上的目标区域。为了方便地进行计算,可以利用一个红外采集器同时获得散斑与泛光的信号,生成的图像中既包含散斑信息,又包含红外信息,将生成的图像进行提取,可以获得散斑图与红外图,从而使得红外图与散斑图达到像素级的一一对应。In this step, the target area is an area containing biological information. A speckle image is an image containing multiple speckles. Speckles can be sparse or dense. When detecting the target area, the speckle pattern can be used directly for detection, or other images can be used for detection, and then the target area can be obtained based on the corresponding relationship between the images. For example, when using other images for detection, the speckle image and the infrared image are obtained at the same time, and the target detection model is used on the infrared image to obtain the target area on the infrared image, and then the speckle image is obtained based on the correspondence between the speckle image and the infrared image. target area. In order to facilitate calculation, an infrared collector can be used to obtain speckle and flood signals at the same time. The generated image contains both speckle information and infrared information. By extracting the generated image, the speckle map and Infrared image, so that the infrared image and the speckle image achieve a one-to-one correspondence at the pixel level.

图2示出了单点激光散斑点打在真人皮肤和三种攻击假体上的散斑成像。在图2中,所有拍摄样例距离激光器以及相机的距离相同、成像曝光时间相同,可以明显的看出激光散斑点在不同材料上的强度分布由明显不同,在不同材质上散斑块的清晰度也有比较大的区别。Figure 2 shows the speckle imaging of single-point laser speckle spots on real skin and three attack prostheses. In Figure 2, all the shooting samples are at the same distance from the laser and camera, and the imaging exposure time is the same. It can be clearly seen that the intensity distribution of laser speckles on different materials is obviously different, and the speckles on different materials are clear. There is also a relatively big difference in degree.

在部分实施例中,本步骤包括:In some embodiments, this step includes:

步骤M11:采集散斑图像。这些图像应该包含目标区域。采集方法可以是光学成像、雷达扫描等。Step M11: Collect speckle images. These images should contain the target area. The acquisition method can be optical imaging, radar scanning, etc.

步骤M12:对采集到的散斑图像进行预处理。预处理方法包括去噪、平滑、增强等操作,以提高后续处理的准确性和效率。Step M12: Preprocess the collected speckle images. Preprocessing methods include denoising, smoothing, enhancement and other operations to improve the accuracy and efficiency of subsequent processing.

步骤M13:从预处理后的散斑图像中提取特征。常用的特征包括边缘特征、角点特征、纹理特征等。这些特征用于区分不同的目标区域。Step M13: Extract features from the preprocessed speckle image. Commonly used features include edge features, corner features, texture features, etc. These features are used to distinguish different target areas.

步骤M14:将提取到的特征与已知的目标区域进行匹配。可以使用基于模板匹配的方法或者基于深度学习的方法。如果匹配成功,则说明目标区域已经被检测到。Step M14: Match the extracted features with the known target area. Template matching-based methods or deep learning-based methods can be used. If the match is successful, the target area has been detected.

步骤M15:将匹配结果输出。输出结果可以是二值图像或者多边形包围表示的目标区域。Step M15: Output the matching results. The output result can be a binary image or a target area represented by a polygon bounding box.

步骤S2:识别所述目标区域上的多个散斑及散斑亮度。Step S2: Identify multiple speckles and speckle brightness on the target area.

在本步骤中,目标区域中有多个散斑。如图2所示,散斑照射在真人与假体上,也存在明显的区别。同时,由于人脸、手掌等人体特征是三维空间内的,其表面不是平整的,而是具有不同的坡度与朝向,再加上不同区域的皮肤存在差异,使得每个散斑都具有各自的特点,具体表现在图像上,就是散斑的形态与亮度均不相同。形态包括形状与大小。亮度包括整体亮度与亮度从中向向四周的衰减速率。In this step, there are multiple speckles in the target area. As shown in Figure 2, there are obvious differences between the speckles irradiated on the real person and the prosthesis. At the same time, because human body features such as faces and palms are in three-dimensional space, their surfaces are not flat, but have different slopes and orientations. In addition, there are differences in the skin in different areas, making each speckle have its own characteristics. The characteristic, specifically reflected in the image, is that the shape and brightness of the speckles are different. Form includes shape and size. Brightness includes the overall brightness and the attenuation rate of brightness from the center to the surroundings.

步骤S3:计算每个散斑与相邻散斑的亮度关系。Step S3: Calculate the brightness relationship between each speckle and adjacent speckles.

在本步骤中,由于每个散斑周围具有多个散斑,因此需要找到散斑与周围散斑的相邻关系。在确定散斑的相邻散斑时,根据散斑的设计最终确定。比如,当散斑为正方形图案时,在散斑中心为原点,以90度为区间,寻找最近的散斑,使得在任意一个90度的方向上,都有一个散斑作为相邻散斑。In this step, since there are multiple speckles around each speckle, it is necessary to find the adjacent relationship between the speckle and the surrounding speckles. When determining the adjacent speckles of a speckle, the final determination is based on the design of the speckle. For example, when the speckle pattern is a square pattern, the center of the speckle is the origin, and 90 degrees is the interval to find the nearest speckle, so that in any 90-degree direction, there is a speckle as an adjacent speckle.

根据散斑与相邻散斑的亮度关系,可以得到散斑的亮度关系矩阵。比如,散斑的亮度为100,其相邻散斑的亮度分别为80、102、89、120,则亮度关系矩阵为[-20,2,-11,20]。亮度关系矩阵可以表征亮度的变化情况,用于识别假体。According to the brightness relationship between the speckle and adjacent speckles, the brightness relationship matrix of the speckle can be obtained. For example, if the brightness of a speckle is 100, and the brightness of adjacent speckles are 80, 102, 89, and 120 respectively, then the brightness relationship matrix is [-20, 2, -11, 20]. The brightness relationship matrix can characterize changes in brightness and be used to identify prostheses.

步骤S4:根据多个散斑的所述亮度关系、所述散斑亮度与形状的关系判断目标对象是否为活体。Step S4: Determine whether the target object is a living body according to the brightness relationship of multiple speckles and the relationship between the speckle brightness and shape.

在本步骤中,根据散斑图中所有散斑的形状与亮度的关系、亮度关系矩阵可以判断是否符合活体特征,从而判断是否为活体。在判断是否为活体时,既可以采用阈值法,又可以采用深度学习模型的方法。在采用阈值法时,对于符合真人特征的散斑数量进行统计,当数量多于阈值时判定为活体。当采用深度学习模型时,将步骤S2和步骤S3获得的特征输入深度学习模型中进行训练,获得最终的模型,进行判断。所述散斑亮度与形状的关系呈现出特定的关系。通常在深度相机中,散斑投射器投射出的多个散斑具有相同的形状及投射强度,但由于目标对象的特性不同,比如皮肤下的真皮组织、骨骼等对散斑的影响不同,导致人体的散斑图中不同散斑之间的亮度与形状会出现明显的变化,而假体材质较为一致,不具有上述特征。In this step, based on the relationship between the shape and brightness of all speckles in the speckle diagram and the brightness relationship matrix, it can be judged whether it conforms to the characteristics of a living body, and thereby whether it is a living body. When judging whether it is a living body, either the threshold method or the deep learning model method can be used. When using the threshold method, the number of speckles that match the characteristics of a real person is counted, and when the number is more than the threshold, it is determined to be a living body. When a deep learning model is used, the features obtained in steps S2 and S3 are input into the deep learning model for training, and the final model is obtained for judgment. The relationship between the speckle brightness and shape shows a specific relationship. Usually in a depth camera, multiple speckles projected by a speckle projector have the same shape and projection intensity. However, due to different characteristics of the target object, such as dermal tissue, bones under the skin, etc., have different effects on the speckles, resulting in In the speckle pattern of the human body, there will be obvious changes in the brightness and shape of different speckles. However, the material of the prosthesis is relatively consistent and does not have the above characteristics.

图3为本发明实施例中一种检测目标区域的步骤流程图。如图3所示,本发明实施例中一种检测目标区域的步骤包括:Figure 3 is a flow chart of steps for detecting a target area in an embodiment of the present invention. As shown in Figure 3, a step of detecting a target area in an embodiment of the present invention includes:

步骤S11:获取散斑图。Step S11: Obtain the speckle pattern.

在本步骤中,可以采用深度相机获得散斑图,如结构光相机。In this step, a depth camera can be used to obtain the speckle image, such as a structured light camera.

步骤S12:根据目标检测模型对所述散斑图进行检测,获得第一目标区域。Step S12: Detect the speckle pattern according to the target detection model to obtain the first target area.

在本步骤中,使用目标检测模型对散斑图进行处理,以识别出其中的目标物体。目标检测模型是一种基于机器学习算法的模型,可以根据输入的图像数据自动识别出其中的目标物体,并给出其位置和大小等信息。在本步骤中,可以使用已经训练好的目标检测模型对散斑图进行检测,得到第一目标区域。In this step, the target detection model is used to process the speckle image to identify the target object in it. The target detection model is a model based on machine learning algorithms that can automatically identify the target object based on the input image data and give information such as its location and size. In this step, the already trained target detection model can be used to detect the speckle pattern to obtain the first target area.

步骤S13:根据所述第一目标区域上的关键点,截取得到第二目标区域。Step S13: Intercept and obtain the second target area based on the key points on the first target area.

在本步骤中,需要根据第一目标区域上的关键点,截取其中的一小部分区域作为第二目标区域。关键点是指在第一目标区域中具有特殊意义的点。关键点的选取根据目标对象的类型进行选择。比如人脸可以选择86个关键点,手掌可以采用7或21个关键点等。通过截取这些关键点周围的区域,可以更加准确地定位到目标物体的位置和大小。需要注意的是,第二目标区域是一个连续的完整区域,包含了人脸或者手掌等其他区域裸露皮肤的有效面积。In this step, according to the key points on the first target area, a small part of the area needs to be intercepted as the second target area. Key points refer to points with special significance in the first target area. The selection of key points is based on the type of target object. For example, 86 key points can be selected for the face, 7 or 21 key points can be used for the palm, etc. By intercepting the area around these key points, the location and size of the target object can be more accurately located. It should be noted that the second target area is a continuous and complete area, including the effective area of exposed skin in other areas such as the face or palms.

本步骤根据关键点获得面积更小的第二目标区域,关注于裸露的皮肤的区域,过滤掉头发、装饰等区域,从而使得第二目标区域内的散斑是由皮肤反射后获得的,使得后续处理的数据比例得到保证。This step obtains a smaller second target area based on the key points, focusing on the exposed skin area, and filtering out hair, decoration and other areas, so that the speckles in the second target area are obtained after reflection from the skin, so that The proportion of data for subsequent processing is guaranteed.

图4为本发明实施例中一种识别散斑及散斑亮度的步骤流程图。如图4所示,本发明实施例中一种识别散斑及散斑亮度的步骤包括:Figure 4 is a flow chart of steps for identifying speckles and speckle brightness in an embodiment of the present invention. As shown in Figure 4, a step of identifying speckles and speckle brightness in an embodiment of the present invention includes:

步骤S21:根据边缘检测算法检测所述散斑图中的边缘,得到每个散斑的位置。Step S21: Detect edges in the speckle image according to an edge detection algorithm to obtain the position of each speckle.

在本步骤中,需要使用边缘检测算法对散斑图进行处理,以识别出其中的边缘。边缘检测算法是一种基于图像处理技术的算法,可以自动识别出图像中的边缘信息。可以使用常用的边缘检测算法(如Sobel算子、Canny算子等)对散斑图进行处理,得到每个散斑的位置。In this step, you need to use an edge detection algorithm to process the speckle image to identify the edges. The edge detection algorithm is an algorithm based on image processing technology that can automatically identify edge information in images. Common edge detection algorithms (such as Sobel operator, Canny operator, etc.) can be used to process the speckle image to obtain the position of each speckle.

步骤S22:对所述边缘进行膨胀和腐蚀操作,得到每个散斑的精确位置。Step S22: Perform expansion and erosion operations on the edge to obtain the precise position of each speckle.

在本步骤中,需要对边缘进行膨胀和腐蚀操作,以得到每个散斑的精确位置。膨胀操作可以将边缘向外扩张一定的像素值,从而得到更加准确的边界信息;腐蚀操作可以将边缘向内收缩一定的像素值,从而去除一些噪声信息。可以使用常用的膨胀和腐蚀操作方法(如开运算、闭运算等)对边缘进行处理,得到每个散斑的精确位置。In this step, the edges need to be expanded and eroded to obtain the precise location of each speckle. The dilation operation can expand the edge outward by a certain pixel value to obtain more accurate boundary information; the erosion operation can shrink the edge inward by a certain pixel value to remove some noise information. Commonly used expansion and erosion operation methods (such as opening operations, closing operations, etc.) can be used to process the edges to obtain the precise position of each speckle.

步骤S23:对每个散斑进行位置标记,确定在图像中的具体位置。Step S23: Position mark each speckle to determine its specific position in the image.

在本步骤中,需要对每个散斑进行位置标记,以确定其在图像中的具体位置。可以使用计算机视觉技术中的坐标系来标记每个散斑的位置,例如将图像左上角作为原点,向右为x轴正方向,向下为y轴正方向。可以使用编程语言(如Python、MATLAB等)来实现位置标记的功能。In this step, each speckle needs to be positioned to determine its specific location in the image. The coordinate system in computer vision technology can be used to mark the position of each speckle. For example, the upper left corner of the image is used as the origin, the positive x-axis direction is to the right, and the positive y-axis direction is downward. Programming languages (such as Python, MATLAB, etc.) can be used to implement the position marking function.

步骤S24:根据每个散斑的具体位置,计算每个散斑的平均亮度值及亮度分布比重。Step S24: Calculate the average brightness value and brightness distribution proportion of each speckle based on the specific location of each speckle.

在本步骤中,需要根据每个散斑的具体位置,计算其平均亮度值及亮度分布比重。平均亮度值是指该散斑区域内所有像素点的亮度平均值;亮度分布比重是指该散斑区域内不同亮度值所占的比例。可以使用编程语言(如Python、MATLAB等)来实现平均亮度值及亮度分布比重的计算功能。In this step, it is necessary to calculate the average brightness value and brightness distribution proportion of each speckle based on its specific location. The average brightness value refers to the average brightness of all pixels in the speckle area; the brightness distribution proportion refers to the proportion of different brightness values in the speckle area. Programming languages (such as Python, MATLAB, etc.) can be used to realize the calculation function of average brightness value and brightness distribution proportion.

本实施例通过边缘检测算法,可以有效地从散斑图中识别出目标物体的位置,从而为后续处理提供了基础;通过对边缘进行膨胀和腐蚀操作,可以得到每个散斑的精确位置,提高定位的准确性;通过对每个散斑进行位置标记,可以帮助我们确定目标物体在图像中的具体位置,这对于目标物体的追踪和分析至关重要;根据每个散斑的具体位置,计算每个散斑的平均亮度值及亮度分布比重,可以更好地对散斑图进行评估。This embodiment uses an edge detection algorithm to effectively identify the location of the target object from the speckle pattern, thereby providing a basis for subsequent processing; by performing expansion and erosion operations on the edges, the precise location of each speckle can be obtained. Improve the accuracy of positioning; by marking the position of each speckle, we can help us determine the specific location of the target object in the image, which is crucial for the tracking and analysis of the target object; according to the specific location of each speckle, Calculating the average brightness value and brightness distribution proportion of each speckle can better evaluate the speckle pattern.

图5为本发明实施例中一种计算散斑与相邻散斑的亮度关系的步骤流程图。如图5所示,本发明实施例中一种计算散斑与相邻散斑的亮度关系的步骤包括:Figure 5 is a flow chart of steps for calculating the brightness relationship between speckles and adjacent speckles in an embodiment of the present invention. As shown in Figure 5, a step of calculating the brightness relationship between a speckle and an adjacent speckle in an embodiment of the present invention includes:

步骤S31:根据每个散斑的位置,在距离约束下,找到多个相邻散斑。Step S31: Find multiple adjacent speckles according to the position of each speckle and under distance constraints.

在本步骤中,距离约束是指相邻散斑之间的距离必须在一定范围内,否则将被视为不相邻。一定的范围根据散斑的设计而定。比如,在有效的深度范围内,散斑的设计间距为2mm,则以散斑中心为圆心,在半径为4mm(设计间距的2倍)的圆内进行查找,获得所有散斑,即为相邻散斑。可以使用编程语言(如Python、MATLAB等)来实现相邻散斑的查找功能。In this step, the distance constraint means that the distance between adjacent speckles must be within a certain range, otherwise they will be regarded as non-adjacent. A certain range depends on the speckle design. For example, within the effective depth range, the design spacing of speckles is 2mm, then take the center of the speckles as the center of the circle, search within a circle with a radius of 4mm (twice the design spacing), and obtain all speckles, which is the phase Orbital speckle. Programming languages (such as Python, MATLAB, etc.) can be used to implement the search function of adjacent speckles.

步骤S32:根据所述散斑与所述相邻散斑的最大亮度的差值向量相乘,得到所述散斑的高差值向量。Step S32: Multiply the difference vector of the maximum brightness of the speckle and the adjacent speckle to obtain a high difference vector of the speckle.

在本步骤中,高差值向量是指该散斑区域内不同亮度值之间的差异程度。本步骤以散斑的最大亮度与相邻散斑中的最大亮度进行计算,可以很好地表示不同散斑最大亮度的变化情况。在本步骤中,可以使用编程语言(如Python、MATLAB等)来实现高差值向量的计算功能。In this step, the high difference vector refers to the degree of difference between different brightness values in the speckle area. This step is calculated based on the maximum brightness of the speckle and the maximum brightness of adjacent speckles, which can well represent the changes in the maximum brightness of different speckles. In this step, you can use programming languages (such as Python, MATLAB, etc.) to implement the calculation function of high difference vectors.

步骤S33:根据所述散斑与所述相邻散斑的平均亮度的差值向量相乘,得到所述散斑的均差值向量。Step S33: Multiply the difference vector of the average brightness of the speckle and the adjacent speckle to obtain the mean difference vector of the speckle.

在本步骤中,均差值向量是指该散斑区域内所有像素点的亮度平均值与相邻像素点亮度平均值之间的差异程度。本步骤以散斑的平均亮度与相邻散斑中的平均亮度进行计算,可以很好地表示不同散斑平均亮度的变化情况。在本步骤中,可以使用编程语言(如Python、MATLAB等)来实现均差值向量的计算功能。In this step, the average difference vector refers to the degree of difference between the average brightness of all pixels in the speckle area and the average brightness of adjacent pixels. This step is calculated based on the average brightness of the speckle and the average brightness of adjacent speckles, which can well represent the changes in the average brightness of different speckles. In this step, you can use a programming language (such as Python, MATLAB, etc.) to implement the calculation function of the mean difference vector.

本实施例计算出高差值向量与均差值向量,可以更好地表征散斑与相邻散斑的亮度关系,从而提高评价的准确性。This embodiment calculates a high difference vector and a mean difference vector, which can better characterize the brightness relationship between speckles and adjacent speckles, thereby improving the accuracy of evaluation.

图6为本发明实施例中一种神经网络的结构示意图。如图6所示,本发明实施例中一种神经网络用于训练深度学习模型,包括:第一反向残差模块、第一池化层、第二反向残差模块、第二池化层、第三反向残差模块、第一叠加层、第三池化层、第四反向残差模块、第二叠加层、第四池化层、第五反向残差模块、第三卷积层、第五池化层、随机丢弃层、分类器、第一卷积层、第二卷积层;其中,所述第一反向残差模块输出到所述第一池化层和所述第一卷积层,所述第一卷积层和所述第三反向残差模块输入所述第一叠加层,所述第二反向残差模块输出到所述第二卷积层和所述第二池化层,所述第二卷积层和所述第四反向残差模块输入所述第二叠加层;所述分类器输出活体概率和假体概率。Figure 6 is a schematic structural diagram of a neural network in an embodiment of the present invention. As shown in Figure 6, a neural network in the embodiment of the present invention is used to train a deep learning model, including: a first reverse residual module, a first pooling layer, a second reverse residual module, and a second pooling layer. layer, the third reverse residual module, the first overlay layer, the third pooling layer, the fourth reverse residual module, the second overlay layer, the fourth pooling layer, the fifth reverse residual module, the third Convolutional layer, fifth pooling layer, random discarding layer, classifier, first convolutional layer, second convolutional layer; wherein the first reverse residual module outputs to the first pooling layer and The first convolution layer, the first convolution layer and the third inverse residual module input the first overlay layer, and the second inverse residual module outputs to the second convolution layer and the second pooling layer, the second convolution layer and the fourth inverse residual module input the second overlay layer; the classifier outputs the probability of living body and the probability of prosthesis.

需要说明的是,本领域技术人员可以根据图像大小调节池化层数,从而在训练速度与训练效果之间取得平衡。It should be noted that those skilled in the art can adjust the number of pooling layers according to the image size, thereby striking a balance between training speed and training effect.

深度学习模型在训练时的神经网络设计具有以下显著优点:The neural network design during training of deep learning models has the following significant advantages:

逐层预训练:深度学习模型采用逐层预训练的训练机制,这使得其能够克服传统神经网络容易过拟合及训练速度慢的问题。Layer-by-layer pre-training: The deep learning model adopts a layer-by-layer pre-training training mechanism, which enables it to overcome the problems of easy overfitting and slow training speed of traditional neural networks.

自动特征学习:通过逐层数据预训练,深度学习模型能够自动地学习到数据的初级特征,从而克服了人工设计特征费时、费力的传统方式。Automatic feature learning: Through layer-by-layer data pre-training, the deep learning model can automatically learn the primary features of the data, thus overcoming the time-consuming and laborious traditional method of manually designing features.

分布式数据学习:深度学习模型能够更有效地在分布式数据上进行学习,使得学习效率达到指数级。Distributed data learning: Deep learning models can learn more effectively on distributed data, making learning efficiency exponential.

深层建模能力:与浅层建模方式相比,深层建模能够更细致和高效地表示实际的复杂非线性问题。这意味着深度学习模型在处理复杂的现实问题时,如图像识别、语音识别等,具有更强的性能。Deep modeling capabilities: Compared with shallow modeling methods, deep modeling can represent actual complex nonlinear problems in more detail and efficiently. This means that deep learning models have stronger performance when dealing with complex real-world problems, such as image recognition, speech recognition, etc.

本实施例使得深度学习模型在处理复杂任务时具有更高的效率和准确性。This embodiment enables the deep learning model to have higher efficiency and accuracy when processing complex tasks.

图7为本发明实施例中一种反向残差模块的结构示意图。如图7所示,本发明实施例中一种反向残差模块包括:第一子卷积层、第一批量归一化层、第一非线性激活层、第二子卷积层、第二批量归一化层、第二非线性激活层、第三子卷积层、第三批量归一化层、第一子叠加层;其中,所述第一子卷积层输出到所述第一批量归一化层,所述第一子卷积层和所述第三批量归一化层输入到所述第一叠加层。Figure 7 is a schematic structural diagram of a reverse residual module in an embodiment of the present invention. As shown in Figure 7, a reverse residual module in the embodiment of the present invention includes: a first sub-convolution layer, a first batch normalization layer, a first non-linear activation layer, a second sub-convolution layer, two batch normalization layers, a second nonlinear activation layer, a third sub-convolution layer, a third batch normalization layer, and a first sub-overlay layer; wherein the first sub-convolution layer is output to the A batch normalization layer, the first sub-convolutional layer and the third batch normalization layer are input to the first overlay layer.

本实施例中的反向残差模块可以是前述实施例中第一反向残差模块、所述第二反向残差模块、所述第三反向残差模块、所述第四反向残差模块、所述第五反向残差模块中的任意一或多个。The reverse residual module in this embodiment may be the first reverse residual module, the second reverse residual module, the third reverse residual module, the fourth reverse residual module in the previous embodiment. Any one or more of the residual module and the fifth reverse residual module.

本实施例具有至少以下明显的优点:This embodiment has at least the following obvious advantages:

减少模型参数量:逆残差模块通过对残差连接进行可逆变换,可以有效地减少模型的参数量。传统的残差模块需要大量的卷积层,使得需要大量的参数。而逆残差模块通过倒置残差结构,即先进行投影卷积升维,然后通过深度卷积,最后再使用投影卷积降维,从而有效地减少了参数量。Reduce the number of model parameters: The inverse residual module can effectively reduce the number of model parameters by performing a reversible transformation on the residual connection. Traditional residual modules require a large number of convolutional layers, which require a large number of parameters. The inverse residual module effectively reduces the number of parameters by inverting the residual structure, that is, first performing projected convolution to increase the dimension, then using depth convolution, and finally using projected convolution to reduce the dimension.

提高模型性能:逆残差模块的设计使得网络在训练过程中不会出现梯度消失或梯度爆炸的问题,从而可以训练非常深的网络。这有助于提高模型的性能。Improve model performance: The design of the inverse residual module prevents the network from disappearing or exploding gradients during training, allowing the training of very deep networks. This helps improve model performance.

实现复杂度低:逆残差模块的实现主要通过两层相同或不同的卷积层和一个跳跃连接来完成,其实现相对简单,计算复杂度较低。Low implementation complexity: The implementation of the inverse residual module is mainly completed through two layers of the same or different convolutional layers and a skip connection. Its implementation is relatively simple and the computational complexity is low.

因此,实施例有效解决了深度网络训练中的梯度问题和参数过多的问题,提高了模型的性能,并且实现起来相对简单,这使得它在处理复杂任务时具有很高的实用价值。Therefore, the embodiment effectively solves the gradient problem and the problem of too many parameters in deep network training, improves the performance of the model, and is relatively simple to implement, which makes it of high practical value when processing complex tasks.

图8为本发明实施例中一种判断是否为活体的步骤流程图。如图8所示,本发明实施例中一种判断是否为活体的步骤包括:Figure 8 is a flow chart of steps for determining whether a living body is alive in an embodiment of the present invention. As shown in Figure 8, a step of determining whether it is a living body in the embodiment of the present invention includes:

步骤T41:统计多个散斑的所述亮度关系,如果符合预设条件,执行步骤T42,否则判定为假体。Step T41: Count the brightness relationships of multiple speckles. If the preset conditions are met, step T42 is executed. Otherwise, it is determined to be a prosthesis.

具体地说,根据人体特征的不同,比如人脸、手掌、瞳孔等不同,散斑在不同位置的亮度分布会不同,根据散斑表征的人体的位置及在所有散斑中的亮度中的排序,可以判断其是否为活体。比如,人脸位置的散斑亮度为150,在所有散斑中亮度位于前1/3,符合该位置预设的(1/4,2/5)的条件。对所有散斑点进行判断,如果符合条件的散斑点占所有散斑点的比例达到预设比例,如90%以上,则进行下一步,否则判定为假体。Specifically, according to the different characteristics of the human body, such as the face, palms, pupils, etc., the brightness distribution of speckles at different locations will be different. According to the position of the human body represented by the speckles and the ordering of the brightness among all speckles , can determine whether it is a living body. For example, the speckle brightness at the human face position is 150, and the brightness is in the top 1/3 of all speckles, which meets the preset conditions of (1/4, 2/5) for this position. All speckle spots are judged. If the proportion of qualified speckle spots in all speckle spots reaches a preset ratio, such as more than 90%, proceed to the next step, otherwise it is judged to be a prosthesis.

步骤T42:统计散斑的所述平均亮度与所述形状的关系,如果符合预设条件,执行步骤T43,否则判定为假体。Step T42: Statistics of the relationship between the average brightness of the speckle and the shape are performed. If the preset conditions are met, step T43 is executed. Otherwise, it is determined to be a prosthesis.

在本步骤中,平均亮度是指多个散斑亮度值的平均值。以形状为参考,获得在同一形状下多个散斑亮度的平均值,从而得到形状与平均亮度的曲线。如果曲线符合预计条件,则执行步骤M42,否则判定为假体。形状可以用与形状直接相关的量化指标,比如像素点数、散斑半径等。In this step, the average brightness refers to the average value of multiple speckle brightness values. Using the shape as a reference, obtain the average value of the brightness of multiple speckles in the same shape, thereby obtaining a curve between shape and average brightness. If the curve meets the expected conditions, step M42 is executed, otherwise it is determined to be a prosthesis. Shape can use quantitative indicators directly related to the shape, such as the number of pixels, speckle radius, etc.

步骤T43:统计散斑的所述亮度分布比重与所述形状的关系,如果符合预设条件,判定为活体,否则判定为假体。Step T43: Calculate the relationship between the brightness distribution proportion of the speckle and the shape. If it meets the preset conditions, it is determined to be a living body, otherwise it is determined to be a prosthesis.

在本步骤中,与步骤M42相似,计算亮度分布比重与形状的对应关系。以形状为参考,获得在同一深度值下多个散斑中不同亮度的像素点的数量,从而得到该形状对应的亮度分布比重。将不同形状的亮度分布比重与预设条件对比,如果符合,则判定为活体,否则判定为假体。In this step, similar to step M42, the corresponding relationship between the brightness distribution proportion and the shape is calculated. Using the shape as a reference, obtain the number of pixels with different brightness in multiple speckles under the same depth value, thereby obtaining the brightness distribution proportion corresponding to the shape. Compare the brightness distribution proportions of different shapes with the preset conditions. If they match, it is judged to be a living body, otherwise it is judged to be a prosthesis.

本实施例根据亮度关系、形状与平均亮度、亮度分布比重进行判断,获得深度值对亮度的影响,从而可以在不同深度下对亮度的影响进行评估,识别出不同材质的影响,具有非常高的识别准确度。This embodiment determines based on the brightness relationship, shape and average brightness, and brightness distribution proportion, and obtains the impact of depth value on brightness, so that the impact of brightness can be evaluated at different depths, and the impact of different materials can be identified, which has a very high accuracy. Recognition accuracy.

图9为本发明实施例中另一种判断是否为活体的步骤流程图。如图9所示,本发明实施例中另一种判断是否为活体的步骤包括:Figure 9 is another flow chart of steps for determining whether a living body is alive in an embodiment of the present invention. As shown in Figure 9, another step of determining whether it is a living body in the embodiment of the present invention includes:

步骤S41:统计所述散斑亮度与形状的关系,如果符合预设条件,执行步骤S42,否则判定为假体。Step S41: Calculate the relationship between the speckle brightness and shape. If it meets the preset conditions, execute step S42; otherwise, it is determined to be a prosthesis.

在本步骤中,散斑照射在人体不同部位时,受人体表层组织的影响,会对光斑产生不同的作用,从而导致不同的形状与光斑亮度。本步骤统计散斑的形状与亮度的关系,获得关系曲线,从而根据关系曲线进行判断。如果关系曲线符合预设条件,比如以预设曲线相比,误差在规定的范围内,则执行下一步,否则,判定为假体。In this step, when the speckle is irradiated on different parts of the human body, it will have different effects on the light spot due to the influence of the surface tissue of the human body, resulting in different shapes and spot brightness. In this step, the relationship between the shape of the speckle and the brightness is calculated, and a relationship curve is obtained, so that judgment can be made based on the relationship curve. If the relationship curve meets the preset conditions, for example, compared with the preset curve, the error is within the specified range, then proceed to the next step, otherwise, it is determined to be a prosthesis.

步骤S42:统计所述高差值向量的分布,获得大于第一阈值的散斑数量m。Step S42: Statistics the distribution of the high difference vectors to obtain the number m of speckles greater than the first threshold.

在本步骤中,首先对高差值向量进行统计分析,计算其中大于第一阈值的散斑数量m。利用高差值向量的分布可以直接过滤掉表面特性较为一致,但和人体相差较大的假体。In this step, statistical analysis is first performed on the high difference vector, and the number m of speckles greater than the first threshold is calculated. The distribution of high difference vectors can be used to directly filter out prostheses that have relatively consistent surface properties but are quite different from the human body.

步骤S43:如果m大于第二阈值,执行步骤S44,否则判定为假体。Step S43: If m is greater than the second threshold, execute step S44, otherwise it is determined to be a prosthesis.

在本步骤中,如果大于第一阈值的散斑数量m大于第二阈值,说明模型可能存在问题,需要进一步检查。如果m不大于第二阈值,那么我们可以初步判定这个模型是假体。In this step, if the number m of speckles greater than the first threshold is greater than the second threshold, it indicates that there may be a problem with the model and further inspection is required. If m is not greater than the second threshold, then we can initially determine that the model is a prosthesis.

步骤S44:统计所述均差值向量的分布,获得大于第三阈值的散斑数量n。Step S44: Statistics the distribution of the mean difference value vector, and obtain the number n of speckles greater than the third threshold.

在本步骤中,继续对均差值向量进行统计分析,计算其中大于第三阈值的散斑数量n。利用均差值向量的分布进一步过滤掉表面特性不一致的假体。In this step, continue to perform statistical analysis on the mean difference vector, and calculate the number n of speckles greater than the third threshold. The distribution of the mean difference value vector is used to further filter out prostheses with inconsistent surface properties.

步骤S45:如果n大于第四阈值,判定为活体,否则判定为假体。Step S45: If n is greater than the fourth threshold, it is determined to be a living body, otherwise it is determined to be a prosthesis.

在本步骤中,根据均差值向量的分布情况进行判断。如果大于第三阈值的散斑数量n大于第四阈值,我们认为这个模型是活体。如果不大于第四阈值,则模型被判定为假体。In this step, the judgment is made based on the distribution of the mean difference vector. If the number n of speckles greater than the third threshold is greater than the fourth threshold, we consider the model to be living. If it is not greater than the fourth threshold, the model is determined to be a prosthesis.

本实施例通过对高差值向量和均差值向量的运用,过滤掉表面特性较为一致,但和人体相差较大的假体、表面特性不一致的假体,对过对表面材质分布的判断,从而可以抵御各类假体攻击,大大提高对假体攻击的识别效果,对各类假体具有良好的识别性,能够大大提高安全性。This embodiment uses high difference vectors and mean difference vectors to filter out prostheses whose surface properties are relatively consistent but are quite different from the human body, and prostheses whose surface properties are inconsistent, and the surface material distribution is judged. This can resist various types of prosthetic attacks, greatly improve the identification effect of prosthetic attacks, and has good identification of various types of prostheses, which can greatly improve security.

图10为本发明实施例中一种生物信息活体识别系统的结构示意图。如图10所示,本发明实施例中一种生物信息活体识别系统包括:Figure 10 is a schematic structural diagram of a biological information identification system in an embodiment of the present invention. As shown in Figure 10, a biological information identification system in an embodiment of the present invention includes:

获取模块,用于获取散斑图,并检测到目标区域;所述目标区域是包含生物信息的区域;An acquisition module is used to acquire a speckle pattern and detect a target area; the target area is an area containing biological information;

识别模块,用于识别所述目标区域上的多个散斑及散斑亮度;An identification module, used to identify multiple speckles and speckle brightness on the target area;

计算模块,用于计算每个散斑与相邻散斑的亮度关系;A calculation module used to calculate the brightness relationship between each speckle and adjacent speckles;

判断模块,用于根据多个散斑的所述亮度关系、所述散斑亮度与形状的关系判断目标对象是否为活体。A judgment module configured to judge whether the target object is a living body according to the brightness relationship of multiple speckles and the relationship between the speckle brightness and shape.

本实施例在散斑图上检测目标区域,获得多个散斑与相邻散斑的亮度关系,进而利用多个散斑的亮度关系、散斑亮度与形状的关系判断目标对象是否为活体,具有识别速度快、适应性强、生物信息活体识别效果好、算力要求低的优点。This embodiment detects the target area on the speckle map, obtains the brightness relationship between multiple speckles and adjacent speckles, and then uses the brightness relationship between multiple speckles and the relationship between speckle brightness and shape to determine whether the target object is a living body. It has the advantages of fast recognition speed, strong adaptability, good biological information recognition effect, and low computing power requirements.

本发明实施例中还提供一种生物信息活体识别设备,包括处理器。存储器,其中存储有处理器的可执行指令。其中,处理器配置为经由执行可执行指令来执行的一种生物信息活体识别方法的步骤。An embodiment of the present invention also provides a biological information identification device, including a processor. Memory, which stores the executable instructions of the processor. Wherein, the processor is configured to execute the steps of a biological information identification method by executing executable instructions.

如上,本实施例在散斑图上检测目标区域,获得多个散斑与相邻散斑的亮度关系,进而利用多个散斑的亮度关系、散斑亮度与形状的关系判断目标对象是否为活体,具有识别速度快、适应性强、生物信息活体识别效果好、算力要求低的优点。As above, this embodiment detects the target area on the speckle map, obtains the brightness relationship between multiple speckles and adjacent speckles, and then uses the brightness relationship between multiple speckles and the relationship between speckle brightness and shape to determine whether the target object is Living bodies have the advantages of fast recognition speed, strong adaptability, good biological information living body recognition effect, and low computing power requirements.

所属技术领域的技术人员能够理解,本发明的各个方面可以实现为系统、方法或程序产品。因此,本发明的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“平台”。Those skilled in the art will understand that various aspects of the present invention may be implemented as systems, methods or program products. Therefore, various aspects of the present invention can be implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which may be collectively referred to herein as "Circuit", "Module" or "Platform".

图11是本发明实施例中的一种生物信息活体识别设备的结构示意图。下面参照图11来描述根据本发明的这种实施方式的电子设备600。图11显示的电子设备600仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。Figure 11 is a schematic structural diagram of a biological information identification device in an embodiment of the present invention. An electronic device 600 according to this embodiment of the present invention is described below with reference to FIG. 11 . The electronic device 600 shown in FIG. 11 is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present invention.

如图11所示,电子设备600以通用计算设备的形式表现。电子设备600的组件可以包括但不限于:至少一个处理单元610、至少一个存储单元620、连接不同平台组件(包括存储单元620和处理单元610)的总线630、显示单元640等。As shown in Figure 11, electronic device 600 is embodied in the form of a general computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different platform components (including the storage unit 620 and the processing unit 610), a display unit 640, and the like.

其中,存储单元存储有程序代码,程序代码可以被处理单元610执行,使得处理单元610执行本说明书上述一种生物信息活体识别方法部分中描述的根据本发明各种示例性实施方式的步骤。例如,处理单元610可以执行如图1中所示的步骤。The storage unit stores program code, and the program code can be executed by the processing unit 610, so that the processing unit 610 performs the steps according to various exemplary embodiments of the present invention described in the above-mentioned biological information identification method part of this specification. For example, processing unit 610 may perform steps as shown in FIG. 1 .

存储单元620可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)6201和/或高速缓存存储单元6202,还可以进一步包括只读存储单元(ROM)6203。The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 6201 and/or a cache storage unit 6202, and may further include a read-only storage unit (ROM) 6203.

存储单元620还可以包括具有一组(至少一个)程序模块6205的程序/实用工具6204,这样的程序模块6205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。Storage unit 620 may also include a program/utility 6204 having a set of (at least one) program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, Each of these examples, or some combination, may include the implementation of a network environment.

总线630可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。Bus 630 may be a local area representing one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or using any of a variety of bus structures. bus.

电子设备600也可以与一个或多个外部设备700(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备600交互的设备通信,和/或与使得该电子设备600能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口650进行。并且,电子设备600还可以通过网络适配器660与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。网络适配器660可以通过总线630与电子设备600的其它模块通信。应当明白,尽管图11中未示出,可以结合电子设备600使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储平台等。Electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, Bluetooth device, etc.), may also communicate with one or more devices that enable a user to interact with electronic device 600, and/or with Any device (eg, router, modem, etc.) that enables the electronic device 600 to communicate with one or more other computing devices. This communication may occur through input/output (I/O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through the network adapter 660. Network adapter 660 may communicate with other modules of electronic device 600 via bus 630. It should be understood that, although not shown in Figure 11, other hardware and/or software modules may be used in conjunction with electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tapes Drives and data backup storage platforms, etc.

本发明实施例中还提供一种计算机可读存储介质,用于存储程序,程序被执行时实现的一种生物信息活体识别方法的步骤。在一些可能的实施方式中,本发明的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当程序产品在终端设备上运行时,程序代码用于使终端设备执行本说明书上述一种生物信息活体识别方法部分中描述的根据本发明各种示例性实施方式的步骤。Embodiments of the present invention also provide a computer-readable storage medium for storing a program, and the steps of a biological information identification method are implemented when the program is executed. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes program code. When the program product is run on a terminal device, the program code is used to cause the terminal device to execute the above described instructions. The steps according to various exemplary embodiments of the present invention are described in the section "A Biometric Information Life Recognition Method".

如上所示,本实施例在散斑图上检测目标区域,获得多个散斑与相邻散斑的亮度关系,进而利用多个散斑的亮度关系、散斑亮度与形状的关系判断目标对象是否为活体,具有识别速度快、适应性强、生物信息活体识别效果好、算力要求低的优点。As shown above, this embodiment detects the target area on the speckle map, obtains the brightness relationship between multiple speckles and adjacent speckles, and then uses the brightness relationship between multiple speckles and the relationship between speckle brightness and shape to determine the target object. Whether it is a living body or not, it has the advantages of fast recognition speed, strong adaptability, good biological information living body recognition effect, and low computing power requirements.

图12是本发明实施例中的计算机可读存储介质的结构示意图。参考图12所示,描述了根据本发明的实施方式的用于实现上述方法的程序产品800,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本发明的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。Figure 12 is a schematic structural diagram of a computer-readable storage medium in an embodiment of the present invention. Referring to FIG. 12 , a program product 800 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be used on a terminal device, For example, run on a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus or device.

程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The Program Product may take the form of one or more readable media in any combination. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: electrical connection with one or more conductors, portable disk, hard disk, random access memory (RAM), read only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.

计算机可读存储介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读存储介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。可读存储介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。A computer-readable storage medium may include a data signal propagated in baseband or as part of a carrier wave carrying the readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable storage medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transport the program for use by or in connection with an instruction execution system, apparatus, or device. Program code contained on a readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.

可以以一种或多种程序设计语言的任意组合来编写用于执行本发明操作的程序代码,程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., as well as conventional procedural programming. Language—such as "C" or a similar programming language. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on. In situations involving remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., provided by an Internet service). (business comes via Internet connection).

本实施例在散斑图上检测目标区域,获得多个散斑与相邻散斑的亮度关系,进而利用多个散斑的亮度关系、散斑亮度与形状的关系判断目标对象是否为活体,具有识别速度快、适应性强、生物信息活体识别效果好、算力要求低的优点。This embodiment detects the target area on the speckle map, obtains the brightness relationship between multiple speckles and adjacent speckles, and then uses the brightness relationship between multiple speckles and the relationship between speckle brightness and shape to determine whether the target object is a living body. It has the advantages of fast recognition speed, strong adaptability, good biological information recognition effect, and low computing power requirements.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。Each embodiment in this specification is described in a progressive manner. Each embodiment focuses on its differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. The above description of the disclosed embodiments enables those skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be practiced in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

以上对本发明的具体实施例进行了描述。需要理解的是,本发明并不局限于上述特定实施方式,本领域技术人员可以在权利要求的范围内做出各种变形或修改,这并不影响本发明的实质内容。Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above. Those skilled in the art can make various variations or modifications within the scope of the claims, which does not affect the essence of the present invention.

Claims (10)

1. A biological information living body identification method, characterized by comprising:
step S1: acquiring a speckle pattern, and detecting a target area; the target area is an area containing biological information;
step S2: identifying a plurality of speckle and speckle intensities on the target region;
step S3: calculating the brightness relation between each speckle and adjacent speckle;
step S4: and judging whether the target object is a living body according to the brightness relation of the speckles and the relation of the speckles brightness and the shape.
2. The method for identifying a living organism according to claim 1, wherein the step S1 comprises:
step M11, collecting speckle images;
step M12, preprocessing the collected speckle image;
m13, extracting features from the preprocessed speckle images;
m14, matching the extracted features with known target areas;
and M15, outputting a matching result.
3. The method for identifying a living organism according to claim 1, wherein the step S2 comprises:
step S21: detecting edges in the speckle pattern according to an edge detection algorithm to obtain the position of each speckle;
step S22: performing expansion and corrosion operation on the edge to obtain the accurate position of each speckle;
Step S23: position marking is carried out on each speckle, and the specific position in the image is determined;
step S24: and calculating the average brightness value and the brightness distribution proportion of each speckle according to the specific position of each speckle.
4. The method for identifying a living organism according to claim 1, wherein the step S3 comprises:
step S31: according to the position of each speckle, a plurality of adjacent speckles are found under the distance constraint;
step S32: multiplying the speckle with the difference vector of the maximum brightness of the adjacent speckle to obtain a high difference vector of the speckle;
step S33: and multiplying the speckle by the difference vector of the average brightness of the adjacent speckle to obtain the average difference vector of the speckle.
5. The method according to claim 1, wherein in step S4, a deep learning model is used to determine whether the target object is a living body, and the neural network of the deep learning model during training includes: the device comprises a first reverse residual error module, a first pooling layer, a second reverse residual error module, a second pooling layer, a third reverse residual error module, a first superposition layer, a third pooling layer, a fourth reverse residual error module, a second superposition layer, a fourth pooling layer, a fifth reverse residual error module, a third convolution layer, a fifth pooling layer, a random discarding layer, a classifier, a first convolution layer and a second convolution layer; the first reverse residual error module is output to the first pooling layer and the first convolution layer, the first convolution layer and the third reverse residual error module input the first superposition layer, the second reverse residual error module is output to the second convolution layer and the second pooling layer, and the second convolution layer and the fourth reverse residual error module input the second superposition layer; the classifier outputs a living probability and a prosthesis probability.
6. A method of biometric identification according to claim 3, wherein step S4 comprises:
step T41: counting the brightness relation of a plurality of speckles, executing a step T42 if the brightness relation accords with a preset condition, otherwise, judging the brightness relation as a prosthesis;
step T42: counting the relation between the average brightness and the shape of the speckles, if the relation meets the preset condition, executing a step T43, otherwise, judging the relation as a prosthesis;
step T43: and counting the relation between the brightness distribution proportion and the shape of the speckles, judging as a living body if the relation meets preset conditions, and judging as a prosthesis if the relation is not met.
7. The method for identifying a living organism according to claim 4, wherein step S4 comprises:
step S41: counting the relation between the brightness and the shape of the speckles, executing the step S42 if the relation meets the preset condition, otherwise, judging the relation as a prosthesis;
step S42: counting the distribution of the Gao Chazhi vectors to obtain the speckle quantity m larger than a first threshold value;
step S43: if m is greater than the second threshold, executing step S44, otherwise, judging as a prosthesis;
step S44: counting the distribution of the mean difference value vector to obtain the speckle number n larger than a third threshold value;
step S45: if n is greater than the fourth threshold, a living body is determined, otherwise a prosthesis is determined.
8. A bioinformatic living body identification system for realizing the bioinformatic living body identification method according to any one of claims 1 to 7, characterized by comprising:
the acquisition module is used for acquiring the speckle pattern and detecting a target area; the target area is an area containing biological information;
the identification module is used for identifying a plurality of speckles and speckle brightness on the target area;
the calculating module is used for calculating the brightness relation between each speckle and the adjacent speckle;
and the judging module is used for judging whether the target object is a living body according to the brightness relation of the plurality of speckles and the relation of the brightness and the shape of the speckles.
9. A bioinformatic living body identification apparatus, characterized by comprising:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to perform the steps of the method for bioinformatic in-vivo identification of any one of claims 1 to 7 via execution of the executable instructions.
10. A computer-readable storage medium storing a program, characterized in that the program when executed implements the steps of the biological information living body identification method according to any one of claims 1 to 7.
CN202311598706.8A 2023-11-28 2023-11-28 Biological information living body identification method, system, equipment and storage medium Pending CN117711075A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311598706.8A CN117711075A (en) 2023-11-28 2023-11-28 Biological information living body identification method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311598706.8A CN117711075A (en) 2023-11-28 2023-11-28 Biological information living body identification method, system, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117711075A true CN117711075A (en) 2024-03-15

Family

ID=90156142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311598706.8A Pending CN117711075A (en) 2023-11-28 2023-11-28 Biological information living body identification method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117711075A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118351601A (en) * 2024-04-26 2024-07-16 浙江工业大学 Finger living body anti-counterfeiting method based on speckle variance optical coherence tomography

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118351601A (en) * 2024-04-26 2024-07-16 浙江工业大学 Finger living body anti-counterfeiting method based on speckle variance optical coherence tomography

Similar Documents

Publication Publication Date Title
CN101561710B (en) Man-machine interaction method based on estimation of human face posture
CN109815850B (en) Iris image segmentation and localization method, system and device based on deep learning
Kang et al. Study of a full-view 3D finger vein verification technique
EP3839807A1 (en) Facial landmark detection method and apparatus, computer device and storage medium
CN102542281B (en) Non-contact biometric feature identification method and system
US20160162673A1 (en) Technologies for learning body part geometry for use in biometric authentication
CN101499134B (en) Iris recognition method and system based on field programmable gate array
CN109583304A (en) A kind of quick 3D face point cloud generation method and device based on structure optical mode group
CN105574518A (en) Method and device for human face living detection
CN102542242B (en) The biological characteristic area positioning method and device of contactless collection image
CN108875485A (en) A kind of base map input method, apparatus and system
CN113901423B (en) Intelligent security equipment control method and system based on face recognition
CN111382592A (en) Living body detection method and apparatus
KR20150127381A (en) Method for extracting face feature and apparatus for perforimg the method
Galbally et al. 3D-FLARE: A touchless full-3D fingerprint recognition system based on laser sensing
CN110287918A (en) living body identification method and related product
CN117711076A (en) Speckle living body detection method, system, equipment and storage medium based on time sequence
CN116645697A (en) A multi-view gait recognition method, device, electronic equipment and storage medium
CN109948439A (en) A kind of biopsy method, system and terminal device
CN117711075A (en) Biological information living body identification method, system, equipment and storage medium
CN117711073A (en) Human body biological information living body identification method, system, equipment and storage medium
CN114712220B (en) Acupuncture point detection method and device and electronic equipment
CN116631068B (en) Palm vein living body detection method based on deep learning feature fusion
Labati et al. Virtual environment for 3-D synthetic fingerprints
CN117711074A (en) Method, system, equipment and storage medium for identifying speckle living body

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20240315