Identity authentication method and device, electronic equipment, storage medium and program product

By comparing the first face image in the unsensible document acquisition stage with the second face image in the face acquisition stage in the eKYC solution, the attack behavior is solved, and the security problem of existing eKYC under advanced fraud technology is solved. , improves the security of identity authentication.

CN119068530APending Publication Date: 2024-12-03ANT BLOCKCHAIN TECHNOLOGY (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411157278.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

Existing eKYC solutions are easily compromised when facing advanced fraud technologies, affecting the security of identity authentication.

Method used

By collecting the first face image without perception during the ID collection stage and comparing it with the second face image collected during the face acquisition stage, if the comparison fails, confirming the identity authentication failure, identifying the attack behavior, and improving Security of identity authentication.

Benefits of technology

Effectively identify and prevent attacks, improve the security of identity authentication, and prevent the use of advanced fraud technologies such as forgery of documents and 3D facial masks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119068530A_ABST
    Figure CN119068530A_ABST
Patent Text Reader

Abstract

One or more embodiments of the invention provide an identity authentication method and apparatus, an electronic device, a storage medium and a program product. The identity authentication method comprises the steps that a first face image is acquired, the first face image is acquired by an electronic device through a first camera module in response to a certificate acquisition instruction, and the first camera module is different from a second camera module which acquires a certificate image in response to the certificate acquisition instruction; acquiring a second face image, wherein the second face image is acquired by the electronic equipment in response to the face acquisition instruction; comparing the first face image with the second face image; and under the condition that the comparison of the first face image and the second face image is not passed, confirming that the identity authentication fails.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] One or more embodiments of the present specification relate to the field of security technology, and in particular, to an identity authentication method, device, electronic device, storage medium, and program product. Background Art

[0002] With the rapid development of financial technology, more and more financial institutions are choosing eKYC (Electronic Know Your Customer) solutions to authenticate users. However, current eKYC solutions are easily hacked when faced with advanced fraud techniques. Summary of the invention

[0003] In view of this, one or more embodiments of this specification provide the following technical solutions:

[0004] According to a first aspect of one or more embodiments of the present specification, an identity authentication method is proposed, including: acquiring a first facial image, the first facial image is acquired by an electronic device through a first camera module in response to an ID collection instruction, the first camera module is different from a second camera module that acquires an ID image in response to the ID collection instruction; acquiring a second facial image, the second facial image is acquired by the electronic device in response to the facial collection instruction; comparing the first facial image and the second facial image; if the comparison between the first facial image and the second facial image fails, confirming that the identity authentication has failed.

[0005] Optionally, before comparing the first facial image and the second facial image, the method further includes:

[0006] Determining whether the first facial image is valid;

[0007] When the first facial image is valid, a step of comparing the first facial image and the second facial image is performed.

[0008] Optionally, also include:

[0009] Determining a legal facial image based on the certificate image;

[0010] comparing the second facial image with the legal facial image;

[0011] When the second facial image and the legal facial image are successfully compared, and the first facial image and the second facial image are successfully compared, it is confirmed that the identity authentication is successful.

[0012] Optionally, the process of determining a legal face image based on the certificate image includes:

[0013] A face image is extracted from the certificate image as the legal face image.

[0014] Optionally, the process of determining a legal face image based on the certificate image includes:

[0015] extracting a user identifier from the document image;

[0016] Based on the user identification, a corresponding legal face image is obtained from a trusted party.

[0017] According to a second aspect of one or more embodiments of the present specification, an identity authentication method is proposed, comprising: in response to an ID collection instruction, calling a first camera module to collect a first facial image, the first camera module being different from a second camera module that collects the ID image in response to the ID collection instruction; in response to the face collection instruction, collecting a second facial image so as to compare the first facial image with the second facial image, and confirming that the identity authentication has failed if the comparison fails.

[0018] According to a third aspect of one or more embodiments of the present specification, an identity authentication device is proposed, comprising: a first acquisition unit, acquiring a first facial image, wherein the first facial image is acquired by an electronic device through a first camera module in response to an ID collection instruction, and the first camera module is different from a second camera module that acquires an ID image in response to the ID collection instruction; a second acquisition unit, acquiring a second facial image, wherein the second facial image is acquired by the electronic device in response to the facial collection instruction; an image comparison unit, comparing the first facial image and the second facial image; and an identity authentication unit, confirming that the identity authentication has failed if the comparison between the first facial image and the second facial image fails.

[0019] According to a fourth aspect of one or more embodiments of the present specification, an identity authentication device is proposed, comprising: a first acquisition unit, which, in response to an ID acquisition instruction, calls a first camera module to acquire a first facial image, wherein the first camera module is different from a second camera module that acquires an ID image in response to the ID acquisition instruction; a second acquisition unit, which, in response to a facial acquisition instruction, acquires a second facial image so as to compare the first facial image with the second facial image, and confirms that the identity authentication has failed if the comparison fails.

[0020] According to a fifth aspect of one or more embodiments of the present specification, an electronic device is proposed, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor implements the steps of the aforementioned method by running the executable instructions.

[0021] According to a sixth aspect of one or more embodiments of the present specification, a computer-readable storage medium is provided, on which computer instructions are stored, and when the instructions are executed by a processor, the steps of the aforementioned method are implemented.

[0022] According to a seventh aspect of one or more embodiments of the present specification, a computer program product is proposed, comprising a computer program / instruction, which implements the steps of the aforementioned method when executed by a processor.

[0023] It can be seen from the above embodiments that the technical solution provided in this specification can obtain a first facial image collected in response to a document collection instruction, and then compare the first facial image with a second facial image collected in response to the facial collection instruction, and can confirm that the identity authentication has failed if the comparison between the first facial image and the second facial image fails.

[0024] By adopting the above implementation scheme, the first facial image of the user can be collected unconsciously in response to the document collection instruction during the document collection stage, and the first facial image collected without the user's perception can be compared with the second facial image obtained when the user consciously takes a facial photo during the face collection stage. If the comparison between the first facial image and the second facial image fails, it means that the user performing the document collection and the user performing the face collection are not the same person, and there may be an attack behavior. It can be determined that the identity authentication has failed, thereby improving the security of the identity authentication. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 This is a schematic diagram of the architecture of an identity authentication service system provided by an exemplary embodiment.

[0026] Figure 2 It is a flowchart of an identity authentication method provided by an exemplary embodiment.

[0027] Figure 3 It is a flowchart of another identity authentication method provided by an exemplary embodiment.

[0028] Figure 4 It is a flowchart of an identity authentication method for interaction between an electronic device and a server provided by an exemplary embodiment.

[0029] Figure 5 The present invention is a schematic diagram of an electronic device side identity authentication process provided by an exemplary embodiment.

[0030] Figure 6 It is a structural schematic diagram of a device provided by an exemplary embodiment.

[0031] Figure 7 It is a block diagram of an identity authentication device provided by an exemplary embodiment.

[0032] Figure 8 It is a block diagram of another identity authentication device provided by an exemplary embodiment. DETAILED DESCRIPTION

[0033] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this manual are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0034] With the rapid development of financial technology, more and more financial institutions are choosing eKYC (Electronic Know Your Customer) solutions to authenticate users. However, current eKYC solutions are easily hacked when faced with advanced fraud techniques.

[0035] The eKYC solution usually includes two collection stages: document collection and face collection. In the document collection stage, the user's document can be photographed to obtain the user's document image. In the face collection stage, the user's face can be photographed to obtain the user's face image. After the document image and face image are collected, the legitimate user image can be determined based on the document image, and then the user's identity can be authenticated by verifying whether the collected face image matches the legitimate user image.

[0036] However, during the face collection stage, attackers may use advanced fraud techniques such as videos and 3D face masks to deceive the system and affect the security of identity authentication.

[0037] Figure 1 FIG. 1 is a schematic diagram of the architecture of an identity authentication service system provided by an exemplary embodiment. Figure 1 As shown, the system may include a server 11, a network 12, and several electronic devices, such as a PC (Personal Computer) 13, a mobile phone 14, and the like.

