CN117809009A - Identity recognition method, equipment, device, computer equipment and storage medium - Google Patents
Identity recognition method, equipment, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN117809009A CN117809009A CN202211163282.8A CN202211163282A CN117809009A CN 117809009 A CN117809009 A CN 117809009A CN 202211163282 A CN202211163282 A CN 202211163282A CN 117809009 A CN117809009 A CN 117809009A
- Authority
- CN
- China
- Prior art keywords
- image
- identity
- attachment
- detection
- feature
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/10—Image acquisition
- G06V10/12—Details of acquisition arrangements; Constructional details thereof
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B08—CLEANING
- B08B—CLEANING IN GENERAL; PREVENTION OF FOULING IN GENERAL
- B08B13/00—Accessories or details of general applicability for machines or apparatus for cleaning
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
- G06K7/1417—2D bar codes
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Multimedia (AREA)
- Image Analysis (AREA)
Abstract
Description
技术领域Technical Field
本申请涉及计算机技术领域,特别是涉及一种身份识别方法、设备、装置、计算机设备、存储介质和计算机程序产品。The present application relates to the field of computer technology, and in particular to an identity recognition method, equipment, device, computer equipment, storage medium and computer program product.
背景技术Background technique
随着计算机技术的发展,日趋成熟的身份识别技术在商务合作、消费支付、社交媒体、安保门禁等各领域中得到了广泛的应用。身份识别的实现方式越来越多样化,如基于二维码进行身份识别、基于生物特征进行身份识别等。其中,基于生物特征进行身份识别,是利用人固有的生物特征,如手形、指纹、脸形、视网膜、耳廓等生物特征进行身份识别,已经成为身份识别技术的发展趋势。With the development of computer technology, increasingly mature identity recognition technology has been widely used in various fields such as business cooperation, consumer payment, social media, security access control, etc. The implementation methods of identity recognition are becoming more and more diverse, such as identity recognition based on QR codes and identity recognition based on biometrics. Among them, identity recognition based on biometrics is the use of human inherent biological features, such as hand shape, fingerprint, face shape, retina, auricle and other biological features for identity recognition, which has become the development trend of identity recognition technology.
目前,基于二维码、生物特征进行身份识别时,往往需要设置的摄像头采集图像,通过采集的图像进行身份识别。然而,在不同的场景中,采集图像的摄像头上容易附着影响图像采集效果的水渍、灰尘等,采集的图像容易出现模糊、缺失等失真问题,降低了身份识别的准确性。At present, when performing identity recognition based on QR codes and biometrics, it is often necessary to set up a camera to collect images, and perform identity recognition through the collected images. However, in different scenarios, the camera that collects images is prone to adhere to water stains, dust, etc. that affect the image collection effect. The collected images are prone to distortion problems such as blurring and missing, which reduces the accuracy of identity recognition.
发明内容Contents of the invention
基于此,有必要针对上述技术问题,提供一种能够提高身份识别准确性的身份识别方法、设备、装置、计算机设备、计算机可读存储介质和计算机程序产品。Based on this, it is necessary to provide an identity recognition method, equipment, device, computer equipment, computer-readable storage medium and computer program product that can improve the accuracy of identity recognition in view of the above technical problems.
第一方面,本申请提供了一种身份识别方法。所述方法包括:In the first aspect, this application provides an identification method. The methods include:
获取针对身份识别设备的身份特征采集入口采集的第一图像,对第一图像进行附着物检测,获得第一检测结果;Obtain the first image collected for the identity characteristic collection entrance of the identity recognition device, perform attachment detection on the first image, and obtain the first detection result;
当第一检测结果表征身份特征采集入口处存在附着物,触发针对身份特征采集入口的清洁处理;When the first detection result indicates that there is attachment at the identity feature collection entrance, the cleaning process for the identity feature collection entrance is triggered;
在触发清洁处理之后,获取针对身份特征采集入口采集的第二图像,对第二图像进行附着物检测,获得第二检测结果;After triggering the cleaning process, obtain the second image collected for the identity feature collection entrance, perform attachment detection on the second image, and obtain the second detection result;
当第二检测结果表征身份特征采集入口处的附着物已清理,响应于从身份特征采集入口处采集到身份特征图像,进行基于身份特征图像的身份识别。When the second detection result indicates that the attachments at the identity feature collection entrance have been cleared, in response to collecting the identity feature image from the identity feature collection entrance, identity recognition based on the identity feature image is performed.
第二方面,本申请还提供了一种身份识别设备,所述设备包括:处理器、图像传感器和身份特征采集入口;In a second aspect, the present application also provides an identity recognition device, the device comprising: a processor, an image sensor, and an identity feature collection entrance;
图像传感器通过身份特征采集入口进行图像采集;The image sensor collects images through the identity feature collection entrance;
处理器,用于获取图像传感器通过身份特征采集入口采集的第一图像,对第一图像进行附着物检测,获得第一检测结果;当第一检测结果表征身份特征采集入口处存在附着物,触发针对身份特征采集入口的清洁处理;在触发清洁处理之后,获取针对身份特征采集入口采集的第二图像,对第二图像进行附着物检测,获得第二检测结果;当第二检测结果表征身份特征采集入口处的附着物已清理,响应于从身份特征采集入口处采集到身份特征图像,进行基于身份特征图像的身份识别。A processor configured to acquire the first image collected by the image sensor through the identity feature collection entrance, perform attachment detection on the first image, and obtain a first detection result; when the first detection result indicates the presence of attachments at the identity feature collection entrance, trigger Cleaning processing for the identity feature collection entrance; after triggering the cleaning process, obtain the second image collected for the identity feature collection entrance, perform attachment detection on the second image, and obtain the second detection result; when the second detection result represents the identity feature The attachments at the collection entrance have been cleaned, and in response to the identity feature image being collected from the identity feature collection entrance, identity recognition based on the identity feature image is performed.
第三方面,本申请还提供了一种身份识别装置。所述装置包括:In a third aspect, this application also provides an identity recognition device. The device includes:
第一图像检测模块,用于获取针对身份识别设备的身份特征采集入口采集的第一图像,对第一图像进行附着物检测,获得第一检测结果;The first image detection module is used to obtain the first image collected for the identity feature collection entrance of the identity recognition device, detect attachments on the first image, and obtain the first detection result;
附着物清洁模块,用于当第一检测结果表征身份特征采集入口处存在附着物,触发针对身份特征采集入口的清洁处理;An attachment cleaning module, configured to trigger a cleaning process for the identity feature collection entrance when the first detection result indicates that attachments exist at the identity feature collection entrance;
第二图像检测模块,用于在触发清洁处理之后,获取针对身份特征采集入口采集的第二图像,对第二图像进行附着物检测,获得第二检测结果;The second image detection module is used to obtain the second image collected for the identity feature collection entrance after triggering the cleaning process, perform attachment detection on the second image, and obtain the second detection result;
身份识别处理模块,用于当第二检测结果表征身份特征采集入口处的附着物已清理,响应于从身份特征采集入口处采集到身份特征图像,进行基于身份特征图像的身份识别。The identity recognition processing module is used to perform identity recognition based on the identity feature image in response to the identity feature image collected from the identity feature collection entrance when the second detection result indicates that the attachments at the identity feature collection entrance have been cleared.
第四方面,本申请还提供了一种计算机设备。所述计算机设备包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:In a fourth aspect, this application also provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
获取针对身份识别设备的身份特征采集入口采集的第一图像,对第一图像进行附着物检测,获得第一检测结果;Obtain the first image collected for the identity characteristic collection entrance of the identity recognition device, perform attachment detection on the first image, and obtain the first detection result;
当第一检测结果表征身份特征采集入口处存在附着物,触发针对身份特征采集入口的清洁处理;When the first detection result indicates that there is attachment at the identity feature collection entrance, a cleaning process for the identity feature collection entrance is triggered;
在触发清洁处理之后,获取针对身份特征采集入口采集的第二图像,对第二图像进行附着物检测,获得第二检测结果;After the cleaning process is triggered, a second image collected at the identity feature collection entrance is acquired, and an attachment detection is performed on the second image to obtain a second detection result;
当第二检测结果表征身份特征采集入口处的附着物已清理,响应于从身份特征采集入口处采集到身份特征图像,进行基于身份特征图像的身份识别。When the second detection result indicates that the attachments at the identity feature collection entrance have been cleared, in response to collecting the identity feature image from the identity feature collection entrance, identity recognition based on the identity feature image is performed.
第五方面,本申请还提供了一种计算机可读存储介质。所述计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:In a fifth aspect, this application also provides a computer-readable storage medium. The computer-readable storage medium has a computer program stored thereon, and when the computer program is executed by the processor, the following steps are implemented:
获取针对身份识别设备的身份特征采集入口采集的第一图像,对第一图像进行附着物检测,获得第一检测结果;Acquire a first image collected by an identity feature collection entrance of an identity recognition device, perform attachment detection on the first image, and obtain a first detection result;
当第一检测结果表征身份特征采集入口处存在附着物,触发针对身份特征采集入口的清洁处理;When the first detection result indicates that there is attachment at the identity feature collection entrance, the cleaning process for the identity feature collection entrance is triggered;
在触发清洁处理之后,获取针对身份特征采集入口采集的第二图像,对第二图像进行附着物检测,获得第二检测结果;After triggering the cleaning process, obtain the second image collected for the identity feature collection entrance, perform attachment detection on the second image, and obtain the second detection result;
当第二检测结果表征身份特征采集入口处的附着物已清理,响应于从身份特征采集入口处采集到身份特征图像,进行基于身份特征图像的身份识别。When the second detection result indicates that the attachments at the identity feature collection entrance have been cleared, in response to collecting the identity feature image from the identity feature collection entrance, identity recognition based on the identity feature image is performed.
第六方面,本申请还提供了一种计算机程序产品。所述计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:In a sixth aspect, this application also provides a computer program product. The computer program product includes a computer program that implements the following steps when executed by a processor:
获取针对身份识别设备的身份特征采集入口采集的第一图像,对第一图像进行附着物检测,获得第一检测结果;Obtain the first image collected for the identity characteristic collection entrance of the identity recognition device, perform attachment detection on the first image, and obtain the first detection result;
当第一检测结果表征身份特征采集入口处存在附着物,触发针对身份特征采集入口的清洁处理;When the first detection result indicates that there is attachment at the identity feature collection entrance, the cleaning process for the identity feature collection entrance is triggered;
在触发清洁处理之后,获取针对身份特征采集入口采集的第二图像,对第二图像进行附着物检测,获得第二检测结果;After triggering the cleaning process, obtain the second image collected for the identity feature collection entrance, perform attachment detection on the second image, and obtain the second detection result;
当第二检测结果表征身份特征采集入口处的附着物已清理,响应于从身份特征采集入口处采集到身份特征图像,进行基于身份特征图像的身份识别。When the second detection result indicates that the attachments at the identity feature collection entrance have been cleared, in response to the identity feature image being collected from the identity feature collection entrance, identity recognition based on the identity feature image is performed.
上述身份识别方法、设备、装置、计算机设备、存储介质和计算机程序产品,获取针对身份识别设备的身份特征采集入口采集的第一图像,基于第一图像进行附着物检测,在确定身份特征采集入口处存在附着物的情况下,针对身份特征采集入口进行清洁处理,在身份特征采集入口处的附着物已清理的情况下,基于从身份特征采集入口处采集到的身份特征图像进行身份识别。在将身份特征采集入口处存在的附着物清理后,基于从身份特征采集入口处采集到的身份特征图像进行身份识别,可以减小身份特征采集入口处存在的附着物对身份特征图像成像的影响,确保身份特征图像的成像质量,从而提高了基于身份特征图像进行身份识别的准确性。The above-mentioned identity recognition methods, equipment, devices, computer equipment, storage media and computer program products obtain the first image collected for the identity feature collection portal of the identity recognition device, perform attachment detection based on the first image, and determine the identity feature collection portal. When there are attachments at the identity feature collection entrance, the identity feature collection entrance is cleaned. When the attachments at the identity feature collection entrance have been cleaned, identity recognition is performed based on the identity feature image collected from the identity feature collection entrance. After cleaning the attachments present at the identity feature collection entrance, identity recognition is performed based on the identity feature image collected from the identity feature collection entrance, which can reduce the impact of attachments present at the identity feature collection entrance on the identity feature image imaging. , ensuring the imaging quality of the identity feature image, thereby improving the accuracy of identity recognition based on the identity feature image.
附图说明Description of drawings
图1为一个实施例中身份识别方法的应用环境图;Figure 1 is an application environment diagram of the identity recognition method in one embodiment;
图2为一个实施例中身份识别方法的流程示意图;Figure 2 is a schematic flow chart of an identity recognition method in an embodiment;
图3为一个实施例中训练附着物检测模型的流程示意图;Figure 3 is a schematic flowchart of training an attachment detection model in one embodiment;
图4为一个实施例中身份识别设备的结构框图;Figure 4 is a structural block diagram of an identity recognition device in one embodiment;
图5为一个实施例中身份识别方法应用于门禁场景的示意图;Figure 5 is a schematic diagram of the identity recognition method applied to the access control scenario in one embodiment;
图6为一个实施例中身份识别方法应用于刷掌支付场景的示意图;Figure 6 is a schematic diagram of the identity recognition method applied to a palm payment scenario in one embodiment;
图7为另一个实施例中身份识别方法的流程示意图;Figure 7 is a schematic flow chart of an identity recognition method in another embodiment;
图8为一个实施例中摄像头镜头设置的示意图;Figure 8 is a schematic diagram of camera lens settings in one embodiment;
图9为一个实施例中构建水渍检测模型的流程示意图;Figure 9 is a schematic flowchart of constructing a water stain detection model in one embodiment;
图10为一个实施例中手掌图像因水渍失真的示意图;Figure 10 is a schematic diagram of a palm image distorted by water stains in one embodiment;
图11另为一个实施例中手掌图像因水渍失真的示意图;Figure 11 is another schematic diagram of the palm image being distorted by water stains in one embodiment;
图12又为一个实施例中手掌图像因水渍失真的示意图;Figure 12 is another schematic diagram of the palm image being distorted by water stains in one embodiment;
图13为一个实施例中通过水渍检测模型进行水渍检测的流程示意图;FIG13 is a schematic diagram of a process of performing water stain detection using a water stain detection model in one embodiment;
图14为一个实施例中身份识别装置的结构框图;FIG14 is a block diagram of a structure of an identity recognition device in one embodiment;
图15为一个实施例中计算机设备的内部结构图。Figure 15 is an internal structure diagram of a computer device in one embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clear, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.
本申请实施例提供的身份识别方法,可以应用于如图1所示的应用环境中。其中,终端102通过网络与服务器104进行通信。数据存储系统可以存储服务器104需要处理的数据。数据存储系统可以集成在服务器104上,也可以放在云上或其他服务器上。终端102可以获取针对身份识别设备的身份特征采集入口采集的第一图像,对第一图像进行附着物检测,获得第一检测结果。在第一检测结果表征身份特征采集入口处存在附着物的情况下,终端102可以触发针对身份特征采集入口的清洁处理。在触发清洁处理之后,终端102获取针对身份特征采集入口采集的第二图像,对第二图像进行附着物检测,获得第二检测结果。当第二检测结果表征身份特征采集入口处的附着物已清理,终端102响应于从身份特征采集入口处采集到身份特征图像,进行基于身份特征图像的身份识别,具体可以由终端102将采集到的身份特征图像发送到服务器104,由服务器104基于身份特征图像进行身份识别,并将得到的身份识别结果反馈至终端102。The identity recognition method provided by the embodiment of this application can be applied in the application environment as shown in Figure 1. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system may store data that server 104 needs to process. The data storage system can be integrated on the server 104, or placed on the cloud or other servers. The terminal 102 can obtain the first image collected by the identity feature collection entrance of the identity recognition device, perform attachment detection on the first image, and obtain the first detection result. In the case where the first detection result indicates that there is an attachment at the identity feature collection entrance, the terminal 102 may trigger a cleaning process for the identity feature collection entrance. After triggering the cleaning process, the terminal 102 obtains the second image collected for the identity feature collection entrance, performs attachment detection on the second image, and obtains the second detection result. When the second detection result indicates that the attachments at the identity feature collection entrance have been cleared, the terminal 102 responds to collecting the identity feature image from the identity feature collection entrance and performs identity recognition based on the identity feature image. Specifically, the terminal 102 may collect the identity feature image. The identity feature image is sent to the server 104, and the server 104 performs identity recognition based on the identity feature image, and feeds back the obtained identity recognition result to the terminal 102.
此外,身份识别方法也可以直接由终端102或服务器104单独实现,即可以由终端102直接对采集的身份特征图像进行身份识别,也可以由服务器104单独实现身份识别方法。In addition, the identity recognition method can also be directly implemented by the terminal 102 or the server 104 alone, that is, the terminal 102 can directly identify the collected identity feature image, or the server 104 can implement the identity recognition method alone.
其中,终端102可以但不限于是各种台式计算机、笔记本电脑、智能手机、平板电脑、物联网设备和便携式可穿戴设备,物联网设备可为智能音箱、智能电视、智能空调、智能车载设备等。便携式可穿戴设备可为智能手表、智能手环、头戴设备等。终端102可以配置有图像传感器设备,以进行图像采集。服务器104可以用独立的服务器或者是多个服务器组成的服务器集群来实现,其中涉及的多个服务器可组成为一区块链,而服务器104可以为区块链上的节点。Among them, the terminal 102 can be, but is not limited to, various desktop computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart vehicle-mounted devices, etc. . Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The terminal 102 may be configured with an image sensor device for image collection. The server 104 can be implemented as an independent server or a server cluster composed of multiple servers. The multiple servers involved can form a blockchain, and the server 104 can be a node on the blockchain.
在一个实施例中,如图2所示,提供了一种身份识别方法,该方法由计算机设备执行,具体可以由终端或服务器等计算机设备单独执行,也可以由终端和服务器共同执行,在本申请实施例中,以该方法应用于图1中的终端为例进行说明,包括以下步骤:In one embodiment, as shown in Figure 2, an identity recognition method is provided. The method is executed by a computer device. Specifically, it can be executed by a computer device such as a terminal or a server alone, or it can be executed by a terminal and a server together. In this article In the application embodiment, the application of this method to the terminal in Figure 1 is used as an example for explanation, including the following steps:
步骤202,获取针对身份识别设备的身份特征采集入口采集的第一图像,对第一图像进行附着物检测,获得第一检测结果。Step 202: Obtain the first image collected by the identity characteristic collection entrance of the identity recognition device, perform attachment detection on the first image, and obtain the first detection result.
其中,身份识别是识别用户真实身份信息的过程,具体还可以验证用户真实身份信息是否与其所声称的身份信息相符合。身份识别设备是用于身份识别的设备,其可以对用户的身份进行识别,以便基于用户的身份进行相应处理。例如,在门禁场景中,身份识别设备可以识别用户身份,以确实用户是否属于合法用户,从而确定是否允许用户进入。身份特征采集入口为身份识别设备采集身份特征以进行身份识别的入口。在身份识别设备采集的身份特征包括图像时,身份特征采集入口可以为身份识别设备的图像传感器的采集入口,即图像传感器通过身份特征采集入口进行图像采集。在具体实现中,图像传感器可以包括各种类型的摄像头,身份特征采集入口则可以为各种类型摄像头各自对应的镜头。Among them, identity recognition is the process of identifying the user's true identity information. Specifically, it can also verify whether the user's true identity information matches the identity information he claims. Identity recognition equipment is a device used for identity recognition, which can identify the user's identity so that corresponding processing can be performed based on the user's identity. For example, in an access control scenario, the identity recognition device can identify the user to confirm whether the user is a legitimate user and thus determine whether the user is allowed to enter. The identity feature collection portal is the portal where the identity recognition device collects identity features for identity recognition. When the identity features collected by the identity recognition device include images, the identity feature collection portal may be the collection portal of the image sensor of the identity recognition device, that is, the image sensor collects images through the identity feature collection portal. In specific implementation, the image sensor can include various types of cameras, and the identity feature collection entrance can be the corresponding lenses of various types of cameras.
第一图像是针对身份识别设备的身份特征采集入口采集得到的,具体可以是身份识别设备的图像传感器通过身份特征采集入口采集得到的图像。附着物检测是指检测在身份特征采集入口上是否存在附着物,如灰尘、水渍、污迹等。在身份特征采集入口上存在附着物,则身份识别设备通过身份特征采集入口采集图像时,附着物将会干扰成像,导致采集的图像中存在失真问题,如模糊、缺失、遮挡等,将会影响身份识别的准确性。例如,在身份特征采集入口处有水滴时,在图像传感器进行图像采集,如摄像头进行图像拍摄时,会将身份特征采集入口处的水滴也拍摄入内,引入成像噪声,导致在成像中会拍摄到水滴,对实际需要拍摄的对象产生干扰。第一检测结果是针对第一图像进行附着物检测得到的检测结果,第一检测结果可以包括是否存在附着物、附着物类型以及附着物的分布区域等数据信息。基于第一检测结果可以确定在身份识别设备的身份特征采集入口处是否附着有将会干扰成像的物体,从而可以确定是否需要对身份特征采集入口进行清洁处理。The first image is collected for the identity feature collection portal of the identity recognition device. Specifically, it may be an image collected by the image sensor of the identity recognition device through the identity feature collection portal. Attachment detection refers to detecting whether there are attachments on the identity feature collection entrance, such as dust, water stains, stains, etc. If there are attachments on the identity feature collection entrance, when the identity recognition device collects images through the identity feature collection entrance, the attachments will interfere with the imaging, resulting in distortion problems in the collected images, such as blur, missing, occlusion, etc., which will affect Accuracy of identification. For example, when there are water droplets at the identity feature collection entrance, when the image sensor collects images, such as when the camera captures images, the water droplets at the identity feature collection entrance will also be captured, introducing imaging noise, resulting in images being captured during imaging. Water droplets interfere with the actual subject being photographed. The first detection result is a detection result obtained by detecting attachments on the first image. The first detection result may include data information such as whether there are attachments, types of attachments, and distribution areas of attachments. Based on the first detection result, it can be determined whether there is an object that will interfere with imaging attached to the identity feature collection entrance of the identity recognition device, so that it can be determined whether the identity feature collection entrance needs to be cleaned.
具体地,终端可以获取身份识别设备的身份特征采集入口采集的第一图像,如终端可以接收由身份识别设备发送的第一图像。在具体实现中,身份识别设备本身可以直接实现该身份识别方法,即身份识别设备可以作为终端,获取身份特征采集入口采集的第一图像,并针对第一图像进行附着物检测,得到第一检测结果。在对第一图像进行附着物检测时,终端可以基于目标检测算法,如滑动窗口算法(Sliding Window Algorithm)、候选区域算法(Region Proposal Algorithms)、选择性搜索算法(Selective Search)、R-CNN(Region-Convolutional Neural Networks,区域卷积神经网络)等各种算法,对第一图像进行附着物检测,得到第一检测结果。Specifically, the terminal can obtain the first image collected by the identity feature collection entrance of the identity recognition device, such as the terminal can receive the first image sent by the identity recognition device. In a specific implementation, the identity recognition device itself can directly implement the identity recognition method, that is, the identity recognition device can be used as a terminal to obtain the first image collected by the identity feature collection entrance, and perform attachment detection on the first image to obtain a first detection result. When performing attachment detection on the first image, the terminal can perform attachment detection on the first image based on target detection algorithms, such as sliding window algorithms (Sliding Window Algorithm), candidate region algorithms (Region Proposal Algorithms), selective search algorithms (Selective Search), R-CNN (Region-Convolutional Neural Networks, regional convolutional neural networks) and other algorithms to obtain a first detection result.
步骤204,当第一检测结果表征身份特征采集入口处存在附着物,触发针对身份特征采集入口的清洁处理。Step 204: When the first detection result indicates that there is an attachment at the identity feature collection entrance, a cleaning process for the identity feature collection entrance is triggered.
其中,针对身份特征采集入口的清洁处理,是指将身份特征采集入口处所存在的附着物进行清除的处理,通过清洁处理可以将身份特征采集入口处的附着物去除,以确保通过身份特征采集入口进行图像采集时的成像质量,即取得更好的图像采集效果,得到更清晰的图像。Among them, the cleaning process for the identity feature collection entrance refers to the process of removing the attachments present at the identity feature collection entrance. Through the cleaning process, the attachments at the identity feature collection entrance can be removed to ensure that the identity characteristics collection entrance passes through the cleaning process. The imaging quality during image acquisition means better image acquisition effect and clearer images.
具体地,若第一检测结果表征身份特征采集入口处存在附着物,即继续通过身份特征采集入口进行图像采集,会导致获得的图像失真,则终端触发对身份特征采集入口的清洁处理,即终端针对身份特征采集入口处的附着物进行清除处理。在具体实现中,终端可以通过控制清洁装置针对身份特征采集入口的清洁处理。例如,身份特征采集入口处的附着物为水渍,则终端可以控制水渍清除装置对水渍进行清除,如通过烘干装置进行烘干,通过风扇进行吹拂蒸发等。此外,对于不同的类型的附着物,可以对应于不同的清洁处理方式,具体可以控制不同的清洁装置实施清洁处理。如身份特征采集入口处的附着物为灰尘或污迹,则终端可以控制擦洗装置针对身份特征采集入口进行擦洗处理,从而清除身份特征采集入口处的灰尘或污迹。Specifically, if the first detection result indicates that there is an attachment at the identity feature collection entrance, that is, continuing to collect images through the identity feature collection entrance will cause the obtained image to be distorted, then the terminal triggers the cleaning process of the identity feature collection entrance, that is, the terminal Remove attachments at the entrance to identity collection. In a specific implementation, the terminal can control the cleaning device to clean the identity feature collection entrance. For example, if the attachment at the identity feature collection entrance is water stains, the terminal can control the water stain removal device to remove the water stains, such as drying through a drying device, blowing and evaporating through a fan, etc. In addition, different types of attachments can correspond to different cleaning processing methods, and specifically different cleaning devices can be controlled to perform cleaning processing. If the attachment at the identity feature collection entrance is dust or stains, the terminal can control the scrubbing device to scrub the identity feature collection entrance, thereby removing the dust or stains at the identity feature collection entrance.
步骤206,在触发清洁处理之后,获取针对身份特征采集入口采集的第二图像,对第二图像进行附着物检测,获得第二检测结果。Step 206: After triggering the cleaning process, obtain the second image collected for the identity feature collection entrance, perform attachment detection on the second image, and obtain the second detection result.
其中,第二图像是身份识别设备在触发清洁处理之后,针对身份特征采集入口采集的图像,即第二图像是在针对附着物进行清洁处理后,再次通过身份特征采集入口采集的图像。The second image is an image captured by the identity recognition device at the identity feature acquisition entrance after the cleaning process is triggered, that is, the second image is an image captured again through the identity feature acquisition entrance after the attachment is cleaned.
具体地,在触发清洁处理之后,即针对身份特征采集入口处存在的附着物进行清除处理之后,终端获取针对身份特征采集入口采集的第二图像。终端针对第二图像再次进行附着物检测,得到第二检测结果。基于第二检测结果可以确定在身份识别设备的身份特征采集入口处是否仍然附着有将会干扰成像的物体,从而可以确定附着物是否被清理。在具体应用中,针对第二图像的附着物检测,可以采取与对第一图像的附着物检测相同的检测方式,以确保检测方式的一致性。Specifically, after the cleaning process is triggered, that is, after the attachments present at the identity feature collection entrance are removed, the terminal acquires the second image collected for the identity feature collection entrance. The terminal performs attachment detection again on the second image and obtains a second detection result. Based on the second detection result, it can be determined whether there are still objects that will interfere with imaging at the identity feature collection entrance of the identity recognition device, so that it can be determined whether the attachments have been cleared. In a specific application, for the detection of attachments in the second image, the same detection method as the detection of attachments in the first image can be adopted to ensure the consistency of the detection methods.
步骤208,当第二检测结果表征身份特征采集入口处的附着物已清理,响应于从身份特征采集入口处采集到身份特征图像,进行基于身份特征图像的身份识别。Step 208: When the second detection result indicates that the attachments at the identity feature collection entrance have been cleared, in response to collecting the identity feature image from the identity feature collection entrance, perform identity recognition based on the identity feature image.
其中,身份特征图像是通过身份特征采集入口采集的用于身份识别的图像,具体可以包括生物特征图像、凭证特征图像等。例如,身份特征图像可以包括手掌部位图像、脸部图像、二维码图像等。Among them, the identity feature image is an image collected through the identity feature collection entrance for identity recognition, and may specifically include biometric feature images, credential feature images, etc. For example, identity feature images may include palm part images, face images, QR code images, etc.
具体地,若第二检测结果表征身份特征采集入口处的附着物已清理,即已针对身份特征采集入口处的附着物进行清除处理,可以确保后续图像采集效果,则终端基于从身份特征采集入口处采集到的身份特征图像进行身份识别。在具体应用中,可以在第二检测结果表征身份特征采集入口处不存在附着物时,终端获取从身份特征采集入口处采集的身份特征图像,并基于身份特征图像进行身份识别。身份特征图像中不再有身份特征采集入口处的附着物干扰,成像质量高,基于身份特征图像进行身份识别,可以确保身份识别的准确性。Specifically, if the second detection result indicates that the attachments at the identity feature collection entrance have been cleaned, that is, the attachments at the identity feature collection entrance have been removed and the subsequent image collection effect can be ensured, then the terminal is based on the identity feature collection entrance. Identity recognition is performed on the identity feature images collected here. In a specific application, when the second detection result indicates that there is no attachment at the identity feature collection entrance, the terminal can obtain the identity feature image collected from the identity feature collection entrance, and perform identity recognition based on the identity feature image. There is no longer interference from attachments at the entrance to the identity feature collection in the identity feature image, and the imaging quality is high. Identity recognition based on the identity feature image can ensure the accuracy of identity recognition.
此外,当第二检测结果表征身份特征采集入口处的附着物未清理,即通过清洁处理后,仍未将身份特征采集入口处的附着物去除,则终端可以再次触发对身份特征采集入口的清洁处理,直至确定身份特征采集入口处的附着物已清理时,再通过身份特征采集入口采集身份特征图像进行身份识别。在具体应用中,终端可以记录清洁处理的次数,当清洁处理的次数达到次数阈值,而附着物仍未被清理时,则可以结束针对身份特征采集入口的清洁处理,以避免长时间反复进行清洁处理而仍无法将附着物清理。另外,在身份特征采集入口处的附着物未被清理时,终端还可以生成提示信息,将提示信息发送至控制端,以提示控制端的控制人员针对身份特征采集入口进行清洁处理,以确保身份特征采集入口的附着物能够即使被清除。在具体实现时,可以设置清洁处理的次数阈值,在清洁处理的次数不超过次数阈值时,若身份特征采集入口处的附着物经过清洁处理后仍未被清理干净,则可以反复进行清洁处理,直至附着物被清理或者清理次数超过次数阈值时结束清洁处理。还可以针对清洁处理的历史记录进行统计分析,如可以统计针对附着物进行清洁处理时,将附着物清理时对应的清洁模式,可以包括清洁时间、清洁方式、清洁强度等,从而在检测到附着物时,可以根据附着物的参数,如附着物的类型、分布范围等,确定对应的清洁模式,以按照确定的清洁模式针对附着物进行有效清理,确保清洁效果。In addition, when the second detection result indicates that the attachments at the identity feature collection entrance have not been cleaned, that is, the attachments at the identity feature collection entrance have not been removed after the cleaning process, the terminal can trigger cleaning of the identity feature collection entrance again. Process until it is determined that the attachments at the identity feature collection entrance have been cleared, and then the identity feature image is collected through the identity feature collection entrance for identity recognition. In specific applications, the terminal can record the number of cleaning processes. When the number of cleaning processes reaches the threshold and the attachments have not been cleaned, the cleaning process for the identity feature collection entrance can be ended to avoid repeated cleaning for a long time. The attachments still cannot be removed even after treatment. In addition, when the attachments at the identity feature collection entrance have not been cleaned, the terminal can also generate prompt information and send the prompt information to the control end to prompt the controller at the control end to clean the identity feature collection entrance to ensure the identity features. Attachments at the collection entrance can be removed immediately. In specific implementation, a threshold value for the number of cleaning processes can be set. When the number of cleaning processes does not exceed the threshold value, if the attachments at the identity feature collection entrance have not been cleaned up after cleaning, the cleaning process can be repeated. The cleaning process ends until the attachments are cleaned or the number of times of cleaning exceeds the threshold. Statistical analysis can also be performed on the historical records of the cleaning process. For example, when cleaning the attachments, the cleaning mode corresponding to the attachments can be counted, which can include cleaning time, cleaning method, cleaning intensity, etc., so that when attachments are detected, When attaching to an object, the corresponding cleaning mode can be determined based on the parameters of the attachment, such as the type and distribution range of the attachment, so that the attachment can be effectively cleaned according to the determined cleaning mode to ensure the cleaning effect.
上述身份识别方法中,终端获取针对身份识别设备的身份特征采集入口采集的第一图像,基于第一图像进行附着物检测,在确定身份特征采集入口处存在附着物的情况下,针对身份特征采集入口进行清洁处理,在身份特征采集入口处的附着物已清理的情况下,基于从身份特征采集入口处采集到的身份特征图像进行身份识别。在将身份特征采集入口处存在的附着物清理后,基于从身份特征采集入口处采集到的身份特征图像进行身份识别,可以减小身份特征采集入口处存在的附着物对身份特征图像成像的影响,确保身份特征图像的成像质量,从而提高了基于身份特征图像进行身份识别的准确性。In the above identity recognition method, the terminal obtains the first image collected for the identity feature collection entrance of the identity recognition device, performs attachment detection based on the first image, and detects attachments based on the identity feature collection entrance when it is determined that there is an attachment at the identity feature collection entrance. The entrance is cleaned, and when the attachments at the identity feature collection entrance have been cleaned, identity recognition is performed based on the identity feature image collected from the identity feature collection entrance. After cleaning the attachments present at the identity feature collection entrance, identity recognition is performed based on the identity feature image collected from the identity feature collection entrance, which can reduce the impact of attachments present at the identity feature collection entrance on the identity feature image imaging. , ensuring the imaging quality of the identity feature image, thereby improving the accuracy of identity recognition based on the identity feature image.
在一个实施例中,对第一图像进行附着物检测,获得第一检测结果,包括:对第一图像进行图像特征提取,得到第一图像的图像特征;获取身份特征采集入口与第一图像中所包括的采集对象之间的距离参数;基于图像特征和距离参数进行附着物检测,得到第一检测结果。In one embodiment, performing attachment detection on the first image to obtain the first detection result includes: performing image feature extraction on the first image to obtain the image features of the first image; and obtaining the identity feature collection entrance and the first image. The included distance parameters between the collection objects are included; attachment detection is performed based on the image features and distance parameters to obtain the first detection result.
其中,第一图像的图像特征通过对第一图像进行图像特征提取得到,具体可以通过各种目标检测算法针对第一图像进行处理得到。基于第一图像的图像特征,可以确定身份识别设备的身份特征采集入口处是否存在附着物。采集对象是第一图像中包括的对象,具体为第一图像中的拍摄目标,身份识别设备通过身份特征采集入口针对采集对象进行拍摄,得到第一图像。距离参数可以包括身份特征采集入口与拍摄目标之间的距离,具体可以包括摄像头的镜头至拍摄目标的距离。距离参数可以通过在身份识别设备中设置的距离传感器,如通过光距传感器确定。在身份识别设备的身份特征采集入口处存在附着物时,具体存在液体附着物时,液体附着物本身会形成透镜,从而导致距离参数的检测产生异常,通过距离参数可以辅助确定在身份识别设备的身份特征采集入口处是否存在附着物。The image features of the first image are obtained by extracting image features from the first image. Specifically, they can be obtained by processing the first image through various target detection algorithms. Based on the image features of the first image, it can be determined whether there is an attachment at the identity feature collection entrance of the identity recognition device. The collection object is an object included in the first image, specifically the shooting target in the first image. The identity recognition device shoots the collection object through the identity feature collection entrance to obtain the first image. The distance parameter may include the distance between the identity feature collection entrance and the shooting target. Specifically, it may include the distance from the camera lens to the shooting target. The distance parameter can be determined by a distance sensor set in the identity recognition device, such as a light distance sensor. When there is attachment at the identity feature collection entrance of the identity recognition device, specifically when there is liquid attachment, the liquid attachment itself will form a lens, which will cause abnormalities in the detection of the distance parameter. The distance parameter can assist in determining the location of the identity recognition device. Check whether there are attachments at the entrance to the identity feature collection.
具体地,终端从第一图像中提取得到图像特征,终端可以通过各种图像特征提取方法针对第一图像进行图像特征提取,如可以通过SIFT(Scale-Invariant FeaturesTransform,尺度不变特征变换)、SURF(Speeded Up Robust Features,加速稳健特征)、HOG(Histogram of Oriented Gradient,方向梯度直方图)等特征提取算法从第一图像中提取到图像特征。此外,终端还可以基于人工神经网络算法,如通过预先训练的各种人工神经网络模型对第一图像进行图像特征提取,得到第一图像的图像特征。终端获取身份特征采集入口与第一图像中所包括的采集对象之间的距离参数,距离参数可以由光距传感器检测得到。Specifically, the terminal extracts image features from the first image. The terminal can extract image features from the first image through various image feature extraction methods, such as through SIFT (Scale-Invariant Features Transform), SURF Feature extraction algorithms such as Speeded Up Robust Features and HOG (Histogram of Oriented Gradient) extract image features from the first image. In addition, the terminal can also perform image feature extraction on the first image based on an artificial neural network algorithm, such as various pre-trained artificial neural network models, to obtain the image features of the first image. The terminal obtains a distance parameter between the identity feature collection entrance and the collection object included in the first image, and the distance parameter can be detected by a light distance sensor.
终端基于第一图像的图像特征和距离参数进行附着物检测,得到第一检测结果。终端可以分别基于图像特征和距离参数进行附着物检测,再将二者的检测结果综合,得到第一检测结果。终端也可以直接综合图像特征和距离参数统一进行附着物检测,得到第一检测结果。在具体实现时,终端可以基于第一图像的图像特征进行目标检测,以检测身份特征采集入口处是否存在附着物,如第一图像存在模糊、遮挡、缺失等失真问题时,可能是由于身份特征采集入口处存在附着物导致的。终端可以基于距离参数进行异常分析,确地距离参数是否异常,如果距离参数异常,则可能是由于身份特征采集入口处存在附着物导致的。终端利用第一图像的图像特征和距离参数进行附着物检测,可以从多个维度确定身份特征采集入口处是否存在附着物,提高附着物检测的准确性。The terminal performs attachment detection based on the image features and distance parameters of the first image to obtain a first detection result. The terminal can perform attachment detection based on the image features and distance parameters respectively, and then combine the detection results of the two to obtain a first detection result. The terminal can also directly combine the image features and distance parameters to uniformly perform attachment detection to obtain a first detection result. In specific implementation, the terminal can perform target detection based on the image features of the first image to detect whether there are attachments at the identity feature collection entrance. For example, when the first image has distortion problems such as blur, occlusion, and missing, it may be caused by the presence of attachments at the identity feature collection entrance. The terminal can perform anomaly analysis based on the distance parameter to determine whether the distance parameter is abnormal. If the distance parameter is abnormal, it may be caused by the presence of attachments at the identity feature collection entrance. The terminal uses the image features and distance parameters of the first image to perform attachment detection, which can determine whether there are attachments at the identity feature collection entrance from multiple dimensions, thereby improving the accuracy of attachment detection.
此外,终端也可以基于第一图像的图像特征单独进行附着物检测,得到第一检测结果,即终端可以只利用第一图像的图像特征进行附着物检测。进一步地,若基于第一图像的图像特征单独进行附着物检测,获得的第一检测结果表征身份特征采集入口处存在附着物,则终端触发针对身份特征采集入口的清洁处理。若第一检测结果表征身份特征采集入口处不存在附着物,则终端可以进一步获取身份特征采集入口与第一图像中所包括的采集对象之间的距离参数,基于该距离参数进行附着物检测,从而通过两级检测方式,确保附着物检测的准确性。终端还可以利用第一图像的图像特征和距离参数加权进行附着物检测,具体可以利用第一图像的图像特征和距离参数分别进行附着物检测,并按照预先设定的权重参数,将二者的附着物检测结果进行加权,从而得到融合后的第一检测结果。其中,权重参数可以基于附着物检测的历史记录进行设定,以区分出图像特征和距离参数在附着物检测中的重要程度。In addition, the terminal can also perform attachment detection based on the image features of the first image alone to obtain the first detection result, that is, the terminal can only use the image features of the first image to detect attachments. Further, if attachment detection is performed solely based on the image features of the first image, and the obtained first detection result indicates the presence of attachments at the identity feature collection entrance, the terminal triggers a cleaning process for the identity feature collection entrance. If the first detection result indicates that there is no attachment at the identity feature collection entrance, the terminal can further obtain the distance parameter between the identity feature collection entrance and the collection object included in the first image, and perform attachment detection based on the distance parameter, This ensures the accuracy of attachment detection through a two-level detection method. The terminal can also use the image features and distance parameters of the first image to weight the attached objects. Specifically, the terminal can use the image features and distance parameters of the first image to detect attached objects respectively, and combine the two according to the preset weight parameters. The attachment detection results are weighted to obtain the first fused detection result. Among them, the weight parameters can be set based on the historical records of attachment detection to distinguish the importance of image features and distance parameters in attachment detection.
本实施例中,终端通过从第一图像中提取得到的图像特征,以及身份特征采集入口与第一图像中所包括的采集对象之间的距离参数进行附着物检测,从而从多个维度的特征对身份特征采集入口处是否存在附着物进行检测,可以提高附着物检测的准确性。In this embodiment, the terminal performs attachment detection based on the image features extracted from the first image and the distance parameter between the identity feature collection entrance and the collection object included in the first image, thereby detecting attachments from features in multiple dimensions. Detecting whether there are attachments at the identity feature collection entrance can improve the accuracy of attachment detection.
在一个实施例中,第一图像包括针对相同采集对象采集得到的可见光图像和红外图像;对第一图像进行图像特征提取,得到第一图像的图像特征,包括:对可见光图像和红外图像分别进行图像特征提取,获得可见光图像的可见光图像特征以及红外图像的红外图像特征。In one embodiment, the first image includes a visible light image and an infrared image collected for the same collection object; performing image feature extraction on the first image to obtain the image features of the first image includes: performing separate operations on the visible light image and the infrared image. Image feature extraction, obtaining the visible light image features of the visible light image and the infrared image features of the infrared image.
其中,可见光图像是由可见光图像传感器采集的彩色图像,红外图像是由红外图像传感器采集的图像。可见光图像和红外图像是针对相同采集对象进行采集得到的。在身份识别设备中可以设置有可见光图像传感器和红外图像传感器,在触发采集图像时,可见光图像传感器和红外图像传感器可以同时进行图像采集,从而针对相同的采集对象分别采集到可见光图像和红外图像,可见光图像和红外图像均可以用于身份识别。可见光图像特征是从可见光图像中提取得到的图像特征,红外图像特征是从红外图像中提取得到的图像特征。Among them, the visible light image is a color image collected by a visible light image sensor, and the infrared image is an image collected by an infrared image sensor. Visible light images and infrared images are collected for the same collection object. A visible light image sensor and an infrared image sensor can be installed in the identity recognition device. When the image collection is triggered, the visible light image sensor and the infrared image sensor can collect images at the same time, so that the visible light image and the infrared image are respectively collected for the same collection object. Both visible light images and infrared images can be used for identification. Visible light image features are image features extracted from visible light images, and infrared image features are image features extracted from infrared images.
具体地,终端分别对可见光图像和红外图像进行图像特征提取,得到可见光图像的可见光图像特征以及红外图像的红外图像特征,可见光图像特征和红外图像特征可以作为第一图像的图像特征。在具体实现时,可见光图像和红外图像具有不同的图像特点,可以分别通过不同的特征提取算法,以分别提取到不同的图像特征,有利于确保图像特征的准确性。Specifically, the terminal performs image feature extraction on the visible light image and the infrared image respectively to obtain the visible light image features of the visible light image and the infrared image features of the infrared image. The visible light image features and the infrared image features can be used as image features of the first image. In specific implementation, visible light images and infrared images have different image characteristics, and different image features can be extracted through different feature extraction algorithms respectively, which is beneficial to ensuring the accuracy of image features.
进一步地,基于图像特征和距离参数进行附着物检测,得到第一检测结果,包括:将可见光图像特征、红外图像特征和距离参数的距离特征进行特征融合,得到检测特征;基于检测特征进行附着物检测,得到第一检测结果。Further, detecting attachments based on image features and distance parameters to obtain the first detection result includes: feature fusion of visible light image features, infrared image features and distance features of distance parameters to obtain detection features; detecting attachments based on the detection features Test and get the first test result.
其中,距离特征基于距离参数确定的特征,具体可以将距离参数进行特征映射得到,如终端可以将距离参数进行线性或非线性映射处理,得到距离参数的距离特征。检测特征由可见光图像特征、红外图像特征和距离特征通过特征融合得到,可以表征身份识别设备的身份特征采集入口处是否存在附着物。Among them, the distance feature is based on the feature determined by the distance parameter. Specifically, the distance parameter can be obtained by feature mapping. For example, the terminal can perform linear or nonlinear mapping processing on the distance parameter to obtain the distance feature of the distance parameter. The detection features are obtained through feature fusion of visible light image features, infrared image features and distance features, and can characterize whether there are attachments at the identity feature collection entrance of the identity recognition device.
具体地,终端获取距离参数的距离特征,距离特征可以由终端针对距离参数进行特征映射得到。终端将可见光图像特征、红外图像特征和距离特征进行特征融合,具体终端可以先将可见光图像特征、红外图像特征和距离特征进行连接,并将连接后的特征进行融合,得到检测特征。在具体应用中,可以针对可见光图像特征、红外图像特征和距离特征设置不同的权重,按照各自的权重将可见光图像特征、红外图像特征和距离特征进行加权融合,得到检测特征。可见光图像特征、红外图像特征和距离特征各自的权重可以预先设定,在不同的环境条件下可以设置不同的权重。例如,在光照较强的环境条件中,可见光图像的成像质量高,针对可见光图像的检测效果好,则可以提高可见光图像特征的权重;而在光照较弱的环境条件下,可以提高红外图像特征的权重,从而确保检测特征的表达能力。终端基于检测特征进行附着物检测,如可以通过预先选定的目标检测算法针对检测特征进行附着物检测,得到第一检测结果。在具体实现中,终端可以将检测特征输入至预先训练的附着物检测模型中,以通过附着物检测模型基于输入的检测特征附着物检测,并由附着物检测模型输出第一检测结果。第一检测结果可以描述身份识别设备的身份特征采集入口处是否存在附着物。Specifically, the terminal obtains the distance feature of the distance parameter, and the distance feature can be obtained by the terminal performing feature mapping on the distance parameter. The terminal fuses visible light image features, infrared image features and distance features. The specific terminal can first connect the visible light image features, infrared image features and distance features, and fuse the connected features to obtain detection features. In specific applications, different weights can be set for visible light image features, infrared image features and distance features, and the visible light image features, infrared image features and distance features can be weighted and fused according to their respective weights to obtain detection features. The respective weights of visible light image features, infrared image features and distance features can be set in advance, and different weights can be set under different environmental conditions. For example, in environmental conditions with strong lighting, if the imaging quality of visible light images is high and the detection effect of visible light images is good, the weight of visible light image features can be increased; while in environmental conditions with weak lighting, the infrared image features can be improved weight to ensure the expressiveness of the detection features. The terminal detects attachments based on the detection features. For example, the terminal can detect attachments based on the detection features through a pre-selected target detection algorithm to obtain the first detection result. In a specific implementation, the terminal may input detection features into a pre-trained attachment detection model to detect attachments based on the input detection features through the attachment detection model, and output the first detection result from the attachment detection model. The first detection result may describe whether there is any attachment at the identity feature collection entrance of the identity recognition device.
本实施例中,第一图像包括可见光图像和红外图像,终端针对可见光图像特征、红外图像特征和距离参数的距离特征融合得到的检测特征进行附着物检测,可以充分利用不同类型图像的特征,以及采集对象与身份特征采集入口的距离特征进行附着物检测,可以提高附着物检测的准确性。In this embodiment, the first image includes a visible light image and an infrared image. The terminal performs attachment detection based on the detection features obtained by fusing the visible light image features, the infrared image features and the distance feature of the distance parameter, which can make full use of the features of different types of images, and Detecting attachments based on the distance between the collection object and the identity feature collection entrance can improve the accuracy of attachment detection.
在一个实施例中,对第一图像进行附着物检测,获得第一检测结果基于附着物检测模型实现;对第二图像进行附着物检测,获得第二检测结果基于附着物检测模型实现;如图3所示,该附着物检测模型的训练步骤包括:In one embodiment, attachment detection is performed on the first image to obtain a first detection result based on an attachment detection model; attachment detection is performed on the second image to obtain a second detection result based on an attachment detection model; as shown in FIG3 , the training steps of the attachment detection model include:
步骤302,获取样本图像以及身份特征采集入口与样本图像中所包括的采集对象之间的距离样本参数;样本图像和距离样本参数携带附着物检测标签。Step 302: Obtain the sample image and the distance sample parameters between the identity feature collection entrance and the collection objects included in the sample image; the sample image and distance sample parameters carry attachment detection labels.
其中,针对第一图像以及第二图像的附着物检测,均通过预先训练的附着物检测模型实现,即可以将第一图像以及第二图像分别输入到附着物检测模型中,由附着物检测模型分别进行附着物检测,输出对应的检测结果。样本图像为通过身份特征采集入口历史采集的图像,距离样本参数为针对每张样本图像,身份特征采集入口与样本图像中所包括的采集对象之间的距离参数。样本图像和距离样本参数均携带附着物检测标签,附着物检测标签用于标注身份特征采集入口处是否存在附着物。Among them, the attachment detection for the first image and the second image is realized by a pre-trained attachment detection model, that is, the first image and the second image can be respectively input into the attachment detection model, and the attachment detection model performs attachment detection respectively and outputs the corresponding detection results. The sample image is an image historically collected through the identity feature collection entrance, and the distance sample parameter is the distance parameter between the identity feature collection entrance and the collection object included in the sample image for each sample image. The sample image and the distance sample parameter both carry attachment detection tags, and the attachment detection tags are used to mark whether there are attachments at the identity feature collection entrance.
具体地,附着物检测模型的训练可以由计算设备执行,具体可以为终端或服务器。计算机设备获取训练样本,包括样本图像以及身份特征采集入口与样本图像中所包括的采集对象之间的距离样本参数,且样本图像和距离样本参数携带附着物检测标签。Specifically, the training of the attachment detection model can be performed by a computing device, which can be a terminal or a server. The computer device acquires a training sample, including a sample image and a distance sample parameter between the identity feature collection entrance and the collection object included in the sample image, and the sample image and distance sample parameter carry an attachment detection label.
步骤304,通过待训练的附着物检测模型对样本图像进行图像特征提取,得到样本图像的样本图像特征。Step 304: extract image features from the sample image using the attachment detection model to be trained to obtain sample image features of the sample image.
其中,样本图像特征是从样本图像中提取得到的图像特征。具体地,计算机设备通过待训练的附着物检测模型对样本图像进行图像特征提取,具体可以将样本图像输入到附着物检测模型中,由附着物检测模型进行图像特征提取,得到样本图像的样本图像特征。Among them, the sample image features are image features extracted from the sample image. Specifically, the computer device performs image feature extraction on the sample image through the attachment detection model to be trained. Specifically, the sample image can be input into the attachment detection model, and the attachment detection model performs image feature extraction to obtain a sample image of the sample image. feature.
步骤306,通过待训练的附着物检测模型,基于样本图像特征和距离样本参数进行附着物检测,得到样本检测结果。Step 306 , using the attachment detection model to be trained, based on the sample image features and the distance sample parameters, attachment detection is performed to obtain a sample detection result.
具体地,计算机设备通过待训练的附着物检测模型进行附着物检测,由待训练的附着物检测模型基于获得的样本图像特征和距离样本参数进行附着物检测,获得由待训练的附着物检测模型输出的样本检测结果。Specifically, the computer device performs attachment detection through the attachment detection model to be trained, and the attachment detection model to be trained performs attachment detection based on the obtained sample image features and distance sample parameters to obtain the sample detection result output by the attachment detection model to be trained.
步骤308,基于样本检测结果与附着物检测标签,对待训练的附着物检测模型进行模型更新后继续训练,直至训练结束,获得训练完成的附着物检测模型。Step 308: Based on the sample detection results and attachment detection labels, the attachment detection model to be trained is updated and the training is continued until the training is completed, and the trained attachment detection model is obtained.
具体地,计算机设备基于样本检测结果与附着物检测标签,对待训练的附着物检测模型进行模型更新,计算机设备可以将样本检测结果与附着物检测标签进行比较,根据比较结果对待训练的附着物检测模型中的模型参数进行适应性调整,从而实现对待训练的附着物检测模型的训练更新。计算机设备基于更新后的附着物检测模型继续训练,具体可以通过下一个样本图像进行训练,直至训练结束,如训练次数达到训练次数阈值时,或附着物检测准确率达到准确率阈值时,计算机设备结束训练,获得训练完成的附着物检测模型。训练完成的附着物检测模型可以针对输入的图像进行附着物检测,输出针对输入图像的附着物检测结果。Specifically, the computer device updates the attachment detection model to be trained based on the sample detection results and the attachment detection labels. The computer device can compare the sample detection results with the attachment detection labels, and detect the attachments to be trained based on the comparison results. The model parameters in the model are adaptively adjusted to realize the training update of the attachment detection model to be trained. The computer equipment continues training based on the updated attachment detection model. Specifically, the training can be performed through the next sample image until the end of the training. For example, when the number of training times reaches the training times threshold, or when the accuracy of attachment detection reaches the accuracy threshold, the computer equipment End the training and obtain the completed attachment detection model. The trained attachment detection model can detect attachments on the input image and output attachment detection results on the input image.
本实施例中,计算机设备通过样本图像以及距离样本参数训练附着物检测模型,以通过训练完成的附着物检测模型进行附着物检测,可以确保附着物检测的准确性和检测处理效率。In this embodiment, the computer device trains the attachment detection model through sample images and distance sample parameters, and performs attachment detection through the trained attachment detection model, which can ensure the accuracy of attachment detection and the detection processing efficiency.
在一个实施例中,样本图像包括可见光样本图像和红外样本图像;通过待训练的附着物检测模型对样本图像进行图像特征提取,得到样本图像的样本图像特征,包括:通过待训练的附着物检测模型,对可见光样本图像和红外样本图像分别进行图像特征提取,获得可见光样本图像的可见光样本图像特征以及红外样本图像的红外样本图像特征。In one embodiment, the sample image includes a visible light sample image and an infrared sample image; image feature extraction is performed on the sample image through the attachment detection model to be trained, and the sample image features of the sample image are obtained, including: through the attachment detection model to be trained The model performs image feature extraction on the visible light sample image and the infrared sample image respectively, and obtains the visible light sample image features of the visible light sample image and the infrared sample image features of the infrared sample image.
其中,可见光样本图像是由可见光图像传感器采集的彩色样本图像,红外样本图像是由红外图像传感器采集的样本图像。可见光样本图像和红外样本图像是针对相同采集对象进行采集得到的。Among them, the visible light sample image is a color sample image collected by a visible light image sensor, and the infrared sample image is a sample image collected by an infrared image sensor. The visible light sample image and the infrared sample image are collected from the same collection object.
具体地,计算机设备通过待训练的附着物检测模型,分别对可见光样本图像和红外样本图像进行图像特征提取,得到可见光样本图像的可见光样本图像特征以及红外样本图像的红外样本图像特征,可见光样本图像特征和红外样本图像特征可以作为样本图像的样本图像特征。在具体实现时,可以将可见光样本图像和红外样本图像一并输入到待训练的附着物检测模型中,由待训练的附着物检测模型中不同的特征提取层进行特征提取。Specifically, the computer device extracts image features from the visible light sample image and the infrared sample image through the attachment detection model to be trained, and obtains visible light sample image features of the visible light sample image and infrared sample image features of the infrared sample image. The visible light sample image features and the infrared sample image features can be used as sample image features of the sample image. In specific implementation, the visible light sample image and the infrared sample image can be input into the attachment detection model to be trained, and feature extraction is performed by different feature extraction layers in the attachment detection model to be trained.
进一步地,通过待训练的附着物检测模型,基于样本图像特征和距离样本参数进行附着物检测,得到样本检测结果,包括:通过待训练的附着物检测模型对距离样本参数进行特征映射,得到距离样本特征;将可见光样本图像特征、红外样本图像特征和距离样本特征进行特征融合,得到检测样本特征;基于检测样本特征进行附着物检测,得到样本检测结果。Further, through the attachment detection model to be trained, attachments are detected based on the sample image features and distance sample parameters, and the sample detection results are obtained, including: performing feature mapping on the distance sample parameters through the attachment detection model to be trained, and obtaining the distance Sample features; feature fusion of visible light sample image features, infrared sample image features and distance sample features to obtain detection sample features; perform attachment detection based on detection sample features to obtain sample detection results.
其中,距离样本特征基于距离样本参数确定的特征,具体可以将距离样本参数进行特征映射得到,如可以通过待训练的附着物检测模型中的特征映射层,对距离样本参数进行特征映射,得到距离样本特征。检测样本特征通过将可见光样本图像特征、红外样本图像特征和距离样本特征融合得到,可以表征身份识别设备的身份特征采集入口处是否存在附着物。The distance sample feature is based on the feature determined by the distance sample parameter, and can be obtained by performing feature mapping on the distance sample parameter, such as performing feature mapping on the distance sample parameter through the feature mapping layer in the attachment detection model to be trained to obtain the distance sample feature. The detection sample feature is obtained by fusing the visible light sample image feature, the infrared sample image feature and the distance sample feature, and can characterize whether there is attachment at the identity feature collection entrance of the identity recognition device.
具体地,计算机设备通过待训练的附着物检测模型对距离样本参数进行特征映射,如可以将距离样本参数也输入到待训练的附着物检测模型中,以由待训练的附着物检测模型中的特征映射层对距离样本参数进行特征映射,获得距离样本特征。计算机设备通过待训练的附着物检测模型,将可见光样本图像特征、红外样本图像特征和距离样本特征进行特征融合,具体可以由待训练的附着物检测模型中的特征融合层,将可见光样本图像特征、红外样本图像特征和距离样本特征进行特征融合,得到检测样本特征。计算机设备通过待训练的附着物检测模型基于检测样本特征进行附着物检测,如可以通过待训练的附着物检测模型中的附着物检测层,对检测样本特征进行附着物检测,输出获得的样本检测结果。样本检测结果用于描述在通过身份识别设备的身份特征采集入口采集样本图像时,身份特征采集入口处是否存在附着物。Specifically, the computer device performs feature mapping on the distance sample parameters through the attachment detection model to be trained. For example, the distance sample parameters can also be input into the attachment detection model to be trained, so as to use the attachment detection model to be trained. The feature mapping layer performs feature mapping on the distance sample parameters to obtain distance sample features. The computer device fuses the visible light sample image features, infrared sample image features and distance sample features through the attachment detection model to be trained. Specifically, the feature fusion layer in the attachment detection model to be trained can fuse the visible light sample image features , infrared sample image features and distance sample features are feature fused to obtain detection sample features. The computer device performs attachment detection based on the characteristics of the detection sample through the attachment detection model to be trained. For example, the attachment detection layer in the attachment detection model to be trained can be used to detect attachments on the characteristics of the detection sample and output the obtained sample detection. result. The sample detection results are used to describe whether there are attachments at the identity feature collection entrance when collecting sample images through the identity feature collection entrance of the identity recognition device.
本实施例中,样本图像包括可见光样本图像和红外样本图像,通过可见光样本图像、红外样本图像,以及相应的距离样本参数训练附着物检测模型,可以充分利用不同类型图像的特征,以及采集对象与身份特征采集入口的距离特征进行附着物检测模型训练,能够提高通过附着物检测模型进行附着物检测的准确性。In this embodiment, the sample images include visible light sample images and infrared sample images. By training the attachment detection model with the visible light sample images, the infrared sample images, and the corresponding distance sample parameters, the features of different types of images and the distance features between the collection object and the identity feature collection entrance can be fully utilized to train the attachment detection model, which can improve the accuracy of attachment detection through the attachment detection model.
在一个实施例中,身份识别方法还包括:获取身份识别设备的历史身份识别数据;根据历史身份识别数据确定识别统计参数。In one embodiment, the identity recognition method further includes: acquiring historical identity recognition data of the identity recognition device; and determining recognition statistical parameters according to the historical identity recognition data.
其中,历史身份识别数据为身份识别设备历史进行身份识别的数据,历史身份识别数据中可以记录有身份识别设备每次进行身份识别的触发时间、身份识别结果等。识别统计参数通过针对历史身份识别数据进行统计得到,具体可以包括身份识别成功率、身份识别时长等。身份识别成功率可以根据身份识别设备每次进行身份识别时,身份识别成功的识别次数占比得到;身份识别时长可以根据身份识别设备每次进行身份识别时的耗时统计得到。识别统计参数能够反映基于身份识别设备进行身份识别的灵敏度,身份识别成功率越高,身份识别时长越短,则表明身份识别设备的灵敏度越高。Among them, the historical identity recognition data is the data of the identity recognition device's historical identity recognition, and the historical identity recognition data may record the trigger time and identity recognition results of each identity recognition performed by the identity recognition device. The recognition statistical parameters are obtained by statistically analyzing the historical identity recognition data, and may specifically include the identity recognition success rate, identity recognition duration, etc. The identity recognition success rate can be obtained based on the proportion of successful identity recognition times each time the identity recognition device performs identity recognition; the identity recognition duration can be obtained based on the time statistics of each time the identity recognition device performs identity recognition. The recognition statistical parameters can reflect the sensitivity of identity recognition based on the identity recognition device. The higher the identity recognition success rate and the shorter the identity recognition duration, the higher the sensitivity of the identity recognition device.
具体地,终端获取身份识别设备的历史身份识别数据,具体可以按照不同的维度获取历史身份识别数据。例如,可以按照时间维度,终端可以获取在一定时间范围内的历史身份识别数据;也可以按照次数维度,终端可以获取最近预设次数身份识别的历史身份识别数据。终端根据历史身份识别数据确定识别统计参数,具体可以由终端对历史身份识别数据进行分析,统计历史身份识别数据中身份识别成功的次数,获得身份识别成功率;通过统计每次身份识别的耗时,得到身份识别时长。识别统计参数用于表征身份识别设备的历史身份识别处理中的灵敏度,灵敏度越高,则身份识别设备能够高效、准确地进行身份识别处理。Specifically, the terminal obtains historical identity recognition data of the identity recognition device. Specifically, the terminal may obtain historical identity recognition data according to different dimensions. For example, according to the time dimension, the terminal can obtain historical identification data within a certain time range; or according to the number dimension, the terminal can obtain historical identification data for the most recent preset number of identifications. The terminal determines identification statistical parameters based on historical identification data. Specifically, the terminal can analyze the historical identification data, count the number of successful identifications in the historical identification data, and obtain the identification success rate; by counting the time spent on each identification , get the identification duration. The identification statistical parameters are used to characterize the sensitivity of the identification device in historical identification processing. The higher the sensitivity, the more efficiently and accurately the identification device can perform identification processing.
进一步地,当第一检测结果表征身份特征采集入口处存在附着物,触发针对身份特征采集入口的清洁处理,包括:当第一检测结果表征身份特征采集入口处存在附着物、且识别统计参数满足清洁触发条件,触发针对身份特征采集入口的清洁处理。Further, when the first detection result indicates that there is an attachment at the identity feature collection entrance, triggering a cleaning process for the identity feature collection entrance, including: when the first detection result indicates that there is an attachment at the identity feature collection entrance, and the identification statistical parameters satisfy Cleaning trigger condition triggers the cleaning process for the identity feature collection entrance.
其中,清洁触发条件用于判定在身份特征采集入口处是否真实存在附着物,以确定是否触发针对身份特征采集入口的清洁处理。清洁触发条件可以根据实际需要基于识别统计参数进行适应性设置。例如,清洁触发条件可以为身份识别成功率低于成功率阈值,或身份识别成功率的变化达到成功率变化阈值。清洁触发条件也可以为身份识别时长达到预设时长,或者身份识别时长的变化达到时长变化阈值。Among them, the cleaning trigger condition is used to determine whether there is an attachment at the identity feature collection entrance, so as to determine whether to trigger the cleaning process for the identity feature collection entrance. Cleaning trigger conditions can be adaptively set based on identification statistical parameters according to actual needs. For example, the cleaning trigger condition may be that the identification success rate is lower than the success rate threshold, or the change in the identification success rate reaches the success rate change threshold. The cleaning trigger condition can also be that the identification duration reaches the preset duration, or the change in the identification duration reaches the duration change threshold.
具体地,终端将识别统计参数与预先设置的清洁触发条件进行比较,判断识别统计参数是否满足清洁触发条件,若识别统计参数满足清洁触发条件,且第一检测结果表征身份特征采集入口处存在附着物,则认为身份特征采集入口处确实存在附着物,终端触发针对身份特征采集入口的清洁处理。例如,在第一检测结果表征身份特征采集入口处存在附着物,且根据历史身份识别数据统计的身份识别成功率低于成功率阈值,表明身份特征采集入口处存在的附着物已经影响到身份识别设备的身份识别成功率,即影响到身份识别设备的灵敏度,则终端触发针对身份特征采集入口的清洁处理。在具体应用中,终端可以周期性对身份特征采集入口处是否存在附着物进行检测,并周期性确定识别统计参数是否满足清洁触发条件,在检测到身份特征采集入口处存在附着物或识别统计参数满足清洁触发条件时,则可以触发确定另一清洁处理的触发条件是否满足。例如,在先检测到身份特征采集入口处存在附着物时,终端可以进一步确定识别统计参数是否满足清洁触发条件,若满足则触发针对身份特征采集入口的清洁处理;又如,在先检测到识别统计参数满足清洁触发条件时,终端可以进一步确定身份特征采集入口处是否存在附着物,若存在则触发针对身份特征采集入口的清洁处理。Specifically, the terminal compares the recognition statistical parameters with the preset cleaning trigger conditions, and determines whether the recognition statistical parameters meet the cleaning trigger conditions. If the recognition statistical parameters meet the cleaning trigger conditions, and the first detection result indicates that there is an attachment at the identity feature collection entrance. If there is something attached, it is considered that there is indeed an attachment at the identity feature collection entrance, and the terminal triggers the cleaning process for the identity feature collection entrance. For example, the first detection result indicates the presence of attachments at the identity feature collection entrance, and the identity recognition success rate based on historical identity recognition data is lower than the success rate threshold, indicating that the attachments present at the identity feature collection entrance have affected identity recognition. If the identity recognition success rate of the device affects the sensitivity of the identity recognition device, the terminal triggers the cleaning process of the identity feature collection entrance. In specific applications, the terminal can periodically detect whether there are attachments at the identity feature collection entrance, and periodically determine whether the identification statistical parameters meet the cleaning trigger conditions. When detecting the presence of attachments or identification statistical parameters at the identity feature collection entrance, When the cleaning trigger condition is met, it may be triggered to determine whether the trigger condition of another cleaning process is met. For example, when it is first detected that there is an attachment at the identity feature collection entrance, the terminal can further determine whether the identification statistical parameters meet the cleaning trigger conditions, and if so, trigger the cleaning process for the identity feature collection entrance; for another example, if the identification is first detected When the statistical parameters meet the cleaning trigger conditions, the terminal can further determine whether there are attachments at the identity feature collection entrance, and if so, trigger cleaning of the identity feature collection entrance.
本实施例中,在第一检测结果表征身份特征采集入口处存在附着物,且根据历史身份识别数据确定的识别统计参数满足清洁触发条件的情况下,终端确定在身份特征采集入口处存在附着物,需要针对进行处理,终端触发针对身份特征采集入口的清洁处理,可以结合历史身份识别数据对附着物进行准确判定。In this embodiment, when the first detection result indicates the presence of attachments at the identity feature collection entrance, and the identification statistical parameters determined based on historical identity recognition data meet the cleaning trigger conditions, the terminal determines that there are attachments at the identity feature collection entrance. , it needs to be processed, the terminal triggers the cleaning process for the identity feature collection entrance, and historical identity recognition data can be combined to accurately determine attachments.
在一个实施例中,当第一检测结果表征身份特征采集入口处存在附着物,触发针对身份特征采集入口的清洁处理,包括:当第一检测结果表征身份特征采集入口处存在附着物,通过身份识别设备的附着物清洁装置,针对身份特征采集入口进行清洁处理。In one embodiment, when the first detection result indicates the presence of attachments at the identity feature collection entrance, triggering a cleaning process for the identity feature collection entrance includes: when the first detection result indicates the presence of attachments at the identity feature collection entrance, through the identity The attachment cleaning device of the identification equipment cleans the identity feature collection entrance.
其中,附着物清洁装置为针对身份特征采集入口进行清洁处理的装置,具体可以包括烘干装置、擦洗装置等。在身份特征采集入口处存在附着物时,可以通过激活附着物清洁装置针对身份特征采集入口进行清洁处理,以将身份特征采集入口处的附着物进行清理。Among them, the attachment cleaning device is a device for cleaning the identity feature collection entrance, and may specifically include a drying device, a scrubbing device, etc. When there are attachments at the identity feature collection entrance, the attachment cleaning device can be activated to clean the identity feature collection entrance to clean the attachments at the identity feature collection entrance.
具体地,在第一检测结果表征身份特征采集入口处存在附着物时,终端可以激活身份识别设备的附着物清洁装置,通过附着物清洁装置针对身份特征采集入口进行清洁处理。例如,终端可以启动烘干装置或擦洗装置,针对身份特征采集入口进行烘干处理或擦洗处理,从而实现对身份特征采集入口的清洁处理,将在身份特征采集入口的附着物进行清除。在具体应用中,针对不同类型的附着物,可以通过不同类型的附着物清洁装置针对进行清洁处理。进一步地,对于附着物的不同参数,可以通过不同清洁模式针对进行清洁处理。其中,附着物的参数可以包括但不限于包括附着物的类型、分布范围;清洁模式可以包括但不限于包括清洁装置、清洁方式、清洁时间、清洁强度等。Specifically, when the first detection result indicates that there are attachments at the identity feature collection entrance, the terminal can activate the attachment cleaning device of the identity recognition device, and clean the identity feature collection entrance through the attachment cleaning device. For example, the terminal can start a drying device or a scrubbing device to dry or scrub the identity feature collection entrance, thereby cleaning the identity feature collection entrance and removing the attachments at the identity feature collection entrance. In specific applications, different types of attachments can be cleaned by different types of attachment cleaning devices. Furthermore, different parameters of the attachments can be cleaned by different cleaning modes. Among them, the parameters of the attachments may include but are not limited to the type and distribution range of the attachments; the cleaning mode may include but is not limited to the cleaning device, cleaning method, cleaning time, cleaning intensity, etc.
本实施例中,终端通过身份识别设备的附着物清洁装置,针对身份特征采集入口进行清洁处理,可以通过专门的附着物清洁装置实现对身份特征采集入口处附着物的有效清理,确保清洁处理的效果。In this embodiment, the terminal uses the attachment cleaning device of the identity recognition device to clean the identity feature collection entrance. The special attachment cleaning device can be used to effectively clean the attachments at the identity feature collection entrance to ensure the accuracy of the cleaning process. Effect.
在一个实施例中,身份特征采集入口处的附着物包括水渍;通过身份识别设备的附着物清洁装置,针对身份特征采集入口进行清洁处理,包括:控制身份识别设备的红外灯启动,以通过红外灯针对身份特征采集入口处的水渍进行清洁处理。In one embodiment, the attachments at the identity feature collection entrance include water stains; cleaning the identity feature collection entrance through the attachment cleaning device of the identity recognition equipment includes: controlling the activation of infrared lights of the identity recognition equipment to pass through The infrared light cleans water stains at the entrance to identity collection.
其中,水渍是指在身份特征采集入口处的水滴,水渍附着在身份特征采集入口,将会影响通过身份特征采集入口采集图像的成像效果,进而影响身份识别的准确性。红外灯包括发出红外光的灯具,通过红外灯还可以为红外图像传感器进行补光,提高红外图像的成像效果。红外灯可以设置在身份特征采集入口的相关位置,从而能够针对身份特征采集入口采集图像时进行补光,还可以针对附着在身份特征采集入口处的水渍进行清理。Among them, water stains refer to water droplets at the identity feature collection entrance. Water stains attached to the identity feature collection entrance will affect the imaging effect of images collected through the identity feature collection entrance, thereby affecting the accuracy of identity recognition. Infrared lights include lamps that emit infrared light. Infrared lights can also provide supplementary light for infrared image sensors to improve the imaging effect of infrared images. The infrared light can be set at the relevant position of the identity feature collection entrance, so that it can supplement the light when collecting images at the identity feature collection entrance, and can also clean up the water stains attached to the identity feature collection entrance.
具体地,附着在身份特征采集入口处的附着物包括水渍,针对水渍进行清理时,终端可以控制身份识别设备的红外灯启动,从而通过红外灯的照射针对身份特征采集入口处的水渍进行清洁处理,具体可以由红外灯对水渍进行烘干,加速水渍蒸发,从而实现对水渍的清洁处理。在具体实现时,在通过启动红外灯对身份特征采集入口处的水渍进行清洁处理时,终端可以保持检测水渍,在检测到水渍已清理,则可以关闭红外灯,以结束清洁处理。Specifically, the attachments attached to the identity feature collection entrance include water stains. When cleaning the water stains, the terminal can control the infrared light of the identity recognition device to start, so as to clean the water stains at the identity feature collection entrance through the irradiation of the infrared light. Specifically, the infrared light can dry the water stains to accelerate the evaporation of the water stains, thereby achieving the cleaning of the water stains. In specific implementation, when cleaning the water stains at the identity feature collection entrance by starting the infrared light, the terminal can keep detecting the water stains, and when it is detected that the water stains have been cleaned, the infrared light can be turned off to end the cleaning process.
本实施例中,终端控制身份识别设备的红外灯启动,以通过红外灯对身份特征采集入口处的水渍进行清洁处理,可以无接触地实现对水渍的安全清理,确保水渍的清洁效果。In this embodiment, the terminal controls the infrared light of the identity recognition device to start, so as to clean the water stains at the identity feature collection entrance through the infrared light, which can safely clean the water stains without contact and ensure the cleaning effect of the water stains. .
在一个实施例中,身份识别方法还包括:当第二检测结果表征未检测到附着物,确定身份特征采集入口处的附着物已清理。In one embodiment, the identity recognition method further includes: when the second detection result indicates that no attachment is detected, determining that the attachment at the identity feature collection entrance has been cleared.
其中,第二检测结果表征未检测到附着物,即根据第二图像进行附着物检测,表征在身份特征采集入口处不再存在附着物,则可以确定原附着物已经被清理。具体地,第二检测结果表征未检测到附着物时,终端确定身份特征采集入口处的附着物已清理,即在身份特征采集入口处不在附着有附着物。Among them, the second detection result indicates that no attachment is detected, that is, the attachment is detected based on the second image, indicating that there is no attachment at the identity feature collection entrance, and it can be determined that the original attachment has been cleaned. Specifically, when the second detection result indicates that no attachment is detected, the terminal determines that the attachment at the identity feature collection entrance has been cleared, that is, there is no attachment at the identity feature collection entrance.
本实施例中,在第二检测结果表征未检测到附着物时,终端确定附着物已清理,可以确保后续通过身份特征采集入口采集图像的成像效果。In this embodiment, when the second detection result indicates that no attachment is detected, the terminal determines that the attachment has been cleaned, which can ensure the imaging effect of subsequent images collected through the identity feature collection portal.
在一个实施例中,身份识别方法还包括:基于第二检测结果确定附着物分布区域,当附着物分布区域小于基于第一检测结果确定的附着物分布区域,确定身份特征采集入口处的附着物已清理。In one embodiment, the identity recognition method further includes: determining the attachment distribution area based on the second detection result, and determining the attachment at the identity feature collection entrance when the attachment distribution area is smaller than the attachment distribution area determined based on the first detection result. Cleaned.
其中,附着物分布区域是指在身份特征采集入口处,附着物所分布的区域范围。附着物分布区域越大,则表明在身份特征采集入口处附着的附着物的表面积越大,其对成像效果的影响一般也越大。具体地,终端基于第二检测结果确定附着物分布区域,第二检测结果表征仍然存在附着物时,终端可以基于第二检测结果确定附着物在身份特征采集入口处的附着物分布区域。终端将基于第二检测结果确定的附着物分布区域,与基于第一检测结果确定的附着物分布区域进行比较,比较区域范围的大小关系。若基于第二检测结果确定的附着物分布区域,小于基于第一检测结果确定的附着物分布区域,则认为虽然尚未将附着物完全清理,仍然对附着物进行一定程度的清理,减小其分布区域的范围,终端可以确定身份特征采集入口处的附着物已清理。Among them, the attachment distribution area refers to the area where attachments are distributed at the identity feature collection entrance. The larger the attachment distribution area, the larger the surface area of the attachments attached at the identity feature collection entrance, and generally the greater its impact on the imaging effect. Specifically, the terminal determines the attachment distribution area based on the second detection result. When the second detection result indicates that attachments still exist, the terminal can determine the attachment distribution area of the attachment at the identity feature collection entrance based on the second detection result. The terminal compares the attachment distribution area determined based on the second detection result with the attachment distribution area determined based on the first detection result, and compares the size relationship of the area ranges. If the attachment distribution area determined based on the second detection result is smaller than the attachment distribution area determined based on the first detection result, it is considered that although the attachment has not been completely cleaned, the attachment is still cleaned to a certain extent to reduce its distribution. According to the scope of the area, the terminal can determine that the attachments at the entrance to the identity collection have been cleared.
本实施例中,在基于第二检测结果确定的附着物分布区域,小于基于第一检测结果确定的附着物分布区域时,终端确定附着物已清理,可以提高后续通过身份特征采集入口采集图像的成像效果。In this embodiment, when the attachment distribution area determined based on the second detection result is smaller than the attachment distribution area determined based on the first detection result, the terminal determines that the attachment has been cleared, which can improve the efficiency of subsequent image collection through the identity feature collection portal. imaging effect.
在一个实施例中,响应于从身份特征采集入口处采集到身份特征图像,进行基于身份特征图像的身份识别,包括:响应于身份识别触发事件,获取从身份特征采集入口处采集到的身份特征图像;将身份特征图像与预存的注册身份信息进行身份信息匹配,以基于身份特征图像进行身份识别。In one embodiment, in response to collecting the identity feature image from the identity feature collection entrance, performing identity recognition based on the identity feature image includes: in response to the identity recognition triggering event, acquiring the identity feature collected from the identity feature collection entrance. Image; match the identity feature image with the pre-stored registered identity information to perform identity recognition based on the identity feature image.
其中,身份识别触发事件指触发进行身份识别的事件,具体可以包括但不限于包括触发身份识别的操作、指令等。例如,在门禁系统场景中,当用户需要通过门禁时,触发身份识别的事件;又如,用户在支付终端进行支付时,触发身份识别的事件。此外,身份识别还可以应用于防沉迷系统场景中,如在网络游戏防沉迷系统中,需要对未成年人在线游戏时间予以限制,则可以在触发防沉迷时,如游戏用户在线游戏的累计时长达到预设时长阈值时,需要对游戏用户进行身份识别,此时触发身份识别事件,以确定游戏用户是否为成年人,或者是否为游戏账户本人,从而实现对未成年人在线游戏时间的限制。Among them, the identity recognition triggering event refers to an event that triggers identity recognition, which may specifically include but is not limited to operations, instructions, etc. that trigger identity recognition. For example, in the access control system scenario, when the user needs to pass the access control, the identity recognition event is triggered; another example is, when the user pays at the payment terminal, the identity recognition event is triggered. In addition, identity recognition can also be used in anti-addiction system scenarios. For example, in an online game anti-addiction system, it is necessary to limit the online gaming time of minors. When the anti-addiction is triggered, such as the accumulated time of online gaming by game users. When the preset duration threshold is reached, the game user needs to be identified. At this time, an identification event is triggered to determine whether the game user is an adult or whether he or she is the person with the game account, thereby limiting the online gaming time of minors.
具体实现中,身份识别触发事件是触发通过生物特征进行身份识别的事件,生物特征为用户可测量的身体部位的生物特征,例如手形、指纹、脸形、虹膜、视网膜、手掌等各种类型的生物特征。通过用户可测量的身体部位的生物特征进行身份识别处理时,需要针对用户的身体部位进行生物数据采集,并针对采集的生物数据进行生物特征提取,从而基于提取获得的生物特征针对用户进行身份识别。例如,若身份识别触发事件为触发通过人脸进行身份识别时,终端需要针对用户的脸部进行人脸数据采集,并基于采集的人脸数据,如人脸图像对用户进行身份识别;又如,若身份识别触发事件为触发通过手掌进行身份识别,则终端需要针对用户的手掌进行手掌数据采集,并基于采集的手掌数据对用户进行身份识别。注册身份信息是用户预先进行身份注册时录入的身份信息,具体可以包括注册特征图像。In the specific implementation, the identity recognition triggering event is an event that triggers identity recognition through biometrics. Biometrics are the biometric features of the user's measurable body parts, such as hand shape, fingerprint, face shape, iris, retina, palm and other types of biometrics. feature. When performing identity recognition processing through the biometric characteristics of the user's measurable body parts, it is necessary to collect biological data from the user's body parts and extract the biometric characteristics from the collected biological data, so as to identify the user based on the extracted biometric characteristics. . For example, if the identity recognition triggering event triggers identity recognition through face, the terminal needs to collect face data from the user's face, and identify the user based on the collected face data, such as face images; another example is , if the identity recognition triggering event triggers identity recognition through the palm, the terminal needs to collect palm data from the user's palm, and identify the user based on the collected palm data. The registered identity information is the identity information entered by the user when registering his or her identity in advance, which may specifically include a registration characteristic image.
具体地,在检测到身份识别触发事件,如检测到用户进行身份识别时,终端响应于该身份识别触发事件,获取从身份特征采集入口处采集到的身份特征图像。终端查询预存的注册身份信息,将身份特征图像与注册身份信息进行身份信息匹配,具体可以将身份特征图像与注册特征图像进行图像特征匹配,从而基于身份特征图像进行身份识别,具体可以根据身份特征图像与注册特征图像之间的图像特征匹配结果,确定基于身份特征图像的身份识别结果。Specifically, when an identity recognition triggering event is detected, such as when a user is detected to perform identity recognition, the terminal responds to the identity recognition triggering event and obtains the identity feature image collected from the identity feature collection entrance. The terminal queries the pre-stored registered identity information and matches the identity feature image with the registered identity information. Specifically, the identity feature image can be matched with the registered feature image to perform identity recognition based on the identity feature image. Specifically, the identity feature image can be matched based on the identity feature image. The image feature matching result between the image and the registered feature image determines the identity recognition result based on the identity feature image.
本实施例中,在身份特征采集入口处的附着物已清理后,终端响应于身份识别触发事件,基于通过身份特征采集入口采集到的身份特征图像,与注册身份信息进行身份信息匹配,从而实现基于身份特征图像的身份识别,可以减小身份特征采集入口处存在的附着物对身份特征图像成像的影响,确保身份特征图像的成像质量,从而提高了基于身份特征图像进行身份识别的准确性。In this embodiment, after the attachments at the identity feature collection entrance have been cleaned, the terminal responds to the identity recognition trigger event and matches the identity information with the registered identity information based on the identity feature image collected through the identity feature collection entrance, thereby achieving Identity recognition based on identity feature images can reduce the impact of attachments present at the identity feature collection entrance on the identity feature image imaging, ensure the imaging quality of the identity feature image, and thereby improve the accuracy of identity recognition based on identity feature images.
在一个实施例中,身份特征图像是针对手掌部位采集获得的图像;注册身份信息包括对注册用户的手掌进行身份注册获得的掌纹注册特征和掌静脉注册特征;将身份特征图像与预存的注册身份信息进行身份信息匹配,以基于身份特征图像进行身份识别,包括:从身份特征图像中提取得到掌纹特征和掌静脉特征;将掌纹特征与掌纹注册特征进行掌纹特征匹配,得到掌纹特征匹配结果;将掌静脉特征与掌静脉注册特征进行掌静脉特征匹配,得到掌静脉特征匹配结果;根据掌纹特征匹配结果和掌静脉特征匹配结果,得到身份识别结果。In one embodiment, the identity feature image is an image collected for the palm part; the registered identity information includes palm print registration features and palm vein registration features obtained by identity registration of the registered user's palm; the identity feature image is compared with the pre-stored registration Identity information is matched with identity information to perform identity recognition based on identity feature images, including: extracting palmprint features and palm vein features from identity feature images; matching palmprint features with palmprint registration features to obtain palmprint features. The palm vein feature matching result is obtained; the palm vein feature is matched with the palm vein registration feature to obtain the palm vein feature matching result; the identity recognition result is obtained based on the palm print feature matching result and the palm vein feature matching result.
其中,身份特征图像是针对手掌部位采集获得的图像,即通过用户的手掌进行身份识别。掌纹注册特征是注册用户通过手掌进行身份注册时,所录入的掌纹特征;掌静脉注册特征是注册用户通过手掌进行身份注册时,所录入的掌静脉特征。Among them, the identity feature image is an image collected from the palm part, that is, the identity is recognized through the user's palm. Palmprint registration features are the palmprint features entered when a registered user registers their identity through the palm of their hand; palm vein registration features are the palm vein features entered when a registered user registers their identity through the palm of their hand.
掌纹是指手指末端到手腕部分的手掌图像,其包括可以用来进行身份识别的主线、皱纹、细小的纹理、脊末梢、分叉点等各种特征。掌纹特征指手掌的纹理信息反映的特征,可以通过对手掌进行图像拍摄,从手掌图像中提取得到。不同用户一般对应于不同的掌纹特征,即不同用户的手掌具有不同的纹理特征,基于掌纹特征可以实现对不同用户的身份识别处理。掌静脉是指手掌的静脉信息图像,用于反映人体手掌中静脉影像信息,有活体辨识能力,可以通过红外相机拍摄得到。掌静脉特征为基于掌静脉分析得到的手掌部位的静脉特征,不同用户一般对应于不同的掌静脉特征,即不同用户的手掌具有不同的静脉特征,基于掌静脉特征也可以实现对不同用户的身份识别处理。掌纹特征匹配结果为基于掌纹特征进行特征匹配得到的匹配结果,反映了通过掌纹进行身份识别的识别结果。掌静脉特征匹配结果为基于掌静脉特征进行特征匹配得到的匹配结果,反映了通过掌静脉进行身份识别的识别结果。Palmprint refers to the palm image from the end of the fingers to the wrist, which includes various features such as main lines, wrinkles, small textures, ridge ends, bifurcation points, etc. that can be used for identification. Palmprint features refer to the features reflected by the texture information of the palm, which can be extracted from the palm image by taking an image of the palm. Different users generally correspond to different palmprint features, that is, the palms of different users have different texture features. Based on the palmprint features, the identity recognition processing of different users can be realized. Palm vein refers to the vein information image of the palm, which is used to reflect the vein image information in the human palm. It has the ability to identify living objects and can be captured by an infrared camera. Palm vein features are the vein features of the palm obtained based on palm vein analysis. Different users generally correspond to different palm vein features, that is, the palms of different users have different vein features. Based on the palm vein features, the identity of different users can also be realized. identification processing. The palmprint feature matching result is the matching result obtained by feature matching based on palmprint features, which reflects the recognition result of identity recognition through palmprint. The palm vein feature matching result is the matching result obtained by feature matching based on the palm vein feature, which reflects the recognition result of identity recognition through the palm vein.
具体地,终端可以对身份特征图像进行特征提取,获得掌纹特征和掌静脉特征。在具体应用中,身份特征图像是针对手掌部位采集获得的图像,可以包括可见光图像和红外图像。终端对可见光图像进行特征提取,得到掌纹特征,终端对红外图像进行特征提取,得到掌静脉特征。终端将掌纹特征与掌纹注册特征进行掌纹特征匹配,得到掌纹特征匹配结果。在具体实现时,掌纹特征匹配可以为掌纹特征相似度计算,从而得到包括掌纹相似度的掌纹特征匹配结果。掌纹相似度超过掌纹相似度阈值,则可以认为掌纹匹配一致,否则认为掌纹匹配不一致。终端将掌静脉特征与掌静脉注册特征进行掌静脉特征匹配,得到掌静脉特征匹配结果。在具体实现时,掌静脉特征匹配可以为掌静脉特征相似度计算,从而得到包括掌静脉相似度的掌静脉特征匹配结果。掌静脉相似度超过掌静脉相似度阈值,则可以认为掌静脉匹配一致,否则认为掌静脉匹配不一致。终端基于掌纹特征匹配结果和掌静脉特征匹配结果,获得身份识别结果。例如,终端可以将掌纹特征匹配结果和掌静脉特征匹配结果进行加权融合,从而根据加权融合结果得到身份识别结果。Specifically, the terminal can perform feature extraction on the identity feature image to obtain palmprint features and palm vein features. In specific applications, the identity feature image is an image collected from the palm, which can include visible light images and infrared images. The terminal extracts features from visible light images to obtain palmprint features, and the terminal extracts features from infrared images to obtain palm vein features. The terminal performs palmprint feature matching with palmprint registration features to obtain a palmprint feature matching result. In specific implementation, palmprint feature matching can calculate palmprint feature similarity, thereby obtaining a palmprint feature matching result including palmprint similarity. If the palmprint similarity exceeds the palmprint similarity threshold, the palmprint matching can be considered consistent, otherwise the palmprint matching is considered inconsistent. The terminal matches palm vein features with palm vein registration features to obtain palm vein feature matching results. In specific implementation, palm vein feature matching can calculate palm vein feature similarity, thereby obtaining a palm vein feature matching result including palm vein similarity. If the palm vein similarity exceeds the palm vein similarity threshold, the palm vein matching can be considered consistent; otherwise, the palm vein matching is considered inconsistent. The terminal obtains the identity recognition result based on the palmprint feature matching result and the palm vein feature matching result. For example, the terminal can perform weighted fusion on the palmprint feature matching result and the palm vein feature matching result, so as to obtain the identity recognition result based on the weighted fusion result.
本实施例中,通过手掌处的掌纹特征和掌静脉特征进行特征匹配,以实现身份识别,可以基于手掌图像进行准确地身份识别。In this embodiment, feature matching is performed on the palm print features and palm vein features to achieve identity recognition, and accurate identity recognition can be performed based on the palm image.
在一个实施例中,身份识别方法还包括:在触发清洁处理的过程中,通过可感知方式,提供用于指示用户等待通过身份识别设备进行身份识别的等待提示信息。In one embodiment, the identity recognition method further includes: during the process of triggering the cleaning process, in a perceptible manner, providing waiting prompt information for instructing the user to wait for identity recognition through the identity recognition device.
其中,可感知方式指能够令用户直观感知到的方式,如通过音箱播放声音、通过显示屏显示内容、通过灯光进行指示等。等待提示信息用于指示用户进行等待,待针对身份特征采集入口的清洁处理结束后,可以支持通过身份识别设备进行身份识别。等待提示信息的内容形式可以根据实际需求进行灵活配置,如可以为文字、图片、图形、视频、音频中的一种,或者为多种形式内容的结合。具体地,在触发清洁处理的过程中,终端可以通过用户可感知方式,提供用于指示用户等待通过身份识别设备进行身份识别的等待提示信息。例如,可以在身份识别设备的显示屏中显示清洁等待提示信息,或通过音箱语音播报等待提示信息。Among them, perceptible methods refer to methods that can be intuitively perceived by users, such as playing sounds through speakers, displaying content through display screens, and providing instructions through lights. The waiting prompt information is used to instruct the user to wait. After the cleaning process for the identity feature collection entrance is completed, identity recognition through the identity recognition device can be supported. The content form of the waiting prompt information can be flexibly configured according to actual needs. For example, it can be one of text, pictures, graphics, video, and audio, or a combination of multiple forms of content. Specifically, during the process of triggering the cleaning process, the terminal may provide waiting prompt information instructing the user to wait for identity recognition through the identity recognition device in a manner perceptible to the user. For example, the cleaning waiting prompt information can be displayed on the display screen of the identification device, or the waiting prompt information can be broadcast through the speaker voice.
本实施例中,在触发清洁处理的过程中,终端通过可感知方式提供等待提示信息,以指示用户等待通过身份识别设备进行身份识别,可以及时提醒用户等待清洁处理完成,避免用户在触发清洁处理的过程中进行身份识别导致身份识别失败,可以确保用户体验。In this embodiment, during the process of triggering the cleaning process, the terminal provides waiting prompt information in a perceptible manner to instruct the user to wait for identity recognition through the identity recognition device. The user can be reminded in time to wait for the cleaning process to be completed to avoid the user triggering the cleaning process. The user experience can be ensured if identification failure occurs during the identification process.
在一个实施例中,获取针对身份识别设备的身份特征采集入口采集的第一图像,包括:当满足检测触发条件,获取针对身份识别设备的身份特征采集入口采集的第一图像;满足检测触发条件,包括达到附着物检测时间、检测到身份识别触发事件或身份识别设备的识别统计参数满足统计参数触发条件中的至少一项。In one embodiment, obtaining the first image collected by the identity feature collection portal of the identity recognition device includes: when the detection trigger condition is met, obtaining the first image collected by the identity feature collection portal of the identity recognition device; and meeting the detection trigger condition. , including at least one of reaching the attachment detection time, detecting an identity recognition trigger event, or the recognition statistical parameters of the identity recognition device meeting the statistical parameter trigger conditions.
其中,检测触发条件用于判定是否需要触发针对身份特征采集入口进行附着物检测,即是否需要检测身份特征采集入口处是否存在附着物。附着物检测时间是根据实际需要预先设置的进行附着物检测的设定时间,在达到附着物检测时间时,认为满足检测触发条件。身份识别触发事件指触发进行身份识别的事件,在检测到身份识别触发事件时,可以认为满足检测触发条件。识别统计参数通过针对历史身份识别数据进行统计得到,具体可以包括身份识别成功率、身份识别时长等。统计参数触发条件用于根据识别统计参数判定是否需要针对身份特征采集入口进行附着物检测的处理。例如,满足统计参数触发条件可以为身份识别成功率低于成功率阈值,或身份识别成功率的变化达到成功率变化阈值。满足统计参数触发条件也可以为身份识别时长达到预设时长,或者身份识别时长的变化达到时长变化阈值。Among them, the detection trigger condition is used to determine whether it is necessary to trigger the detection of attachments at the identity feature collection entrance, that is, whether it is necessary to detect whether there are attachments at the identity feature collection entrance. The attachment detection time is a set time for attachment detection that is preset according to actual needs. When the attachment detection time is reached, the detection triggering conditions are considered to be met. An identity recognition trigger event refers to an event that triggers identity recognition. When an identity recognition trigger event is detected, it can be considered that the detection trigger condition is met. The identification statistical parameters are obtained by collecting statistics on historical identification data, and may specifically include identification success rate, identification duration, etc. The statistical parameter trigger condition is used to determine whether attachment detection processing is required for the identity feature collection entrance based on the recognition statistical parameters. For example, satisfying the statistical parameter trigger condition can be that the identification success rate is lower than the success rate threshold, or the change in the identification success rate reaches the success rate change threshold. The statistical parameter trigger condition may also be met when the identification duration reaches a preset duration, or when the change in the identification duration reaches a duration change threshold.
具体地,终端获取预先设定的检测触发条件,判定是否满足检测触发条件,在满足检测触发条件的情况下,表明需要对身份特征采集入口进行附着物检测的处理,终端获取针对身份识别设备的身份特征采集入口采集的第一图像,以基于第一图像对身份特征采集入口进行附着物检测。在具体应用中,在达到附着物检测时间、检测到身份识别触发事件或身份识别设备的识别统计参数满足统计参数触发条件时,均可以认为满足检测触发条件,触发针对身份特征采集入口的附着物检测。在基于第一图像的第一检测结果表征身份特征采集入口处不存在附着物时,可以返回继续针对检测触发条件进行判定,在下一次满足检测触发条件时,再次触发针对身份特征采集入口的附着物检测处理。Specifically, the terminal obtains a pre-set detection trigger condition and determines whether the detection trigger condition is met. When the detection trigger condition is met, it indicates that the identity feature collection entrance needs to be processed for attachment detection. The terminal obtains the first image collected for the identity feature collection entrance of the identity recognition device to perform attachment detection on the identity feature collection entrance based on the first image. In a specific application, when the attachment detection time is reached, the identity recognition trigger event is detected, or the identification statistical parameters of the identity recognition device meet the statistical parameter trigger condition, it can be considered that the detection trigger condition is met, and the attachment detection for the identity feature collection entrance is triggered. When the first detection result based on the first image indicates that there is no attachment at the identity feature collection entrance, it can return to continue to determine the detection trigger condition, and when the detection trigger condition is met next time, the attachment detection processing for the identity feature collection entrance is triggered again.
本实施例中,在达到附着物检测时间、检测到身份识别触发事件或身份识别设备的识别统计参数满足统计参数触发条件时,触发针对身份特征采集入口的附着物检测处理,可以及时对身份特征采集入口进行附着物检测,能够及时检测出身份特征采集入口处的附着物并进行清洁处理,从而可以减小身份特征采集入口处存在的附着物对身份特征图像成像的影响,确保身份特征图像的成像质量,从而提高了基于身份特征图像进行身份识别的准确性。In this embodiment, when the attachment detection time is reached, the identity recognition triggering event is detected, or the identification statistical parameters of the identity recognition device meet the statistical parameter trigger conditions, the attachment detection processing for the identity feature collection entrance is triggered, and the identity features can be detected in a timely manner. Detecting attachments at the collection entrance can promptly detect attachments at the identity feature collection entrance and clean them, thereby reducing the impact of attachments at the identity feature collection entrance on the identity feature image imaging and ensuring the accuracy of the identity feature image. Imaging quality, thereby improving the accuracy of identity recognition based on identity feature images.
在一个实施例中,身份识别方法还包括:响应于资源转移触发事件,确定资源转移参数;根据身份特征图像的身份识别结果,确定目标资源账号;基于资源转移参数对目标资源账号进行资源转移。In one embodiment, the identity recognition method further includes: determining resource transfer parameters in response to a resource transfer triggering event; determining a target resource account based on the identity recognition result of the identity feature image; and performing resource transfer on the target resource account based on the resource transfer parameters.
其中,资源是可被交换成标的物的资产,资源可以是资金、电子代金券、购物券和虚拟红包等,虚拟红包是具有一定的资金数值属性的一个虚拟对象。比如,资金可在进行交易后交换成等值的商品。资源转移指资源的交换,包括资源转入方和资源转出方,资源从资源转出方转移至资源转入方,例如在购物的支付过程中,资金作为资源进行转移。资源转移触发事件指触发资源转移的事件,具体可以包括但不限于包括触发资源转移的操作、指令等。资源转移触发事件可以由需要进行资源转移处理的用户触发,如可以由资源转移处理中的资源转入方触发,也可以由资源转移处理中的资源转出方触发,资源转移即为将资源转出方所持有的资源转移一定量至资源转入方。资源转移触发事件可以实际需要进行灵活设置。资源转移参数为资源转移触发事件对应待进行资源转移处理的相关参数,具体可以包括但不限于包括资源转入方、资源转出方、资源转移量、优惠量、订单号、资源转移时间、资源转移终端等各种参数信息。目标资源账号为触发资源转移触发事件的用户所关联的资源账户,通过对目标资源账号进行资源转移操作,可以实现针对用户的资源转移处理。Among them, resources are assets that can be exchanged for subject matter. Resources can be funds, electronic vouchers, shopping coupons, virtual red envelopes, etc. The virtual red envelope is a virtual object with certain financial numerical attributes. For example, funds can be exchanged for goods of equal value after transactions are made. Resource transfer refers to the exchange of resources, including resource transfer parties and resource transfer parties. Resources are transferred from resource transfer parties to resource transfer parties. For example, in the payment process of shopping, funds are transferred as resources. Resource transfer triggering events refer to events that trigger resource transfer, which may include but are not limited to operations, instructions, etc. that trigger resource transfer. The resource transfer trigger event can be triggered by the user who needs to perform resource transfer processing. For example, it can be triggered by the resource transfer party in the resource transfer process, or it can be triggered by the resource transfer party in the resource transfer process. Resource transfer is the transfer of resources. A certain amount of resources held by the outgoing party is transferred to the resource transferring party. The resource transfer triggering event can be flexibly set according to actual needs. The resource transfer parameters are the relevant parameters corresponding to the resource transfer triggering event to be processed, which may include but are not limited to resource transfer party, resource transfer party, resource transfer amount, discount amount, order number, resource transfer time, resource Transfer various parameter information such as terminal. The target resource account is the resource account associated with the user who triggered the resource transfer triggering event. By performing the resource transfer operation on the target resource account, resource transfer processing for the user can be implemented.
具体地,终端可以响应于资源转移触发事件,确定资源转移参数,如确定资源转移量、资源转入方等。若根据身份识别结果可以确定用户对应的用户身份时,终端可以根据身份识别结果确定用户关联的目标资源账号,具体可以由终端基于身份识别结果确定用户对应的用户身份,并根据用户对应的用户身份,确定用户关联的目标资源账号,目标资源账号中包括用户的资源。终端基于确定的资源转移参数,对目标资源账号进行资源转移,如按照资源转移参数中的资源转移量,将目标资源账号中的资源转入到资源转移参数中的资源转入方中,从而实现针对用户的资源转移处理。Specifically, the terminal can determine the resource transfer parameters in response to the resource transfer triggering event, such as determining the resource transfer amount, resource transfer party, etc. If the user identity corresponding to the user can be determined based on the identity recognition result, the terminal can determine the target resource account associated with the user based on the identity recognition result. Specifically, the terminal can determine the user identity corresponding to the user based on the identity recognition result, and determine the user identity corresponding to the user based on the identity recognition result. , determine the target resource account associated with the user, and the target resource account includes the user's resources. The terminal transfers resources to the target resource account based on the determined resource transfer parameters. For example, according to the resource transfer amount in the resource transfer parameters, the resources in the target resource account are transferred to the resource transfer party in the resource transfer parameters, thereby achieving Resource transfer processing for users.
本实施例中,基于身份识别结果确定目标资源账号,并在触发资源转移触发事件时,通过确定的目标资源账号,根据相应的资源转移参数进行资源转移处理,基于身份识别结果进行资源转移处理,提高了资源转移的处理效率。In this embodiment, the target resource account is determined based on the identity recognition result, and when the resource transfer triggering event is triggered, the resource transfer process is performed based on the determined target resource account according to the corresponding resource transfer parameters, and the resource transfer process is performed based on the identity recognition result. Improved the processing efficiency of resource transfer.
在一个实施例中,如图4所示,提供了一种身份识别设备400,包括:图像传感器402、身份特征采集入口404和处理器406;其中:In one embodiment, as shown in FIG. 4 , an identity recognition device 400 is provided, including: an image sensor 402 , an identity feature collection entry 404 , and a processor 406 ; wherein:
图像传感器402通过身份特征采集入口404进行图像采集;The image sensor 402 collects images through the identity feature collection entrance 404;
处理器406,用于获取图像传感器通过身份特征采集入口采集的第一图像,对第一图像进行附着物检测,获得第一检测结果;当第一检测结果表征身份特征采集入口处存在附着物,触发针对身份特征采集入口的清洁处理;在触发清洁处理之后,获取针对身份特征采集入口采集的第二图像,对第二图像进行附着物检测,获得第二检测结果;当第二检测结果表征身份特征采集入口处的附着物已清理,响应于从身份特征采集入口处采集到身份特征图像,进行基于身份特征图像的身份识别。The processor 406 is used to acquire the first image collected by the image sensor through the identity feature collection entrance, perform attachment detection on the first image, and obtain the first detection result; when the first detection result indicates the presence of attachments at the identity feature collection entrance, Trigger the cleaning process for the identity feature collection entrance; after triggering the cleaning process, obtain the second image collected for the identity feature collection entrance, perform attachment detection on the second image, and obtain the second detection result; when the second detection result represents the identity The attachments at the feature collection entrance have been cleaned, and in response to the identity feature image collected from the identity feature collection entrance, identity recognition based on the identity feature image is performed.
其中,图像传感器402用于图像采集,以通过采集的图像进行身份识别。针对采集的不同身份特征图像,图像传感器402可以对应于不同类型的传感器。例如,图像传感器402可以包括可见光图像传感器、红外图像传感器等。身份特征采集入口404为身份识别设备400采集身份特征以进行身份识别的入口,即图像传感器402通过身份特征采集入口404进行图像采集。处理器406用于对图像传感器402采集的图像进行附着物检测,在身份特征采集入口处的附着物已清理时,处理器406可以基于从身份特征采集入口处采集到的身份特征图像进行身份识别。Among them, the image sensor 402 is used for image collection to perform identity recognition through the collected images. For different identity characteristic images collected, the image sensor 402 may correspond to different types of sensors. For example, image sensor 402 may include a visible light image sensor, an infrared image sensor, or the like. The identity feature collection portal 404 is a portal for the identity recognition device 400 to collect identity features for identity recognition, that is, the image sensor 402 collects images through the identity feature collection portal 404 . The processor 406 is used to detect attachments on the images collected by the image sensor 402. When the attachments at the identity feature collection entrance have been cleared, the processor 406 can perform identity recognition based on the identity feature images collected from the identity feature collection entrance. .
上述身份识别设备中,由身份识别设备中的图像传感器通过身份特征采集入口进行图像采集,由身份识别设备中的处理器获取身份特征采集入口通过身份特征采集入口采集的第一图像,基于第一图像进行附着物检测,在确定身份特征采集入口处存在附着物的情况下,针对身份特征采集入口进行清洁处理,在身份特征采集入口处的附着物已清理的情况下,基于从身份特征采集入口处采集到的身份特征图像进行身份识别。在将身份特征采集入口处存在的附着物清理后,基于从身份特征采集入口处采集到的身份特征图像进行身份识别,可以减小身份特征采集入口处存在的附着物对身份特征图像成像的影响,确保身份特征图像的成像质量,从而提高了基于身份特征图像进行身份识别的准确性。In the above-mentioned identity recognition device, an image sensor in the identity recognition device performs image acquisition through an identity feature acquisition entrance, a processor in the identity recognition device obtains a first image acquired by the identity feature acquisition entrance through the identity feature acquisition entrance, and attachment detection is performed based on the first image. When it is determined that attachments exist at the identity feature acquisition entrance, a cleaning process is performed on the identity feature acquisition entrance, and when the attachments at the identity feature acquisition entrance have been cleaned, identity recognition is performed based on the identity feature image collected from the identity feature acquisition entrance. After the attachments at the identity feature acquisition entrance are cleaned, identity recognition is performed based on the identity feature image collected from the identity feature acquisition entrance, which can reduce the influence of the attachments at the identity feature acquisition entrance on the imaging of the identity feature image, ensure the imaging quality of the identity feature image, and thus improve the accuracy of identity recognition based on the identity feature image.
在一个实施例中,图像传感器402包括可见光图像传感器和红外图像传感器;身份特征采集入口404处的附着物包括水渍;身份识别设备400还包括红外灯;处理器406,还用于控制红外灯启动,以通过红外灯针对身份特征采集入口404处的水渍进行清洁处理。In one embodiment, the image sensor 402 includes a visible light image sensor and an infrared image sensor; the attachments at the identity feature collection entrance 404 include water stains; the identity recognition device 400 also includes an infrared lamp; the processor 406 is also used to control the start-up of the infrared lamp to clean the water stains at the identity feature collection entrance 404 through the infrared lamp.
其中,可见光图像传感器用于采集可见光图像,红外图像传感器用于采集红外图像,可见光图像和红外图像可以作为身份特征图像进行身份识别。水渍是指在身份特征采集入口处的水滴,水渍附着在身份特征采集入口,将会影响通过身份特征采集入口采集图像的成像效果,进而影响身份识别的准确性。红外灯包括发出红外光的灯具,通过红外灯还可以为红外图像传感器进行补光,提高红外图像的成像效果。红外灯可以设置在身份特征采集入口的相关位置,从而能够针对身份特征采集入口采集图像时进行补光,还可以针对附着在身份特征采集入口处的附着物进行清洁处理,如针对附着在身份特征采集入口处的水渍进行清理。Among them, the visible light image sensor is used to collect visible light images, and the infrared image sensor is used to collect infrared images. The visible light image and the infrared image can be used as identity feature images for identity recognition. Water stains refer to water droplets at the identity feature collection entrance. Water stains attached to the identity feature collection entrance will affect the imaging effect of the image collected through the identity feature collection entrance, and further affect the accuracy of identity recognition. The infrared lamp includes a lamp that emits infrared light. The infrared lamp can also be used to fill in the light for the infrared image sensor to improve the imaging effect of the infrared image. The infrared lamp can be set at the relevant position of the identity feature collection entrance, so that it can fill in the light when collecting images at the identity feature collection entrance, and can also clean the attachments attached to the identity feature collection entrance, such as cleaning the water stains attached to the identity feature collection entrance.
具体地,身份识别设备400还包括红外灯,附着在身份特征采集入口404处的附着物可以包括水渍,针对水渍进行清理时,处理器406可以控制身份识别设备400的红外灯启动,从而通过红外灯的照射针对身份特征采集入口404处的附着物进行清洁处理,具体可以由红外灯对水渍进行烘干,加速水渍蒸发,从而实现对水渍的清洁处理。在具体实现时,在通过启动红外灯对身份特征采集入口404处的水渍进行清洁处理时,处理器406可以保持检测水渍,在检测到水渍已清理,则可以关闭红外灯,以结束清洁处理。Specifically, the identity recognition device 400 also includes an infrared light. The attachments attached to the identity feature collection entrance 404 may include water stains. When cleaning the water stains, the processor 406 may control the infrared light of the identity recognition device 400 to start, thereby The attachments at the identity feature collection entrance 404 are cleaned through the irradiation of infrared lamps. Specifically, the infrared lamp can be used to dry the water stains and accelerate the evaporation of the water stains, thereby cleaning the water stains. In specific implementation, when cleaning the water stains at the identity feature collection entrance 404 by activating the infrared light, the processor 406 can keep detecting the water stains. After detecting that the water stains have been cleaned, the processor 406 can turn off the infrared lights to end the process. Cleaning process.
本实施例中,由身份识别设备中的处理器控制身份识别设备的红外灯启动,以通过红外灯对身份特征采集入口处的水渍进行清洁处理,可以无接触地实现对水渍的安全清理,确保水渍的清洁效果。In this embodiment, the processor in the identity recognition device controls the infrared light of the identity recognition device to start, so as to clean the water stains at the identity feature collection entrance through the infrared light, so as to achieve safe cleaning of the water stains without contact and ensure the cleaning effect of the water stains.
本申请还提供一种应用场景,该应用场景应用上述的身份识别方法。具体地,如图5所示,该身份识别方法在该应用场景的应用如下:This application also provides an application scenario that applies the above-mentioned identity recognition method. Specifically, as shown in Figure 5, the application of this identity recognition method in this application scenario is as follows:
在门禁系统场景中,用户可以通过身份识别设备进行身份识别,在确定用户属于合法身份时,可以通过门禁,允许用户进入。其中,身份识别设备通过采集用户手掌部位的图像,基于手掌图像进行身份识别。在身份识别设备中可以设置有图像传感器,对用户伸出的手掌进行拍摄。若身份识别设备中身份特征采集入口,即图像传感器的采集入口处附着有灰尘、水渍等物体时,将会导致采集的手掌图像失真,影响基于手掌图像的身份识别处理。基于本实施例中的身份识别方法,身份识别设备可以获取针对身份特征采集入口采集的第一图像,基于第一图像进行附着物检测,在确定身份特征采集入口处存在附着物的情况下,针对身份特征采集入口进行清洁处理,在身份特征采集入口处的附着物已清理的情况下,基于从身份特征采集入口处采集到的身份特征图像进行身份识别。在将身份特征采集入口处存在的附着物清理后,基于从身份特征采集入口处采集到的身份特征图像进行身份识别,可以减小身份特征采集入口处存在的附着物对身份特征图像成像的影响,确保身份特征图像的成像质量,从而提高了基于身份特征图像进行身份识别的准确性。In the access control system scenario, the user can be identified through the identity recognition device. When it is determined that the user is of a legal identity, the user can be allowed to enter through the access control. Among them, the identity recognition device collects images of the user's palm and performs identity recognition based on the palm image. An image sensor can be provided in the identity recognition device to shoot the palm of the user's outstretched hand. If dust, water stains and other objects are attached to the identity feature collection entrance in the identity recognition device, that is, the collection entrance of the image sensor, the collected palm image will be distorted, affecting the identity recognition processing based on the palm image. Based on the identity recognition method in this embodiment, the identity recognition device can obtain a first image collected for the identity feature collection entrance, perform attachment detection based on the first image, and when it is determined that there are attachments at the identity feature collection entrance, clean the identity feature collection entrance, and when the attachments at the identity feature collection entrance have been cleaned, perform identity recognition based on the identity feature image collected from the identity feature collection entrance. After cleaning the attachments at the identity feature collection entrance, identity recognition is performed based on the identity feature image collected from the identity feature collection entrance, which can reduce the impact of the attachments at the identity feature collection entrance on the imaging of the identity feature image, ensure the imaging quality of the identity feature image, and thus improve the accuracy of identity recognition based on the identity feature image.
本申请还提供一种应用场景,该应用场景应用上述的身份识别方法。具体地,该身份识别方法在该应用场景的应用如下:The present application also provides an application scenario, which applies the above-mentioned identity recognition method. Specifically, the application of the identity recognition method in the application scenario is as follows:
刷掌是指通过手掌的生物特征,如手掌的掌纹特征和掌静脉特征识别进行身份识别的方法。掌纹识别可以根据手掌掌纹区域的图片,识别不同用户的身份信息。人手掌上的掌纹、掌静脉等信息和人脸类似,都是非常重要的生物特征,且很难改变,所以通过人手掌进行身份识别,进一步资源转移,如进行购物支付,是身份识别研究的趋势之一。在进行掌纹识别时,针对手掌部位进行拍摄,需要对拍摄得到的图像进行手掌区域检测,具体可以使用目标检测技术定位手指缝点,从图片中提取手掌区域图片。在刷掌识别中,一般需要拍摄彩色图像和红外图像。彩色图像是彩色传感器Sensor采集自然光成像的彩色图,在刷脸或刷掌支付中一般用于人脸或手掌优选、对比识别等。红外图像是由红外传感器Sensor采集泛红外光成像的红外图,在刷脸或掌支付中一般用于活体检测以及掌静脉识别。在具体应用时,还可以针对采集的图像进行选择,具体可以选出一组符合活体检测和对比识别算法前置条件的彩色图、深度图、红外图,例如,对于刷脸识别,可以包括彩色图像、深度图像和红外图像;对于刷掌识别,可以包括彩色图像和红外图像。具体可以基于人脸或手掌角度、大小、居中度、彩色图清晰度对彩色图像进行选择,通过红外图亮度对红外图像进行选择,基于深度图像完整度对深度图像进行优选,从而可以通过优选的图像进行体检测和对比识别等处理。Palm brushing refers to a method of identification through the biometric features of the palm, such as palm print features and palm vein feature recognition. Palmprint recognition can identify the identity information of different users based on pictures of the palmprint area. The palm prints, palm veins and other information on the human palm are similar to the human face. They are very important biometric characteristics and are difficult to change. Therefore, identity recognition through the human palm and further resource transfer, such as shopping payment, are the key to identity recognition research. One of the trends. When performing palmprint recognition, when shooting the palm part, it is necessary to detect the palm area of the captured image. Specifically, target detection technology can be used to locate the finger seam points and extract the palm area image from the picture. In palm recognition, it is generally necessary to take color images and infrared images. The color image is a color image of natural light collected by the color sensor. It is generally used for face or palm selection, comparison recognition, etc. in face or palm payment. Infrared images are infrared images collected by pan-infrared light imaging from infrared sensors. They are generally used for live body detection and palm vein identification in face scanning or palm payment. In specific applications, you can also select the collected images. Specifically, you can select a set of color images, depth images, and infrared images that meet the prerequisites of the living body detection and contrast recognition algorithm. For example, for face recognition, you can include color images. image, depth image and infrared image; for palm recognition, it can include color images and infrared images. Specifically, color images can be selected based on face or palm angle, size, centering, and color image clarity, infrared images can be selected based on infrared image brightness, and depth images can be optimized based on depth image integrity, so that the optimal The image is processed such as body detection and contrast recognition.
然而,在水上乐园等场景下应用刷掌,容易碰到水渍滴在摄像头镜头上的情况,导致刷掌失败。基于此,本实施例提供的身份识别方法,如图6所示,用户可以在支付设备端通过刷掌进行支付,用户可以向支付设备端的身份特征采集入口处伸出手掌,以由支付设备端采集用户的手掌图像进行身份识别后进行支付处理。为确保刷掌的成功率,支付设备端可以基于附着物检测算法识别水渍,并开启红外补光灯烘干水渍,红外补光灯可以覆盖在摄像头镜头附近,确保水渍的烘干效果。在进行附着物检测时,可以收集典型水渍图像,训练附着物检测模型以识别水渍。在通过附着物检测模型识别到水渍,且确定支付设备的刷掌成功率下降时,开启红外补光灯烘干水渍,同时可以通过支付设备的用户界面(UI,UserInterface)提醒用户设备正在处理水渍。在针对水渍进行清理后,可以进一步实时确定水渍是否被清理,清理完水渍后恢复刷掌,针对用户进行身份识别并进行支付处理。However, when using palm brushing in water parks and other scenarios, it is easy to encounter water stains dripping on the camera lens, causing palm brushing to fail. Based on this, the identity recognition method provided by this embodiment is as shown in Figure 6. The user can pay by swiping his palm on the payment device. The user can extend his palm to the identity feature collection entrance on the payment device to receive payment from the payment device. Collect the user's palm image for identity recognition and then proceed with payment processing. In order to ensure the success rate of palm swiping, the payment device can identify water stains based on the attachment detection algorithm and turn on the infrared fill light to dry the water stains. The infrared fill light can be covered near the camera lens to ensure the drying effect of the water stains. . When performing attachment detection, typical water stain images can be collected and the attachment detection model can be trained to identify water stains. When water stains are identified through the attachment detection model and it is determined that the success rate of palm swiping of the payment device has declined, the infrared fill light is turned on to dry the water stains. At the same time, the user can be reminded through the user interface (UI, UserInterface) of the payment device that the device is Treat water damage. After cleaning the water stains, you can further determine in real time whether the water stains have been cleaned. After cleaning the water stains, resume brushing, identify the user and perform payment processing.
具体地,如图7所示,本实施例提供的身份识别方法可以包括步骤702至步骤708。其中:步骤702,在摄像头镜头处覆盖设置红外灯。支付设备通过摄像头采集手掌图像进行身份识别,以在识别出身份后进行支付处理。在摄像头的镜头处可以覆盖设置红外灯,一方面可以通过红外灯对红外摄像头进行补光,还可以利用红外灯对镜头处的水渍进行烘干处理。步骤704,收集水渍样本图像,训练水渍检测模型以识别水渍。通过收集的水渍样本图像进行水渍检测模型训练,通过训练得到的水渍检测模型进行水渍识别。步骤706,在水渍检测模型检测到水渍,且刷掌成功率降低的情况下,开启红外灯烘干水渍,并通过用户界面提醒正在处理水渍。在通过水渍检测模型检测到水渍,且刷掌成功率降低的情况下,具体如支付设备通过刷掌的成功率低于成功率阈值,则确定在镜头出附着有水渍,开启红外灯烘干水渍,并通过用户界面提醒正在处理水渍。步骤708,检测水渍是否被清理,清理完水渍后恢复刷掌。支付设备可以实时检测镜头处的水渍是否被清理,若确定水渍被清理,则恢复刷掌工作,支持用户通过手掌进行支付。在具体应用中,红外灯设置和水渍检测模型的训练可以预先实现,而直接执行步骤706和步骤708,即直接通过已经训练好的水渍检测模型进行水渍检测,通过已经设置好的红外灯对检测到的水渍进行烘干处理。Specifically, as shown in Figure 7, the identity recognition method provided by this embodiment may include steps 702 to 708. Among them: step 702, covering and setting an infrared light at the camera lens. The payment device collects palm images through the camera for identity recognition, so that payment processing can be performed after the identity is recognized. An infrared light can be installed over the lens of the camera. On the one hand, the infrared light can be used to supplement the light of the infrared camera, and the infrared light can also be used to dry the water stains on the lens. Step 704: Collect water stain sample images and train a water stain detection model to identify water stains. The water damage detection model is trained through the collected water damage sample images, and the water damage detection model is used for water damage recognition through the trained water damage detection model. Step 706: When the water stain detection model detects water stains and the success rate of brushing is reduced, the infrared light is turned on to dry the water stains, and a user interface is used to remind that the water stains are being processed. When water stains are detected through the water stain detection model and the success rate of palm swiping is reduced, specifically if the success rate of the payment device through palm swiping is lower than the success rate threshold, it is determined that there is water stain attached to the lens and the infrared light is turned on. Dry water stains and notify the user interface that water stains are being treated. Step 708: Check whether the water stains have been cleaned, and resume brushing after the water stains are cleaned. The payment device can detect in real time whether the water stains on the lens have been cleaned. If it is determined that the water stains have been cleaned, the palm brushing process will be resumed, allowing users to pay with their palms. In specific applications, the infrared lamp settings and the training of the water stain detection model can be implemented in advance, and steps 706 and 708 are directly performed, that is, water stain detection is directly performed through the already trained water stain detection model, and the already set infrared The lamp dries the detected water stains.
进一步地,如图8所示,在摄像头镜头出设置红外灯时,摄像头包括一个彩色摄像头和一个红外摄像头,分别采集彩色图像和红外图像。在彩色摄像头和红外摄像头的周围,分别设置有2个红外补光灯以及2个彩色补光灯,用于对相应的摄像头进行补光,确保图像采集效果。此外,在4个补光灯的周围,还设置有4个光距传感器psensor(ProximitySensor),用于检测拍摄目标到镜头的距离。在具体应用中,镜头处的摄像头、补光灯以及光距传感器的分布可以根据实际需要进行灵活设置。Further, as shown in Figure 8, when an infrared light is set outside the camera lens, the camera includes a color camera and an infrared camera to collect color images and infrared images respectively. Around the color camera and the infrared camera, there are 2 infrared fill lights and 2 color fill lights respectively, which are used to fill in the corresponding cameras to ensure the image collection effect. In addition, around the four fill lights, there are four light distance sensors psensor (ProximitySensor), which are used to detect the distance from the shooting target to the lens. In specific applications, the distribution of cameras, fill lights and light distance sensors at the lens can be flexibly set according to actual needs.
进一步地,如图9所示,构建水渍检测模型的处理包括步骤902至步骤906,其中:步骤902,确定水渍图像的特点,基于水渍图像进行分析,确定水渍图像中存在的特点,以便确定训练样本。具体地,水渍图像包括特点1,即图像变模糊,整个手掌图像特别模糊。IR(Infrared Radiation,红外光)图像或RGB图像单个图像存在模糊或两个图像均存在模糊,图像中模糊的区域不一样,或者存在部分模糊。如图10所示,左侧为针对手掌采集的掌纹图像,右侧为针对手掌采集的掌静脉图像,如阴影部分所示,掌纹图像和掌静脉图像因为水渍导致整体模糊失真。水渍图像包括特点2,即图像中存在奇怪的光影,会造成部分区域的模糊失真。如图11所示,左侧为针对手掌采集的掌纹图像,右侧为针对手掌采集的掌静脉图像,如阴影部分所示,掌纹图像和掌静脉图像因为水渍导致手掌四指部分区域模糊失真。水渍图像包括特点3,即水渍影响区域的图像亮度跟正常区域亮度相当或是差别不是非常大,但图像会变的部分模糊。如图12所示,左侧为针对手掌采集的掌纹图像,右侧为针对手掌采集的掌静脉图像,如阴影部分所示,掌纹图像和掌静脉图像因为水渍导致手掌大部分区域模糊失真。Further, as shown in Figure 9, the process of constructing a water stain detection model includes steps 902 to 906, wherein: step 902, determine the characteristics of the water stain image, perform analysis based on the water stain image, and determine the characteristics existing in the water stain image. , in order to determine the training samples. Specifically, the water stain image includes feature 1, that is, the image becomes blurred, and the entire palm image is particularly blurred. A single image of an IR (Infrared Radiation) image or an RGB image is blurred, or both images are blurred. The blurred areas in the images are different, or there is partial blurring. As shown in Figure 10, the left side is a palm print image collected for the palm, and the right side is a palm vein image collected for the palm. As shown in the shaded part, the palm print image and palm vein image are overall blurred and distorted due to water stains. Water stain images include feature 2, that is, there are strange lights and shadows in the image, which will cause blur and distortion in some areas. As shown in Figure 11, the left side is a palm print image collected for the palm, and the right side is a palm vein image collected for the palm. As shown in the shaded area, the palm print image and palm vein image have water stains on the four fingers of the palm. Blurry distortion. Water-damaged images include characteristic 3, that is, the brightness of the image in the water-damaged area is equivalent to or not very different from the brightness in the normal area, but the image will become partially blurred. As shown in Figure 12, the left side is a palm print image collected for the palm, and the right side is a palm vein image collected for the palm. As shown in the shaded part, most areas of the palm print image and palm vein image are blurred due to water stains. distortion.
进一步地,步骤904,采集水渍样本图像及距离样本数据,并进行标注。具体可以人为在摄像头模组表面随机撒一些水滴或是喷雾,一方面采集不存在人手时的IR图像、RGB图像和psensor数据,发现有时候psensor数据会异常,全部异常或是个别异常,而RGB图像可能存在模糊。另一方面采集存在人手时,不同距离处的IR图像、RGB图像和psensor数据,发现IR图像或RGB图像可能存在模糊,且有时psensor数据会异常,全部异常或是个别异常,一般会是最大值。此外,采集正常情况下的IR图像、RGB图像和psensor数据,组成水渍样本图像及距离样本数据。针对获得的水渍样本图像及距离样本数据进行标注,标注各个水渍样本图像及距离样本数据中是否存在水渍。Further, in step 904, water stain sample images and distance sample data are collected and annotated. Specifically, you can randomly sprinkle some water droplets or sprays on the surface of the camera module. On the one hand, you can collect IR images, RGB images and psensor data when there are no human hands. It is found that sometimes the psensor data will be abnormal, either all abnormal or individually abnormal, while RGB The image may be blurry. On the other hand, when human hands are present, IR images, RGB images and psensor data are collected at different distances. It is found that the IR image or RGB image may be blurred, and sometimes the psensor data will be abnormal, either all abnormal or individual abnormalities, usually the maximum value. . In addition, IR images, RGB images and psensor data under normal conditions are collected to form water stain sample images and distance sample data. The obtained water stain sample images and distance sample data are annotated, and whether there is water stain in each water stain sample image and distance sample data is marked.
进一步地,步骤906,通过对水渍样本图像及距离样本数据进行训练,得到水渍检测模型。可以构建深度学习模型,通过对存在水渍的异常图像或是psensor值进行训练,得到存在水渍的深度学习模型内相关参数。实际应该中,可以根据该水渍检测模型,输入相关数据,包括IR图像、RGB图像和psensor数据,判断是否存在水渍。Further, in step 906, a water stain detection model is obtained by training the water stain sample image and the distance sample data. A deep learning model can be constructed, and relevant parameters in the deep learning model with water stains can be obtained by training the abnormal images or psensor values with water stains. In practice, the relevant data including IR images, RGB images and psensor data can be input according to the water stain detection model to determine whether water stains exist.
进一步地,对于水渍检测模型,其输入包含IR红外图像、RGB可见光图像和距离参数,具体可以为pensor的值。如图13所示,红外图像通过第一特征提取网络进行特征提取,距离参数通过第二特征提取网络进行特征提取,可见光图像通过第三特征提取网络进行特征提取。其中,第一特征提取网络和第三特征提取网络可以是CNN网络,而第二特征提取网络可以为全连接网络。通过第一特征提取网络、第二特征提取网络和第三特征提取网络提取得到的特征,进一步通过子网络融合层将所有的特征进行拼接。多于拼接得到的特征,通过特征融合层进行融合处理,特征融合层可以是全连接网络,用于对特征进行融合。特征融合层输出的预测值经过水渍检测层进行检测处理,具体可以通过softmax进行分类后之后得到两个输出,分别为有水珠的概率和无水珠的概率。根据有水珠的概率和无水珠的概率,可以确定在支付设备的镜头处是否存在水渍。Further, for the water stain detection model, its input includes IR infrared image, RGB visible light image and distance parameter, which can specifically be the value of pensor. As shown in Figure 13, the infrared image is feature extracted through the first feature extraction network, the distance parameter is feature extracted through the second feature extraction network, and the visible light image is feature extracted through the third feature extraction network. Wherein, the first feature extraction network and the third feature extraction network may be CNN networks, and the second feature extraction network may be a fully connected network. The features extracted through the first feature extraction network, the second feature extraction network and the third feature extraction network are further spliced through the sub-network fusion layer. Features obtained by more than splicing are fused through the feature fusion layer. The feature fusion layer can be a fully connected network used to fuse features. The predicted value output by the feature fusion layer is detected and processed by the water stain detection layer. Specifically, it can be classified by softmax and then two outputs are obtained, which are the probability of water beads and the probability of no water beads. Based on the probability of water droplets and the probability of no water droplets, it can be determined whether there is water stains on the lens of the payment device.
进一步地,支付设备端在通过附着物检测模型识别到水渍,且确定支付设备的刷掌成功率下降时,开启红外补光灯烘干水渍,同时可以通过支付设备的用户界面提醒用户设备正在处理水渍。在针对水渍进行清理后,可以进一步实时确定水渍是否被清理,清理完水渍后恢复刷掌,针对用户进行身份识别并进行支付处理。在刷掌识别技术应用到在水上乐园等场景中时,可以有刷掌设备自动识别清理水渍,保障刷掌识别的成功率。Furthermore, when the payment device recognizes water stains through the attachment detection model and determines that the success rate of palm brushing of the payment device has declined, it turns on the infrared fill light to dry the water stains, and at the same time, the user device can be reminded through the user interface of the payment device. Water damage is being treated. After cleaning the water stains, you can further determine in real time whether the water stains have been cleaned. After cleaning the water stains, resume brushing, identify the user and perform payment processing. When palm swiping recognition technology is applied to scenes such as water parks, palm swiping equipment can automatically identify and clean water stains to ensure the success rate of palm swiping recognition.
应该理解的是,虽然如上所述的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowcharts involved in the above-mentioned embodiments are shown in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated in this article, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the flowcharts involved in the above embodiments may include multiple steps or stages. These steps or stages are not necessarily executed at the same time, but may be completed at different times. The execution order of these steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的身份识别方法的身份识别装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个身份识别装置实施例中的具体限定可以参见上文中对于身份识别方法的限定,在此不再赘述。Based on the same inventive concept, the embodiment of the present application also provides an identity recognition device for implementing the identity recognition method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more identity recognition device embodiments provided below can refer to the limitations on the identity recognition method above, and will not be repeated here.
在一个实施例中,如图14所示,提供了一种身份识别装置1400,包括:第一图像检测模块1402、附着物清洁模块1404、第二图像检测模块1406和身份识别处理模块1408,其中:In one embodiment, as shown in Figure 14, an identity recognition device 1400 is provided, including: a first image detection module 1402, an attachment cleaning module 1404, a second image detection module 1406 and an identity recognition processing module 1408, wherein :
第一图像检测模块1402,用于获取针对身份识别设备的身份特征采集入口采集的第一图像,对第一图像进行附着物检测,获得第一检测结果;The first image detection module 1402 is used to obtain the first image collected for the identity feature collection entrance of the identity recognition device, detect attachments on the first image, and obtain the first detection result;
附着物清洁模块1404,用于当第一检测结果表征身份特征采集入口处存在附着物,触发针对身份特征采集入口的清洁处理;The attachment cleaning module 1404 is used to trigger the cleaning process for the identity feature collection entrance when the first detection result indicates that there is attachment at the identity feature collection entrance;
第二图像检测模块1406,用于在触发清洁处理之后,获取针对身份特征采集入口采集的第二图像,对第二图像进行附着物检测,获得第二检测结果;The second image detection module 1406 is used to obtain the second image collected for the identity feature collection entrance after triggering the cleaning process, perform attachment detection on the second image, and obtain the second detection result;
身份识别处理模块1408,用于当第二检测结果表征身份特征采集入口处的附着物已清理,响应于从身份特征采集入口处采集到身份特征图像,进行基于身份特征图像的身份识别。The identity recognition processing module 1408 is configured to perform identity recognition based on the identity feature image in response to the identity feature image being collected from the identity feature collection entrance when the second detection result indicates that the attachments at the identity feature collection entrance have been cleared.
在一个实施例中,第一图像检测模块1402包括图像特征提取模块、距离参数获取模块和附着物检测模块;其中:图像特征提取模块,用于对第一图像进行图像特征提取,得到第一图像的图像特征;距离参数获取模块,用于获取身份特征采集入口与第一图像中所包括的采集对象之间的距离参数;附着物检测模块,用于基于图像特征和距离参数进行附着物检测,得到第一检测结果。In one embodiment, the first image detection module 1402 includes an image feature extraction module, a distance parameter acquisition module and an attachment detection module; wherein: the image feature extraction module is used to extract image features from the first image to obtain the first image image features; a distance parameter acquisition module, used to obtain the distance parameter between the identity feature collection entrance and the collection object included in the first image; an attachment detection module, used to detect attachments based on image features and distance parameters, Get the first test result.
在一个实施例中,第一图像包括针对相同采集对象采集得到的可见光图像和红外图像;图像特征提取模块,还用于对可见光图像和红外图像分别进行图像特征提取,获得可见光图像的可见光图像特征以及红外图像的红外图像特征;附着物检测模块,还用于将可见光图像特征、红外图像特征和距离参数的距离特征进行特征融合,得到检测特征;基于检测特征进行附着物检测,得到第一检测结果。In one embodiment, the first image includes a visible light image and an infrared image collected for the same collection object; the image feature extraction module is also used to extract image features from the visible light image and the infrared image respectively to obtain visible light image features of the visible light image and infrared image features of the infrared image; the attachment detection module is also used to fuse the visible light image features, the infrared image features and the distance features of the distance parameters to obtain detection features; attachment detection is performed based on the detection features to obtain a first detection result.
在一个实施例中,对第一图像进行附着物检测,获得第一检测结果基于附着物检测模型实现;对第二图像进行附着物检测,获得第二检测结果基于附着物检测模型实现;还包括训练样本获取模块、样本特征提取模块、样本检测模块和模型更新模块;其中:训练样本获取模块,用于获取样本图像以及身份特征采集入口与样本图像中所包括的采集对象之间的距离样本参数;样本图像和距离样本参数携带附着物检测标签;样本特征提取模块,用于通过待训练的附着物检测模型对样本图像进行图像特征提取,得到样本图像的样本图像特征;样本检测模块,用于通过待训练的附着物检测模型,基于样本图像特征和距离样本参数进行附着物检测,得到样本检测结果;模型更新模块,用于基于样本检测结果与附着物检测标签,对待训练的附着物检测模型进行模型更新后继续训练,直至训练结束,获得训练完成的附着物检测模型。In one embodiment, the attachment detection is performed on the first image, and the first detection result is obtained based on the attachment detection model; the attachment detection is performed on the second image, and the second detection result is obtained based on the attachment detection model; it also includes Training sample acquisition module, sample feature extraction module, sample detection module and model update module; among which: training sample acquisition module is used to obtain sample images and distance sample parameters between the identity feature collection entrance and the collection objects included in the sample images. ; The sample image and distance sample parameters carry attachment detection labels; the sample feature extraction module is used to extract image features from the sample image through the attachment detection model to be trained, and obtain the sample image features of the sample image; the sample detection module is used to Through the attachment detection model to be trained, attachments are detected based on sample image features and distance sample parameters to obtain sample detection results; the model update module is used to develop the attachment detection model to be trained based on the sample detection results and attachment detection labels. After updating the model, continue training until the end of the training, and obtain the trained attachment detection model.
在一个实施例中,样本图像包括可见光样本图像和红外样本图像;样本特征提取模块,还用于通过待训练的附着物检测模型,对可见光样本图像和红外样本图像分别进行图像特征提取,获得可见光样本图像的可见光样本图像特征以及红外样本图像的红外样本图像特征;样本检测模块,还用于通过待训练的附着物检测模型对距离样本参数进行特征映射,得到距离样本特征;将可见光样本图像特征、红外样本图像特征和距离样本特征进行特征融合,得到检测样本特征;基于检测样本特征进行附着物检测,得到样本检测结果。In one embodiment, the sample image includes a visible light sample image and an infrared sample image; the sample feature extraction module is also used to extract image features from the visible light sample image and the infrared sample image through the attachment detection model to be trained, and obtain the visible light sample image. The visible light sample image features of the sample image and the infrared sample image features of the infrared sample image; the sample detection module is also used to perform feature mapping on the distance sample parameters through the attachment detection model to be trained to obtain the distance sample features; the visible light sample image features , infrared sample image features and distance sample features are feature fused to obtain detection sample features; attachment detection is performed based on the detection sample features to obtain sample detection results.
在一个实施例中,还包括识别统计参数确定模块,用于获取身份识别设备的历史身份识别数据;根据历史身份识别数据确定识别统计参数;附着物清洁模块1404,还用于当第一检测结果表征身份特征采集入口处存在附着物、且识别统计参数满足清洁触发条件,触发针对身份特征采集入口的清洁处理。In one embodiment, it also includes an identification statistical parameter determination module, used to obtain historical identification data of the identification device; determine identification statistical parameters based on the historical identification data; and an attachment cleaning module 1404, also used to determine when the first detection result It indicates that there are attachments at the identity feature collection entrance and the recognition statistical parameters meet the cleaning trigger conditions, triggering the cleaning process for the identity feature collection entrance.
在一个实施例中,附着物清洁模块1404,还用于当第一检测结果表征身份特征采集入口处存在附着物,通过身份识别设备的附着物清洁装置,针对身份特征采集入口进行清洁处理。In one embodiment, the attachment cleaning module 1404 is also used to clean the identity feature collection entrance through the attachment cleaning device of the identity recognition device when the first detection result indicates that there is attachment at the identity feature collection entrance.
在一个实施例中,身份特征采集入口处的附着物包括水渍;附着物清洁模块1404,还用于控制身份识别设备的红外灯启动,以通过红外灯针对身份特征采集入口处的水渍进行清洁处理。In one embodiment, the attachments at the identity feature collection entrance include water stains; the attachment cleaning module 1404 is also used to control the activation of the infrared light of the identity recognition device to use the infrared light to clean the water stains at the identity feature collection entrance. Cleaning process.
在一个实施例中,还包括附着物清理确定模块,用于当第二检测结果表征未检测到附着物,确定身份特征采集入口处的附着物已清理。In one embodiment, an attachment cleaning determination module is further included, configured to determine that the attachment at the identity feature collection entrance has been cleared when the second detection result indicates that no attachment has been detected.
在一个实施例中,还包括附着物清理确定模块,用于基于第二检测结果确定附着物分布区域,当附着物分布区域小于基于第一检测结果确定的附着物分布区域,确定身份特征采集入口处的附着物已清理。In one embodiment, an attachment cleaning determination module is further included, configured to determine the attachment distribution area based on the second detection result, and determine the identity feature collection entrance when the attachment distribution area is smaller than the attachment distribution area determined based on the first detection result. The attachments have been cleaned.
在一个实施例中,身份识别处理模块1408,还用于响应于身份识别触发事件,获取从身份特征采集入口处采集到的身份特征图像;将身份特征图像与预存的注册身份信息进行身份信息匹配,以基于身份特征图像进行身份识别。In one embodiment, the identity recognition processing module 1408 is also used to obtain the identity feature image collected from the identity feature collection entrance in response to the identity recognition triggering event; to match the identity feature image with the pre-stored registered identity information. , to perform identity recognition based on identity feature images.
在一个实施例中,身份特征图像是针对手掌部位采集获得的图像;注册身份信息包括对注册用户的手掌进行身份注册获得的掌纹注册特征和掌静脉注册特征;身份识别处理模块1408,还用于从身份特征图像中提取得到掌纹特征和掌静脉特征;将掌纹特征与掌纹注册特征进行掌纹特征匹配,得到掌纹特征匹配结果;将掌静脉特征与掌静脉注册特征进行掌静脉特征匹配,得到掌静脉特征匹配结果;根据掌纹特征匹配结果和掌静脉特征匹配结果,得到身份识别结果。In one embodiment, the identity feature image is an image acquired by capturing the palm; the registered identity information includes the palm print registration feature and the palm vein registration feature acquired by performing identity registration on the palm of the registered user; the identity recognition processing module 1408 is further used to extract the palm print feature and the palm vein feature from the identity feature image; perform palm print feature matching on the palm print registration feature to obtain a palm print feature matching result; perform palm vein feature matching on the palm vein registration feature to obtain a palm vein feature matching result; and obtain an identity recognition result based on the palm print feature matching result and the palm vein feature matching result.
在一个实施例中,还包括等待提示模块,用于在触发清洁处理的过程中,通过可感知方式,提供用于指示用户等待通过身份识别设备进行身份识别的等待提示信息。In one embodiment, a waiting prompt module is further included, configured to provide, in a perceptible manner, waiting prompt information for instructing the user to wait for identity recognition through the identity recognition device during the process of triggering the cleaning process.
在一个实施例中,第一图像检测模块1402,还用于当满足检测触发条件,获取针对身份识别设备的身份特征采集入口采集的第一图像;满足检测触发条件,包括达到附着物检测时间、检测到身份识别触发事件或身份识别设备的识别统计参数满足统计参数触发条件中的至少一项。In one embodiment, the first image detection module 1402 is also used to obtain the first image collected for the identity feature collection entrance of the identity recognition device when the detection trigger condition is met; the detection trigger condition is met, including reaching attachment detection time, An identity recognition trigger event is detected or the recognition statistical parameters of the identity recognition device meet at least one of the statistical parameter trigger conditions.
在一个实施例中,还包括资源转移模块,用于响应于资源转移触发事件,确定资源转移参数;根据身份特征图像的身份识别结果,确定目标资源账号;基于资源转移参数对目标资源账号进行资源转移。In one embodiment, a resource transfer module is also included, configured to determine resource transfer parameters in response to a resource transfer triggering event; determine the target resource account based on the identity recognition result of the identity feature image; and perform resource transfer on the target resource account based on the resource transfer parameters. transfer.
上述身份识别装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above-mentioned identity recognition device can be implemented in whole or in part by software, hardware and combinations thereof. Each of the above modules may be embedded in or independent of the processor of the computer device in the form of hardware, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端或服务器,若计算机设备为终端,则其内部结构图可以如图15所示。该计算机设备包括处理器、存储器、输入/输出接口、通信接口、显示单元和输入装置。其中,处理器、存储器和输入/输出接口通过系统总线连接,通信接口、显示单元和输入装置通过输入/输出接口连接到系统总线。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的输入/输出接口用于处理器与外部设备之间交换信息。该计算机设备的通信接口用于与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、移动蜂窝网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种身份识别方法。该计算机设备的显示单元用于形成视觉可见的画面,可以是显示屏、投影装置或虚拟现实成像装置,显示屏可以是液晶显示屏或电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided. The computer device may be a terminal or a server. If the computer device is a terminal, its internal structure diagram may be as shown in Figure 15. The computer device includes a processor, memory, input/output interface, communication interface, display unit and input device. Among them, the processor, memory and input/output interface are connected through the system bus, and the communication interface, display unit and input device are connected to the system bus through the input/output interface. Wherein, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes non-volatile storage media and internal memory. The non-volatile storage medium stores operating systems and computer programs. This internal memory provides an environment for the execution of operating systems and computer programs in non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used for wired or wireless communication with external terminals. The wireless mode can be implemented through WIFI, mobile cellular network, NFC (Near Field Communication) or other technologies. The computer program, when executed by the processor, implements an identification method. The display unit of the computer device is used to form a visually visible picture and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a display screen. The touch layer covered above can also be buttons, trackballs or touch pads provided on the computer equipment shell, or it can also be an external keyboard, touch pad or mouse, etc.
本领域技术人员可以理解,图15中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art will understand that the structure shown in FIG. 15 is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
在一个实施例中,还提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现上述各方法实施例中的步骤。In one embodiment, a computer device is also provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, it implements the steps in the above method embodiments.
在一个实施例中,提供了一种计算机可读存储介质,存储有计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。In one embodiment, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.
在一个实施例中,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。In one embodiment, a computer program product is provided, including a computer program that implements the steps in each of the above method embodiments when executed by a processor.
需要说明的是,本申请所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all It is information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of relevant countries and regions.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-OnlyMemory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic RandomAccess Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage. In the media, when executed, the computer program may include the processes of the above method embodiments. Any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetic variable memory (Magnetoresistive Random) Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene memory, etc. Volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration but not limitation, RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM). The databases involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include blockchain-based distributed databases, etc., but are not limited thereto. The processors involved in the various embodiments provided in this application may be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to this.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined in any way. To simplify the description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, all possible combinations should be used. It is considered to be within the scope of this manual.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。The above-described embodiments only express several implementation modes of the present application, and their descriptions are relatively specific and detailed, but should not be construed as limiting the patent scope of the present application. 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 application, and these all fall within the protection scope of the present application. Therefore, the scope of protection of this application should be determined by the appended claims.
Claims (20)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211163282.8A CN117809009B (en) | 2022-09-23 | 2022-09-23 | Identity identification method, device, apparatus, computer equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211163282.8A CN117809009B (en) | 2022-09-23 | 2022-09-23 | Identity identification method, device, apparatus, computer equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN117809009A true CN117809009A (en) | 2024-04-02 |
| CN117809009B CN117809009B (en) | 2025-06-13 |
Family
ID=90430651
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211163282.8A Active CN117809009B (en) | 2022-09-23 | 2022-09-23 | Identity identification method, device, apparatus, computer equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117809009B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118122723A (en) * | 2024-05-07 | 2024-06-04 | 温州电力建设有限公司 | Pipeline cleaning method, device and equipment based on convolutional neural network |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2014042168A1 (en) * | 2012-09-14 | 2014-03-20 | オムロン株式会社 | Image processing device, object detection method, and object detection program |
| CN104520913A (en) * | 2012-07-03 | 2015-04-15 | 歌乐株式会社 | Vehicle-mounted environment recognition device |
| CN107792019A (en) * | 2017-09-27 | 2018-03-13 | 北京图森未来科技有限公司 | A kind of camera clean method and system |
| CN109951636A (en) * | 2019-03-18 | 2019-06-28 | Oppo广东移动通信有限公司 | Photographing processing method and device, mobile terminal and storage medium |
| CN210895480U (en) * | 2019-09-18 | 2020-06-30 | 中国石化新疆煤制天然气外输管道有限责任公司 | A construction site personnel identification device based on face recognition |
| CN112132099A (en) * | 2020-09-30 | 2020-12-25 | 腾讯科技(深圳)有限公司 | Identification method, palmprint key point detection model training method and device |
| CN113723369A (en) * | 2021-11-01 | 2021-11-30 | 北京创米智汇物联科技有限公司 | Control method, control device, electronic equipment and storage medium |
| CN114531542A (en) * | 2022-01-18 | 2022-05-24 | 华为技术有限公司 | Lens contamination detection method and electronic equipment |
| CN114648510A (en) * | 2022-03-28 | 2022-06-21 | 国网新能源云技术有限公司 | State detection method and device of photovoltaic module, storage medium and electronic equipment |
-
2022
- 2022-09-23 CN CN202211163282.8A patent/CN117809009B/en active Active
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104520913A (en) * | 2012-07-03 | 2015-04-15 | 歌乐株式会社 | Vehicle-mounted environment recognition device |
| WO2014042168A1 (en) * | 2012-09-14 | 2014-03-20 | オムロン株式会社 | Image processing device, object detection method, and object detection program |
| CN107792019A (en) * | 2017-09-27 | 2018-03-13 | 北京图森未来科技有限公司 | A kind of camera clean method and system |
| CN109951636A (en) * | 2019-03-18 | 2019-06-28 | Oppo广东移动通信有限公司 | Photographing processing method and device, mobile terminal and storage medium |
| CN210895480U (en) * | 2019-09-18 | 2020-06-30 | 中国石化新疆煤制天然气外输管道有限责任公司 | A construction site personnel identification device based on face recognition |
| CN112132099A (en) * | 2020-09-30 | 2020-12-25 | 腾讯科技(深圳)有限公司 | Identification method, palmprint key point detection model training method and device |
| CN113723369A (en) * | 2021-11-01 | 2021-11-30 | 北京创米智汇物联科技有限公司 | Control method, control device, electronic equipment and storage medium |
| CN114531542A (en) * | 2022-01-18 | 2022-05-24 | 华为技术有限公司 | Lens contamination detection method and electronic equipment |
| CN114648510A (en) * | 2022-03-28 | 2022-06-21 | 国网新能源云技术有限公司 | State detection method and device of photovoltaic module, storage medium and electronic equipment |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118122723A (en) * | 2024-05-07 | 2024-06-04 | 温州电力建设有限公司 | Pipeline cleaning method, device and equipment based on convolutional neural network |
Also Published As
| Publication number | Publication date |
|---|---|
| CN117809009B (en) | 2025-06-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107122744B (en) | Living body detection system and method based on face recognition | |
| CN101859355B (en) | Service providing device, service providing method, biometric information authentication server, and biometric information authentication method | |
| CN107451816B (en) | Method and device for realizing offline transaction | |
| CN112784741A (en) | Pet identity recognition method and device and nonvolatile storage medium | |
| CN106845414A (en) | For the method and system of the quality metric of biological characteristic validation | |
| CN106778607A (en) | A kind of people based on recognition of face and identity card homogeneity authentication device and method | |
| JP2018508888A (en) | System and method for performing fingerprint-based user authentication using an image captured using a mobile device | |
| CN103383723A (en) | Method and system for spoof detection for biometric authentication | |
| CN108711161A (en) | Image segmentation method, image segmentation device and electronic equipment | |
| WO2021104125A1 (en) | Abnormal egg identification method, device and system, storage medium, and electronic device | |
| CN106529255B (en) | Method for identifying ID and device based on person's handwriting fingerprint | |
| CN114387548B (en) | Video and living body detection method, system, device, storage medium and program product | |
| CN110633675A (en) | A fire recognition system and method in video based on convolutional neural network | |
| CN108875517A (en) | Method for processing video frequency, device and system and storage medium | |
| Safaa El‐Din et al. | Deep convolutional neural networks for face and iris presentation attack detection: Survey and case study | |
| CN110210288A (en) | Palm grain identification method and device | |
| CN109858464A (en) | Bottom library data processing method, face identification method, device and electronic equipment | |
| WO2025050790A1 (en) | Identity recognition method and apparatus, and computer device and storage medium | |
| JPWO2020115910A1 (en) | Information processing systems, information processing devices, information processing methods, and programs | |
| CN113469138B (en) | Object detection method and device, storage medium and electronic device | |
| CN117809009B (en) | Identity identification method, device, apparatus, computer equipment and storage medium | |
| CN107392614A (en) | The implementation method and device of off-line transaction | |
| CN116226817B (en) | Identity identification method, device, computer equipment and storage medium | |
| WO2018121552A1 (en) | Palmprint data based service processing method, apparatus and program, and medium | |
| JP2010198199A (en) | Information providing system and method |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |