Identity identification method, device, computer equipment and storage medium

By shunting image data into multiple identity recognition paths and using different identity recognition methods, artificial intelligence technology is used to quickly match identity information, solving the problem of low identity recognition efficiency in mobile payments and achieving fast and accurate identity recognition.

CN114429669BActive Publication Date: 2024-10-18TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011101454.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-15
Publication Date
2024-10-18
Estimated Expiration
2040-10-15

AI Technical Summary

Technical Problem

The existing identity recognition solutions for mobile payment are cumbersome to operate, and it is easy for the selected identity recognition method to be inconsistent with the provided image information, resulting in low identity recognition efficiency.

Method used

By obtaining the image data to be identified, it is diverted to multiple identification paths, and different special identification methods are used for identification on each path. Artificial intelligence and machine learning technology are used to quickly match identity information and improve identification. efficiency.

Benefits of technology

There is no need for the user to choose an identification method. The image data is directly obtained and diverted to multiple paths for identification, ensuring the fastest return of identification results, improving identification efficiency, and reducing operating steps and calculations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114429669B_ABST
    Figure CN114429669B_ABST
Patent Text Reader

Abstract

The present application relates to an identity recognition method, device, computer equipment and storage medium. The method comprises: obtaining image data to be identified; diverting the image data to different identity recognition paths; using a corresponding special identity recognition method to identify the image data on each identity recognition path; using different special identity recognition methods for different identity recognition paths; when a corresponding special identity recognition result is generated on any identity recognition path, outputting the special identity recognition result as an identity recognition result for the image data. The use of this method can improve the efficiency of identity recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an identity recognition method, apparatus, computer device and storage medium. Background Art

[0002] With the development of computer technology, mobile payment technology has been widely used in daily life. Different mobile payment modes correspond to their own identity recognition methods. In the current mobile payment identity recognition scheme, the user selects at least one identity recognition method on the payment device and ensures that the payment device can collect image information matching the identity recognition method so that the payment device can recognize the user's identity information based on the image information.

[0003] However, the above-mentioned mobile payment identity recognition scheme is cumbersome to operate, and it is easy for the selected identity recognition method to be inconsistent with the provided image information. The user needs to perform repeated operations to complete the identity recognition, resulting in low efficiency of mobile payment identity recognition. Summary of the invention

[0004] Based on this, it is necessary to provide an identity recognition method, device, computer equipment and storage medium that can improve the efficiency of identity recognition in response to the above technical problems.

[0005] An identity recognition method, the method comprising:

[0006] Acquiring image data to be identified;

[0007] Diverting the image data to different identity recognition paths;

[0008] On each identity recognition path, a corresponding special identity recognition method is used to identify the image data; different identity recognition paths use different special identity recognition methods;

[0009] When a corresponding special identity recognition result is generated on any identity recognition path, the special identity recognition result is output as the identity recognition result for the image data.

[0010] An identity recognition device, comprising:

[0011] An image data acquisition module, used to acquire image data to be identified;

[0012] An image data distribution module, used for distributing the image data to different identity recognition paths;

[0013] An identity recognition module, used to perform identity recognition on the image data using a corresponding special identity recognition method on each identity recognition path; different identity recognition paths use different special identity recognition methods;

[0014] The recognition result output module is used to output the corresponding special identity recognition result as the identity recognition result for the image data after the corresponding special identity recognition result is generated on any identity recognition path.

[0015] In one embodiment, the identity identification path determination module is further used to:

[0016] When the information carrying object is a graphic code information carrying object, determining that the identity recognition path corresponding to the information carrying object is a graphic code recognition path;

[0017] When the information carrying object is a biometric information carrying object, it is determined that the identity recognition path corresponding to the information carrying object is a biometric recognition path.

[0018] In one embodiment, the identity identification path determination module is further used to:

[0019] When the information carrying object is an object carrying biometric information, performing liveness detection on the information carrying object based on the image data;

[0020] If the liveness detection of the information carrying object passes, it is determined that the identity recognition path corresponding to the information carrying object is a biometric feature recognition path.

[0021] In one embodiment, the image data distribution module is further used to:

[0022] Data is copied according to the number of pre-configured identity recognition paths to generate a plurality of image data corresponding to the plurality of identity recognition paths;

[0023] Each of the plurality of image data is shunted to a one-to-one corresponding identity recognition path.

[0024] In one embodiment, the identity recognition module is further used to:

[0025] On each identity recognition path, a corresponding special image extraction method is used to separate a special optimal image from the image data;

[0026] The special optimal image is identified by using a special identity recognition method corresponding to the special image extraction method.

[0027] In one embodiment, the image data is a video stream uploaded by a terminal; the image data splitting module is further used to:

[0028] Reading editable multi-path identification configuration information through a streaming media service, determining different identity identification paths according to the multi-path identification configuration information, and dividing the image data into different identity identification paths;

[0029] The recognition result output module is further used for:

[0030] The special identity recognition result is output to the terminal as an identity recognition result for the image data through a streaming media service.

[0031] In one embodiment, the recognition result output module is further used to:

[0032] When a corresponding special identity recognition result is generated on any identity recognition path, the special identity recognition result is output to the scheduling service;

[0033] outputting the special identity recognition result as an identity recognition result for the image data through the scheduling service;

[0034] Through the scheduling service, in response to the received special identity identification result, a notification of stopping the identification process is sent to other identity identification paths in the diverted identity identification paths except the identity identification path that generates the special identity identification result.

[0035] In one embodiment, the recognition result output module is further used to:

[0036] Receiving, through a resource transfer service, an identity recognition result output by the scheduling service;

[0037] Through the resource transfer service, in response to the identity identification result, the resource transfer amount and the resource recipient account are obtained, the corresponding resource provider account is determined according to the identity identification result, and the resource transfer from the resource provider account to the resource recipient account according to the resource transfer amount is triggered.

[0038] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0039] Acquiring image data to be identified;

[0040] Diverting the image data to different identity recognition paths;

[0041] On each identity recognition path, a corresponding special identity recognition method is used to identify the image data; different identity recognition paths use different special identity recognition methods;

[0042] When a corresponding special identity recognition result is generated on any identity recognition path, the special identity recognition result is output as the identity recognition result for the image data.

[0043] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0044] Acquiring image data to be identified;

[0045] Diverting the image data to different identity recognition paths;

[0046] On each identity recognition path, a corresponding special identity recognition method is used to identify the image data; different identity recognition paths use different special identity recognition methods;

[0047] When a corresponding special identity recognition result is generated on any identity recognition path, the special identity recognition result is output as the identity recognition result for the image data.

[0048] The above-mentioned identity recognition method, device, computer equipment and storage medium directly obtain the image data to be identified without the user selecting an identity recognition method, and divert the image data to multiple different identity recognition paths, and on each identity recognition path, use a corresponding special identity recognition method to identify the diverted image data, wherein different identity recognition paths use different special identity recognition methods, and when a corresponding special identity recognition result is generated on any identity recognition path, the special identity recognition result is output as the identity recognition result for the image data, ensuring the fastest return of the identity recognition result, thereby improving the identity recognition efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 A diagram of an application environment of an identity recognition method in an embodiment;

[0050] Figure 2 is a flow chart of an identity recognition method in one embodiment;

[0051] Figure 3 A schematic diagram of a flow chart of a step of determining an identity recognition path to be diverted in one embodiment;

[0052] Figure 4 is a flow chart of an identity recognition method in another embodiment;

[0053] Figure 5 is a flow chart of an identity recognition method in another embodiment;

[0054] Figure 6is a structural block diagram of an identity recognition device in an embodiment;

[0055] Figure 7 is a structural block diagram of an identity recognition device in another embodiment;

[0056] Figure 8 is a structural block diagram of an identity recognition device in another embodiment;

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

[0058] 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.

[0059] The identity recognition method provided by 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 and the server 104 can be used to execute the identification method separately, and the terminal 102 can also execute the identification method together with the server 104 through the network. For example, the terminal 102 has a built-in image acquisition device, and the terminal 102 can call the image acquisition device to scan the object to be identified within a preset range, and shoot the object to be identified to obtain the image data to be identified. The terminal 102 can execute the identification method locally, or the terminal 102 sends the image data to be identified to the server 104. After the server 104 obtains the image data to be identified, it will divert the image data to different identification paths; on each identification path, the image data is identified by using a corresponding special identification method; different identification paths use different special identification methods; when a corresponding special identification result is generated on any identification path, the special identification result is output as the identification result for the image data. 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.

[0060] It should be noted that the terminal 102 may specifically be a business processing device. When the identity recognition method is applied to an access control system, the terminal 102 may specifically be an access control device; when the identity recognition method is applied to a payment system, the terminal 102 may specifically be an offline payment device, etc. It is understood that when the identity recognition method is applied to different business systems that require identity recognition, the terminal 102 may specifically be a corresponding business processing device.

[0061] It should also be noted that the steps of using a special identity recognition method to identify the image data in the identity recognition method mentioned in each embodiment of the present application can be specifically achieved by training a machine learning model with corresponding functions 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. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that the machines have the functions of perception, reasoning and decision-making.

[0062] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0063] It can be understood that the identity recognition method in each embodiment of the present application specifically involves the machine learning technology of artificial intelligence, among which machine learning (ML) is a multi-field interdisciplinary subject involving probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all fields of artificial intelligence. Machine learning and deep learning generally include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and teaching learning.

[0064] It can be understood that the identity recognition method in each embodiment of the present application specifically involves the machine learning technology of artificial intelligence, among which machine learning (ML) is a multi-field interdisciplinary subject involving probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all fields of artificial intelligence. Machine learning and deep learning generally include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and teaching learning.

[0065] In one embodiment, Figure 2 As shown, an identity recognition method is provided, which is applied to Figure 1 The computer device in the example is used for explanation. The computer device can be Figure 1 The terminal 102 or the server 104 in the embodiment of the present invention comprises the following steps:

[0066] S202, obtaining image data to be subjected to identity recognition.

[0067] Among them, the image data can be a picture or a video stream, and the image data to be identified is image data containing an information carrying object, and the information carrying object carries user identity information, including a graphic code information carrying object and a biometric information carrying object. The graphic code information carrying object can be a barcode or a QR code, and the biometric information carrying object can be an eyeball, a face or a human body.

[0068] Specifically, when the identity recognition method is executed by a terminal, that is, when the computer device is a terminal, an image acquisition device is installed on the terminal, and the terminal can collect image data of a real scene under the field of view of the image acquisition device. Among them, the collected image data can contain only one information carrying object, or can contain multiple information carrying objects, for example, the collected image data only contains a QR code, the collected image data only contains a face, and the collected image data contains both a QR code and a face. When the identity recognition method is specifically executed by a server, that is, when the computer device is a server, the server can obtain the image data to be identified that is transmitted by the terminal.

[0069] In one embodiment, the terminal collects image data to be identified through a built-in image acquisition device or an external image acquisition device associated with the terminal, and the image acquisition device can be a camera. The camera can be a monocular camera, a binocular camera, an RGB-D (Red-Green-Blue-Deep) camera, or a 3D (3D) camera such as a 3D structured light camera.

[0070] In one embodiment, when the computer device detects an image acquisition instruction, it calls an image acquisition device to acquire image data of a real scene within a preset range, thereby obtaining image data to be used for identity recognition.

[0071] Specifically, when the computer device detects an image acquisition instruction, the corresponding image acquisition device is called according to the image acquisition instruction, so that the image acquisition device is in an enabled state. The image acquisition device can scan the real scene within a preset range, and shoot the display scene within the preset range to obtain image data to be identified.

[0072] S204, diverting the image data to different identity recognition paths.

[0073] Among them, the identity recognition path is a path for identity recognition of image data. Different identity recognition paths correspond to different special identity recognition methods. The identity recognition path includes a graphic code recognition path and a biometric feature recognition path. The biometric feature recognition path includes an iris recognition path, a face recognition path and a bone recognition path. It can be understood that the special identity recognition method corresponding to the graphic code recognition path is the graphic code recognition method, the special identity recognition method corresponding to the iris recognition path is the iris recognition method, the special identity recognition method corresponding to the face recognition path is the face recognition method, and the special identity recognition method corresponding to the bone recognition path is the bone recognition method. Each image processing node on the identity recognition path corresponds to the recognition steps included in the special identity recognition method. For example, each image processing node on the graphic code recognition path corresponds to the image preprocessing, graphic code positioning, graphic code tilt correction and codeword extraction steps included in the graphic code recognition; each image processing node on the face recognition path corresponds to the image preprocessing, face feature extraction and face feature matching steps included in the face recognition.

[0074] Specifically, before the computer device diverts the image data to different identity identification paths, it obtains pre-configured multi-path identification configuration information, and determines the identity identification path to be diverted according to the multi-path identification configuration information, thereby diverting the image data to different identity identification paths. The pre-configured multi-path identification information is pre-editable, also known as editable multi-path identification configuration information, and the multi-path identification configuration information includes first configuration information and second configuration information, the first configuration information includes a pre-configured identity identification path to be diverted, and the second configuration information includes a pre-configured identity identification path that can be used for diversion and an identity identification path determination condition. When the computer device determines the identity identification path to be diverted according to the first configuration information, each identity identification path included in the first configuration information can be directly determined as the identity identification path to be diverted. When the computer device determines the identity identification path to be diverted according to the second configuration information, based on the image data, the identity identification path that meets the identity identification path determination condition among the identity identification paths included in the second configuration information is selected as the identity identification path to be diverted.

[0075] In one embodiment, after acquiring the image data to be identified, the computer device reads the editable multi-channel identification configuration information through the streaming media service. When the read multi-channel identification configuration information is the first configuration information, the identity identification path to be diverted is determined according to the first configuration information, and the image data is diverted to each determined identity identification path; when the read multi-channel identification configuration information is the second configuration information, the identity identification path to be diverted is determined according to the second configuration information, and the image data is diverted to each determined identity identification path. The streaming media service is used to read the multi-channel identification configuration information and divert the image data to be identified based on the multi-channel identification configuration information.

[0076] In one embodiment, after acquiring the image data to be identified, the computer device determines the multi-channel identification configuration information matching the image data according to the multi-channel configuration information reading condition, and reads the multi-channel identification configuration information. The multi-channel configuration information reading condition includes a first reading condition and a second reading condition. When the image data meets the first reading condition, the first configuration information is read, and when the image data meets the second reading condition, the second configuration information is read.

[0077] For example, the first reading condition is that the file size of the image data is not greater than a preset threshold, and the second reading condition is that the file size of the image data is greater than a preset threshold. After the computer device obtains the image data to be identified, it determines the multi-path configuration information reading conditions satisfied by the file size of the image data. When the first reading condition is satisfied, the first configuration information is read through the streaming media service, and the identity identification path to be diverted is determined based on the first configuration information, and the image data is diverted to the determined identity identification path; when the second reading condition is satisfied, the second configuration information is read through the streaming media service, and the identity identification path to be diverted is determined based on the second configuration information, and the image data is diverted to the determined identity identification path.

[0078] S206: On each identity recognition path, use a corresponding special identity recognition method to perform identity recognition on the image data.

[0079] Among them, different identity recognition paths use different special identity recognition methods. The identity recognition path includes a graphic code recognition path and a biometric recognition path. The biometric recognition path includes an iris recognition path, a face recognition path, and a bone recognition path. It can be understood that the special identity recognition method corresponding to the graphic code recognition path is the graphic code recognition method, the special identity recognition method corresponding to the iris recognition path is the iris recognition method, the special identity recognition method corresponding to the face recognition path is the face recognition method, and the special identity recognition method corresponding to the bone recognition path is the bone recognition method.

[0080] Taking the graphic code recognition path and the face recognition path as examples, the following describes the steps for a computer device to identify image data using a corresponding special identification method on the diverted identification path.

[0081] Example 1: A computer device uses a graphic code recognition method to perform identity recognition on image data in the diverted graphic code recognition path, specifically including: performing image preprocessing on the graphic code in the image data to obtain preprocessed graphic code data, performing graphic code positioning on the preprocessed image data to determine the position of the graphic code in the preprocessed image data, performing tilt correction processing on the positioned graphic code to obtain a tilt-corrected graphic code, reading codeword information from the tilt-corrected image code, obtaining corresponding identity information based on the extracted codeword information, and obtaining a graphic code recognition result.

[0082] Example 2: A computer device uses a face recognition method to perform identity recognition on image data in the diverted face recognition path, specifically including: preprocessing the image data to obtain preprocessed image data, performing face detection on the preprocessed image data, determining a face area in the image data, and performing feature extraction on the face in the face area to obtain face features, comparing the obtained face features with face features in a pre-stored face feature library to obtain target face features that match the face features, and determining the identity information corresponding to the target face features as the face recognition result.

[0083] S208, when a corresponding special identity recognition result is generated on any identity recognition path, the special identity recognition result is output as an identity recognition result for the image data.

[0084] Among them, the outputted special identity recognition result is the first special identity recognition result generated in all identity recognition paths, and the identity recognition path that generates the special identity recognition result is the fastest identity recognition path for image data. The identity recognition result is the result obtained by identity recognition of image data, which can specifically be the result of recognition passing or recognition failing, or it can be the user identity information corresponding to the information carrying object in the image data. Among them, the user identity information can specifically be a user ID or a user account, etc. The user ID is used to uniquely identify a user, and can specifically be a number, letter or character string, etc.

[0085] In one embodiment, the computer device simultaneously performs identity identification on the image data through each of the diverted identity identification paths using a corresponding special identity identification method. When any identity identification path first generates a special identity identification result, the special identity identification result is output as the identity identification result for the image data.

[0086] Specifically, the computer device can output the special identity recognition result as the identity recognition result for the image data to the terminal that collects the image data through the streaming media service. That is to say, when the computer device is a terminal, the terminal displays the special recognition result as the identity recognition result for the image data through the streaming media service. When the computer device is a server, the server outputs the special recognition result as the identity recognition result for the image data to the terminal through the streaming media service, so that the terminal displays the identity recognition result.

[0087] In the above embodiment, there is no need for the user to select an identity recognition method. The computer device directly obtains the image data to be identified, and diverts the image data to multiple different identity recognition paths. On each identity recognition path, a corresponding special identity recognition method is used to perform identity recognition on the diverted image data, wherein different identity recognition paths use different special identity recognition methods. When a corresponding special identity recognition result is generated on any identity recognition path, the special identity recognition result is output as the identity recognition result for the image data, thereby ensuring the fastest return of the identity recognition result, thereby improving the identity recognition efficiency.

[0088] In one embodiment, Figure 3 As shown, the above-mentioned identity recognition method also includes the following steps:

[0089] S302, obtaining a pre-trained object detection model.

[0090] Among them, the object detection model can be a machine learning model, which is a machine learning model obtained by using a deep learning algorithm to train sample images containing various information-carrying objects. Specifically, it can be an R-CNN model (Region-Convolutional Neural Networks, a target detection model), or a YOLO model (You Only Look Once, a target detection model), etc.

[0091] S304: Perform object detection on the image data using an object detection model to determine the information-carrying object in the image data.

[0092] Specifically, the computer device extracts features from the image data through the feature extraction network of the object detection model to obtain information-carrying object features in the image data, and determines the category of each information-carrying object based on the extracted information-carrying object features through the prediction network of the object detection model, that is, determines the information-carrying object in the image data. The determined information-carrying object may be a graphic code information-carrying object and / or a biometric information-carrying object.

[0093] In one embodiment, when the image data is image data obtained by photographing a graphic code, the computer device performs object detection on the image data through an object detection model to determine the information carrying object in the image data; when the image data is image data obtained by photographing a human face, eyeball or human body, the computer device performs object detection on the image data through an object detection model to determine whether the information carrying object in the image data is a human face, eyeball or human body.

[0094] In one embodiment, the image data to be identified acquired by the computer device is a video stream. After acquiring the video stream, the computer device performs frame processing on the video stream to obtain video frames, and performs object detection on each video frame through an object detection model to obtain the information carrying object in each video frame, and determines the information carrying object in the image data based on the information carrying object in each video frame.

[0095] Specifically, after the computer device obtains the information carrying object in each video frame, it classifies and merges the information carrying objects, and determines the various information carrying objects obtained after the merger as the information carrying objects in the image data. For example, after the video stream is divided into frames, video frame 1, video frame 2 and video frame 3 are obtained, object detection is performed on video frame 1, and the information carrying object is obtained as a human body, object detection is performed on video frame 2, and the information carrying object is obtained as a human face, and object detection is performed on video frame 3, and the information carrying object is obtained as a human face and a graphic code, and the information carrying objects corresponding to video frame 1, video frame 2 and video frame 3 are classified and merged, and the information carrying objects corresponding to the video stream are obtained as a human body, a human face, and a graphic code.

[0096] In one embodiment, the image data to be identified acquired by the computer device is a video stream. After acquiring the video stream, the computer device extracts key frames in the video stream, and performs object detection on each key frame through an object detection model to obtain the information carrying object in each key frame, and determines the information carrying object in the image data based on the information carrying object in each key frame.

[0097] S306, determining an identity recognition path for the image data to be diverted according to the information carrying object.

[0098] Specifically, after determining the information carrying object in the image data, the computer device determines the identity recognition path corresponding to the information carrying object as the identity recognition path to be diverted. When the information carrying object is a graphic code information carrying object, the identity recognition path corresponding to the information carrying object is determined to be the graphic code recognition path; when the information carrying object is a biometric information carrying object, the identity recognition path corresponding to the information carrying object is determined to be the biometric recognition path.

[0099] For example, if the determined information carrying object is a human face, then the face recognition identity recognition path is determined as the identity recognition path to be diverted; if the determined information carrying object is a human body, then the bone recognition path is determined as the identity recognition path to be diverted; if the determined information carrying object is an eyeball, then the iris recognition path is determined as the identity recognition path to be diverted; if the determined information carrying object is a graphic code, then the graphic code recognition path is determined as the identity recognition path to be diverted.

[0100] In the above embodiment, the computer device obtains a pre-trained object detection model, performs object detection on the image data through the object detection model, determines the information carrying object in the image data, and determines the identity recognition path to be diverted for the image data according to the information carrying object. Thus, after obtaining the image data to be identified, the computer device can quickly determine the identity recognition path to be diverted, so as to divert the image data to each identity recognition path, perform identity recognition on the image data on each identity recognition path, and quickly output the identity recognition result, thereby improving the efficiency of identity recognition.

[0101] In one embodiment, when the information carrying object is a biometric information carrying object, the computer device determines that the identity recognition path corresponding to the information carrying object is a biometric recognition path, specifically including: when the information carrying object is a biometric information carrying object, performing liveness detection on the information carrying object based on image data, if the liveness detection of the information carrying object passes, then determining that the identity recognition path corresponding to the information carrying object is a biometric recognition path.

[0102] For example, when the information carrying object is a face, liveness detection is performed on the face based on the image data. If the liveness detection passes, the identity recognition path corresponding to the face is determined to be the face recognition path. When the information carrying object is an eyeball, liveness detection is performed on the eyeball based on the image data. If the liveness detection passes, the identity recognition path corresponding to the eyeball is determined to be the iris recognition path. When the information carrying object is a human body, liveness detection is performed on the human body based on the image data. If the liveness detection passes, the identity recognition path corresponding to the human body is determined to be the bone recognition path.

[0103] Specifically, after acquiring the image data, the computer device performs object detection on the image data to obtain each information-carrying object. Then, for each information-carrying object, the computer device obtains multiple object images containing the information-carrying object from the image data, and determines the changes that have occurred to the information-carrying object based on the distribution of the information-carrying object in the multiple object images. If the changes that have occurred to the information-carrying object meet preset change conditions, it is determined that the liveness detection of the information-carrying object has passed.