[0038] The server 11 may be a physical server including an independent host, or the server 11 may be a virtual server carried by a host cluster. During operation, the server 11 may run a server-side program of a certain application to implement the relevant functions of the application. For example, when the server 11 runs an identity authentication service program, it may be implemented as a corresponding identity authentication service platform.

[0039] PC13 and mobile phone 14 are only some types of electronic devices that users can use. In fact, users can obviously also use electronic devices such as the following types: tablet devices, laptops, PDAs (Personal Digital Assistants), wearable devices (such as smart glasses, smart watches, etc.), etc., and one or more embodiments of this specification do not limit this. During operation, the electronic device can run a program on the client side of a certain application to implement the relevant functions of the application. For example, when the electronic device runs the program of the identity authentication service, it can be implemented as a client of the identity authentication service. Among them, the application program of the client of the above-mentioned identity authentication service can be started and run on the electronic device. The program on the client side can be a native application installed on the electronic device, or the program on the client side can be a small program, a quick application or other similar forms. Of course, when using web page technologies such as HTML5 or similar, the relevant functions can be implemented through the page displayed by the browser. The browser here can be an independent browser application or a browser module embedded in certain applications.

[0040] As for the network 12 for interaction between electronic devices such as PC 13 and mobile phone 14 and server 11, it is possible to select a wired or wireless network to achieve communication based on the communication mode supported by the corresponding electronic device, and this specification does not limit this. For example, PC 13 can support both wired and wireless communication, so it can use a wired or wireless network to achieve communication as needed, while mobile phone 14 usually only supports wireless communication, so it can use a wireless network to achieve communication.

[0041] Figure 2 It is a flowchart of an identity authentication method provided by an exemplary embodiment.

[0042] Please refer to Figure 2 The identity authentication method can be applied to electronic devices, for example, Figure 1 The mobile phone 14 shown includes the following steps:

[0043] Step 202: In response to the certificate collection instruction, call a first camera module to collect a first face image, where the first camera module is different from a second camera module that collects the certificate image in response to the certificate collection instruction.

[0044] For online services with high security requirements, such as remote account opening and online card application, users need to undergo real-name identity authentication to prove that "you are you". Users can use electronic devices to complete the real-name identity authentication process. Taking the eKYC solution as an example, users can first use electronic devices to take photos of their identity documents as the document image. The identity documents may include: identity cards, passports, driver's licenses, and other documents that can prove the identity of the user.

[0045] After starting identity authentication, the user may be prompted to collect the ID card. After preparing the ID card, the user may trigger the ID card collection instruction through controls such as "Start" and "Photograph". Of course, the triggering of the ID card collection instruction is only an example. In other examples, the user may also trigger the ID card collection by user voice, action, etc., or regard the triggering instruction of identity authentication as the ID card collection instruction, etc. This manual does not impose any special restrictions on this.

[0046] In this specification, the electronic device may simultaneously call different camera modules on the device to perform image acquisition in response to the document acquisition instruction.

[0047] On the one hand, the second camera module can be called to capture the ID image, for example, the rear camera of the mobile phone is called to capture the ID image of the user.

[0048] On the other hand, a first camera module different from the second camera module can be called to capture a user's face image as the first face image, for example, calling the front camera of a mobile phone to capture a face image. The first face image is collected based on the aforementioned document collection instruction, which is imperceptible to the user, and a real face image of the user undergoing identity authentication can be captured.

[0049] Still taking a mobile phone as an example, in actual implementation, when the user clicks the shooting control, the front camera and rear camera of the mobile phone will simultaneously shoot images. Among them, the first face image captured by the front camera is the real face image of the user, and the rear camera can capture the ID image of the user.

[0050] Step 204, in response to the face collection instruction, collect a second face image, so as to compare the first face image with the second face image, and if the comparison fails, confirm that the identity authentication fails.

[0051] Still taking the eKYC solution as an example, after collecting the user's ID image, the face collection stage can be entered to prompt the user to collect the face image for verification. Similarly, the user can trigger the face collection instruction through controls such as "Start" and "Photograph", or count down after prompting the user to collect the face image, and automatically trigger the face collection instruction after reaching a preset time, etc. This manual does not impose any special restrictions on this.

[0052] In this specification, in response to the face acquisition instruction, the electronic device may call the camera module to capture the user's face image as the second face image. For example, the front camera of the mobile phone may be called to capture the face image as the second face image. In response to the face acquisition instruction, the first camera module (such as the front camera) of the electronic device may be called, and the second camera module (such as the rear camera) of the electronic device may also be called, and this specification does not impose any special restrictions on this.

[0053] It should be noted that during the identity authentication process, it is usually necessary to perform liveness detection on the user, such as prompting the user to blink, shake his head, open his mouth, etc., to verify that the user is a real person. If the liveness detection fails, it can be directly confirmed that the identity authentication has failed. Among them, the liveness detection process can be completed during the face collection stage, and of course it can also be independent of the face collection stage. This manual does not impose any special restrictions on this.

[0054] In this specification, when performing identity authentication, the collected first face image and the second face image can be compared. If the first face image and the second face image do not match, it can be confirmed that the identity authentication has failed. For example, the similarity between the first face image and the second face image can be calculated. If the similarity is less than a threshold, it can be confirmed that the first face image and the second face image do not match, which means that the first face image and the second face image are not the face images of the same person, and there is a high possibility of attack behavior, and then it can be confirmed that the identity authentication has failed.

[0055] Specifically, take Zhang San as an example. In the real-name identity authentication scenario, when Zhang San performs real-name identity authentication, he will use an electronic device to take an image of his ID card, and then take an image of his face. In this way, the first face image collected by the electronic device in the ID card collection stage should be Zhang San's face image, and the second face image collected in the subsequent face collection stage is also Zhang San's face image. The two should be compared and passed. If the comparison fails, it is likely that the attacker has stolen Zhang San's ID card. In this way, what is collected in the ID card collection stage is Zhang San's ID card image and the attacker's first face image. In the face collection stage, the attacker uses Zhang San's 3D face mask to deceive the system. The collected second face image is Zhang San's face image. In this way, the first face image and the second face image will fail to be compared. The above implementation method provided by this specification can effectively identify this attack behavior in the face collection stage.

[0056] As can be seen from the above description, in response to the document collection instruction, this manual can call the first camera module to collect the first face image while calling the second camera module to collect the document image; in response to the face collection instruction, the second face image can be collected. Then, the first face image and the second face image can be compared, and if the comparison between the first face image and the second face image fails, it is confirmed that the identity authentication has failed, and then the attack behavior on the face collection stage is identified, thereby improving the security of identity authentication.

[0057] It should be noted that the comparison process of the first facial image and the second facial image can be executed by an electronic device or by a server, and this specification does not impose any special restrictions on this.

[0058] Figure 3 It is a flowchart of another identity authentication method provided by an exemplary embodiment.

[0059] Please refer to Figure 3 The identity authentication method can be applied to a server, for example, Figure 1 The server 11 shown includes the following steps:

[0060] Step 302, obtaining a first facial image, where the first facial image is acquired by the electronic device through a first camera module in response to an ID acquisition instruction, and the first camera module is different from a second camera module that acquires an ID image in response to the ID acquisition instruction.

[0061] During the identity authentication process, the server may obtain the image captured by the electronic device. Specifically, the server may obtain the document image and the first face image captured by the electronic device during the document collection phase.

[0062] The document image may be acquired by the electronic device through a second camera module in response to the document acquisition instruction, for example, the document image may be acquired by a mobile phone through a rear camera. The first face image may be acquired by the electronic device through a first camera module different from the second camera module in response to the document acquisition instruction, for example, the first face image may be acquired by a mobile phone through a front camera.

[0063] For example, after triggering the ID collection instruction, the front camera and rear camera of the mobile phone can be called at the same time. When the user clicks to shoot, the front camera can capture the real face image of the user who is using the mobile phone for identity authentication as the first face image, and the rear camera can capture the ID image displayed by the user.

