Image data processing method, device and related equipment
By utilizing the similar object database and K-way pattern recognition service in the image data stream processing between the application client and the business server, the problem of identity recognition failure among highly similar people is solved and higher accuracy and reliability are achieved. business execution.
Patent Information
- Application Number
- CN202011160161.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-26
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-10-26
AI Technical Summary
It is difficult for the existing technology to accurately identify the user's identity when identifying highly similar groups, resulting in identity recognition failure and reducing the accuracy and reliability of business execution.
By obtaining the image data stream collected by the application client, the first type of identity recognition is performed based on the similar object database. If the recognition result is a similar object, the K-way pattern recognition service is obtained, and the second type of identity recognition is performed on the image data stream to ensure that K After the recognition results are consistent, similar identity information is output, which is used to execute application services.
It improves the accuracy of object recognition and the reliability of business execution, ensuring that users' identities can be accurately determined and corresponding services can be executed even among highly similar groups of people.
Smart Images

Figure CN114495188B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an image data processing method, apparatus and related equipment. Background Art
[0002] Currently, after a user (e.g., user A) accesses an application client (e.g., application client C with a payment function), the application client C running in the user terminal can collect image data associated with the user A, and then directly upload the image data to the backend for identity recognition. This means that when the backend recognizes that the user A belongs to a legitimate object (e.g., a non-highly similar group), the application client C is allowed to execute the business associated with the user A (e.g., payment business).
[0003] However, when the backend identifies that user A belongs to an illegal object (for example, a highly similar group, such as twins, etc.), it will be difficult to distinguish the real identity information of user A in the highly similar group, and the result of identity recognition failure will be directly returned to the application client. As a result, the existing object recognition method will make it difficult for the user to perform the aforementioned payment business in this round, thereby reducing the accuracy of object recognition. Summary of the invention
[0004] The present application provides an image data processing method, apparatus and related equipment, which can improve the accuracy of object recognition to ensure the reliability of business execution.
[0005] An embodiment of the present application provides, on one hand, a method for processing image data, including:
[0006] Acquire an image data stream containing a target object collected by an application client, and perform a first type of identity recognition on the target object in the image data stream based on a similar object database to obtain a first recognition result;
[0007] If the first recognition result indicates that the target object is a similar object in the similar object database, similar identity identification information associated with the similar object is obtained, and K-path pattern recognition services configured for the similar identity identification information are obtained from a similar service configuration library associated with the similar object database; K is a positive integer;
[0008] Perform second-category identity recognition on target objects in the image data stream respectively through K-path pattern recognition services to obtain K second recognition results;
[0009] If the K second recognition results all indicate that the target object is a similar object, the similar identity identification information is output to the application client, so that the application client executes the application service based on the similar identity identification information.
[0010] An embodiment of the present application provides an image data processing device, including:
[0011] A data stream acquisition module, used to acquire an image data stream containing a target object collected by an application client, and perform a first type of identity recognition on the target object in the image data stream based on a similar object database to obtain a first recognition result;
[0012] A similar identity acquisition module is used to acquire similar identity identification information associated with the similar object if the first recognition result indicates that the target object is a similar object in the similar object database, and acquire K-path pattern recognition services configured for the similar identity identification information from a similar service configuration library associated with the similar object database; K is a positive integer;
[0013] The pattern recognition service module is used to perform second-category identity recognition on target objects in the image data stream respectively through K-way pattern recognition services to obtain K second recognition results;
[0014] The similar identity output module is used to output similar identity identification information to the application client if the K second recognition results all indicate that the target object is a similar object, so that the application client executes the application service based on the similar identity identification information.
[0015] Among them, the data stream acquisition module includes:
[0016] The data packet parsing unit is used to obtain the business data packet uploaded by the application client, parse and process the business data packet through the streaming media service associated with the application client, and obtain the application signature information corresponding to the application client and the image data stream containing the target object; the application signature information is obtained by the application client signing the collected image data stream through the application private key;
[0017] A signature verification unit, used to verify the signature of the application using the application public key corresponding to the application private key;
[0018] A legal determination unit, used to determine that the application client sending the image data stream is a legal client when the signature verification succeeds, and to determine that the image data stream belongs to a legal data stream associated with an associated application service of the application client;
[0019] The first identity recognition unit is used to obtain a target image frame containing a target object from a legitimate data stream, and perform a first type of identity recognition on the target object in the target image frame based on a similar object database to obtain a first recognition result.
[0020] Wherein, the target object includes the face of the target user;
[0021] The first identity recognition unit includes:
[0022] The candidate frame determination subunit is used to perform serialization processing on the legal data stream to obtain an initial image sequence corresponding to the legal data stream, and use each image frame of the initial image sequence as a candidate image frame;
[0023] a quality assessment subunit, configured to determine a target object region containing a target object in a candidate image frame, intercept a corresponding target object region containing the target object from the candidate image frame, and perform quality assessment on each intercepted target object region containing the target object to obtain a quality assessment result;
[0024] a blurred frame filtering subunit, configured to filter out blurred image frames from the candidate image frames according to the quality evaluation result, and after filtering out the candidate image frames of the blurred image frames, determine the candidate image frame with the highest resolution as the target image frame containing the target object;
[0025] The face recognition subunit is used to perform face recognition on the target object in the target image frame based on the similar object database to obtain a first recognition result.
[0026] The device further comprises:
[0027] The streaming media acquisition module is used to acquire streaming media information of M users; one piece of streaming media information contains the face image data of one user; M is a positive integer;
[0028] A module for determining to be compared is used to obtain the i-th facial image data from the M facial image data, and use the facial image data other than the i-th facial image data in the M facial image data as the image data to be compared; i is a positive integer less than or equal to M;
[0029] A similarity determination module is used to compare the i-th face image data with the image data to be compared, and determine the similarity between the face in the i-th face image data and the face in the image data to be compared according to the comparison result;
[0030] A similar identity configuration module is used to determine that the user corresponding to the i-th facial image data belongs to the first type of user if there is a similarity greater than a similarity threshold in the similarity, configure similar identity identification information for the user corresponding to the i-th facial image data, add the similar identity identification information of the i-th facial image data to the first type of database corresponding to the first type of user, and use the first type of database to which the similar identity identification information of the i-th facial image data is added as a similar object database.
[0031] The device further comprises:
[0032] An object identity configuration module is used to determine that the user corresponding to the i-th facial image data belongs to the second type of user if there is no similarity greater than a similarity threshold in the similarity, configure object identity identification information for the user corresponding to the i-th facial image data, add the object identity identification information of the i-th facial image data to the second type database corresponding to the second type of user, and use the second type database to which the object identity identification information of the i-th facial image data is added as a normal object database.
[0033] The device further comprises:
[0034] A normal identity return module is used to obtain the object identity information of the user corresponding to the target object from the normal object database if the first recognition result indicates that the target object does not belong to the similar objects in the similar object database, use the object identity information as the normal identity authentication result, and return the normal identity recognition result to the application client; the normal identity authentication result is used to instruct the application client to execute the application service when the object identity information is the same as the cached identity information.
[0035] The device further comprises:
[0036] The recognition service configuration module is used to configure N types of pattern recognition services for similar identity identification information of the i-th face image data when the similarity of the i-th face image data is greater than a similarity threshold, based on the similarity of the i-th face image data and the registered biometric information entered by the user corresponding to the i-th face image data; N is a positive integer; one type corresponds to one pattern recognition service;
[0037] The configuration library determination module is used to add the N-way pattern recognition service to the configuration service database associated with the first type of user, and obtain a similar service configuration library associated with the similar object database.
[0038] Among them, the pattern recognition service module includes:
[0039] A data stream configuration unit, used for outputting the K-path pattern recognition service to the service scheduling component, and configuring the image data stream to the K-path pattern recognition service through the service scheduling component;
[0040] The recognition service acquisition unit is used to acquire the j-th pattern recognition service from the K-path pattern recognition services; j is a positive integer less than or equal to K;
[0041] The second identity recognition unit is used to perform second-type identity recognition on the target object in the image data stream through the j-th pattern recognition service, until the second-type identity recognition is performed on the target object in the image data stream through each pattern recognition service, and K second recognition results are obtained.
[0042] Among them, the similar identity output module includes:
[0043] an object determination unit, configured to determine that the target object and the similar object are the same object if the K second recognition results all indicate that the identity information of the target object is similar identity information mapped by the similar object;
[0044] The authentication result returning unit is used to use the similar identity identification information as the similar identity authentication result and return the similar identity authentication result to the application client; the similar identity authentication result is used to instruct the application client to execute the application service when the object identity identification information is the same as the cached identity information.
[0045] The device further comprises:
[0046] an indication determination module, configured to determine that the target object and the similar object do not belong to the same object if there is at least one second recognition result among the K second recognition results that does not indicate that the identity identification information of the target object is similar identity identification information mapped to the similar object;
[0047] The failure result generation module is used to generate an identity authentication failure result for the target object when the target object and the similar object do not belong to the same object, and return the identity authentication failure result to the application client so that the application client outputs the identity authentication failure result on the application display interface.
[0048] An embodiment of the present application provides, on one hand, a method for processing image data, including:
[0049] In response to a trigger operation on an application display interface of an application client, an image acquisition interface of the application client is output;
[0050] An image data stream containing a target object is collected through an image collection interface, and the image data stream is uploaded to a business server, so that the business server performs a first type of identity recognition on the target object in the image data stream based on a similar object database to obtain a first recognition result; the first recognition result is used to instruct the business server to obtain a K-path pattern recognition service for performing a second type of identity recognition on the target object from a similar service configuration library associated with the similar object database when the target object is a similar object in the similar object database;
[0051] The receiving service server returns similar identity identification information of the target object based on the K-path pattern recognition service, and executes the application service of the application client based on the similar identity identification information.
[0052] An embodiment of the present application provides an image data processing device, including:
[0053] The acquisition interface output module is used to respond to the trigger operation of the application display interface of the application client and output the image acquisition interface of the application client;
[0054] A data stream uploading module is used to collect an image data stream containing a target object through an image acquisition interface, and upload the image data stream to a business server, so that the business server performs a first type of identity recognition on the target object in the image data stream based on a similar object database to obtain a first recognition result; the first recognition result is used to instruct the business server to obtain a K-path pattern recognition service for performing a second type of identity recognition on the target object from a similar service configuration library associated with the similar object database when the target object is a similar object in the similar object database;
[0055] The similar identity receiving module is used to receive the similar identity identification information of the target object returned by the business server based on the K-path pattern recognition service, and execute the application business of the application client based on the similar identity identification information.
[0056] An embodiment of the present application provides a computer device, including: a processor and a memory;
[0057] The processor is connected to the memory, wherein the memory is used to store the computer program, and the processor is used to call the computer program to execute the method in the embodiment of the present application.
[0058] On one hand, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method in the embodiment of the present application is executed.
[0059] In one aspect, the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method in one aspect of the present application.
[0060] When the computer device in the embodiment of the present application obtains the image data stream containing the target object collected by the application client, it can perform a first type of identity recognition on the target object in the image data stream based on the similar object database to obtain a first recognition result; wherein, it can be understood that the target object here can include the face of a certain user (for example, the target user), and in this case, the first type of identity recognition here can specifically be face recognition; further, if the first recognition result indicates that the target object is a similar object in the similar object database (for example, a similar user group), the computer device can obtain similar identity identification information associated with the similar object, and then can obtain a K-way pattern recognition service configured for the similar identity identification information from the similar service configuration library associated with the similar object database; wherein K can be a positive integer; it can be understood that the K-way pattern recognition service here can specifically include iris recognition service, bone recognition service, nose print recognition service, etc., which will not be limited here. Further, the computer device can perform a second type of identity recognition on the target object in the image data stream respectively through K-way pattern recognition services to obtain K second recognition results; it should be understood that the second type of identity recognition here can be specifically a parallel multi-way pattern recognition service, and one type of pattern recognition service is a one-way pattern recognition service. Further, if the K second recognition results all indicate that the target object is a similar object, the computer device can output the similar identity identification information to the application client so that the application client performs the application service based on the similar identity identification information. It can be seen that in the embodiment of the present application, when the computer device recognizes that the object corresponding to the target object (i.e., the aforementioned target user) belongs to a similar user group, it can further use other pattern recognition services (i.e., the aforementioned K-way pattern recognition services) to identify the target object in the image data stream collected by the application client, so that the target objects identified by the K-way pattern recognition services are consistent with the similar objects identified during the above-mentioned face recognition, then the user identity of the target object can be further determined, so that the similar identity identification information mapped by the aforementioned similar objects (i.e., the identification information for uniquely identifying the user identity of the user to which the target object belongs) can be returned to the application client to ensure the accuracy of object recognition. At this time, the application client can further compare the accurately identified similar identity information with the cached identity information associated with the image data stream cached in the application client, and then execute the corresponding application service (for example, payment service) when they are consistent, thereby ensuring the reliability of service execution. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0062] Figure 1 It is a structural diagram of a network architecture provided by an embodiment of the present application;
[0063] Figure 2 This is a schematic diagram of a scenario for data interaction provided by an embodiment of the present application;
[0064] Figure 3 It is a flowchart of an image data processing method provided by an embodiment of the present application;
[0065] Figure 4 This is a schematic diagram of a scenario for obtaining an image data stream provided by an embodiment of the present application;
[0066] Figure 5 It is a schematic diagram of a scenario of selecting a target image frame from a legitimate data stream provided by an embodiment of the present application;
[0067] Figure 6 It is a schematic diagram of a scenario for building a similar object database provided by an embodiment of the present application;
[0068] Figure 7 It is a flowchart of an image data processing method provided by an embodiment of the present application;
[0069] Figure 8 This is a schematic diagram of a scenario for solving misidentification of highly similar people through a multi-path pattern recognition service provided by an embodiment of the present application;
[0070] Fig. 9 This is a schematic diagram of a scenario for establishing a highly similar service configuration library provided by an embodiment of the present application;
[0071] Fig.10 It is a flowchart of an image data processing method provided in an embodiment of the present application;
[0072] Fig.11 is a structural schematic diagram of an image data processing device provided in an embodiment of the present application;
[0073] Fig.12 is a schematic diagram of a computer device provided in an embodiment of the present application;
[0074] Fig.13 is a structural schematic diagram of an image data processing device provided in an embodiment of the present application;
[0075] Fig.14 is a schematic diagram of a computer device provided in an embodiment of the present application;
[0076] Fig.15 It is a structural diagram of an image data processing system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0077] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0078] 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 machines have the functions of perception, reasoning and decision-making.
[0079] 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.
[0080] The solution provided in the embodiment of the present application belongs to the computer vision technology (Computer Vision, CV) in the field of artificial intelligence. It should be understood that the computer vision technology here is a science that studies how to make machines "see". Further, it refers to the use of cameras and computers instead of human eyes to identify, track and measure targets, and further do graphic processing to make computer processing more suitable for human eye observation or transmission to instrument detection. As a scientific discipline, computer vision studies related theories and technologies, and attempts to establish an artificial intelligence system that can obtain information from images or multidimensional data. Computer vision technology generally includes image processing, image recognition, image semantic understanding, image retrieval, OCR, video processing, video semantic understanding, video content / behavior recognition, three-dimensional object reconstruction, 3D technology, virtual reality, augmented reality, synchronous positioning and map construction, and other technologies, and also includes common biometric recognition technologies such as face recognition and fingerprint recognition.
[0081] For details, see Figure 1 , Figure 1 Schematic diagram of a network architecture provided by an embodiment of the present application. Figure 1 As shown, the network architecture may include a user terminal cluster and a service server 2000. It can be understood that the user terminal cluster may include one or more user terminals, and the number of user terminals in the user terminal cluster is not limited. Figure 1 As shown, the user terminal cluster may include multiple user terminals, specifically including Figure 1 The user terminal 3000a, the user terminal 3000b, the user terminal 3000c, ..., the user terminal 3000n are shown. Figure 1 As shown, user terminal 3000a, user terminal 3000b, user terminal 3000c, ..., user terminal 3000n can be connected to the business server 2000 through a network, so that each user terminal in the user terminal cluster can exchange data with the business server 2000 through the network connection. For example, in an object recognition scenario, each user terminal in the user terminal cluster can be used to obtain an image data stream containing a target object. The object recognition scenario here can specifically include a face recognition scenario, an animal recognition scenario, etc., and the object recognition scenarios will not be listed one by one here.
[0082] For ease of understanding, the embodiments of the present invention may be Figure 1 Select one user terminal from the multiple user terminals shown as the target user terminal. For example, Figure 1The user terminal 3000a shown is used as the target user terminal to illustrate the process of data interaction between the target user terminal and the business server 2000. It can be understood that the target user terminal here can include: smart phones, tablet computers, laptops, desktop computers, smart TVs and other smart terminals with image acquisition functions. It can be understood that one or more application clients can be run in the target user terminal. When one of these application clients (for example, client A) runs in the target user terminal, the camera in the target user terminal (the camera here can include a front camera and a rear camera) can be called by the client A to perform image acquisition, so as to use the acquired one or more image data as an image data stream containing the target object.
[0083] It should be understood that in the embodiment of the present application, one or more image data collected by the target user terminal can be collectively referred to as image frames, and the number of collected image frames is not limited here. Among them, these application clients can specifically include social clients, payment clients, access control clients, multimedia clients (for example, video clients), entertainment clients (for example, game clients), education clients, autonomous driving clients, office clients, and other clients with image data collection functions.
[0084] Among them, Figure 1 The business server 2000 shown can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, as well as big data and artificial intelligence platforms, and will not be limited here.
[0085] For ease of understanding, the embodiment of the present application takes the application client currently running in the target user terminal as the above-mentioned social client as an example to explain the specific process of identity authentication of the target object in the image data stream in the social client. Among them, it can be understood that in the object recognition scenario is a face recognition scenario, the target object here can specifically refer to the face of a certain user, and the identity authentication here is that the target user terminal needs to accurately and reliably obtain the identity information (Identity document, ID) (for example, user ID) of this user before executing the corresponding application business (for example, payment business), thereby ensuring the reliability of business execution. Optionally, in the object recognition scenario is an animal recognition scenario, the target object here can specifically refer to the body of a certain animal (for example, the head and body parts of an animal), and the identity authentication here is that the target user terminal needs to accurately and reliably obtain the identity information (for example, animal ID) of this animal before executing the corresponding application business (for example, stray animal supervision business), thereby ensuring the reliability of business execution.
[0086] Further, for ease of understanding, the object recognition scenario is taken as an example to illustrate the specific process of identifying the identity information of the aforementioned user. Figure 2 , Figure 2 Schematic diagram of a scenario for data interaction provided by an embodiment of the present application. Figure 2 The target user terminal shown can be the above Figure 1 The user terminal 3000a shown in FIG. Figure 2 The target user terminal shown can display the image captured by the camera in the target user terminal on the application display interface corresponding to the application client (for example, the application display interface can be an image acquisition interface). Figure 2 The one or more image data associated with the target user shown in the figure are determined as an image data stream containing a target object. The target object here can be Figure 2 The target user's face is shown.
[0087] For ease of understanding, the present application embodiment takes the application client as the above-mentioned social client as an example. Figure 2 When the target user needs to use the social client to perform a face recognition service (e.g., a face recognition payment service), a notification message can be displayed on the target user terminal. Figure 2The image acquisition interface shown. At this time, the target user terminal can call the camera associated with the application client. It can be understood that in the object recognition scenario corresponding to the face recognition service (for example, the aforementioned face recognition scenario), the camera associated with the application client that is called can be a front camera. In this way, when the target user terminal obtains one or more image data associated with the target user (the image data here can specifically be facial image data), these image data can be output and displayed on the image acquisition interface.
[0088] It is understandable that if Figure 2 As shown, the target user terminal may collectively refer to each image data (e.g., each face image data) obtained by photographing the face of the target user by the front camera as an image frame. At this time, the target user terminal may obtain the face image data containing the face of the target user according to the face image data. Figure 2 The image data stream 100a shown contains the target object (i.e., the face of the target user). Figure 2 As shown, the image data stream 100a acquired by the service server may include multiple image frames, and the multiple image frames may specifically include Figure 2 The image data shown are image data 1a, image data 1b, ..., image data 1m, and image data 1n.
[0089] Among them, Figure 2 As shown, when the target user terminal Figure 2 The image data stream 100a shown is sent to Figure 2 When the business server shown in the figure is used, the business server can perform a first type of identity recognition on the target object in the image data stream based on the similar object database that has been built (that is, the similar user database where users with high similarity are located) to obtain a first recognition result. It can be understood that the business server here can be the above-mentioned Figure 1 The corresponding business server 2000 in the embodiment.
[0090] It can be understood that the user with a high similarity here refers to a certain user (for example, Figure 2 The similarity between the target user shown, for example, user A) and other users (for example, user B) has reached the similarity threshold. At this point, the embodiment of the present application can classify the target user (for example, user A) as a similar user group, and the embodiment of the present application can collectively refer to the similar user group here as a first type of user. Based on this, the embodiment of the present application can collectively refer to the business database corresponding to the similar user group (i.e., the first type of user) to which the user A belongs as a first type of database. When the above-mentioned object recognition scenario is a face recognition scenario, the first type of database where the user A is located can also be collectively referred to as a similar object database.
[0091] Optionally, in the embodiment of the present application, when the similarity between the above-mentioned target user (e.g., user C) and other users (e.g., user B) does not reach the similarity threshold, the user C can be classified as a non-similar user group (i.e., it can be determined that the user C belongs to the second type of user). In addition, in order to facilitate the distinction from the above-mentioned similar object database, in the embodiment of the present application, the business database corresponding to the non-similar user group (i.e., the second type of user) to which the user C belongs can be collectively referred to as the second type of database, and when the above-mentioned object recognition scenario is a face recognition scenario, the first type of database where the user A is located can be collectively referred to as a normal object database.
[0092] Further, such as Figure 2 As shown, the business server can identify the first object according to the first object recognition result. Figure 2 When the target users shown belong to similar user groups, Figure 2 The image data stream 100a shown is distributed to Figure 2 The K-path pattern recognition service shown in FIG. 1 is used to perform multi-path identity authentication on the target object (i.e., the face of the target user) in the image data stream 100a through the K-path pattern recognition service to improve the accuracy of object recognition. Wherein, K can be a positive integer. Figure 2 As shown, the K-path pattern recognition service here may include Figure 2 The identification services 10a, ..., 10k are shown. It can be understood that in the multi-channel pattern recognition service, the recognition service 10a is different from other recognition services (for example, different from the recognition service 10k). Based on this, when the service server performs the second type of identity recognition on the target object in the image data stream 100a based on the multi-channel pattern recognition service, it can be obtained. Figure 2 Based on this, the service server can indicate the K second recognition results. Figure 2 When the face of the target user (i.e., the target object) shown is a similar object in the aforementioned similar object database, the similar identity identification information corresponding to the similar object (e.g., the aforementioned user ID1) is further returned to Figure 2 The target user terminal shown can enable the application client (for example, the above-mentioned social client, for example, WeChat client) running in the target user terminal to execute application services (for example, execute payment services) based on the received similar identity identification information.
[0093] It can be seen that in order to ensure the accuracy of object recognition and the reliability of business execution, the embodiment of the present application can Figure 2 When the target users shown belong to similar user groups (i.e., highly similar groups), Figure 2The image data stream 100a shown is distributed to other recognition services to further confirm the user identity of the target user with the help of other recognition services. This means that the embodiment of the present application can perform multi-path identity authentication on the target user's face through parallel multi-path pattern recognition services, and then when the multi-path identity authentication is successful, it can be determined that a face scanning service is completed.
[0094] in, Figure 2 The specific implementation method of the business server obtaining the image data stream and performing multi-channel identity authentication on the target object in the image data stream through the K-channel pattern recognition service can be referred to as follows Figure 3-Figure 10 Description of the corresponding embodiment.
[0095] For further information, see Figure 3 , Figure 3 : is a flowchart of an image data processing method provided by an embodiment of the present application. It can be understood that the method provided by the embodiment of the present application can be executed by a computer device, and the computer device here includes but is not limited to a user terminal or a business server. For ease of understanding, the embodiment of the present application takes the computer device as a business server as an example to illustrate the specific process of identity authentication of the target object in the acquired image data stream in the business server. The business server here can be the above-mentioned Figure 2 The business server in the corresponding embodiment. Figure 3 As shown, the method may at least include the following steps S101 to S104:
[0096] Step S101: acquiring an image data stream containing a target object collected by an application client, and performing a first type of identity recognition on the target object in the image data stream based on a similar object database to obtain a first recognition result.
[0097] Specifically, the computer device can obtain the business data packet uploaded by the application client, and can parse and process the business data packet through the streaming media service associated with the application client to obtain the application signature information corresponding to the application client and the image data stream containing the target object; wherein the application signature information can be obtained by the application client after signing the collected image data stream through the application private key; further, the computer device can verify the signature of the application signature information through the application public key corresponding to the application private key; further, the computer device can determine that the application client sending the image data stream is a legitimate client when the signature verification is successful, thereby determining that the image data stream belongs to a legitimate data stream associated with the associated application business of the application client; further, the computer device can obtain the target image frame containing the target object from the legitimate data stream, and then can perform a first type of identity recognition on the target object in the target image frame based on a similar object database to obtain a first recognition result.
[0098] It is understood that the application client here can be run on the above Figure 2 In the target user terminal shown, when the target user collects image data containing the target object through the target user terminal, the target user terminal can determine the business scenario to which the corresponding object belongs based on the different attributes of the object (for example, user or animal) currently presented in the image acquisition interface of the application client. For example, the business scenario here can specifically include the above-mentioned face recognition scenario and animal recognition scenario, etc. Among them, the face recognition scenario can be the business scenario corresponding to the above-mentioned face recognition business; similarly, the animal recognition scenario can be the business scenario corresponding to the above-mentioned stray animal supervision business.
[0099] It should be understood that in an embodiment of the present application, the target user terminal can call the front camera to collect the image data stream associated with the target user when the front camera associated with the application client is turned on; wherein the image data stream here can specifically include at least one image data associated with the target user. It can be understood that the target user terminal can perform object detection on the target object in the collected image data through the application client during the process of collecting these image data. If it is detected that the target object here belongs to the user, the target user terminal can determine that the business type corresponding to the application client can belong to the first business scenario, and the first business scenario can be the above-mentioned face recognition scenario. Optionally, if it is detected that the target object here belongs to a non-user (for example, an animal), the target user terminal can determine that the business type corresponding to the application client can belong to the second business scenario, and the second business scenario can be the above-mentioned animal recognition scenario.
[0100] Among them, for ease of understanding, the embodiment of the present application can take the business scenario as the first business scenario (i.e., the above-mentioned face recognition scenario) as an example. Under the first business scenario (i.e., face recognition scenario), the application client running in the target user terminal can specifically include some clients with face recognition services, such as a lock screen client for terminal unlocking based on face, a client for application login based on face, a remote client for remote verification based on face, a access control client for access control unlocking based on face, a payment client for offline payment based on face, an attendance client for attendance based on face, and a customs clearance client for automatic face swiping based on face, etc.
[0101] Among them, it can be understood that when the target user terminal collects the image data stream containing the target object (i.e., the face of the target user) through the above-mentioned application client (e.g., the payment client), the collected image data stream can be signed by the application private key of the application client to obtain the application signature information for the image data stream. Furthermore, the target user terminal can encapsulate the application signature information and the image data stream to obtain the business data packet corresponding to the application client. At this time, the target user terminal can upload the business data packet carrying the application signature information to the computer device (i.e., the above-mentioned business server), so that the business server can perform signature verification on the application signature information carried in the business data packet according to the application public key of the application client to ensure the reliability of the data source.
[0102] For further understanding, please refer to Figure 4 , Figure 4 : is a schematic diagram of a scenario for obtaining an image data stream provided by an embodiment of the present application. Figure 4 The application display interface 300a shown is the above-mentioned application client (for example, a payment client, such as Figure 4 As shown, the payment client may specifically be an application display interface of a video client). Figure 4 As shown, the application display interface may include a quantity selection area for a certain item (e.g., movie tickets). Figure 4 The user 1 shown in the figure may be the target user mentioned above. When the target user (i.e. user 1) is Figure 4 After selecting the quantity you need in the quantity selection area in the application display interface 300a, you can click Figure 4 The business control shown (i.e. the "Pay Now" control). At this point, Figure 4 The target user terminal shown can respond to the triggering operation of the service control in the application display interface of the application client to output Figure 4 The image acquisition interface 400a shown in FIG. Figure 4 As shown, the image acquisition interface 400a may include acquisition instruction information for instructing the user 1 to perform image acquisition. This means Figure 4 The user 1 shown can perform corresponding actions according to the collection instruction information to collect one or more image data containing the face of the user 1 (here mainly refers to the face image data of the user 1 currently collected). The embodiment of the present application can upload these image data containing the face of the user 1 as an image data stream. Figure 4 Business server shown.
[0103] Optionally, in order to ensure the legitimacy of the image data stream obtained by the service server, the target user terminal in the embodiment of the present application can send the application signature information for the image data stream to the service server at the same time as sending the image data stream to the service server. Figure 4 Business server shown.
[0104] Optionally, the target user terminal may also pre-encapsulate the image data stream and the application signature information to encapsulate the service data packet (ie Figure 4 The service data packet 30a) carrying the application signature information is sent to Figure 4 The business server shown. Figure 4 When the service server obtains the service data packet 30a uploaded by the target user terminal, the service data packet 30a can be further parsed by the streaming media service associated with the application client (for example, the aforementioned video client) to obtain the application signature information 30b corresponding to the application client and the target object (i.e. Figure 4 It can be understood that the application signature information 30b here is obtained by the application client signing the collected image data stream 30c through the application private key stored locally.
[0105] It can be understood that the core function of the streaming media service is mainly to verify the image data stream 30c from the target user terminal. In addition, when determining that the user 1 belongs to a similar user group (i.e., the first type of user mentioned above), the streaming media service here can further distribute the image data stream 30c to other recognition services, so as to further provide a parallel K-path pattern recognition service in the business server. In addition, the streaming media service here can also be used to receive the recognition results obtained by the K-path pattern recognition service, and then return the obtained recognition results to Figure 4 The target user terminal is shown.
[0106] for example, Figure 4 The business server shown can verify the signature of the application signature information obtained by parsing through the public application public key of the application client, and then when the signature verification is successful, it can be determined that the data source of the image data stream 30c is legitimate, so Figure 4 The image data stream 30c shown is determined to be a legitimate data stream. Further, the service server can obtain a target image frame containing a target object from the legitimate data stream, and thus can perform a first type of identity recognition on the target object in the target image frame based on the similar object database to obtain a first recognition result.
[0107] For ease of understanding, please refer to Figure 5 , Figure 5 4 is a schematic diagram of a scenario of selecting a target image frame from a legitimate data stream provided by an embodiment of the present application. It can be understood that the legitimate data stream 40a here can be the above Figure 2 The image data stream 100a in the corresponding embodiment, that is, the image frame in the legal data stream 40a, may specifically include the above Figure 2 The image frame in the corresponding embodiment. It can be understood that, Figure 5 As shown, the embodiment of the present application can perform serialization processing on the legal data stream 40a to obtain an initial image sequence corresponding to the legal data stream 40a.
[0108] Furthermore, the service server may use each image frame of the initial image sequence as a candidate image frame. Figure 5 As shown, each candidate image frame in the initial image sequence may specifically include Figure 5 In the process of image acquisition, in order to detect the liveness of the target user, the target user is usually required to perform corresponding actions (for example, blinking, opening the mouth, specific gestures, etc.) according to certain acquisition instructions. Therefore, the legitimate data stream (for example, Figure 5 There may be some image frames with poor image quality (i.e., there are certain blurred image frames) in the legitimate data stream 40a) in the corresponding embodiment. Based on this, after the embodiment of the present application uses these image frames in the legitimate data stream as candidate image frames, the corresponding screenshot area containing the target object (i.e., the face of the target user) can be captured from these candidate image frames as the target object area.
[0109] For example, Figure 5 As shown, the embodiment of the present application can capture a screenshot area 3a containing a human face from the candidate image frame 2a, a screenshot area 3b containing a human face from the candidate image frame 2b, ..., a screenshot area 3m containing a human face from the candidate image frame 2m, and a screenshot area 3n containing a human face from the candidate image frame 2n. Further, as Figure 5 As shown, in the embodiment of the present application, the screenshot area containing the target object captured from each candidate image frame may be collectively referred to as the target image area.
[0110] Furthermore, the business server may perform a quality assessment on each captured target object region containing the target object to obtain a corresponding quality assessment result; then, the business server may filter out the target object according to the quality assessment result. Figure 5The blurred image frames in the candidate image frames shown (for example, the candidate image frame 2c can be filtered out, not shown in the figure), and then after filtering out the candidate image frames of the blurred image frames, the candidate image frames with the highest resolution (for example, the candidate image frame 2k, not shown in the figure) can be determined as the target image frames containing the target object. It can be understood that the target image frame here can be the best image frame selected from the legal data stream, and the best image frame here refers to the candidate image frame where the screenshot area with the best image quality is located.
[0111] Furthermore, the service server can use the face recognition service to identify the target object (for example, the above-mentioned Figure 4 The face recognition service here can be used to identify whether the face of the above-mentioned user 1 (i.e., the target user) is consistent with the face of a similar object (in the face recognition scenario, the similar object here can be a similar user) stored in a similar object database. If they are consistent, it can be determined that the target object is a similar object in the similar object database. This means that the object (i.e., user 1) corresponding to the target object (i.e., the face of user 1) belongs to a similar user group to which similar users belong, and the recognition result that the user 1 belongs to a similar user group can be used as the first recognition result, and then the following step S102 can be continued.
[0112] It is understandable that in the face recognition scenario, the target object here can be preferentially the face of a certain user. Optionally, since face recognition is a form of biometrics, other biometrics (e.g., iris recognition or fingerprint recognition) can also be used for the first type of identity recognition in some other scenario embodiments, and the biometrics used for the first type of identity recognition will not be limited here.
[0113] Step S102, if the first recognition result indicates that the target object is a similar object in the similar object database, then obtaining similar identity identification information associated with the similar object, and obtaining a K-path pattern recognition service configured for the similar identity identification information from a similar service configuration library associated with the similar object database;
[0114] Among them, K can be a positive integer. It can be understood that in the face recognition scenario, the similar object database can be used to store the facial image data of each similar user, that is, the facial image data of each similar user can be the image data composed of the screenshot area where the face with the best quality is located intercepted by the business server from the image data stream collected historically. Optionally, the computer device can encode the intercepted facial image data used to uniquely characterize each similar user to obtain the identity information of each similar user. It can be understood that the embodiment of the present application can collectively refer to the identity information of each similar user (that is, the ID of each similar user) stored in the similar object database as similar identity information.
[0115] For further understanding, please refer to Figure 6 , is a schematic diagram of a scenario for building a similar object database provided by an embodiment of the present application. Figure 6 As shown, the service server can obtain the image frame of each user from the user image database (e.g., face database). For ease of understanding, the embodiment of the present application takes the number of users in the user image database as M as an example, so the image frames of these users obtained by the service server can be: the optimal image frame of each user obtained by the service server from a large number of stored image data streams.
[0116] Specifically, Figure 6 As shown, the M users here can specifically be user B1, user B2, user B3, ... user B M .like Figure 6 As shown, the image data of user B1 may be face image data 50a, the image data of user B2 may be face image data 50b, ..., the image data of user B M The image data may be face image data 50m. For ease of understanding, in order to traverse and find users belonging to a similar user group from the M users, the embodiment of the present application may pre-set Figure 6 The i-th face image data shown is compared with other face image data in the M face image data (for example, Figure 6 A one-to-one comparison is performed on the remaining (M-1) face image data except the i-th face image data to obtain the face similarity (simply referred to as similarity) between the i-th face image data and other face image data. Wherein, i is a positive integer less than or equal to M.
[0117] like Figure 6 As shown, the embodiment of the present application can Figure 6The first (i.e., i=1) facial image data (e.g., facial image data 50a) shown is used as the target facial image data, and then other facial image data (e.g., facial image data 50b, ..., facial image data 50m) other than the first image data can be used as image data to be compared, and then the facial image data 50a can be compared with each of the (M-1) image data to be compared, so as to determine the similarity between the face in the facial image data 50a and the face in each of the image data to be compared according to the comparison results, which means that in the process of comparing the facial image data 50a with other facial image data one by one, the (M-1) similarity can be calculated. The (M-1) similarity can specifically include Figure 6 Shown are similarity 1, similarity 2, similarity 3, ..., similarity (M-1).
[0118] For ease of understanding, this application assumes that similarity 1 is Figure 6 The facial similarity between the facial image data 50a and the facial image data 50b is shown in FIG. Similarly, similarity (M-1) can be Figure 6 The facial similarity between the facial image data 50a and the facial image data 50m shown in FIG. 1 is shown in FIG. 1 . Further, if the service server determines that there is a similarity greater than the similarity threshold among these similarities, then the i-th facial image data (for example, Figure 6 The user (ie, user B1) corresponding to the face image data 50a shown in FIG. 5 belongs to the first type of user, so the i-th face image data (eg, Figure 6 The user (i.e., user B1) corresponding to the facial image data 50a) shown in FIG. 5 is configured with similar identity identification information (e.g., ID1), and the similar identity identification information (e.g., ID1) of the i-th facial image data can be added to the first type database corresponding to the first type user, and the first type database can be Figure 6 At this time, the service server can add the i-th face image data (for example, Figure 6 The database 60a of similar identity information (e.g., ID1) of the face image data 50a) shown in the figure is used as a similar object database. It is understandable that the similar object database here can be a similar user group database, and the users in the similar user group database can be similar users whose similarity is greater than the similarity threshold.
[0119] Optionally, it is understandable that in a face recognition scenario, in order to improve the efficiency of image recognition, the embodiment of the present application can, in the process of constructing a similar object database, configure the above-mentioned i-th face image data with similar identity identification information and add it to the first type of database corresponding to the first type of user, and can also add the i-th face image data to the first type of database for storage. In this way, when the business server obtains a new image data stream, it can obtain the optimal image frame (i.e., the above-mentioned target image frame) from the new image data stream to compare the face in the target image frame with the face in the face image data in the constructed similar object database, thereby improving the efficiency of face comparison, thereby helping the business server to obtain the corresponding first recognition result as quickly as possible.
[0120] It should be understood that, in the face recognition scenario, if the application service to be executed by the application client running in the target user terminal has a high identity recognition requirement, the service server corresponding to the application client can further classify the user B1 into a similar user group (i.e., consider that the user B1 belongs to the first type of user) when the similarity between the user B1 and other users (e.g., user B2) is greater than the similarity threshold through the face recognition service, and then configure the identity information (e.g., the above-mentioned ID1) for the user B1 based on the face image data of the user B1, so that the identity information of the user B1 can be added to Figure 6 The database 60a shown, and further the database 60a to which the identity information of the user B1 (eg, the above-mentioned ID1) is added, can be collectively referred to as a similar object database.
[0121] Similarly, optionally, in the process of constructing a normal object database, the embodiment of the present application may also add the above-mentioned i-th facial image data configuration object identity identification information to the second type of database corresponding to the second type of user, and may also add the i-th facial image data to the second type of database for storage, which will not be further elaborated here.
[0122] For example, it is understandable that Figure 6As shown, after the business server determines that the user B1 belongs to the first type of user (i.e., a highly similar user), the user B1 and users similar to the user B1 (e.g., user B2) can be removed from the comparison queue corresponding to the M users, so that the new i-th person's face image data (i.e., new target person's face image data) can be obtained from the remaining (M-2) people in the comparison queue, and new image data to be compared can be obtained, and then the new i-th person's face image data (i.e., new target person's face image data) and the new image data to be compared can be compared one by one, until there is no new image data to be compared in the comparison queue corresponding to the M users, it is determined that the business server has currently completed the classification of the M users. For example, the user B1 and the user B2 among the M users can be classified into Figure 6 The database 60a (i.e., the first type of database) shown in FIG. 1 is a database of user B among the M users. M Classify to Figure 6 The database 60b is shown (ie, the second type of database).
[0123] Furthermore, in order to prevent the business server from misidentifying faces when using the above-mentioned face recognition service, the embodiment of the present application can further configure a corresponding number of pattern recognition services for the similar identity information of each user in the similar object database. For example, the business server can configure the i-th face image data (for example, Figure 6When the similarity of the facial image data 50a shown is greater than the similarity threshold, based on the similarity of the i-th facial image data and the registered biometric information (e.g., iris information, fingerprint information, nose print information, etc.) entered by the user corresponding to the i-th facial image data (i.e., the above-mentioned user B1), N types of pattern recognition services are configured for the similar identity information of the i-th facial image data; N here can be a positive integer; one type corresponds to one pattern recognition service; it can be understood that the value of N here can include the value of K. Further, the business server can add N-way pattern recognition services to the configuration service database associated with the first type of user to obtain a similar service configuration library associated with the similar object database. For example, for users B1 and B2 with a high degree of similarity, a corresponding number of types (e.g., 3 types) of pattern recognition services can be configured for the similar identity information (e.g., ID1) of user B1 according to the types of biometric information entered by user B1 (e.g., 3 types). Similarly, the embodiment of the present application can also configure a corresponding number of types (e.g., 2 types) of pattern recognition services for the similar identity information (e.g., ID2) of user B2 according to the type (e.g., 2 types) of biometric information entered by user B2. It should be understood that the embodiment of the present application will not list one by one the types of pattern recognition services configured by the business server for the similar identity information of other users stored in the similar object database.
[0124] Among them, optional, such as Figure 6 As shown, if there is no similarity greater than the similarity threshold among these similarities, the service server can determine the i-th face image data (for example, Figure 6 The user corresponding to the face image data 50a shown in FIG. 5 belongs to the second type of user, and can be the i-th face image data (for example, Figure 6 The user corresponding to the face image data 50a shown in the figure configures another identity information (ie, object identity information, for example, ID1'). At this time, the service server can store the i-th face image data (for example, Figure 6 The object identification information (eg, ID1′) of the face image data 50a shown in FIG. 5 is added to the second type database corresponding to the second type user. The second type database here may be Figure 6 Then, the service server may refer to the second type of database to which the object identification information of the i-th face image data is added as a normal object database. It is understandable that the normal object database here may be a non-similar user group database.
[0125] Optionally, it is understood that after executing the above step S101 and without executing step S102, the business server may further execute the following steps: if the first recognition result indicates that the target object does not belong to a similar object in the similar object database, the business server may select a normal object from a constructed normal object database (for example, Figure 6 The object identification information of the user corresponding to the target object is obtained from the database 60b shown, and the object identification information can be returned to the application client as a normal identity authentication result; wherein the normal identity authentication result can be used to instruct the application client to execute the application service when the object identification information is the same as the cached identity information. This means that when the service server determines that the target object (i.e., the face of the target user) in the currently acquired image data stream does not belong to the similar user group, the optimal image frame (i.e., the above-mentioned target image frame) obtained from the image database can be further compared with the face image data in the normal image database, and then, when the similarity is greater than the similarity threshold, the object identification information of the user with the highest similarity to the target user can be further obtained, and then the above-mentioned application client can be allowed to directly execute the above-mentioned application service based on the object identification information.
[0126] Step S103, performing second-category identity recognition on target objects in the image data stream respectively through K-path pattern recognition services to obtain K second recognition results;
[0127] Specifically, the business server can output K-path pattern recognition services to the service scheduling component, and configure the image data stream to the K-path pattern recognition services through the service scheduling component; further, the business server can obtain the j-th pattern recognition service from the K-path pattern recognition services; wherein j can be a positive integer less than or equal to K; further, the business server can perform a second type of identity recognition on the target object in the image data stream through the j-th pattern recognition service, until the second type of identity recognition is performed on the target object in the image data stream through each pattern recognition service, and K second recognition results are obtained.
[0128] It should be understood that if the user corresponding to the above-mentioned application client (i.e., the target user, for example, user 1) belongs to a similar user group (i.e., the first type of user), it is possible to further obtain a multi-path pattern recognition service from the already constructed similar service configuration library through a high-similarity recognition scheduling service (i.e., to obtain the above-mentioned K-path pattern recognition service), so that the image data stream obtained in the above-mentioned step S101 can be given to the service scheduling component for providing high-similarity recognition services through the streaming media service in the business server, so that the image data stream can be distributed to the K-path pattern recognition service through the service scheduling component, so that the K-path pattern recognition service can extract the image features of the image frames in the image data stream in parallel, so as to further compare the image features of the image frames corresponding to the extracted features of the corresponding types and other historically collected biometric information stored in the high-similarity service configuration library, so as to obtain K second recognition results.
[0129] It can be understood that if the K second recognition results all indicate that the target object (e.g., the face of the target user) in the image data stream belongs to the same user, and the user is the same as the user corresponding to the similar object identified by the first recognition result, it can be considered that the identity authentication is successful, and then step S104 can be further performed. Optionally, if there is one or more second recognition results among the K second recognition results indicating that the target object (e.g., the face of the target user) in the image data stream does not belong to the same user, it can be determined that the identity authentication has failed, so that when the target object and the similar object do not belong to the same object, an identity authentication failure result for the target object can be generated, and the identity authentication failure result can be further returned to the application client, so that the application client outputs the identity authentication failure result on the application display interface.
[0130] Step S104: if the K second recognition results all indicate that the target object is a similar object, the similar identity identification information is output to the application client, so that the application client executes the application service based on the similar identity identification information.
[0131] Specifically, if the K second identification results all indicate that the identity information of the target object is similar identity information mapped by the similar object, the business server can determine that the target object and the similar object belong to the same object; further, the business server can use the similar identity information as a similar identity authentication result and return the similar identity authentication result to the application client; wherein, the similar identity authentication result is used to instruct the application client to execute the application business when the object identity information is the same as the cached identity information.
[0132] When the computer device in the embodiment of the present application obtains the image data stream containing the target object collected by the application client, it can perform a first type of identity recognition on the target object in the image data stream based on the similar object database to obtain a first recognition result; wherein, it can be understood that the target object here can include the face of a certain user (for example, the target user), and in this case, the first type of identity recognition here can specifically be face recognition; further, if the first recognition result indicates that the target object is a similar object in the similar object database (for example, a similar user group), the computer device can obtain similar identity identification information associated with the similar object, and then can obtain a K-way pattern recognition service configured for the similar identity identification information from the similar service configuration library associated with the similar object database; wherein K can be a positive integer; it can be understood that the K-way pattern recognition service here can specifically include iris recognition service, bone recognition service, nose print recognition service, etc., which will not be limited here. Further, the computer device can perform a second type of identity recognition on the target object in the image data stream respectively through K-way pattern recognition services to obtain K second recognition results; it should be understood that the second type of identity recognition here can be specifically a parallel multi-way pattern recognition service, and one type of pattern recognition service is a one-way pattern recognition service. Further, if the K second recognition results all indicate that the target object is a similar object, the computer device can output the similar identity identification information to the application client so that the application client performs the application service based on the similar identity identification information. It can be seen that in the embodiment of the present application, when the computer device recognizes that the object corresponding to the target object (i.e., the aforementioned target user) belongs to a similar user group, it can further use other pattern recognition services (i.e., the aforementioned K-way pattern recognition services) to identify the target object in the image data stream collected by the application client, so that the target objects identified by the K-way pattern recognition services are consistent with the similar objects identified during the above-mentioned face recognition, then the user identity of the target object can be further determined, so that the similar identity identification information mapped by the aforementioned similar objects (i.e., the identification information for uniquely identifying the user identity of the user to which the target object belongs) can be returned to the application client to ensure the accuracy of object recognition. At this time, the application client can further compare the accurately identified similar identity information with the cached identity information associated with the image data stream cached in the application client, and then execute the corresponding application service (for example, payment service) when they are consistent, thereby ensuring the reliability of service execution.
[0133] For further information, see Figure 7 , Figure 71 is a flowchart of an image data processing method provided by an embodiment of the present application. It can be understood that the method provided by the embodiment of the present application can be executed by a computer device, and the computer device here includes but is not limited to a user terminal or a service server. For ease of understanding, the embodiment of the present application takes the user terminal and the service server interacting to execute the method as an example, and the user terminal can be the above-mentioned Figure 2 The target user terminal in the corresponding embodiment, the service server here can be the above Figure 2 The business server in the corresponding embodiment. Figure 7 As shown, the method may at least include the following steps S201 to S209;
[0134] Step S201, the user terminal responds to a triggering operation on an application display interface of an application client and outputs an image acquisition interface of the application client;
[0135] Step S202, the user terminal collects an image data stream containing the target object through the image collection interface, and uploads the image data stream to the service server;
[0136] Step S203, the business server performs a first type of identity recognition on the target object in the image data stream based on the similar object database to obtain a first recognition result;
[0137] Specifically, it can be understood that the business server can obtain the image data stream containing the target object collected by the application client in the business data packet uploaded from the user terminal. For example, when the user terminal collects the image data stream containing the target object, the user terminal can further sign the image data stream through the application private key of the application client to obtain the application signature information corresponding to the application client. It should be understood that in order to ensure the security of the user terminal and the business server during data transmission. The user terminal in the embodiment of the present application can encapsulate the application signature information and the image data stream obtained by the signature in advance before uploading the image data stream to the business server to obtain a business data packet carrying the application signature information. In this way, when the business server obtains this business data packet, it can further parse the business data packet to restore the application signature information and the image data stream. It can be understood that before using the image data stream for identity authentication, the business server also needs to verify the reliability of the data source of the image data stream. For example, the business server can perform signature verification on the parsed application signature information through the application public key of the application client, and when the signature verification succeeds, it can be determined that the data source of the image data stream parsed by the business server is legal, so that the image data stream parsed by the business server can be determined as a legal data stream. Further, the business server can perform a first type of identity recognition on the target object in the legal data stream based on the similar object database to obtain a first recognition result.
[0138] The specific implementation method of the business server performing the first identity recognition (for example, face recognition) on the target object in the legitimate data stream can be referred to above. Figure 3 The description of the specific process of performing face recognition using the face recognition service in the corresponding embodiment will not be repeated here.
[0139] Among them, it can be understood that if the first recognition result indicates that the face recognition service is used on the business server, and it is determined that the similarity (for example, 95%) between the target object in the legitimate data stream (for example, the face of a certain user) and the similar object stored in the similar object database (for example, the face of a highly similar user) is greater than the similarity threshold (for example, 90%), then the target object in the legitimate data stream can be temporarily determined as a similar object in the similar object database, and then the following step S204 can be continued to be executed to further perform multi-channel identity authentication, thereby effectively solving the problem of misidentification when performing the first type of identity recognition (for example, face recognition).
[0140] Optionally, if the first recognition result indicates that a face recognition service is used on the business server to determine that the similarity (for example, 85%) between the target object in the legitimate data stream (for example, the face of a certain user) and the similar object stored in the similar object database (for example, the face of a highly similar user) is less than or equal to a similarity threshold (for example, 90%), then it can be determined that the target object in the legitimate data stream is a normal object (that is, a non-similar user) in the above-mentioned non-similar object database (that is, a normal object database), and then the process can continue to jump to execute the following step S208.
[0141] Step S204: if the first recognition result indicates that the target object is a similar object in the similar object database, the business server obtains similar identity identification information associated with the similar object, and obtains K-path pattern recognition services configured for the similar identity identification information from a similar service configuration library associated with the similar object database; K is a positive integer;
[0142] It is understood that the construction method of the similar object database here can be referred to above. Figure 3 The description of the specific process of obtaining the first type of database in the corresponding implementation will not be repeated here.
[0143] In addition, it is understandable that before performing the first type of identity recognition, the business server can also pre-build a similar object database for storing similar identity information of each user, and can also build a similar service configuration database associated with the similar object database. The similar service configuration database here can be used to store one or more types of pattern recognition services corresponding to the similar identity information of each user. The specific construction method of the similar service configuration database can be referred to above. Figure 3 The description of the specific process of building a similar service configuration library in the corresponding embodiment will not be repeated here.
[0144] Step S205, the business server performs second-category identity recognition on target objects in the image data stream respectively through K-path pattern recognition services to obtain K second recognition results;
[0145] It can be understood that after the business server executes the above step S205, if the K second recognition results all indicate that the target object is a similar object, that is, the recognition result obtained by the business server using the K-path pattern recognition service is completely consistent with the recognition result obtained by the business server using the above face recognition service, then at this time, the business server can further execute the following step S206.
[0146] Optionally, if there is at least one second recognition result among the K second recognition results that does not indicate that the identity information of the target object is similar identity information mapped by a similar object, it indirectly indicates that the recognition result obtained by the business server using the parallel K-path pattern recognition service is not completely consistent with the recognition result obtained by the business server using the above-mentioned face recognition service, and thus it can be quickly determined that the target object and the similar object do not belong to the same object; further, the business server can generate an identity authentication failure result for the target object when the target object and the similar object do not belong to the same object, and then can return the identity authentication failure result to the application client, so that the application client outputs the identity authentication failure result on the application display interface.
[0147] Step S206: If the K second recognition results all indicate that the target object is a similar object, the business server outputs the similar identity identification information to the application client;
[0148] It can be understood that after the business server executes steps S205-S206, the user terminal can receive the similar identity identification information of the target object returned by the business server based on the K-path pattern recognition service. At this time, the user terminal can continue to execute the following step S207 to execute the application service of the application client based on the similar identity identification information.
[0149] Step S207, the user terminal executes the application service based on the similar identity identification information;
[0150] It can be understood that when the user terminal obtains similar identity identification information returned by the service server, it can compare the cached identity identification information of the above-mentioned image data stream stored in the local terminal with the similar identity identification information. If the two are consistent, the user terminal can allow the application client to execute the corresponding application service (for example, the application service here can specifically include payment services. For example, movie tickets can be purchased in a group by face-swiping payment in the application client (for example, Tencent Video client), so that the user corresponding to the user terminal can subsequently invite other people with the same viewing interest to watch movies online synchronously in the same virtual room).
[0151] Optionally, in step S208, if the first recognition result indicates that the target object does not belong to a similar object in the similar object database, the business server obtains the object identity information of the user corresponding to the target object from the normal object database, uses the object identity information as a normal identity authentication result, and returns the normal identity recognition result to the application client;
[0152] It is understood that the construction method of the normal object database here can refer to the above Figure 3The description of the specific process of obtaining the second type of database in the corresponding implementation will not be repeated here.
[0153] Step S209 : When the application client in the user terminal determines that the object identity information is the same as the cached identity information based on the normal identity authentication result, the application service is executed.
[0154] For further understanding, please refer to Figure 8 , Figure 8 is a schematic diagram of a scenario for solving misidentification of highly similar people through a multi-path pattern recognition service provided by an embodiment of the present application. It can be understood that when Figure 8 The application client shown runs on Figure 8 In the user terminal shown, the user terminal can call the camera (e.g., front camera) of the user terminal through the application client (e.g., social client) to collect one or more image data for a certain user (e.g., user D).
[0155] It can be understood that when the user D starts the image acquisition function, the user terminal can Figure 6 The application client shown performs object detection on an object presented on the image acquisition interface. If the object in the image acquisition interface is detected to be the user D, the face recognition function can be started, and the business scenario of the application client can be determined as the above face recognition scenario. It can be understood that if Figure 8 As shown, when the user terminal determines that the business scenario is a face recognition scenario, the camera can be called to continuously collect data, and the continuously collected image data can be uploaded as streaming media to Figure 8 Business server shown.
[0156] It can be understood that the streaming media here refers to compressing a series of media data (here refers to the collected image data) and continuously sending the encapsulated data packets (i.e. the above-mentioned business data packets) to the business server through the network, so that the business server can continuously obtain the image data stream containing the target object to be transmitted through Figure 8 The face recognition service provided by the streaming media backend shown (ie, the service provided by the face recognition service component) performs face recognition (ie, the first type of identity recognition mentioned above).
[0157] Among them, it is understandable that Figure 8 The streaming media service (i.e., the service provided by the streaming media service component) shown in FIG. 1 can verify the image data stream from the user terminal. The specific implementation method of the service server verifying the image data stream can be referred to in the above Figure 3The description of the specific process of obtaining the legal data stream in the corresponding embodiment will not be repeated here. Figure 8 As shown, when the business server Figure 8 When the face image data stored in the highly similar user ID library (i.e., the similar object database) is determined to belong to a highly similar user (e.g., user D') in a highly similar group of people, Figure 8 The similar identity information (eg, ID4) of user D' is obtained from the highly similar user ID database (ie, the similar object database described above). Figure 8 As shown, the highly similar user ID database here (i.e. the similar object database mentioned above) is composed of Figure 8 The high similarity user ID library is determined after a large amount of face image data in the face database shown is compared similarly (for example, manually), wherein the specific implementation method of constructing the high similarity user ID library can refer to the above Figure 3 The description of constructing the similar object database in the corresponding embodiment will not be further elaborated here.
[0158] Furthermore, the business server can Figure 8 The high similarity identification scheduling service shown (i.e., the service provided by the above service scheduling component) is from Figure 8 The service configuration information is read from the high similarity service configuration library (i.e., the similar service configuration library described above) to obtain the K-path pattern recognition service configured for the user D'. Figure 8 The K-path mode shown may specifically include Figure 8 The iris recognition service, skeleton recognition service and other recognition services (e.g., nose print recognition service) shown in the embodiment of the present application are iris recognition service, skeleton recognition service, and nose print recognition service as examples of K-path pattern recognition services configured for the similar identity identification information (e.g., ID4) of the user D'. Figure 8 As shown, the business server can Figure 8 The streaming media service component shown distributes the image data stream from the user terminal to the pattern recognition services associated with the service scheduling component, so that each pattern recognition service can perform second-class identity recognition on the target object (i.e., the face of the user D) in the acquired image data stream, so as to obtain recognition result 1 corresponding to the iris recognition service, recognition result 2 corresponding to the bone recognition service, and recognition result 3 corresponding to the nose print recognition service. At this time, the business server can collectively refer to the recognition results (i.e., recognition result 1, recognition result 2, and recognition result 3) recognized by each pattern recognition service as the second recognition result.
[0159] Further, such as Figure 8As shown, after obtaining these second recognition results, the service server can Figure 8 The high similarity determination service shown (i.e., the service provided by the high similarity determination service component) compares the three (i.e., K=3) second recognition results with the first recognition result to determine whether the similar users identified by each second recognition result are the same user as the similar users identified by the first recognition result. If they are the same user, it can be indirectly determined that the similar identity identification information of the similar users obtained after multiple identity authentications are all the above-mentioned ID4, and then, if the IDs are consistent, the similar identity identification information (e.g., ID4) can be used as the similar identity authentication result, and the similar identity authentication result can be transmitted through the above-mentioned streaming media service component (i.e., for providing Figure 8 Components of the streaming service shown) are returned to Figure 8 The application client is shown.
[0160] Optionally, if one or more of the three second recognition results do not indicate that the identity information of the target object is similar identity information mapped by the similar object, it can be determined that the target object and the similar object do not belong to the same object, and then the target object can be identified in the case of an ID. Figure 8 The application client shown returns an authentication failure result.
[0161] It can be understood that, in the embodiment of the present application, the above-mentioned similar identity authentication results or identity authentication failure results can be collectively referred to as results that need to be returned to the user terminal. Figure 8 As shown, if the service server determines based on the first recognition result that the target object in the image data stream does not belong to Figure 8 When the target object in the image data stream is a normal user in the normal object database, it can be indirectly determined that the target object in the image data stream belongs to a normal user in the normal object database, which means that the user D does not belong to a similar user. Therefore, the object identity information of the user D can be obtained from the normal object database, so that the object identity information can be used as a normal identity authentication result to return the normal identity recognition result to Figure 8 The application client is shown.
[0162] It can be understood that in the embodiment of the present application, the business server Figure 8 Before the high similarity identification scheduling service shown obtains K-way pattern recognition from the high similarity service configuration library, the business server can also pre-configure a corresponding number of pattern recognition services for each user ID in the high similarity user ID library. For ease of understanding, further, please refer to Fig. 9 , Fig. 9 Schematic diagram of a scenario for establishing a highly similar service configuration library provided by an embodiment of the present application. Fig. 9 The highly similar user ID database shown can be the above-mentioned similar object database. Fig. 9 The similar object database shown may contain Fig. 9 For example, similar user 1 (for example, Figure 6 The similar identity information of the user B1) in the corresponding embodiment can be Fig. 9 For example, similar user 2 (for example, the user ID Figure 6 The similar identity information of the user B2) in the corresponding embodiment can be Fig. 9 Similarly, similar user 3 (for example, user B3, not in the above Figure 6 Similar identity information shown in the corresponding embodiment) can be Fig. 9 User ID3 is shown.
[0163] It is understandable that for these three users, the business server can obtain the score of each similar user based on the high similarity between different similar users, and thus can configure a corresponding number of pattern recognition services for the user IDs of these similar users based on the score of each similar user and / or other biometric information entered by each similar user during pre-registration.
[0164] For example, Fig. 9 As shown, the service server can configure a user ID1 of user B1 based on the score of user B1 (for example, 95 points) and the three types of biometric information entered by user B1. Fig. 9 The three (ie N=3) pattern recognition services shown (ie pattern recognition service T1, pattern recognition service T2 and pattern recognition service T3). The pattern recognition service T1 can be the above Figure 8 The iris recognition service in the corresponding embodiment. Fig. 9 As shown, the service server can configure a user ID2 for user B2 based on the score of user B2 (for example, 95 points) and the two types of biometric information entered by user B1. Fig. 9 The 2 (ie N=2) pattern recognition services (ie pattern recognition service T1 and pattern recognition service T2) shown in the figure are as follows: Fig. 9 As shown, the service server can configure a user ID3 for user B3 based on the score of user B3 (for example, 99 points) and the other two types of biometric information entered by user B1. Fig. 9 The 2 (ie, N=2) pattern recognition services (ie, pattern recognition service T1 and pattern recognition service T3) shown in FIG. 1 are shown in FIG. 1. It should be understood that the N pattern recognition services configured by the service server for each similar user may include but are not limited to: Fig. 9The three types of pattern recognition services shown are not listed here one by one. At this time, the business server can construct a high similarity service configuration library (ie, the above similar service configuration library) based on the corresponding number of pattern recognition services configured for the three similar users.
[0165] Optionally, if the user terminal detects that the object in the image acquisition interface is an animal (for example, a puppy), the animal identification function can be activated, and the business scenario of the application client can be determined as the above-mentioned animal identification scenario. This means that when user D currently holding the user terminal finds a stray puppy, the animal can be subjected to multiple identity identifications through the method provided in the embodiment of the present application to ultimately confirm the true identity information of the puppy, that is, whether the puppy belongs to a stray dog cluster (that is, a similar object database). If so, the user terminal can generate management prompt information for the stray dog based on the identity information of the stray dog returned by the business server, thereby quickly and accurately helping relevant units (for example, animal management departments) to supervise the stray puppy.
[0166] In an embodiment of the present application, when the computer device recognizes that the object corresponding to the target object (i.e., the aforementioned target user) belongs to a similar user group, it can further use other pattern recognition services (i.e., the aforementioned K-path pattern recognition service) to identify the target object in the image data stream collected by the application client, so that when the target objects identified by the K-path pattern recognition service are consistent with the similar objects identified during the above-mentioned face recognition, the user identity of the target object can be further determined, so that the similar identity identification information mapped by the aforementioned similar objects (i.e., the identification information used to uniquely identify the user identity of the user to whom the target object belongs) can be returned to the application client to ensure the accuracy of object recognition. At this time, the application client can further compare the accurately identified similar identity identification information with the cached identity identification information associated with the image data stream cached in the application client, and then execute the corresponding application business (e.g., payment business) when they are consistent, so as to ensure the reliability of business execution. It should be understood that the embodiments of the present application can effectively reduce the dependence on hardware in object recognition scenarios by integrating components corresponding to multiple pattern recognition services in the same computer device, thereby improving the user experience and further enhancing the stickiness between the user and the application client.
[0167] For further information, see Fig.10 , Fig.10 is a flow chart of an image data processing method provided by an embodiment of the present application. The method can be executed by the above-mentioned computer device. The computer device here can be a user terminal. The user terminal can be the above-mentioned Figure 2 The target user terminal in the corresponding embodiment. The method may include the following steps S301-S303;
[0168] Step S301, responding to a triggering operation on an application display interface of an application client, outputting an image acquisition interface of the application client;
[0169] Step S302, collecting an image data stream containing the target object through an image collection interface, and uploading the image data stream to a service server;
[0170] Among them, it can be understood that when the user terminal executes step S302, the business server can obtain the image data stream, and then can perform a first type of identity recognition on the target object in the image data stream based on the similar object database to obtain a first recognition result; it can be understood that the first recognition result here is used to indicate that when the target object is a similar object in the similar object database, the business server further obtains a K-path pattern recognition service for performing a second type of identity recognition on the target object from a similar service configuration library associated with the similar object database, so as to further perform a second verification on the identity of the user corresponding to the user terminal through the K-path pattern recognition service to solve the problem of misidentification in a highly similar group of people.
[0171] Step S303, receiving similar identity identification information of the target object returned by the business server based on the K-path pattern recognition service, and executing the application business of the application client based on the similar identity identification information;
[0172] It can be understood that the specific implementation of steps S301 to S303 can be found in the above Figure 7 The description of the user terminal in the corresponding embodiment will not be repeated here.
[0173] It can be seen from this that the embodiment of the present application can, when it is first identified that the user corresponding to the application client (for example, user 2) belongs to a highly similar user (for example, user 3) in a similar user group, further verify the identity of this user 2 through parallel multi-channel pattern recognition services. Therefore, when each pattern recognition service identifies that this user 2 belongs to the same highly similar user in a similar user group, it can be ensured that this user 2 and the highly similar user (for example, user 3) in the similar user group are the same user. Then, in the similar user group, the similar identity authentication information of the highly similar user (for example, user 3) can be output to the application client, so that the application client can compare the locally stored cached identity identification information with the received identity identification information. If they are the same, the application service corresponding to the application client (for example, payment service) can be executed.
[0174] For further information, see Fig.11 , Fig.11 It is a structural diagram of an image data processing device provided in an embodiment of the present application. The above-mentioned image data processing device 1 can be a computer program (including program code) running in a computer device. For example, the image data processing device 1 can be an application software; the device can be used to execute the corresponding steps in the method provided in the embodiment of the present application. Among them, the image data processing device 1 may include: a data stream acquisition module 11, a similar identity acquisition module 12, a pattern recognition service module 13 and a similar identity output module 14; further, the image data processing device 1 may also include: a streaming media acquisition module 15, a to-be-compared determination module 16, a similarity determination module 17, a similar identity configuration module 18, an object identity configuration module 19, a normal identity return module 20, an identification service configuration module 21, a configuration library determination module 22, an indication determination module 23 and a failure result generation module 24.
[0175] The data stream acquisition module 11 is used to acquire the image data stream containing the target object collected by the application client, and perform a first type of identity recognition on the target object in the image data stream based on the similar object database to obtain a first recognition result;
[0176] The data flow acquisition module 11 includes: a data packet parsing unit 111, a signature verification unit 112, a legal determination unit 113 and a first identity recognition unit 114;
[0177] The data packet parsing unit 111 is used to obtain the service data packet uploaded by the application client, parse the service data packet through the streaming media service associated with the application client, and obtain the application signature information corresponding to the application client and the image data stream containing the target object; the application signature information is obtained by the application client signing the collected image data stream through the application private key;
[0178] The signature verification unit 112 is used to verify the signature of the application signature information by using the application public key corresponding to the application private key;
[0179] A legal determination unit 113, configured to determine, when the signature verification succeeds, that the application client sending the image data stream is a legal client, and to determine that the image data stream belongs to a legal data stream associated with an associated application service of the application client;
[0180] The first identity recognition unit 114 is configured to obtain a target image frame containing a target object from a legitimate data stream, and perform a first type of identity recognition on the target object in the target image frame based on a similar object database to obtain a first recognition result.
[0181] Wherein, the target object includes the face of the target user;
[0182] The first identity recognition unit 114 includes: a candidate frame determination subunit 1141, a quality assessment subunit 1142, a fuzzy frame filtering subunit 1143 and a face recognition subunit 1144;
[0183] The candidate frame determination subunit 1141 is used to perform serialization processing on the legal data stream to obtain an initial image sequence corresponding to the legal data stream, and use each image frame of the initial image sequence as a candidate image frame;
[0184] The quality assessment subunit 1142 is used to determine a target object region containing a target object in the candidate image frame, intercept the corresponding target object region containing the target object from the candidate image frame, and perform quality assessment on each intercepted target object region containing the target object to obtain a quality assessment result;
[0185] A blurred frame filtering subunit 1143 is used to filter out blurred image frames from the candidate image frames according to the quality evaluation result, and after filtering out the candidate image frames of the blurred image frames, determine the candidate image frame with the highest resolution as the target image frame containing the target object;
[0186] The face recognition subunit 1144 is used to perform face recognition on the target object in the target image frame based on the similar object database to obtain a first recognition result.
[0187] The specific implementation of the candidate frame determination subunit 1141, the quality assessment subunit 1142, the blur frame filtering subunit 1143 and the face recognition subunit 1144 can be found in the above Figure 3 The description of the specific process of face recognition in the corresponding embodiment will not be repeated here.
[0188] The specific implementation of the data packet parsing unit 111, the signature verification unit 112, the legal determination unit 113 and the first identity recognition unit 114 can be found in the above Figure 3 The description of the specific process of the first type of identity recognition in the corresponding embodiment will not be repeated here.
[0189] The similar identity acquisition module 12 is used to acquire similar identity identification information associated with the similar object if the first recognition result indicates that the target object is a similar object in the similar object database, and acquire K-path pattern recognition services configured for the similar identity identification information from a similar service configuration library associated with the similar object database; K is a positive integer;
[0190] The pattern recognition service module 13 is used to perform second-category identity recognition on target objects in the image data stream respectively through K-way pattern recognition services to obtain K second recognition results;
[0191] The pattern recognition service module 13 includes: a data stream configuration unit 131, an identification service acquisition unit 132, and a second identity recognition unit 133;
[0192] The data stream configuration unit 131 is used to output the K-path pattern recognition service to the service scheduling component, and configure the image data stream to the K-path pattern recognition service through the service scheduling component;
[0193] The recognition service acquisition unit 132 is used to acquire the j-th pattern recognition service from the K-path pattern recognition services; j is a positive integer less than or equal to K;
[0194] The second identity recognition unit 133 is used to perform second-type identity recognition on the target object in the image data stream through the j-th pattern recognition service, until the second-type identity recognition is performed on the target object in the image data stream through each pattern recognition service, and K second recognition results are obtained.
[0195] The specific implementation of the data flow configuration unit 131, the identification service acquisition unit 132, and the second identity identification unit 133 can be found in the above Figure 3 The description of the K-path pattern recognition service in the corresponding embodiment will not be repeated here.
[0196] The similar identity output module 14 is configured to output similar identity identification information to the application client if the K second recognition results all indicate that the target object is a similar object, so that the application client executes the application service based on the similar identity identification information.
[0197] The similar identity output module 14 includes: an object determination unit 141 and an authentication result return unit 142;
[0198] The object determination unit 141 is configured to determine that the target object and the similar object are the same object if the K second recognition results all indicate that the identity information of the target object is similar identity information mapped by the similar object;
[0199] The authentication result returning unit 142 is used to use the similar identity identification information as the similar identity authentication result and return the similar identity authentication result to the application client; the similar identity authentication result is used to instruct the application client to execute the application service when the object identity identification information is the same as the cached identity information.
[0200] The specific implementation of the object determination unit 141 and the authentication result return unit 142 can be found in the above Figure 3 The description of step S104 in the corresponding embodiment will not be repeated here.
[0201] Optionally, the streaming media acquisition module 15 is used to acquire streaming media information of M users; one piece of streaming media information includes facial image data of one user; M is a positive integer;
[0202] The module 16 for determining the image data to be compared is used to obtain the i-th face image data from the M face image data, and to use the face image data other than the i-th face image data in the M face image data as the image data to be compared; i is a positive integer less than or equal to M;
[0203] A similarity determination module 17 is used to compare the i-th face image data with the image data to be compared, and determine the similarity between the face in the i-th face image data and the face in the image data to be compared according to the comparison result;
[0204] The similar identity configuration module 18 is used to determine that the user corresponding to the i-th facial image data belongs to the first type of user if there is a similarity greater than the similarity threshold in the similarity, configure similar identity identification information for the user corresponding to the i-th facial image data, add the similar identity identification information of the i-th facial image data to the first type of database corresponding to the first type of user, and use the first type of database to which the similar identity identification information of the i-th facial image data is added as a similar object database.
[0205] Optionally, the object identity configuration module 19 is used to determine that the user corresponding to the i-th facial image data belongs to the second type of user if there is no similarity greater than a similarity threshold in the similarity, configure object identity identification information for the user corresponding to the i-th facial image data, add the object identity identification information of the i-th facial image data to the second type of database corresponding to the second type of user, and use the second type database to which the object identity identification information of the i-th facial image data is added as a normal object database.
[0206] Optionally, a normal identity return module 20 is used to obtain the object identity information of the user corresponding to the target object from the normal object database if the first identification result indicates that the target object does not belong to a similar object in the similar object database, and use the object identity information as the normal identity authentication result, and return the normal identity identification result to the application client; the normal identity authentication result is used to instruct the application client to execute the application service when the object identity information is the same as the cached identity information.
[0207] Optionally, the recognition service configuration module 21 is used to configure N types of pattern recognition services for similar identity identification information of the i-th facial image data based on the similarity of the i-th facial image data and the registered biometric information entered by the user corresponding to the i-th facial image data when the similarity of the i-th facial image data is greater than the similarity threshold; N is a positive integer; one type corresponds to one pattern recognition service;
[0208] The configuration library determination module 22 is used to add the N-way pattern recognition service to the configuration service database associated with the first type of user, and obtain a similar service configuration library associated with the similar object database.
[0209] Optionally, the indication determination module 23 is used to determine that the target object and the similar object do not belong to the same object if there is at least one second recognition result among the K second recognition results that does not indicate that the identity identification information of the target object is similar identity identification information mapped by the similar object;
[0210] The failure result generating module 24 is used to generate an identity authentication failure result for the target object when the target object and the similar object do not belong to the same object, and return the identity authentication failure result to the application client so that the application client outputs the identity authentication failure result on the application display interface.
[0211] The specific implementation of the data stream acquisition module 11, the similar identity acquisition module 12, the pattern recognition service module 13 and the similar identity output module 14 can be found in the above Figure 3 The description of step S101 to step S104 in the corresponding embodiment will not be repeated here. Optionally, the specific implementation of the streaming media acquisition module 15, the to-be-compared determination module 16, the similarity determination module 17, the similar identity configuration module 18, the object identity configuration module 19, the normal identity return module 20, the identification service configuration module 21, the configuration library determination module 22, the indication determination module 23 and the failure result generation module 24 can be referred to in the above Figure 3 The description of steps S201 to S209 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated.
[0212] For further information, see Fig.12 , Fig.12 Schematic diagram of a computer device provided in an embodiment of the present application. Fig.12The computer device 1000 shown may include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, a memory 1005, and at least one communication bus 1002. The communication bus 1002 is used to realize the connection and communication between these components. The network interface 1004 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1005 may optionally also be at least one storage device located away from the aforementioned processor 1001. Fig.12 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a device control application.
[0213] exist Fig.12 In the computer device 1000 shown, the network interface 1004 is mainly used to provide a network communication function; the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:
[0214] Acquire an image data stream containing a target object collected by an application client, and perform a first type of identity recognition on the target object in the image data stream based on a similar object database to obtain a first recognition result;
[0215] If the first recognition result indicates that the target object is a similar object in the similar object database, similar identity identification information associated with the similar object is obtained, and K-path pattern recognition services configured for the similar identity identification information are obtained from a similar service configuration library associated with the similar object database; K is a positive integer;
[0216] Perform second-category identity recognition on target objects in the image data stream respectively through K-path pattern recognition services to obtain K second recognition results;
[0217] If the K second recognition results all indicate that the target object is a similar object, the similar identity identification information is output to the application client, so that the application client executes the application service based on the similar identity identification information.
[0218] It should be understood that the computer device 1000 described in the embodiment of the present application can execute the above Figure 3 or Figure 7 The description of the image data processing method in the corresponding embodiment can also be performed as described above. Fig.11The description of the image data processing device 1 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated here either.
[0219] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the computer device 1000 mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, the computer program can execute the above-mentioned Figure 3 or Figure 7 The description of the above-mentioned image data processing method in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application.
[0220] For further information, see Fig.13 , Fig.13 : is a structural diagram of an image data processing device provided in an embodiment of the present application. The image data processing device 2 may be a computer program (including program code) running in a computer device, for example, the image data processing device 2 may be an application software; the device may be used to execute the corresponding steps in the method provided in an embodiment of the present application. The image data processing device 2 may include an acquisition interface output module 31, a data stream upload module 32, and a similar identity receiving module 33;
[0221] The acquisition interface output module 31 is used to respond to the trigger operation of the application display interface of the application client and output the image acquisition interface of the application client;
[0222] The data stream uploading module 32 is used to collect the image data stream containing the target object through the image collection interface, and upload the image data stream to the business server, so that the business server performs a first type of identity recognition on the target object in the image data stream based on the similar object database to obtain a first recognition result; the first recognition result is used to instruct the business server to obtain a K-path pattern recognition service for performing a second type of identity recognition on the target object from a similar service configuration library associated with the similar object database when the target object is a similar object in the similar object database;
[0223] The similar identity receiving module 33 is used to receive the similar identity identification information of the target object returned by the service server based on the K-path pattern recognition service, and execute the application service of the application client based on the similar identity identification information.
[0224] The specific implementation of the collection interface output module 31, the data stream upload module 32 and the similar identity receiving module 33 can be found in the above Figure 7 or Fig.10 The description of the specific process of the user terminal uploading the image data stream and receiving the similar identity identification information in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated.
[0225] For further information, see Fig.14 , Fig.14 Schematic diagram of a computer device provided in an embodiment of the present application. Fig.14 The computer device 3000 shown may include: at least one processor 3001, such as a CPU, at least one network interface 3004, a user interface 3003, a memory 3005, and at least one communication bus 3002. The communication bus 3002 is used to realize the connection and communication between these components. The network interface 3004 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 3005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 3005 may optionally also be at least one storage device located away from the aforementioned processor 3001. Fig.14 As shown, the memory 3005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a device control application.
[0226] exist Fig.14 In the computer device 3000 shown, the network interface 3004 is mainly used to provide a network communication function; the user interface 3003 is mainly used to provide an input interface for the user, and optionally, the user interface 3003 may also include a display screen (Display) and a keyboard (Keyboard); and the processor 3001 may be used to call the device control application stored in the memory 3005 to achieve:
[0227] In response to a trigger operation on an application display interface of an application client, an image acquisition interface of the application client is output;
[0228] An image data stream containing a target object is collected through an image collection interface, and the image data stream is uploaded to a business server, so that the business server performs a first type of identity recognition on the target object in the image data stream based on a similar object database to obtain a first recognition result; the first recognition result is used to instruct the business server to obtain a K-path pattern recognition service for performing a second type of identity recognition on the target object from a similar service configuration library associated with the similar object database when the target object is a similar object in the similar object database;
[0229] The receiving service server returns similar identity identification information of the target object based on the K-path pattern recognition service, and executes the application service of the application client based on the similar identity identification information.
[0230] It should be understood that the computer device 3000 described in the embodiment of the present application can execute the above Figure 7 or Fig.10 The description of the image data processing method in the corresponding embodiment can also be performed as described above. Fig.13 The description of the image data processing device 2 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated here either.
[0231] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the computer device 3000 mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, the computer program can execute the above-mentioned Figure 7 or Fig.10 The description of the above-mentioned image data processing method in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application.
[0232] It is understandable that the embodiment of the present application further provides a computer program product or a computer program, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above Figure 3 , Figure 7 or Fig.10 The description of the image data processing method in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated here either.
[0233] For further information, see Fig.15 , Fig.15 1 is a schematic diagram of the structure of an image data processing system provided in an embodiment of the present application. The image data processing system 3 may include an image data processing device 100 and an image data processing device 200. The image data processing device 100 may be the above-mentioned Fig.11 The image data processing device 1 in the corresponding embodiment. It can be understood that the image data processing device 200 can be integrated in the above Figure 2 The image data processing 200 may be the business server in the above embodiment, so it will not be described in detail here. Fig.13 The image data processing device 2 in the corresponding embodiment can be understood that the image data processing device 200 can be integrated into the target user terminal in the above corresponding embodiment, so it will not be described here. For technical details not disclosed in the computer storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application.
[0234] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0235] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A method for processing image data, It is characterized in that include: Acquire an image data stream containing a target object collected by an application client, and perform a first type of identity recognition on the target object in the image data stream based on similar objects in a similar object database to obtain a first recognition result; the similar objects include each similar user in a similar user group whose similarity has reached a similarity threshold in a face recognition scenario; The similar object database is used to store the facial image data of each similar user and the similar identity identification information of each similar user; If the first recognition result indicates that the target object is a similar object in the similar object database, similar identity identification information associated with the similar object is obtained, and K-path pattern recognition services configured for the similar identity identification information are obtained from a similar service configuration library associated with the similar object database; K is a positive integer; Performing second-category identity recognition on the target objects in the image data stream respectively through the K-path pattern recognition services to obtain K second recognition results; If the K second recognition results all indicate that the target object is the similar object, the similar identity identification information is output to the application client, so that the application client executes an application service based on the similar identity identification information.
2. The method according to claim 1, It is characterized in that The method of acquiring an image data stream containing a target object collected by an application client, and performing a first type of identity recognition on the target object in the image data stream based on similar objects in a similar object database to obtain a first recognition result includes: Obtaining a service data packet uploaded by an application client, parsing and processing the service data packet through a streaming media service associated with the application client, and obtaining application signature information corresponding to the application client and an image data stream containing the target object; the application signature information is obtained by the application client signing the collected image data stream using an application private key; Performing signature verification on the application signature information using the application public key corresponding to the application private key; When the signature verification succeeds, determining that the application client sending the image data stream is a legitimate client, and determining that the image data stream belongs to a legitimate data stream associated with an associated application service of the application client; A target image frame containing a target object is obtained from the legitimate data stream, and a first type of identity recognition is performed on the target object in the target image frame based on similar objects in a similar object database to obtain a first recognition result.
3. The method according to claim 2, It is characterized in that The target object includes the face of the target user; The step of acquiring a target image frame containing a target object from the legitimate data stream, and performing a first type of identity recognition on the target object in the target image frame based on a similar object database to obtain a first recognition result includes: Performing serialization processing on the legal data stream to obtain an initial image sequence corresponding to the legal data stream, and taking each image frame of the initial image sequence as a candidate image frame; Determining a target object region containing a target object in the candidate image frame, intercepting a corresponding target object region containing the target object from the candidate image frame, and performing quality assessment on each intercepted target object region containing the target object to obtain a quality assessment result; filtering out blurred image frames among the candidate image frames according to the quality assessment result, and after filtering out the candidate image frames of the blurred image frames, determining the candidate image frame with the highest resolution as the target image frame containing the target object; Perform face recognition on the target object in the target image frame based on similar objects in a similar object database to obtain a first recognition result.
4. The method according to claim 3, It is characterized in that The method further comprises: Obtain streaming media information of M users; one piece of streaming media information includes facial image data of one user; M is a positive integer; Acquire the i-th facial image data from M facial image data, and use the facial image data other than the i-th facial image data in the M facial image data as the image data to be compared; wherein i is a positive integer less than or equal to M; Comparing the i-th face image data with the image data to be compared, and determining the similarity between the face in the i-th face image data and the face in the image data to be compared according to the comparison result; If there is a similarity greater than a similarity threshold among the similarities, it is determined that the user corresponding to the i-th facial image data belongs to the first type of user, similar identity identification information is configured for the user corresponding to the i-th facial image data, the similar identity identification information of the i-th facial image data is added to the first type of database corresponding to the first type of user, and the first type of database to which the similar identity identification information of the i-th facial image data is added is used as the similar object database.
5. The method according to claim 4, It is characterized in that The method further comprises: If there is no similarity greater than a similarity threshold among the similarities, it is determined that the user corresponding to the i-th facial image data belongs to the second type of user, object identity identification information is configured for the user corresponding to the i-th facial image data, the object identity identification information of the i-th facial image data is added to the second type of database corresponding to the second type of user, and the second type database to which the object identity identification information of the i-th facial image data is added is used as a normal object database.
6. The method according to claim 5, It is characterized in that The method further comprises: If the first recognition result indicates that the target object does not belong to the similar objects in the similar object database, the object identity information of the user corresponding to the target object is obtained from the normal object database, the object identity information is used as the normal identity authentication result, and the normal identity recognition result is returned to the application client; the normal identity authentication result is used to instruct the application client to execute the application service when the object identity information is the same as the cached identity information.
7. The method according to claim 4, It is characterized in that The method further comprises: When the similarity of the i-th facial image data is greater than a similarity threshold, based on the similarity of the i-th facial image data and the registered biometric information entered by the user corresponding to the i-th facial image data, N types of pattern recognition services are configured for the similar identity identification information of the i-th facial image data; N is a positive integer; one type corresponds to one pattern recognition service; Adding N-way pattern recognition services to the configuration service database associated with the first type of user, and obtaining a similar service configuration library associated with the similar object database.
8. The method according to claim 1, It is characterized in that The performing second-category identity recognition on the target object in the image data stream respectively by the K-path pattern recognition service to obtain K second recognition results includes: Outputting the K-path pattern recognition service to a service scheduling component, and configuring the image data stream to the K-path pattern recognition service through the service scheduling component; Acquire a j-th pattern recognition service from the K-path pattern recognition services; wherein j is a positive integer less than or equal to K; The target object in the image data stream is subjected to second-category identity recognition through the j-th pattern recognition service, until the target object in the image data stream is subjected to second-category identity recognition through each pattern recognition service, and K second recognition results are obtained.
9. The method according to claim 1, It is characterized in that If the K second recognition results all indicate that the target object is the similar object, outputting the similar identity identification information to the application client includes: If the K second recognition results all indicate that the identity identification information of the target object is similar identity identification information mapped by the similar object, it is determined that the target object and the similar object belong to the same object; The similar identity identification information is used as a similar identity authentication result, and the similar identity authentication result is returned to the application client; the similar identity authentication result is used to instruct the application client to execute the application service when the object identity identification information is the same as the cached identity information.
10. The method according to claim 9, It is characterized in that The method further comprises: If there is at least one second recognition result among the K second recognition results that does not indicate that the identity information of the target object is similar identity information mapped to the similar object, it is determined that the target object and the similar object do not belong to the same object; When the target object and the similar object do not belong to the same object, an identity authentication failure result for the target object is generated, and the identity authentication failure result is returned to the application client, so that the application client outputs the identity authentication failure result on an application display interface.
11. A method for processing image data, It is characterized in that include: In response to a triggering operation on an application display interface of an application client, outputting an image acquisition interface of the application client; An image data stream containing a target object is collected through the image collection interface, and the image data stream is uploaded to a business server, so that the business server performs a first type of identity recognition on the target object in the image data stream based on similar objects in a similar object database to obtain a first recognition result; the first recognition result is used to instruct the business server to obtain a K-way pattern recognition service for performing a second type of identity recognition on the target object from a similar service configuration library associated with the similar object database when the target object is a similar object in the similar object database; the similar objects include each similar user in a similar user group whose similarity has reached a similarity threshold in a face recognition scenario; The similar object database is used to store the facial image data of each similar user and the similar identity identification information of each similar user; Receive the similar identity identification information of the target object returned by the business server based on the K-path pattern recognition service, and execute the application business of the application client based on the similar identity identification information.
12. An image data processing device, It is characterized in that include: A data stream acquisition module is used to acquire an image data stream containing a target object collected by an application client, and perform a first type of identity recognition on the target object in the image data stream based on similar objects in a similar object database to obtain a first recognition result; the similar objects include each similar user in a similar user group whose similarity has reached a similarity threshold in a face recognition scenario; The similar object database is used to store the facial image data of each similar user and the similar identity identification information of each similar user; A similar identity acquisition module, configured to acquire similar identity identification information associated with the similar object if the first recognition result indicates that the target object is a similar object in the similar object database, and acquire K-path pattern recognition services configured for the similar identity identification information from a similar service configuration library associated with the similar object database; wherein K is a positive integer; A pattern recognition service module, configured to perform second-category identity recognition on the target object in the image data stream respectively through the K-path pattern recognition services to obtain K second recognition results; The similar identity output module is used to output the similar identity identification information to the application client if the K second recognition results all indicate that the target object is the similar object, so that the application client executes the application service based on the similar identity identification information.
13. An image data processing device, It is characterized in that include: The acquisition interface output module is used to respond to the trigger operation of the application display interface of the application client and output the image acquisition interface of the application client; A data stream uploading module is used to collect an image data stream containing a target object through the image acquisition interface, and upload the image data stream to a business server, so that the business server performs a first type of identity recognition on the target object in the image data stream based on similar objects in a similar object database to obtain a first recognition result; the first recognition result is used to instruct the business server to obtain a K-way pattern recognition service for performing a second type of identity recognition on the target object from a similar service configuration library associated with the similar object database when the target object is a similar object in the similar object database; the similar object includes each similar user in a similar user group whose similarity has reached a similarity threshold in a face recognition scenario; The similar object database is used to store the facial image data of each similar user and the similar identity identification information of each similar user; The similar identity receiving module is used to receive the similar identity identification information of the target object returned by the business server based on the K-path pattern recognition service, and execute the application business of the application client based on the similar identity identification information.
14. A computer device, It is characterized in that include: Processor and memory; The processor is connected to the memory, wherein the memory is used to store a computer program, and the processor is used to call the computer program to execute the method according to any one of claims 1-11.
15. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method according to any one of claims 1 to 11 is executed.
Citation Information
Patent Citations
Face-recognition authentication method, device, and electronic device
CN109086669A
Face recognition method, device and equipment
CN110008793A
Object verification method, device and system
CN110490026A
Facial recognition payment method with high safety
CN111695907A
Method and apparatus for user authentication based on feature information
US20200042686A1