[0104] For example, for an object carrying facial information, the computer device obtains multiple continuous facial images containing the face from the image data, determines the position of the face in each facial image, and determines the position change of the face based on the position of the face in each facial image. When the position change of the face meets a preset position change condition, it is determined that the face has passed the liveness detection; or, after obtaining multiple continuous facial images containing the face from the image data, the computer device determines the area of ​​the face in each facial image, and determines the area of ​​the face in each facial image based on the area of ​​the face in each facial image. The area of ​​the face is determined, and the face area change is determined. When the face area change meets the preset area change condition, the face is determined to have passed the liveness detection; or after the computer device obtains multiple continuous face images containing the face from the image data, it determines the position and area of ​​the face in each face image, and based on the position and area of ​​the face in each face image, determines the face position change and area change. When the face position change meets the preset position change condition or the face area change meets the preset area change condition, it is determined that the face has passed the liveness detection. It can be understood that when the object carrying the biometric information is an eyeball or a human body, the above-mentioned liveness detection method based on position and / or area can also be used to perform liveness detection on the eyeball or the human body.

[0105] In the above embodiment, when the information carrying object is a biometric information carrying object, the computer device performs liveness detection on the information carrying object based on the image data, and after the liveness detection is passed, determines the identity recognition path corresponding to each information carrying object, so as to divert the image data to the determined identity recognition path, perform identity recognition on the image data on each identity recognition path, and quickly output the identity recognition result, thereby improving the efficiency of identity recognition.

[0106] In one embodiment, before the computer device diverts the image data to different identity recognition paths, it also includes: replicating the data according to the preconfigured number of identity recognition paths to generate multiple image data corresponding to the multiple identity recognition paths; and diverting each of the multiple image data to the corresponding identity recognition paths.

[0107] Specifically, after the computer device determines the identity recognition path to be diverted based on the read multi-path recognition configuration information, it counts the number of identity recognition paths to be diverted, and performs data replication according to the counted number of identity recognition paths. When the computer device reads the first configuration information, the number of identity recognition paths to be diverted is obtained according to the divertible identity recognition paths included in the first configuration information, and the image data is replicated according to the obtained number of identity recognition paths; when the computer device reads the second configuration information, the identity recognition path to be diverted is determined according to the second configuration information, and the number of identity recognition paths to be diverted is obtained, and the image data is replicated according to the number of identity recognition paths to be diverted.

[0108] In the above embodiment, the computer device replicates data according to a preset number of identity recognition paths, generates multiple image data corresponding to the multiple identity recognition paths, and diverts each of the multiple image data to the corresponding identity recognition paths, thereby diverting the image data to the corresponding identity recognition paths, performing identity recognition on the image data on each identity recognition path, and quickly outputting the identity recognition results, thereby improving the efficiency of identity recognition.

[0109] In one embodiment, S206 includes: on each identity recognition path, using a corresponding special image extraction method to separate a special optimal image from the image data, and using a special identity recognition method corresponding to the special image extraction method to perform identity recognition on the special optimal image.

[0110] Each identity recognition path corresponds to its own special image extraction method, and the special image extraction methods corresponding to different identity recognition paths may be the same or different.

[0111] In one embodiment, each identity recognition path uses a pixel image extraction method to separate a special optimal image from the image data. The specific process is as follows: for any identity recognition path, the computer device obtains multiple object images containing the corresponding information-carrying object from the image data, and performs image pixel processing on each of the obtained object images to obtain multiple processed object images with consistent pixels, and calculates the contrast of each processed object image, and determines the processed object image corresponding to the maximum contrast as the special optimal image corresponding to the information-carrying object. Among them, the extracted special optimal image is the clearest image in the image data.

[0112] In one embodiment, each identity recognition path uses a different special image extraction method to extract a special optimal image from the image data. For example, for the graphic code recognition path, a deformation special extraction method is used to extract the special optimal image from the image data, and the extracted special optimal image is the image with the smallest graphic code deformation in the image data; for the face recognition path, a frontal face special extraction method is used to extract the special optimal image from the image data, and the extracted special optimal image is the image with the best face position in the image data; for human body recognition, a complete special extraction method is used to extract the special optimal image from the image data, and the extracted special optimal image is the most complete image of the human body in the image data.

[0113] In the above embodiment, the computer device uses a corresponding special image extraction method on each identity recognition path to separate a special optimal image from the image data, and uses a special identity recognition method corresponding to the special image extraction method to perform identity recognition on the special optimal image, thereby reducing the computational complexity of identity recognition and improving the efficiency of identity recognition.

[0114] In one embodiment, S208 includes: when a corresponding special identity recognition result is generated on any identity recognition path, the special identity recognition result is output to the scheduling service, and the special identity recognition result is output as the identity recognition result for the image data through the scheduling service, and in response to the received special identity recognition result, a notification of stopping the recognition process is sent to other identity recognition paths in the diverted identity recognition paths except the identity recognition path that generates the special identity recognition result through the scheduling service. The scheduling service is used to schedule the recognition process on each identity recognition path.

[0115] Specifically, the computer device monitors the identification process performed by each identity identification path in real time through the scheduling service. When a corresponding special identity identification result is generated on any identity identification path, that is, the identity identification path with the fastest identification among all the identity identification paths generates the fastest identification result, the special identification result is transmitted to the scheduling service. After receiving the special identification result, the scheduling service outputs the special identification result as the identity identification result of the image data on the one hand, and on the other hand, in response to the received special identity identification result, sends a notification of stopping the identification process to other identity identification paths in the diverted identity identification paths except the identity identification path that generates the special identity identification result. The identity identification path that receives the notification of stopping the identification process ends the currently ongoing identification process based on the notification.

[0116] Among them, after the scheduling service receives the special identification result, it can obtain the identity identification path that is currently performing identity identification, and send a notification to stop the identification process to the identity identification path that is currently performing identity identification. The identity identification path that receives the notification to stop the identification process ends the current identification process based on the notification.