[0064] Step 304: Acquire a second facial image, where the second facial image is acquired by the electronic device in response to a facial acquisition instruction.

[0065] The server may obtain the second face image collected by the electronic device during the face collection phase. The second face image may be collected by the electronic device through a camera module in response to the face collection instruction. For example, it may be collected through a front camera or a rear camera, and this specification does not impose any special restrictions on this.

[0066] Step 306: Compare the first facial image and the second facial image.

[0067] Based on the aforementioned steps 302 and 304 , the server may compare the acquired first facial image and the acquired second facial image.

[0068] When performing facial image comparison, the server can use facial image comparison algorithms such as PCA (Principal Component Analysis) algorithm, LDA (Linear Discriminant Analysis) algorithm, and deep learning algorithm.

[0069] Step 308: If the first facial image and the second facial image fail to be compared, confirm that the identity authentication has failed.

[0070] Based on the comparison result of the aforementioned step 306, when the comparison between the first facial image and the second facial image fails, it means that the first facial image and the second facial image are not facial images of the same person. In this case, there is a high possibility of an attack, and the identity authentication failure can be directly confirmed without referring to the authentication results of other authentication strategies.

[0071] If the first face image and the second face image are compared successfully, it can be determined whether the user has passed the identity authentication based on the authentication results of other authentication strategies. Taking the eKYC solution as an example, a legal face image can be determined based on the acquired ID image, and then the second face image and the legal face image are compared. If the comparison is successful, it can be confirmed that the identity authentication is successful. If the second face image and the legal face image are not compared successfully, even if the first face image and the second face image are compared successfully, it will be confirmed that the identity authentication has failed.

[0072] Among them, the following methods can be used to determine the legal facial image based on the ID image.

[0073] In one example, a user identifier may be extracted from the certificate image, and then a corresponding legal facial image may be obtained from a trusted party based on the user identifier.

[0074] Specifically, OCR (Optical Character Recognition) technology can be used to extract text information from the certificate image, for example, name, address, certificate number and other information can be extracted. Then, the information that can identify the unique user in these text information can be used as the user identification, and based on the user identification, the facial image of the corresponding user can be obtained from the trusted party as a legal facial image. The user identification can be the certificate number, and the trusted party can be an authoritative organization such as the certificate registration party. Taking the identity document as an example, the user's unique ID can be extracted from the certificate, and then the facial image submitted by the user when registering the certificate can be obtained from the trusted party as a legal facial image.

[0075] In another example, the ID image usually includes a user portrait, and a face image can also be extracted from the ID image as the legal face image. For example, the user portrait area can be identified from the ID image through image recognition technology to extract the legal face image.

[0076] It should be noted that, in actual implementation, this specification does not limit the order of facial image comparison. For example, the first facial image and the second facial image may be compared first. If the comparison fails, the second facial image and the legal facial image may not be compared. For another example, the second facial image and the legal facial image may be compared first. If the comparison passes, the first facial image and the second facial image may be compared. If the comparison between the second facial image and the legal facial image fails, the first facial image and the second facial image may not be compared. For another example, the first facial image and the second facial image may be compared, and the second facial image and the legal facial image may be compared at the same time, and the identity authentication result may be determined based on the comparison result. Of course, other implementation methods may also be used, and this specification does not impose any special restrictions on this.

[0077] From the above description, it can be seen that the technical solution provided in this specification can obtain the document image and the first face image collected in the document collection stage, and then compare the first face image with the second face image collected in the face collection stage, and can confirm that the identity authentication has failed if the first face image and the second face image are not consistent and fail.

[0078] By adopting the above implementation scheme, the first facial image of the user can be collected unconsciously in response to the document collection instruction during the document collection stage, and the first facial image collected without the user's perception can be compared with the second facial image obtained when the user consciously takes a facial photo during the face collection stage. If the comparison between the first facial image and the second facial image fails, it means that the user performing the document collection and the user performing the face collection are not the same person, and there may be an attack behavior. It can be determined that the identity authentication has failed, thereby improving the security of the identity authentication.

[0079] Optionally, in another example of the present specification, before comparing the first face image and the second face image, it is possible to first determine whether the first face image is valid, and if the first face image is valid, perform the step of comparing the first face image and the second face image. Valid means that the collected face image can be used for face comparison, for example, including a complete face, with no obstructions, and a clear image, etc., which can be preset by the developer.

[0080] Specifically, due to differences in authentication environments, user operating habits, etc., different users have different shooting methods when taking ID images, which may cause the collected first facial image to be invalid and unable to perform facial comparison. Therefore, this manual can only compare the first facial image and the second facial image when it is confirmed that the first facial image is valid, and confirm that the identity authentication has failed if the comparison between the valid first facial image and the second facial image fails, thereby preventing the misjudgment of the identity authentication result caused by the invalidity of the first facial image due to problems such as the shooting method.

[0081] Taking the use of mobile phones for image acquisition as an example, when acquiring ID images, some users are accustomed to holding the ID with one hand and then holding the phone with the other hand to take pictures. In this way, the rear camera of the mobile phone will capture the ID image, and the front camera of the mobile phone can capture the complete user's face image as the first face image. However, some users are accustomed to placing the ID on a horizontal surface such as a desktop, and then taking pictures with the mobile phone parallel to the ID. This may cause the front camera of the mobile phone to only capture a partial face image. If the first face image with only a partial face is used to compare with the second face image, even if the identity authentication is performed by a legitimate user, the comparison will fail. At this time, if the identity authentication is confirmed to have failed, it will inevitably affect the identity authentication experience of the legitimate user.

[0082] Therefore, before comparing the first face image with the second face image, this embodiment first determines whether the first face image is valid, and if the first face image is valid, performs the steps of comparing the first face image with the second face image, and determining the identity authentication result according to the comparison result. If it is determined that the first face image is invalid, the comparison between the first face image and the second face image may not be performed, and only the original authentication strategy may be used for identity authentication.

[0083] Among them, the method for judging the validity of the first facial image may include: judging whether the face is complete, judging whether the face is blocked, judging whether the image is clear, etc. This specification does not impose any special restrictions on this.

[0084] Before comparing the first facial image and the second facial image, the present instruction manual can first determine whether the first facial image is valid, and if the first facial image is valid, perform the step of comparing the first facial image and the second facial image, thereby avoiding misjudgment of the identity authentication result due to the invalidity of the first facial image due to problems such as shooting habits, and can improve the security of identity authentication without reducing the user experience.

[0085] Figure 4 The present invention is a schematic diagram of an identity authentication process for interaction between an electronic device and a server provided by an exemplary embodiment. Figure 5 This is a schematic diagram of an electronic device side identity authentication process provided by an exemplary embodiment. Please refer to Figure 4 and Figure 5 , the identity authentication method may include the following steps:

[0086] Step 402, in response to the document collection instruction, the electronic device calls the rear camera to collect the document image, and calls the front camera to collect the first face image, and sends the collected document image and the first face image to the server.

[0087] In this example, suppose that the attacker steals Zhang San's ID card for identity authentication. During the ID card collection stage, the rear camera of the mobile phone used by the attacker can collect Zhang San's ID card image, and the front camera can collect the attacker's own face image without the attacker's perception, that is, the first face image is the attacker's face image.

[0088] Step 404, in response to the face collection instruction, the electronic device calls the front camera to collect a second face image, and sends the collected second face image to the server.

[0089] In this example, during the face collection phase, the attacker uses a mobile phone to take a photo of Zhang San's 3D face mask, and the second face image collected is Zhang San's face image.

[0090] Step 406: The server determines whether the first facial image is valid. If valid, the server executes step 408. If invalid, the server executes step 412.

[0091] After receiving the first facial image, the server may first determine whether the first facial image is valid, for example, whether the face of the first facial image is complete, whether the face of the first facial image is blocked, whether the first facial image is clear, etc.

[0092] Step 408 , if the first facial image is valid, the server compares the first facial image with the second facial image. If the comparison fails, the server executes step 410 ; if the comparison passes, the server executes step 412 .

