Parallel identity authentication method, device, equipment and medium based on face recognition

Through parallel face recognition and fixed speech verification, combined with SMS verification code, the problems of malicious cracking and photo fraud in traditional face recognition technology are solved, and the accuracy and security of identity authentication are improved.

CN113627387BActive Publication Date: 2024-08-27PING AN INT FINANCIAL LEASING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111004918.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-30
Publication Date
2024-08-27
Estimated Expiration
2041-08-30

AI Technical Summary

Technical Problem

Traditional face recognition technology has problems with malicious cracking and photo fraud in identity authentication, resulting in insufficient authentication accuracy.

Method used

Adopting a parallel identity authentication method based on face recognition, by receiving the identity authentication video, collecting at least two pictures to be processed, judging whether there is a face, calling the face authentication interface in parallel for authentication, combining fixed speech verification and SMS verification code, Ensure the accuracy of certification results.

Benefits of technology

It improves the accuracy and security of identity authentication, prevents counterfeit photos, enhances the timeliness and authenticity of authentication, and reduces the risk of non-personal operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113627387B
    Figure CN113627387B
Patent Text Reader

Abstract

The present application relates to the field of artificial intelligence technology, and in particular to a parallel identity authentication method, device, equipment and medium based on face recognition. The method comprises: receiving an identity authentication video recorded by a terminal; sampling the identity authentication video to obtain at least two images to be processed; determining whether there is a face in the image to be processed, and if so, extracting the face area in the image to be processed; calling the face authentication interface in parallel based on the extracted face area to authenticate the face in the face area to obtain a face authentication result; and obtaining an identity authentication result based on the face authentication result. The use of this method can improve the accuracy of authentication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a parallel identity authentication method, device, equipment and medium based on face recognition. Background Art

[0002] With the development of computer technology, face recognition technology has emerged. Face recognition is a biometric technology that identifies people based on their facial features. Face recognition uses a camera or a camera to collect images or video streams containing faces, and automatically detects and tracks faces in the images, and then performs a series of related application operations on the detected face images.

[0003] Among traditional technologies, face recognition technology is widely used in identity authentication. Traditional face recognition is mostly analyzed by guiding the user to take and upload photos. This may lead to malicious cracking by others, such as taking static photos or uploading photos that do not belong to him through means such as secretly taking photos or cheating. The backend cannot fully determine the timeliness and authenticity, resulting in identity authentication failure. Summary of the invention

[0004] Based on this, it is necessary to provide a parallel identity authentication method, device, equipment and medium based on face recognition that can improve authentication accuracy in response to the above technical problems.

[0005] A parallel identity authentication method based on face recognition, the method comprising:

[0006] The recorded identity authentication video sent by the receiving terminal;

[0007] Sampling the identity authentication video to obtain at least two pictures to be processed;

[0008] Determine whether there is a face in the image to be processed, and if so, extract the face area in the image to be processed;

[0009] Calling a face authentication interface in parallel according to the extracted face area to authenticate the face in the face area to obtain a face authentication result;

[0010] An identity authentication result is obtained according to the face authentication result.

[0011] In one embodiment, before extracting the face region in the image to be processed, the method further includes:

[0012] Extracting the facial shapes in the pictures to be processed, and comparing the facial shapes corresponding to the pictures to be processed;

[0013] When there are differences in the facial morphology, the facial region in the to-be-processed image continues to be extracted; otherwise, the to-be-processed facial image with a difference less than a preset value is resampled and replaced.

[0014] In one embodiment, after determining whether there is a face in the image to be processed, the method further includes:

[0015] When the to-be-processed face picture does not contain a face, the to-be-processed face picture that does not contain a face is resampled and replaced.

[0016] In one embodiment, the resampling replacement comprises:

[0017] Obtain the sampling time and preset time interval corresponding to the image to be processed to be resampled;

[0018] Resampling is performed at the preset time interval before or after the sampling time, and when the interval between the sampling time of the resampled image to be processed and the sampling time of the image to be processed that does not need to be resampled is greater than the preset interval, the resampled image to be processed is obtained, and the step of continuing to determine whether there is a face in the image to be processed is continued.

[0019] In one embodiment, the identity authentication video carries fixed words within a preset time period; before sampling the identity authentication video to obtain at least two pictures to be processed, the method further includes:

[0020] Extracting the speech from the identity authentication video to obtain the speech to be verified;

[0021] Comparing the to-be-verified speech with the fixed speech;

[0022] When the to-be-verified speech is successfully compared with the fixed speech, the identity authentication video continues to be sampled to obtain at least two pictures to be processed, otherwise a verification failure result is returned.

[0023] In one embodiment, after obtaining the identity authentication result according to the face authentication result, the method includes:

[0024] When the body authentication result is authentication failure, output a frontal photo acquisition instruction and receive the frontal photo acquired by the terminal;

[0025] Calling a face authentication interface to authenticate the frontal photo to obtain an initial detection result;

[0026] The identity authentication result is updated according to the initial detection result.

[0027] In one embodiment, after updating the identity authentication result according to the initial detection result, the method includes:

[0028] When the initial detection result is successful, a standard SMS verification code is sent to the terminal;

[0029] Receive the SMS verification code returned by the terminal to be processed;

[0030] The identity verification result is updated based on the standard SMS verification code and the pending SMS verification code.

[0031] A parallel identity authentication device based on face recognition, the device comprising:

[0032] A first receiving module, used to receive the recorded identity authentication video sent by the terminal;

[0033] A sampling module, used to sample the identity authentication video to obtain at least two pictures to be processed;

[0034] A judging module, used for judging whether there is a face in the image to be processed, and if so, extracting a face region in the image to be processed;

[0035] An authentication module, used to call a face authentication interface in parallel according to the extracted face area to authenticate the face in the face area to obtain a face authentication result;

[0036] The output module is used to obtain the identity authentication result according to the face authentication result.

[0037] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0038] A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.

[0039] The above-mentioned parallel identity authentication method, device, equipment and medium based on face recognition, by collecting an identity authentication video and collecting at least two pictures to be processed from the identity authentication video, so that face authentication can be performed in parallel later. In order to ensure the accuracy of parallel face authentication, before face authentication, it is first determined whether there is a face in the picture to be processed. If so, parallel face authentication is performed, and the final authentication result is determined based on the results of multiple parallel face authentications, so that the authentication is more accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 is an application environment diagram of a parallel identity authentication method based on face recognition in one embodiment;

[0041] Figure 21 is a flow chart of a parallel identity authentication method based on face recognition in one embodiment;

[0042] Figure 3 is a structural block diagram of a parallel identity authentication device based on face recognition in one embodiment;

[0043] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0045] The parallel identity authentication method based on face recognition provided in this application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The terminal 102 shoots the identity authentication video and sends it to the server 104, and the server 104 receives the recorded identity authentication video sent by the terminal; and samples the identity authentication video to obtain at least two pictures to be processed; judge whether there is a face in the picture to be processed, if so, extract the face area in the picture to be processed; call the face authentication interface in parallel according to the extracted face area to authenticate the face in the face area to obtain the face authentication result; obtain the identity authentication result according to the face authentication result. In this way, by collecting the identity authentication video and collecting at least two pictures to be processed from the identity authentication video, face authentication can be performed in parallel later, and in order to ensure the accuracy of parallel face authentication, before face authentication, it is first judged whether there is a face in the picture to be processed. If it exists, parallel face authentication is performed, and the final authentication result is determined according to the results of multiple parallel face authentications, so that the authentication is more accurate.

[0046] The terminal 102 may be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0047] In one embodiment, Figure 2 As shown in FIG, a parallel identity authentication method based on face recognition is provided, and the method is applied to Figure 1 The server in the example is used to illustrate the following steps:

[0048] S202: receiving the recorded identity authentication video sent by the terminal.

[0049] Specifically, the identity authentication video is shot by the terminal and sent to the server. In one scenario, for example, when a customer signs a contract electronically, he needs to complete key prompts and contract preview, and then enter the signing video entry interface, so that the terminal can record the identity authentication video through this interface.

[0050] Optionally, before recording the identity authentication video, the server generates a fixed script based on the contract sent by the terminal, such as extracting a sentence from the contract, etc. The server sends the generated fixed script to the terminal, and the terminal displays the fixed script on the identity authentication video entry interface, and the user needs to say the fixed script when recording the identity authentication video. Introducing fixed scripts in this way ensures that the customer is subjective and truly operates, and can think about the importance and willingness of this operation by himself. Adding video shooting scenes allows customers to confirm again whether this action is not affected by any objective factors, and control the validity, authenticity, and importance of the contract signing.

[0051] It should be noted that when recording fixed words, the terminal must also meet time requirements, such as recording must be completed within a certain time, otherwise the recording fails. For example, the recording must be completed within 30 seconds. The certain time setting here is related to the sampling time point of the identity authentication video sampling. By combining the two, sampling can be achieved only through simple time control, making sampling simpler.

[0052] S204: Sampling the identity authentication video to obtain at least two pictures to be processed.

[0053] Specifically, the sampling can be obtained by sampling according to the frequency preset by the server, for example, taking a screenshot at a preset time after the video starts, wherein the screenshot can be taken 5 seconds after the video starts, for example, assuming that the shooting time is 20 seconds, screenshots can be taken at 5 seconds, 10 seconds and 15 seconds to obtain three pictures to be processed, wherein it should be noted that the sampling frequency of the pictures to be processed can be set as needed, and it is only necessary to ensure that there is a certain interval between the three pictures to be processed, for example, more than 1 second. In this way, by combining video recording with silent liveness detection technology, it can be directly acquired through the camera, which can be completed quickly, conveniently and contactlessly, and the operation is very convenient. Since the traditional image processing feature operator method is more or less affected by irresistible factors such as visualization, angle and distance in actual application and testing, the video shooting link is integrated in this embodiment to automatically obtain multiple portrait images and realize the re-examination of multiple portrait features.

[0054] S206: Determine whether there is a face in the image to be processed, and if so, extract the face region in the image to be processed.

[0055] Specifically, judging whether there is a face in the image to be processed can be based on a pre-trained model, which can be trained by a fast model, and does not require accurate face recognition, but only requires a general determination of whether there is a face in the image. Extracting the face region in the image to be processed can be the same model as judging whether there is a face in the image to be processed, that is, directly obtaining the face region in the image to be processed, and if it can be obtained, judging that there is a face, and outputting the face region, otherwise determining that there is no face in the image to be processed.

[0056] S208: Calling a face authentication interface in parallel according to the extracted face region to authenticate the face in the face region to obtain a face authentication result.

[0057] Specifically, in this embodiment, the parallel calling of the face recognition interface can be determined according to the number of extracted pictures to be processed, and the number of calling threads is determined according to the number of pictures to be processed. The corresponding face recognition interface is called in each calling thread to process the pictures to be processed in the calling thread and obtain the corresponding face recognition result, wherein preferably, one calling thread processes one picture to be processed. In this way, even when processing multiple pictures to be processed, fast processing can be achieved by calling the face recognition interface in parallel. The function of the face recognition interface is to compare the picture to be processed with the ID card head portrait in the standard library.

[0058] S210: Obtaining an identity authentication result according to the face authentication result.

[0059] Specifically, the server collects the face authentication results of each calling thread and processes the face authentication results to obtain the identity authentication result. Preferably, the server counts the face authentication results, and if all face authentication results are successful, the identity authentication result is a successful authentication, otherwise the identity authentication result is a failed authentication.

[0060] Preferably, the server can output the to-be-processed picture that fails authentication to the terminal to prompt the terminal to re-record the video, etc.

[0061] The above-mentioned parallel identity authentication method based on face recognition collects an identity authentication video and collects at least two pictures to be processed from the identity authentication video, so that face authentication can be performed in parallel later. In order to ensure the accuracy of parallel face authentication, before face authentication, it is first determined whether there is a face in the picture to be processed. If so, parallel face authentication is performed, and the final authentication result is determined based on the results of multiple parallel face authentications, making the authentication more accurate.

[0062] In one of the embodiments, before extracting the face area in the picture to be processed, it also includes: extracting the face shape in the picture to be processed, and comparing the face shapes corresponding to each picture to be processed; when there are differences in the face shapes, continue to extract the face area in the picture to be processed, otherwise, resample and replace the face picture to be processed whose difference is less than a preset value.

[0063] Specifically, the face morphology can be obtained based on a shape model, such as a regular global shape model, such as the detection of independent feature points, the initialization search area is set at a specific position, and a series of rules are stipulated, such as the eyes are located above the nose, the nose is above the mouth, and the proportional relationship between the distances between specific feature points, so as to obtain the face morphology. The face morphology can refer to the position distance or posture change between various organs of the face, such as the degree of mouth opening, the degree of eye opening, etc., and then compare the face morphology in each of the images to be processed. When there are differences in the face morphology, continue to extract the face area in the image to be processed. If the morphological difference is small, it means that the face area may be extracted from the same image, so the face image is resampled and replaced. For example, the sampled images are exactly the same due to recording jams.

[0064] In the above embodiment, by collecting pictures of different facial shapes to perform face recognition, the accuracy of recognition is guaranteed.

[0065] In one of the embodiments, after determining whether there is a face in the image to be processed, the method further includes: when there is no face in the image to be processed, resampling and replacing the image to be processed that does not contain a face.

[0066] Specifically, in this embodiment, a processing method is used when there is no face in the sampled image to be processed. Specifically, for example, a face may flash out of the screen a few seconds before video recording, after video recording is completed, or during video recording. In this case, in order to ensure the accuracy of face recognition, it is first determined whether there is a face in the image to be processed. If not, the image to be processed is resampled to obtain the image to be processed, thereby laying a foundation for the accuracy of subsequent face recognition.

[0067] In one embodiment, the resampling replacement includes: obtaining the sampling time and preset time interval corresponding to the image to be processed to be resampled; resampling at the preset time interval position before or after the sampling time, and when the interval between the sampling time of the resampled image to be processed and the sampling time of the image to be processed that does not need to be resampled is greater than the preset interval, obtaining the resampled image to be processed, and continuing to determine whether there is a face in the image to be processed.

[0068] Specifically, the sampling time of the resampled image to be processed refers to the time point of the image to be processed in the entire video, and the preset time interval is the preset resampling time interval, which refers to the time interval between the newly sampled image to be processed and the time point of the resampled image to be processed. Among them, the server re-determines the new sampling time according to the preset time interval and the sampling time, and performs sampling to obtain a new image to be processed. The determination of the new sampling time also needs to ensure that the spacing with the sampling time of the image to be processed that does not need to be resampled is greater than the preset spacing, such as 1 second in the above text. In this way, if the new sampling time forward or backward meets the requirements, one can be randomly selected, and then the steps in the above text are continued. And one thing that needs to be explained is that if the image to be processed collected at the new sampling time in the future still does not have a face, the sampling is based on the new sampling time forward of the original sampling time to ensure that the image to be processed containing a face is obtained.

[0069] Optionally, when determining the new sampling time, the server may also determine the position of the original sampling time. If it is the first sampling time, the new sampling time in the future is preferred; if it is the last sampling time, the new sampling time in the past is preferred.

[0070] In one of the embodiments, the identity authentication video carries fixed words within a preset time period. Before sampling the identity authentication video to obtain at least two pictures to be processed, it also includes: extracting words from the identity authentication video to obtain words to be verified; comparing the words to be verified with the fixed words; when the words to be verified are successfully compared with the fixed words, continue sampling the identity authentication video to obtain at least two pictures to be processed, otherwise return a verification failure result.

[0071] Specifically, the method for generating fixed words can be found above. In this embodiment, before the server samples the identity authentication video, it verifies whether the video recording meets the requirements by identifying the words in the identity authentication video. For example, after the server receives the identity authentication video, it first extracts voice from the identity authentication video and converts the extracted voice into text, i.e., the words to be processed. The words to be processed are then compared with the fixed words. If the comparison is successful, for example, the similarity reaches more than 90%, it is considered that the identity authentication video is successfully shot, and the next step of sampling is continued.