[0117] In the above embodiment, the computer device outputs the special identity recognition result as the identity recognition result for the image data through the scheduling service, and in response to the received special identity recognition result, sends a notification to stop the recognition process to other identity recognition paths in the diverted identity recognition path except the identity recognition path that generates the special identity recognition result, thereby causing the other identity recognition paths to end the recognition process and reduce the consumption of system resources.

[0118] In one embodiment, the above-mentioned identity identification method also includes: receiving the identity identification result output by the scheduling service through the resource transfer service, obtaining the resource transfer amount and the resource recipient account in response to the identity identification result through the resource transfer service, determining the corresponding resource provider account according to the identity identification result, and triggering resource transfer from the resource provider account to the resource recipient account according to the resource transfer amount.

[0119] Specifically, when the identification result indicates that the identity authentication is passed, and the user identity information corresponding to the information carrying object in the image data is found, the computer device can trigger the resource transfer step. The computing device can obtain the resource transfer amount entered by the user or merchant, as well as the merchant's default or selected resource recipient account. When the computer device receives the identification result output by the scheduling service through the resource transfer service, the corresponding user identity information can be found through the resource transfer service. The user identity information includes a user account, which can specifically be a resource provider account in this embodiment, thereby triggering the resource transfer from the resource provider account to the resource recipient account according to the resource transfer amount.

[0120] The following is an example of a self-service checkout at a shopping mall. The user can use a barcode scanner to add items to the shopping list, and trigger the image acquisition instruction through the operation interface provided by the merchant terminal of the shopping mall. The user does not need to select an identity recognition method. The image acquisition device scans the user's face and / or payment QR code to obtain the corresponding image data to be identified. The merchant terminal can execute the identity recognition method locally, or the merchant terminal can send the image data to be identified to the server so that the server executes the identity recognition method and finally obtains the identity recognition result quickly. In this way, the merchant's staff or users can obtain the resource transfer amount in the merchant terminal, and the merchant terminal can deduct money from the user's account based on the resource transfer amount and pay it to the merchant. In this way, the user can make fast and secure payments through face and / or QR code without the user selecting an identity recognition method.

[0121] In the above embodiment, the computer device receives the identity recognition result output by the scheduling service through the resource transfer service, obtains the resource transfer amount and the resource recipient account in response to the identity recognition result through the resource transfer service, determines the corresponding resource provider account according to the identity recognition result, and triggers the resource transfer from the resource provider account to the resource recipient account according to the resource transfer amount, thereby realizing a quick and secure resource transfer operation.

[0122] In one embodiment, Figure 4 As shown, an identity recognition method is also provided, which is applied to Figure 1 The computer device in the example is used for explanation. The computer device can be Figure 1 The terminal 102 or the server 104 in the embodiment of the present invention comprises the following steps:

[0123] S402, obtaining image data to be subjected to identity recognition; the image data is a video stream.

[0124] S404, diverting the image data to different identity recognition paths.

[0125] S406, reading editable multi-channel identification configuration information through the streaming media service.

[0126] When the multiple configuration information is the first configuration information, execute S408; when the multiple configuration information is the second configuration information, execute S410.

[0127] S408: Determine each identity identification path included in the first configuration information as an identity identification path to be diverted.

[0128] S410, obtaining a pre-trained object detection model, performing object detection on the image data through the object detection model, determining the information carrying object in the image data, and determining the identity recognition path to be diverted for the image data according to the information carrying object.

[0129] S412, duplicating data according to the determined number of identity recognition paths to be diverted, generating a plurality of image data corresponding to the plurality of identity recognition paths.

[0130] S414, dividing each of the multiple image data into a one-to-one corresponding identity recognition path.

[0131] S416, on each identity recognition path, using a corresponding special image extraction method to separate the special optimal image from the image data.

[0132] S418, using a special identity recognition method corresponding to the special image extraction method to perform identity recognition on the special optimal image.

[0133] S420, when a corresponding special identity recognition result is generated on any identity recognition path, the special identity recognition result is output as an identity recognition result for the image data.

[0134] The present application also provides an application scenario, which applies the above-mentioned identity recognition method. Figure 5 ,The application of the identity recognition method in this application scenario is as follows:

[0135] The terminal device responds to the identity authentication operation triggered by the payment page of the payment application of the user, activates the camera, collects the user's face and / or the payment QR code through the camera, and obtains the data stream of the image data to be authenticated. After the application collects the image data to be authenticated through the camera, the image data is transmitted to the streaming service. The streaming service reads the multi-channel identification configuration information in response to the received image data. The streaming service diverts the image data to each identity identification path according to the multi-channel configuration information. The identity identification path can also be in the form of microservices, such as face recognition service and QR code recognition service. When any of the face recognition service and QR code recognition service generates an identity identification result, the identity identification result is transmitted to the streaming service and the scheduling service, and the identity identification result is output through the streaming service; the identity identification result is transmitted to the payment service through the scheduling service for payment operation, and the scheduling service sends a notification of stopping the identification process to other identity identification services in the diverted identity identification service except the identity identification service that generates the special identity identification result. When the payment operation is completed, the scheduling service receives the payment result and transmits the payment result to the terminal through the streaming service. The multi-channel identification configuration information may be pre-configured based on business requirements, and in the multi-channel configuration information, commonly used identity identification services may be pre-configured, or extended identity identification services other than commonly used identity identification services may be configured. For example, commonly used identity identification services are face recognition services and QR code recognition services, and the configured extended identification services are bone recognition services and iris recognition services.

[0136] It should be understood that although Figure 2-4 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-4 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.

[0137] In one embodiment, Figure 6 As shown, an identity recognition device is provided. The device can adopt a software module or a hardware module, or a combination of the two to become a part of a computer device. The device specifically includes: an image data acquisition module 602, an image data distribution module 604, an identity recognition module 606 and a recognition result output module 608, wherein:

[0138] An image data acquisition module 602 is used to acquire image data to be identified;

[0139] An image data distribution module 604 is used to distribute the image data to different identity recognition paths;

[0140] The identification module 606 is used to identify the image data using a corresponding special identification method on each identification path; different identification paths use different special identification methods;