[0093] Based on the judgment result of the aforementioned step 408 , assuming that the server determines that the first facial image is valid, the server may compare the first facial image with the second facial image.

[0094] Step 410, the server determines that the identity authentication has failed.

[0095] Based on the aforementioned step 408, in this example, the first facial image is the facial image of the attacker, and the second facial image is the facial image of Zhang San. The first facial image and the second facial image are bound to fail to match, and the server can directly confirm that the identity authentication has failed.

[0096] In step 412, the server determines a legal face image based on the ID image, and compares the second face image with the legal face image. If the second face image and the legal face image are successfully compared, step 414 is executed. If the second face image and the legal face image are not successfully compared, step 410 is executed.

[0097] In other examples, assuming that the person performing identity authentication is Zhang San himself, then the first facial image is also Zhang San's facial image. If the first facial image and the second facial image are compared, this step can be executed. The server can extract Zhang San's identification from the document image, and then obtain Zhang San's legal facial image from the trusted party based on Zhang San's identification, and can compare the second facial image with the legal facial image.

[0098] In addition, if the server confirms that the first facial image is invalid in the aforementioned step 406, this step may also be executed to compare the second facial image with the legitimate facial image.

[0099] Step 414, the server determines that the identity authentication is successful.

[0100] Based on the aforementioned step 412, if the second facial image and the legitimate facial image are matched, the server can determine that the identity authentication is successful.

[0101] If the second facial image fails to match the legitimate facial image, step 410 may be executed, and the server determines that the identity authentication has failed.

[0102] In this embodiment, the specific implementation of the electronic device collecting images and the server performing image comparison can refer to the aforementioned Figure 2 or Figure 3 The embodiments shown in the specification will not be described in detail here.

[0103] It is worth noting that in the identity authentication process, after collecting the ID image, the user may need to verify the user information identified from the ID image and modify the incorrectly identified information, or the user may be required to manually fill in some information, etc. The processing and implementation of this part can refer to relevant technologies.

[0104] Figure 6 is a schematic structural diagram of a device provided by an exemplary embodiment. Figure 6 At the hardware level, the device includes a processor 602, an internal bus 604, a network interface 606, a memory 608, and a non-volatile memory 610, and may also include hardware required for other functions. One or more embodiments of this specification may be implemented based on software, such as the processor 602 reading the corresponding computer program from the non-volatile memory 610 into the memory 608 and then running it. Of course, in addition to the software implementation, one or more embodiments of this specification do not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0105] Please refer to Figure 7 This specification provides an identity authentication device that can be used in Figure 6 The device shown in the figure is used to implement the technical solution of this specification. The identity authentication device 700 may include:

[0106] A first acquisition unit 701 acquires a first face image, where the first face image is acquired by the electronic device through a first camera module in response to a document acquisition instruction, and the first camera module is different from a second camera module that acquires the document image in response to the document acquisition instruction;

[0107] A second acquiring unit 702 acquires a second face image, where the second face image is acquired by the electronic device in response to a face acquisition instruction;

[0108] An image comparison unit 703 compares the first face image and the second face image;

[0109] The identity authentication unit 704 determines that the identity authentication fails when the first facial image and the second facial image fail to be compared.

[0110] Optionally, before comparing the first facial image with the second facial image, the image comparison unit 703 determines whether the first facial image is valid; if the first facial image is valid, the step of comparing the first facial image with the second facial image is performed.

[0111] Optionally, the image comparison unit 703 determines a legal face image based on the certificate image; and compares the second face image with the legal face image;

[0112] The identity authentication unit 704 confirms that the identity authentication is successful when the second facial image is successfully compared with the legal facial image and the first facial image is successfully compared with the second facial image.

[0113] Optionally, the process of the image comparison unit 703 determining a legal face image based on the certificate image includes:

[0114] A face image is extracted from the certificate image as the legal face image.

[0115] Optionally, the process of the image comparison unit 703 determining a legal face image based on the certificate image includes:

[0116] extracting a user identifier from the document image;

[0117] Based on the user identification, a corresponding legal face image is obtained from a trusted party.

[0118] Please refer to Figure 8 Another identity authentication device of this specification can be applied to Figure 6 The device shown in the figure is used to implement the technical solution of this specification. The identity authentication device 800 may include:

[0119] A first acquisition unit 801, in response to an ID acquisition instruction, calls a first camera module to acquire a first face image, where the first camera module is different from a second camera module that acquires an ID image in response to the ID acquisition instruction;

[0120] The second acquisition unit 802, in response to the face acquisition instruction, acquires a second face image so as to compare the first face image with the second face image, and confirms that the identity authentication fails if the comparison fails.

[0121] Based on the same concept as the above method, this specification also provides an electronic device, including: a processor; a memory for storing processor executable instructions; wherein the processor implements the steps of the method described in any of the above embodiments by running the executable instructions.

[0122] Based on the same concept as the above method, this specification also provides a computer-readable storage medium on which computer instructions are stored. When the instructions are executed by a processor, the steps of the method described in any of the above embodiments are implemented.

[0123] Based on the same concept as the above method, this specification also provides a computer program product, including a computer program / instruction, which implements the steps of the method described in any of the above embodiments when executed by a processor.

Claims

1. An identity authentication method, comprising: Acquire a first facial image, where the first facial image is acquired by the electronic device through a first camera module in response to a document acquisition instruction, and the first camera module is different from a second camera module that acquires the document image in response to the document acquisition instruction; Acquire a second facial image, where the second facial image is acquired by the electronic device in response to a facial acquisition instruction; comparing the first facial image and the second facial image; When the comparison between the first facial image and the second facial image fails, it is confirmed that the identity authentication fails.

2. The method according to claim 1, before comparing the first face image and the second face image, the method further comprises: Determining whether the first facial image is valid; When the first facial image is valid, a step of comparing the first facial image and the second facial image is performed.

3. The method according to claim 1, further comprising: Determining a legal facial image based on the certificate image; comparing the second facial image with the legal facial image; When the second facial image and the legal facial image are successfully compared, and the first facial image and the second facial image are successfully compared, it is confirmed that the identity authentication is successful.

4. According to the method of claim 3, the process of determining a legal face image based on the certificate image comprises: A face image is extracted from the certificate image as the legal face image.

5. According to the method of claim 3, the process of determining a legal face image based on the certificate image comprises: extracting a user identifier from the document image; Based on the user identification, a corresponding legal facial image is obtained from a trusted party.

6. An identity authentication method, comprising: In response to the document collection instruction, calling a first camera module to collect a first face image, the first camera module being different from a second camera module that collects the document image in response to the document collection instruction; In response to the face collection instruction, a second face image is collected to compare the first face image with the second face image, and if the comparison fails, it is confirmed that the identity authentication fails.

7. An identity authentication device, comprising: A first acquisition unit acquires a first face image, where the first face image is acquired by the electronic device through a first camera module in response to a document acquisition instruction, and the first camera module is different from a second camera module that acquires the document image in response to the document acquisition instruction; A second acquiring unit, acquiring a second face image, where the second face image is acquired by the electronic device in response to a face acquisition instruction; an image comparison unit, for comparing the first face image and the second face image; The identity authentication unit confirms that the identity authentication fails when the first facial image and the second facial image fail to be compared.

8. An identity authentication device, comprising: A first acquisition unit, in response to the document acquisition instruction, calls a first camera module to acquire a first face image, the first camera module being different from a second camera module that acquires the document image in response to the document acquisition instruction; The second acquisition unit acquires a second face image in response to the face acquisition instruction, so as to compare the first face image with the second face image, and confirm that the identity authentication fails if the comparison fails.

9. An electronic device, comprising: processor; A memory for storing processor-executable instructions; wherein the processor implements the steps of the method according to any one of claims 1 to 6 by executing the executable instructions.

10. A computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement the steps of the method according to any one of claims 1 to 6.

11. A computer program product, comprising a computer program / instruction, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 6.