[0072] Optionally, when the server extracts the voice of the identity authentication video, it also obtains the voice start time and the voice end time, so that when sampling the identity authentication video, it can only sample from the part of the video where the voice exists, ensuring the accuracy of the sampling, and when resampling, it also only samples from the part where the voice exists.

[0073] In one of the embodiments, after obtaining the identity authentication result based on the face authentication result, it includes: when the face authentication result is authentication failure, outputting a front photo collection instruction and receiving the front photo collected by the terminal; calling the face authentication interface to authenticate the front photo to obtain an initial detection result; and updating the identity authentication result according to the initial detection result.

[0074] In one of the embodiments, after the identity authentication result is updated according to the initial detection result, it includes: when the initial detection result is a successful detection, sending a standard SMS verification code to the terminal; receiving the pending SMS verification code returned by the terminal; and updating the identity authentication result based on the standard SMS verification code and the pending SMS verification code.

[0075] In the above embodiment, when the face authentication fails, the server also sends a frontal photo collection instruction to the terminal, thereby collecting the frontal photo of the user, and calling the corresponding face authentication interface according to the frontal photo to obtain the initial detection result. If all the tests pass, the system will send a text message verification code to verify again whether it is the person's operation. After completing the text message verification, the contract is signed successfully.

[0076] In the above embodiment, the proposed video face recognition technology can verify the timeliness and authenticity of the video uploaded by the customer. The customer needs to shoot a specified video according to the preset instructions and the specified random requirements. After uploading, it will be verified whether the customer is himself based on the uploaded video, and through the preset rules, it will be analyzed whether the video shot by the customer is shot according to the specified rules, so as to judge its timeliness and authenticity, eliminate the scenario of impersonation and duplicate shooting, make the actual application scenario safer and controllable, reduce the risk of non-personality, improve risk compliance, and thus eliminate possible economic and human losses.

[0077] It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0078] In one embodiment, Figure 3As shown, a parallel identity authentication device based on face recognition is provided, comprising: a first receiving module 301, a sampling module 302, a judgment module 303, an authentication module 304 and an output module 305, wherein:

[0079] The first receiving module 301 is used to receive the recorded identity authentication video sent by the terminal;

[0080] A sampling module 302 is used to sample the identity authentication video to obtain at least two pictures to be processed;

[0081] A determination module 303 is used to determine whether there is a face in the image to be processed, and if so, extract the face area in the image to be processed;

[0082] An authentication module 304 is used to call a face authentication interface in parallel according to the extracted face area to authenticate the face in the face area to obtain a face authentication result;

[0083] The output module 305 is used to obtain the identity authentication result according to the face authentication result.

[0084] In one embodiment, the above-mentioned parallel identity authentication device based on face recognition may also include:

[0085] A morphology extraction module is used to extract the facial morphology in the image to be processed and compare the facial morphology corresponding to each image to be processed;

[0086] The resampling module 302 is used to continue extracting the face area in the image to be processed when there is a difference in the face morphology; otherwise, resample and replace the face image to be processed whose difference is less than a preset value.

[0087] In one of the embodiments, the resampling module 302 is further configured to resample and replace the face image to be processed that does not contain a face when the face image to be processed does not contain a face.

[0088] In one embodiment, the resampling module 302 includes:

[0089] A time acquisition unit, used to acquire a sampling time and a preset time interval corresponding to the image to be processed and to be resampled;

[0090] The resampling unit is used to resample at a preset time interval before or after the sampling time, and when the interval between the sampling time of the resampled image to be processed and the sampling time of the image to be processed that does not need to be resampled is greater than the preset interval, the resampled image to be processed is obtained, and the step of continuing to determine whether there is a face in the image to be processed is continued.

[0091] In one embodiment, the identity authentication video carries fixed words within a preset time period; the above-mentioned parallel identity authentication device based on face recognition may also include:

[0092] A speech extraction module is used to extract speech from the identity authentication video to obtain the speech to be verified;

[0093] A comparison module, used to compare the speech to be verified with the fixed speech;

[0094] The loop module is used to continue sampling the identity authentication video to obtain at least two pictures to be processed when the to-be-verified words are compared successfully with the fixed words, otherwise the verification failure result is returned.

[0095] In one embodiment, the above-mentioned parallel identity authentication device based on face recognition may also include:

[0096] The second receiving module is used to output a front-view photo acquisition instruction and receive the front-view photo acquired by the terminal when the authentication result is an authentication failure;

[0097] The authentication module 304 is also used to call the face authentication interface to authenticate the frontal photo to obtain an initial detection result;

[0098] The update module is used to update the identity authentication result according to the initial detection result.

[0099] In one embodiment, the above-mentioned parallel identity authentication device based on face recognition may also include:

[0100] The sending module is used to send a standard SMS verification code to the terminal when the initial detection result is a successful detection;

[0101] The third receiving module is used to receive the SMS verification code to be processed returned by the terminal;

[0102] The above-mentioned update module is used to update the identity authentication result based on the standard SMS verification code and the pending SMS verification code.

[0103] For the specific limitations of the parallel identity authentication device based on face recognition, please refer to the limitations of the parallel identity authentication method based on face recognition above, which will not be repeated here. Each module in the above-mentioned parallel identity authentication device based on face recognition can be implemented in whole or in part through software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can 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.

[0104] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store XXX data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a parallel identity authentication method based on face recognition is implemented.

[0105] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0106] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: receiving an input identity authentication video sent by a terminal; sampling the identity authentication video to obtain at least two pictures to be processed; determining whether there is a face in the picture to be processed, and if so, extracting the face area in the picture to be processed; calling a face authentication interface in parallel based on the extracted face area to authenticate the face in the face area to obtain a face authentication result; and obtaining an identity authentication result based on the face authentication result.

[0107] In one embodiment, before extracting the face area in the image to be processed implemented by the processor when executing the computer program, it also includes: extracting the face shape in the image to be processed, and comparing the face shapes corresponding to each image to be processed; when there are differences in the face shapes, continue to extract the face area in the image to be processed, otherwise, resample and replace the face image to be processed whose difference is less than a preset value.

[0108] In one embodiment, after determining whether there is a face in the image to be processed when the processor executes the computer program, the method further includes: when there is no face in the image to be processed, resampling and replacing the image to be processed without a face.

[0109] In one embodiment, the resampling replacement implemented when the processor executes the computer program includes: obtaining the sampling time and preset time interval corresponding to the image to be processed to be resampled; resampling at the preset time interval position before or after the sampling time, and when the interval between the sampling time of the resampled image to be processed and the sampling time of the image to be processed that does not need to be resampled is greater than the preset interval, obtaining the resampled image to be processed, and continuing to determine whether there is a face in the image to be processed.

[0110] In one embodiment, the identity authentication video implemented when the processor executes the computer program carries fixed words within a preset time period; before the identity authentication video is sampled to obtain at least two pictures to be processed when the processor executes the computer program, it also includes: extracting words from the identity authentication video to obtain words to be verified; comparing the words to be verified with the fixed words; when the words to be verified are successfully compared with the fixed words, continue sampling the identity authentication video to obtain at least two pictures to be processed, otherwise return a verification failure result.

[0111] In one embodiment, after the processor obtains the identity authentication result based on the face authentication result when executing the computer program, it includes: when the face authentication result is an authentication failure, outputting a front photo collection instruction and receiving the front photo collected by the terminal; calling the face authentication interface to authenticate the front photo to obtain an initial detection result; and updating the identity authentication result according to the initial detection result.

[0112] In one embodiment, after the processor executes the computer program, the identity authentication result is updated according to the initial detection result, including: when the initial detection result is a successful detection, sending a standard SMS verification code to the terminal; receiving the pending SMS verification code returned by the terminal; and updating the identity authentication result based on the standard SMS verification code and the pending SMS verification code.

[0113] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: receiving an input identity authentication video sent by a terminal; sampling the identity authentication video to obtain at least two pictures to be processed; determining whether there is a face in the picture to be processed, and if so, extracting the face area in the picture to be processed; calling a face authentication interface in parallel based on the extracted face area to authenticate the face in the face area to obtain a face authentication result; and obtaining an identity authentication result based on the face authentication result.

[0114] In one embodiment, before extracting the face area in the image to be processed, the computer program implemented when executed by the processor also includes: extracting the face morphology in the image to be processed, and comparing the face morphology corresponding to each image to be processed; when there is a difference in the face morphology, continue to extract the face area in the image to be processed, otherwise, resample and replace the face image to be processed whose difference is less than a preset value.

[0115] In one embodiment, after determining whether there is a face in the image to be processed when the computer program is executed by the processor, it also includes: when there is no face in the image to be processed, resampling and replacing the image to be processed without a face.

[0116] In one embodiment, the resampling replacement implemented when the computer program is executed by the processor includes: obtaining the sampling time and preset time interval corresponding to the image to be processed to be resampled; resampling at the preset time interval position before or after the sampling time, and when the interval between the sampling time of the resampled image to be processed and the sampling time of the image to be processed that does not need to be resampled is greater than the preset interval, obtaining the resampled image to be processed, and continuing to determine whether there is a face in the image to be processed.

[0117] In one embodiment, the identity authentication video implemented when the computer program is executed by the processor carries fixed words within a preset time period; before the identity authentication video is sampled to obtain at least two pictures to be processed when the computer program is executed by the processor, it also includes: extracting words from the identity authentication video to obtain words to be verified; comparing the words to be verified with the fixed words; when the words to be verified are successfully compared with the fixed words, continue sampling the identity authentication video to obtain at least two pictures to be processed, otherwise return a verification failure result.

[0118] In one embodiment, after obtaining the identity authentication result based on the face authentication result, the computer program implemented when executed by the processor includes: when the face authentication result is an authentication failure, outputting a front photo acquisition instruction and receiving the front photo acquired by the terminal; calling the face authentication interface to authenticate the front photo to obtain an initial detection result; and updating the identity authentication result according to the initial detection result.

[0119] In one embodiment, after the computer program is executed by the processor, the identity authentication result is updated according to the initial detection result, including: when the initial detection result is a successful detection, sending a standard SMS verification code to the terminal; receiving the pending SMS verification code returned by the terminal; and updating the identity authentication result based on the standard SMS verification code and the pending SMS verification code.

[0120] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0121] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0122] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0123] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can 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 or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0124] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, 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, they should be considered to be within the scope of this specification.

[0125] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A parallel identity authentication method based on face recognition, characterized in that: The method comprises: The recorded identity authentication video sent by the receiving terminal; Sampling the identity authentication video to obtain at least two pictures to be processed; Determine whether there is a face in the image to be processed, and if so, extract the face area in the image to be processed; Calling the face authentication interface in parallel according to the extracted face area to authenticate the face in the face area to obtain a face authentication result, wherein the number of parallel calls to the face authentication interface is determined according to the number of extracted pictures to be processed, and the number of calling threads is determined according to the number of pictures to be processed, and calling the corresponding face authentication interface in each calling thread to process the pictures to be processed in the calling thread and obtain the corresponding face authentication result; Obtaining an identity authentication result according to the face authentication result, including: collecting the face authentication results of each calling thread, and processing the face authentication results to obtain an identity authentication result; Before extracting the face area in the image to be processed, the method further includes: Extracting the facial shapes in the pictures to be processed, and comparing the facial shapes corresponding to the pictures to be processed; When there is a difference in the face morphology, continue to extract the face area in the image to be processed, otherwise, resample and replace the face image to be processed whose difference is less than a preset value; The resampling replacement includes: Obtain the sampling time and preset time interval corresponding to the image to be processed to be resampled; Resampling is performed at the preset time interval position before or after the sampling time, and when the interval between the sampling time of the resampled image to be processed and the sampling time of the image to be processed that does not need to be resampled is greater than the preset interval, obtaining the resampled image to be processed, and continuing to determine whether there is a face in the image to be processed; After determining whether there is a face in the image to be processed, the method further includes: When the to-be-processed face picture does not contain a face, the to-be-processed face picture that does not contain a face is resampled and replaced.

2. The method according to claim 1, characterized in that The identity authentication video carries fixed words within a preset time period; before sampling the identity authentication video to obtain at least two pictures to be processed, the method further includes: Extracting the speech from the identity authentication video to obtain the speech to be verified; Comparing the to-be-verified speech with the fixed speech; When the to-be-verified speech is successfully compared with the fixed speech, the identity authentication video continues to be sampled to obtain at least two pictures to be processed, otherwise a verification failure result is returned.

3. The method according to claim 1, characterized in that: After obtaining the identity authentication result according to the face authentication result, the method includes: When the body authentication result is authentication failure, output a frontal photo acquisition instruction and receive the frontal photo acquired by the terminal; Calling a face authentication interface to authenticate the frontal photo to obtain an initial detection result; The identity authentication result is updated according to the initial detection result.

4. The method according to claim 3, characterized in that After the identity authentication result is updated according to the initial detection result, the method includes: When the initial detection result is successful, a standard SMS verification code is sent to the terminal; Receive the SMS verification code returned by the terminal to be processed; The identity authentication result is updated based on the standard SMS verification code and the pending SMS verification code.

5. A parallel identity authentication device based on face recognition, characterized in that: The device comprises: A first receiving module, used to receive the recorded identity authentication video sent by the terminal; A sampling module, used for sampling the identity authentication video to obtain at least two pictures to be processed; A judging module, used for judging whether there is a face in the image to be processed, and if so, extracting a face region in the image to be processed; An authentication module is used to call a face authentication interface in parallel according to the extracted face area to authenticate the face in the face area to obtain a face authentication result, wherein the parallel calling of the face authentication interface is determined according to the number of extracted pictures to be processed, the number of calling threads is determined according to the number of pictures to be processed, and the corresponding face authentication interface is called in each calling thread to process the pictures to be processed in the calling thread and obtain the corresponding face authentication result; An output module, used to obtain an identity authentication result according to the face authentication result, collect the face authentication results of each calling thread, and process the face authentication results to obtain an identity authentication result; A morphology extraction module, used to extract the face morphology in the image to be processed, and compare the face morphology corresponding to each of the images to be processed; A resampling module, used for continuing to extract the face area in the image to be processed when there is a difference in the face morphology, otherwise, resampling and replacing the face image to be processed whose difference is less than a preset value; The resampling module comprises: A time acquisition unit, used to acquire a sampling time and a preset time interval corresponding to the image to be processed and to be resampled; a resampling unit, configured to resample at the preset time interval before or after the sampling time, and when the interval between the sampling time of the resampled image to be processed and the sampling time of the image to be processed that does not need to be resampled is greater than the preset interval, obtain the resampled image to be processed, and continue to determine whether there is a face in the image to be processed; The resampling module is also used for resampling and replacing the to-be-processed face picture without a face when the to-be-processed face picture does not contain a face.

6. The device according to claim 5, characterized in that The identity authentication video carries fixed words within a preset time period; the device also includes: A speech extraction module, used for extracting speech from the identity authentication video to obtain speech to be verified; A comparison module, used for comparing the to-be-verified speech with the fixed speech; The loop module is used to continue sampling the identity authentication video to obtain at least two pictures to be processed when the to-be-verified speech is successfully compared with the fixed speech, otherwise, a verification failure result is returned.

7. The device according to claim 5, characterized in that The device also includes: A second receiving module is used to output a front-view photo acquisition instruction and receive a front-view photo acquired by a terminal when the body authentication result is an authentication failure; The authentication module is also used to call the face authentication interface to authenticate the frontal photo to obtain an initial detection result; An updating module is used to update the identity authentication result according to the initial detection result.

8. The device according to claim 7, characterized in that The device also includes: A sending module, used for sending a standard SMS verification code to the terminal when the initial detection result is a successful detection; The third receiving module is used to receive the SMS verification code to be processed returned by the terminal; The updating module is further used to update the identity authentication result based on the standard SMS verification code and the to-be-processed SMS verification code.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.