[0141] The recognition result output module 608 is used to output the special identity recognition result as the identity recognition result for the image data when a corresponding special identity recognition result is generated on any identity recognition path.

[0142] In the above embodiment, there is no need for the user to select an identity recognition method. The computer device directly obtains the image data to be identified, and diverts the image data to multiple different identity recognition paths. On each identity recognition path, a corresponding special identity recognition method is used to perform identity recognition on the diverted image data, wherein different identity recognition paths use different special identity recognition methods. When a corresponding special identity recognition result is generated on any identity recognition path, the special identity recognition result is output as the identity recognition result for the image data, thereby ensuring the fastest return of the identity recognition result, thereby improving the identity recognition efficiency.

[0143] In one embodiment, Figure 7 As shown, the device also includes:

[0144] An object detection model acquisition module 610 is used to acquire a pre-trained object detection model;

[0145] An object detection module 612 is used to perform object detection on the image data through an object detection model to determine the information carrying object in the image data;

[0146] The identity recognition path determination module 614 is used to determine the identity recognition path of the image data to be diverted according to the information carrying object.

[0147] In one embodiment, the image data is a video stream, and the object detection module is further configured to:

[0148] Perform frame processing on the video stream to obtain video frames;

[0149] Perform object detection on each video frame through the object detection model to obtain the information-carrying object in each video frame;

[0150] According to the information carrying object in each video frame, the information carrying object in the image data is determined.

[0151] In the above embodiment, the computer device obtains a pre-trained object detection model, performs object detection on the image data through the object detection model, determines the information carrying object in the image data, and determines the identity recognition path to be diverted for the image data according to the information carrying object. Thus, after obtaining the image data to be identified, the computer device can quickly determine the identity recognition path to be diverted, so as to divert the image data to each identity recognition path, perform identity recognition on the image data on each identity recognition path, and quickly output the identity recognition result, thereby improving the efficiency of identity recognition.

[0152] In one embodiment, the identity identification path determination module 614 is further configured to:

[0153] When the information carrying object is a graphic code information carrying object, determining that the identity recognition path corresponding to the information carrying object is a graphic code recognition path;

[0154] When the information carrying object is a biometric information carrying object, it is determined that the identity recognition path corresponding to the information carrying object is a biometric recognition path.

[0155] In one embodiment, the identity identification path determination module 614 is further configured to:

[0156] When the information carrying object is an object carrying biometric information, performing liveness detection on the information carrying object based on the image data;

[0157] If the liveness detection of the information carrying object passes, it is determined that the identity recognition path corresponding to the information carrying object is the biometric feature recognition path.

[0158] In the above embodiment, when the information carrying object is a biometric information carrying object, the computer device performs liveness detection on the information carrying object based on the image data, and after the liveness detection is passed, determines the identity recognition path corresponding to each information carrying object, so as to divert the image data to the determined identity recognition path, perform identity recognition on the image data on each identity recognition path, and quickly output the identity recognition result, thereby improving the efficiency of identity recognition.

[0159] In one embodiment, the image data splitting module 604 is further configured to:

[0160] Data is copied according to the number of pre-configured identity recognition paths to generate a plurality of image data corresponding to the plurality of identity recognition paths;

[0161] Each of the plurality of image data is divided into a one-to-one corresponding identity recognition path.

[0162] In the above embodiment, the computer device replicates data according to a preset number of identity recognition paths, generates multiple image data corresponding to the multiple identity recognition paths, and diverts each of the multiple image data to the corresponding identity recognition paths, thereby diverting the image data to the corresponding identity recognition paths, performing identity recognition on the image data on each identity recognition path, and quickly outputting the identity recognition results, thereby improving the efficiency of identity recognition.

[0163] In one embodiment, the identity recognition module 606 is further configured to:

[0164] On each identity recognition path, the corresponding special image extraction method is used to separate the special optimal image from the image data;

[0165] A special identity recognition method corresponding to the special image extraction method is used to identify the special optimal image.

[0166] In the above embodiment, the computer device uses a corresponding special image extraction method on each identity recognition path to separate a special optimal image from the image data, and uses a special identity recognition method corresponding to the special image extraction method to perform identity recognition on the special optimal image, thereby reducing the computational complexity of identity recognition and improving the efficiency of identity recognition.

[0167] In one embodiment, the image data is a video stream uploaded by the terminal; the image data splitting module 604 is further used to:

[0168] Through the streaming media service, the editable multi-path identification configuration information is read, different identity identification paths are determined according to the multi-path identification configuration information, and the image data is diverted to the different identity identification paths;

[0169] The recognition result output module 608 is further used for:

[0170] Through the streaming media service, the special identity recognition result is output to the terminal as the identity recognition result for the image data.

[0171] In one embodiment, the recognition result output module 608 is further used to:

[0172] When a corresponding special identity recognition result is generated on any identity recognition path, the special identity recognition result is output to the dispatch service;

[0173] Outputting the special identification result as the identification result for the image data through the dispatch service;

[0174] In response to the received special identity identification result, a notification of stopping the identification process is sent to other identity identification paths in the diverted identity identification paths except the identity identification path that generates the special identity identification result through the scheduling service.

[0175] In the above embodiment, the computer device outputs the special identity recognition result as the identity recognition result for the image data through the scheduling service, and in response to the received special identity recognition result, sends a notification to stop the recognition process to other identity recognition paths in the diverted identity recognition path except the identity recognition path that generates the special identity recognition result, thereby causing the other identity recognition paths to end the recognition process and reduce the consumption of system resources.

[0176] In one embodiment, the recognition result output module 608 is further used to:

[0177] Receive the identity recognition result output by the scheduling service through the resource transfer service;

[0178] Through the resource transfer service, in response to the identity identification result, the resource transfer amount and the resource recipient account are obtained, the corresponding resource provider account is determined according to the identity identification result, and the resource transfer from the resource provider account to the resource recipient account is triggered according to the resource transfer amount.

[0179] In the above embodiment, the computer device receives the identity recognition result output by the scheduling service through the resource transfer service, obtains the resource transfer amount and the resource recipient account in response to the identity recognition result through the resource transfer service, determines the corresponding resource provider account according to the identity recognition result, and triggers the resource transfer from the resource provider account to the resource recipient account according to the resource transfer amount, thereby realizing a quick and secure resource transfer operation.

[0180] For the specific definition of the identity recognition device, please refer to the definition of the identity recognition method above, which will not be repeated here. Each module in the above-mentioned identity recognition device can be implemented in whole or in part by software, hardware and a combination thereof. 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.

[0181] 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 8As 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 image data to be identified. 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, an identity identification method is implemented.

[0182] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device 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 and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an identity recognition method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0183] Those skilled in the art will understand that Figure 8 or Fig. 9 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.

[0184] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0185] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0186] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-mentioned method embodiments.

[0187] 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).

[0188] The technical features of the above embodiments may be arbitrarily combined. 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.

[0189] 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. An identity recognition method, It is characterized in that The method comprises: Acquire image data to be identified; Diverting the image data to different identity recognition paths; On each identity recognition path, a corresponding special identity recognition method is used to identify the image data; different identity recognition paths use different special identity recognition methods; When a corresponding special identity recognition result is generated on any identity recognition path, the special identity recognition result is output as the identity recognition result for the image data.

2. The method according to claim 1, It is characterized in that Before the image data is diverted to different identity recognition paths, the method further includes: Get a pre-trained object detection model; Performing object detection on the image data by using the object detection model to determine the information-carrying object in the image data; An identity recognition path for the image data to be diverted is determined according to the information carrying object.

3. The method according to claim 2, It is characterized in that The image data is a video stream, and performing object detection on the image data by using the object detection model to determine the information-carrying object in the image data includes: Performing frame processing on the video stream to obtain video frames; Performing object detection on each of the video frames using the object detection model to obtain information-carrying objects in each of the video frames; The information carrying object in the image data is determined according to the information carrying object in each of the video frames.

4. The method according to claim 2, It is characterized in that The determining, according to the information carrying object, an identity recognition path for the image data to be diverted includes: When the information carrying object is a graphic code information carrying object, determining that the identity recognition path corresponding to the information carrying object is a graphic code recognition path; When the information carrying object is a biometric information carrying object, it is determined that the identity recognition path corresponding to the information carrying object is a biometric recognition path.

5. The method according to claim 4, It is characterized in that When the information carrying object is a biometric information carrying object, determining that the identity recognition path corresponding to the information carrying object is a biometric recognition path includes: When the information carrying object is an object carrying biometric information, performing liveness detection on the information carrying object based on the image data; If the liveness detection of the information carrying object passes, it is determined that the identity recognition path corresponding to the information carrying object is a biometric feature recognition path.

6. The method according to claim 1, It is characterized in that The step of dividing the image data into different identity recognition paths includes: Data is copied according to the number of pre-configured identity recognition paths to generate a plurality of image data corresponding to the plurality of identity recognition paths; Each of the plurality of image data is shunted to a one-to-one corresponding identity recognition path.

7. The method according to any one of claims 1 to 6, It is characterized in that In each identity recognition path, the image data is identified by using a corresponding special identity recognition method, including: On each identity recognition path, a corresponding special image extraction method is used to separate a special optimal image from the image data; The special optimal image is identified by using a special identity recognition method corresponding to the special image extraction method.

8. The method according to any one of claims 1 to 6, It is characterized in that The image data is a video stream uploaded by a terminal; and the step of dividing the image data into different identity recognition paths includes: Reading editable multi-path identification configuration information through a streaming media service, determining different identity identification paths according to the multi-path identification configuration information, and dividing the image data into different identity identification paths; The outputting the special identity recognition result as the identity recognition result for the image data comprises: The special identity recognition result is output to the terminal as an identity recognition result for the image data through a streaming media service.

9. The method according to any one of claims 1 to 6, It is characterized in that When a corresponding special identity recognition result is generated on any identity recognition path, outputting the special identity recognition result as an identity recognition result for the image data includes: When a corresponding special identity recognition result is generated on any identity recognition path, the special identity recognition result is output to the scheduling service; outputting the special identity recognition result as an identity recognition result for the image data through the scheduling service; Through the scheduling service, in response to the received special identity identification result, a notification of stopping the identification process is sent to other identity identification paths in the diverted identity identification paths except the identity identification path that generates the special identity identification result.

10. The method according to claim 9, It is characterized in that The method further comprises: Receiving, through a resource transfer service, an identity recognition result output by the scheduling service; Through the resource transfer service, in response to the identity identification result, the resource transfer amount and the resource recipient account are obtained, the corresponding resource provider account is determined according to the identity identification result, and the resource transfer from the resource provider account to the resource recipient account according to the resource transfer amount is triggered.

11. An identity recognition device, It is characterized in that The device comprises: An image data acquisition module, used to acquire image data to be identified; An image data distribution module, used for distributing the image data to different identity recognition paths; An identity recognition module, used to perform identity recognition on the image data using a corresponding special identity recognition method on each identity recognition path; different identity recognition paths use different special identity recognition methods; The recognition result output module is used to output the corresponding special identity recognition result as the identity recognition result for the image data after the corresponding special identity recognition result is generated on any identity recognition path.

12. The device according to claim 11, It is characterized in that The device also includes: An object detection model acquisition module, used to acquire a pre-trained object detection model; An object detection module, configured to perform object detection on the image data using the object detection model to determine an information-carrying object in the image data; The identity recognition path determination module is used to determine the identity recognition path of the image data to be diverted according to the information carrying object.

13. The device according to claim 12, It is characterized in that The image data is a video stream, and the object detection module is further used for: Performing frame processing on the video stream to obtain video frames; Performing object detection on each of the video frames using the object detection model to obtain information-carrying objects in each of the video frames; The information carrying object in the image data is determined according to the information carrying object in each of the video frames.

14. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 10 are implemented.

15. A computer-readable storage medium storing a computer program, It is 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 10 are implemented.

Citation Information

Patent Citations

  • Identity recognition method and device, electronic equipment and storage medium

    CN110188658A

  • Electronic equipment and control method

    CN110298160A