An identity recognition method and related equipment

By generating and processing target QR code images, attaching purpose information and monitoring their usage in real time, the security risks of QR codes under non-preset purposes are solved, and higher identity security and legality are achieved.

CN119150267BActive Publication Date: 2025-03-14BEIJING NJA INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411135847.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2025-03-14
Estimated Expiration
2044-08-19

AI Technical Summary

Technical Problem

In the existing identity identification methods, the QR code has the security risks of being copied and tampered with, and it is impossible to effectively prevent identity identification for non-preset purposes.

Method used

By obtaining the identity information, travel information and QR code encryption processing rules of the target user, an initial QR code image is generated, and the initial QR code image is processed based on the identification information and encryption processing rules of the target user to generate the target QR code image. This method attaches additional purpose information and monitors the use of QR codes in real time, determines whether you have permission to identify the identity, and warns for non-preset purposes.

Benefits of technology

It effectively improves the security of QR codes, prevents copying and tampering, ensures the legality and security of identity identification, and reduces the risk of unauthorized access.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119150267B_ABST
    Figure CN119150267B_ABST
Patent Text Reader

Abstract

The present invention provides an identity recognition method and related equipment, which are applied to the field of data processing technology. The present application obtains the identity information of a target user, the travel information of the target user, the two-dimensional code encryption processing rule of the target user, and the identity verification information of a terminal device; processes the identity information of the target user to generate an initial two-dimensional code image; processes the travel information of the target user to generate the identification information of the target user; processes the initial two-dimensional code image based on the identification information of the target user and the two-dimensional code encryption processing rule of the target user to generate a target two-dimensional code image; obtains an initial electronic certificate recognition model that matches the identification information of the target user; processes the initial electronic certificate recognition model based on a training set and a verification set to generate a target electronic certificate recognition model, and processes the target two-dimensional code image and the identity verification information of the terminal device to generate a recognition result of the target electronic certificate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to an identity recognition method and related equipment. Background Art

[0002] At present, in the field of automatic identity recognition, the commonly used methods are face recognition, fingerprint recognition or card recognition. Card recognition has the risk of being replaced by someone else, so face recognition and fingerprint recognition are safer and more reliable. However, fingerprint recognition involves direct contact between many people and public equipment or items, which lacks certain security guarantees in terms of safety and hygiene, so the demand for contactless identity recognition methods has exploded on a large scale.

[0003] Common technologies for electronicizing certificates include: pictures, layout files, layout files combined with digital signatures, and biometric input. All of the above methods are static electronic certificates, which are prone to malicious tampering, difficult to distinguish between authenticity, and the risk of copying and misusing. In addition, the QR code is an image encoding and representation of data information. It uses a certain geometric figure to record data symbol information in black and white graphics distributed in a plane (two-dimensional direction) according to a certain rule. Because the QR code can carry more data and more types of data, it has become a mainstream encoding method on mobile devices in recent years, and thus the online certificate QR code (electronic ID card) has also been developed.

[0004] However, since the QR code is displayed in the form of an image, from a basic principle, it can neither prevent attackers from misappropriating the QR code by copying it, nor prevent attackers who have mastered the encoding principles of the QR code from generating and modifying the QR code themselves, which makes the QR code have security risks during use.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] The purpose of this application is to provide an identity recognition method and related equipment, which at least to some extent overcomes the problems existing in the prior art, attaches the purpose of the target user using the QR code to the generated QR code image, obtains the real-time whereabouts, destination and the device currently preparing to verify the target QR code of the target user, determines whether it has the authority to identify the target QR code, and issues an early warning if the QR code is used for purposes other than those set in advance.

[0007] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present invention.

[0008] According to one aspect of the present application, an identity recognition method is provided, including: obtaining the identity information of a target user, the travel information of the target user, a QR code encryption processing rule of the target user, and the identity authentication information of a terminal device, wherein the target user information includes the face information of the target user, and the QR code encryption processing rule of the target user is set based on the travel information of the target user; processing the identity information of the target user to generate an initial QR code image, wherein the initial QR code image includes the identity attribute information of the target user; processing the travel information of the target user to generate the identification information of the target user, wherein the identification information of the target user is used to characterize the purpose of the electronic certificate of the target user; based on the identification information of the target user and the QR code encryption processing rule of the target user The initial two-dimensional code image is processed to generate a target two-dimensional code image, wherein the target two-dimensional code image includes the target user's electronic certificate usage information; an initial electronic certificate recognition model that matches the target user's identification information and a training data set that matches the initial electronic certificate recognition model are obtained, wherein the training data set includes other electronic certificate information that matches the target user's electronic certificate usage; the training data set is processed based on preset processing rules to generate a training set and a verification set; the initial electronic certificate recognition model is processed based on the training set and the verification set to generate a target electronic certificate recognition model; the target two-dimensional code image and the identity authentication information of the terminal device are processed based on the target electronic certificate recognition model to generate a recognition result of the target electronic certificate.

[0009] In one embodiment of the present application, the identity information of the target user is processed to generate an initial QR code image, including: processing the identity information of the target user to generate facial information of the target user, residential information of the target user and age information of the target user, wherein the facial information of the target user includes photo information on an electronic certificate and facial information of a preset light intensity; processing the facial information of the target user, the residential information of the target user and the age information of the target user based on a preset QR code encoding model to generate an initial QR code image, wherein the initial QR code image is set based on the facial information of the target user.

[0010] In one embodiment of the present application, the travel information of the target user is processed to generate identification information of the target user, including: performing data cleaning processing on the target user information to generate the travel information of the target user, wherein the travel information of the target user includes the travel mode information of the target user, the accommodation information of the target user, the destination information of the target user and the work attribute information of the target user; processing the travel information of the target user and the accommodation information of the target user to generate a travel influence factor of the target user; processing the destination information of the target user and the work attribute information of the target user to generate a work influence factor of the target user; processing the travel influence factor of the target user and the work influence factor of the target user to generate the identification information of the target user, wherein the identification information of the target user is used to characterize the purpose of the electronic certificate of the target user.

[0011] In one embodiment of the present application, the initial QR code image is processed based on the identification information of the target user and the QR code encryption processing rules of the target user to generate a target QR code image, including: obtaining a preset QR code encryption rule library, wherein the preset QR code encryption rule library is set based on different electronic certificate uses; processing the identification information of the target user to generate the target user's electronic certificate usage information; processing the preset QR code encryption rule library based on the target user's electronic certificate usage information to generate the target user's QR code encryption rules; processing the initial QR code image based on the target user's QR code encryption rules to generate a target QR code image, wherein the target QR code image includes the target user's electronic certificate usage information.

[0012] In one embodiment of the present application, a training data set is processed based on a preset processing rule to generate a training set and a verification set, including: obtaining other electronic certificate information that matches the identification information of the target user; performing feature extraction on the other electronic certificate information to generate a feature data set; obtaining any number of data features in the feature data set; generating adjacent features based on the distance between the any number of data features and other numbers of data features of the same category, wherein the adjacent features include a preset number of the any number of data features; determining a sampling ratio based on the number of each data feature in the training set; determining a sampling ratio based on the sampling ratio; sampling the adjacent features based on the sampling ratio to generate a preset number of sampling features; generating multiple data groups based on any data feature and each sampling feature, wherein each data group includes a preset number of data samples, wherein each data group includes a preset number of data samples, wherein at least one data sample includes identification information; processing multiple data groups to generate a training set and a verification set, wherein the training set and the verification set both include a number of data features.

[0013] In one embodiment of the present application, the target two-dimensional code image and the identity verification information of the terminal device are processed based on the target electronic certificate recognition model to generate an identification result of the target electronic certificate, including: processing the identity verification information of the terminal device based on the target electronic certificate recognition model to generate the location information of the terminal device and the device usage information of the terminal device; processing the target two-dimensional code image based on the target electronic certificate recognition model to generate real-time electronic certificate usage information of the target two-dimensional code; processing the device usage information of the terminal device based on the target electronic certificate recognition model to generate a preset encryption rule; processing the target two-dimensional code image based on the preset encryption rule to generate image recognition information, wherein, if the device usage information of the terminal device matches the real-time electronic certificate usage information of the target two-dimensional code, the image recognition result is the identity information of the target user; processing the location information of the terminal device and the image recognition information based on the target electronic certificate recognition model to generate an identification result of the target electronic certificate, wherein the identification result of the electronic certificate is the identity information of the target user and the authority information of the terminal device.

[0014] In one embodiment of the present application, the target two-dimensional code image is processed based on the target electronic certificate recognition model to generate real-time electronic certificate usage information of the target two-dimensional code, including: processing the target two-dimensional code image based on the target electronic certificate recognition model to generate image coordinate factors; performing convolution processing on the image coordinate factors to generate feature information of multiple spatial scales, wherein the feature information of multiple spatial scales is used to characterize the usage information of the electronic certificate at different periods; processing the feature information of multiple spatial scales based on a preset feature division method to generate real-time electronic certificate usage information of the target two-dimensional code; the target electronic certificate recognition model includes a calculation formula for obtaining the image coordinate factor, and the calculation formula is: L(x,y,δ)=G(x,y,δ)*I(x,y); wherein G(x,y,δ) is a Gaussian function with variable scale, which reflects the degree of smoothing of the image. The smaller the value, the smaller the degree of smoothing of the graphic and the smaller the corresponding scale. I(x,y) is the position information of the image on the x and y axes.

[0015] Another aspect of the present application is an identity recognition device, characterized in that it includes: an acquisition module, used to acquire the identity information of a target user, the travel information of the target user, the QR code encryption processing rules of the target user and the identity authentication information of a terminal device, wherein the target user information includes the face information of the target user, and the QR code encryption processing rules of the target user are set based on the travel information of the target user; acquiring an initial electronic certificate recognition model that matches the identification information of the target user and a training data set that matches the initial electronic certificate recognition model, wherein the training data set includes other electronic certificate information that matches the purpose of the target user's electronic certificate; a processing module, used to process the identity information of the target user to generate an initial QR code image, wherein the initial QR code image includes the identity information of the target user attribute information; processing the travel information of the target user to generate the identification information of the target user, wherein the identification information of the target user is used to characterize the purpose of the electronic certificate of the target user; processing the initial two-dimensional code image based on the identification information of the target user and the two-dimensional code encryption processing rules of the target user to generate a target two-dimensional code image, wherein the target two-dimensional code image includes the electronic certificate purpose information of the target user; processing the training data set based on preset processing rules to generate a training set and a verification set; processing the initial electronic certificate recognition model based on the training set and the verification set to generate a target electronic certificate recognition model; processing the target two-dimensional code image and the identity authentication information of the terminal device based on the target electronic certificate recognition model to generate a recognition result of the target electronic certificate.

[0016] According to another aspect of the present application, an electronic device is characterized in that it includes: a first processor; and a memory for storing executable instructions of the first processor; wherein the first processor is configured to implement the above-mentioned identity recognition method by executing the executable instructions.

[0017] According to another aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a second processor, the above-mentioned identity recognition method is implemented.

[0018] According to another aspect of the present application, a computer program product is provided, including a computer program, characterized in that the computer program implements the above-mentioned identity recognition method when executed by a third processor.

[0019] The present application provides an identity recognition method and related equipment, wherein a server obtains the identity information of a target user, the travel information of the target user, the QR code encryption processing rule of the target user, and the identity authentication information of a terminal device, wherein the target user information includes the face information of the target user, and the QR code encryption processing rule of the target user is set based on the travel information of the target user; the identity information of the target user is processed to generate an initial QR code image, wherein the initial QR code image includes the identity attribute information of the target user; the travel information of the target user is processed to generate the identification information of the target user, wherein the identification information of the target user is used to characterize the purpose of the electronic certificate of the target user; based on the identification information of the target user and the QR code encryption processing rule of the target user The initial two-dimensional code image is processed according to the processing rules to generate a target two-dimensional code image, wherein the target two-dimensional code image includes the target user's electronic certificate usage information; the initial electronic certificate recognition model matching the target user's identification information and the training data set matching the initial electronic certificate recognition model are obtained, wherein the training data set includes other electronic certificate information matching the purpose of the target user's electronic certificate; the training data set is processed based on the preset processing rules to generate a training set and a verification set; the initial electronic certificate recognition model is processed based on the training set and the verification set to generate a target electronic certificate recognition model; the target two-dimensional code image and the identity authentication information of the terminal device are processed based on the target electronic certificate recognition model to generate the recognition result of the target electronic certificate. The purpose of the target user using the two-dimensional code is attached to the generated two-dimensional code image, the target user's real-time whereabouts, destination and the device currently preparing to verify the target two-dimensional code are obtained, and it is determined whether the target user has the authority to identify the target two-dimensional code. If the two-dimensional code is used for purposes other than those set in advance, an early warning is issued.

[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 A flow chart showing an identity recognition method provided by an embodiment of the present application is shown;

[0022] Figure 2 A schematic diagram of the structure of an identity recognition device provided by an embodiment of the present application is shown;

[0023] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present application is shown;

[0024] Figure 4 A schematic diagram of a storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0025] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0026] Combine the following Figure 1 To describe the identity recognition method according to the exemplary embodiment of the present application. It should be noted that the following application scenarios are only shown to facilitate understanding of the spirit and principle of the present application, and the embodiments of the present application are not limited in this respect. On the contrary, the embodiments of the present application can be applied to any applicable scenario.

[0027] In one implementation, the present application also proposes an identity recognition method and related equipment. Figure 1 The following schematically shows a flow chart of an identity recognition method according to an embodiment of the present application. Figure 1 As shown, the method is applied to a server, comprising:

[0028] S101, obtaining the target user's identity information, the target user's travel information, the target user's QR code encryption processing rules and the identity authentication information of the terminal device.

[0029] In one implementation, the target user's identity information is collected, including the photo on the ID card and real-time facial information, such as photos wearing masks or under specific lighting conditions, and the target user's travel information is obtained, which may include travel destination, travel mode, and travel time.

[0030] According to the target user's travel information, set the target user's QR code encryption processing rules, where the target user's QR code encryption processing rules are set based on the target user's travel information. Analyze the target user's travel purpose, such as business travel, personal travel, job transfer, etc., identify the specific use of electronic documents, such as border inspection, airport security, event admission, etc., and evaluate potential security risks and the possibility of information leakage according to different travel purposes and document uses. According to the risk assessment results, determine the corresponding encryption rules to ensure the security of information and comply with regulatory requirements. This plan does not limit specific encryption rules, and applicants can set them according to actual needs.

[0031] Collect the authentication information of the terminal device, which is used to confirm the security status and permissions of the device during the verification process. Obtain the location information of the terminal device through its GPS signal so that the geographical location verification can be performed when necessary to determine whether the current device has the permission to access the target user's information, which usually involves checking the authentication status and authorization level of the device. Implement access control mechanisms to ensure that only authorized devices and personnel can access sensitive information, detect any abnormal access attempts or device behaviors, respond to possible security threats in a timely manner, ensure the security of user identity information, prevent unauthorized access and information leakage, and provide users with a transparent and controllable information access experience.

[0032] S102: Process the identity information of the target user to generate an initial two-dimensional code image.

[0033] In one implementation, the identity information of the target user is processed to generate the target user's facial information, the target user's residence information, and the target user's age information, wherein the target user's facial information includes the photo information on the electronic certificate and the facial information with a preset light intensity.

[0034] The target user's facial information, the target user's residence information and the target user's age information are processed based on a preset QR code encoding model to generate an initial QR code image, wherein the initial QR code image is set based on the target user's facial information. For example, the collected facial image is processed, including adjusting the size, contrast, brightness, etc. to ensure that the image is clear and recognizable, and the key features of the face, such as the position of the eyes, nose, mouth, and facial contour, are extracted using image processing technology, and the extracted facial feature information is encoded into a QR code to ensure that the information can be accurately recognized by the QR code reader.

[0035] In addition, the initial QR code image includes the user's name, gender, date of birth, ID number and other basic information required for identification, the user's recent facial photo for visual identification and confirmation of the user's identity, and the user's biometric information, such as fingerprint data, for enhancing the security of the document and verifying the uniqueness of the user's identity. These sensitive information are encrypted using encryption algorithms to ensure information security and prevent unauthorized access and data leakage.

[0036] S103: Process the travel information of the target user to generate identification information of the target user.

[0037] In one implementation, data cleaning is performed on target user information to generate travel information of the target user, wherein the travel information of the target user includes travel mode information of the target user, accommodation information of the target user, destination information of the target user, and work attribute information of the target user. The travel information of the target user and the accommodation information of the target user are processed to generate a travel influence factor of the target user. The destination information of the target user and the work attribute information of the target user are processed to generate a work influence factor of the target user. The travel influence factor of the target user and the work influence factor of the target user are processed to generate identification information of the target user, wherein the identification information of the target user is used to characterize the purpose of the electronic certificate of the target user.

[0038] Specifically, by collecting and analyzing the travel plans and accommodation information of target users, integrating the travel plans and accommodation information to form a comprehensive travel data set, identifying factors that may affect user travel, such as the safety of the destination, local weather, traffic conditions, etc., and conducting risk assessments on each link in the travel plan to determine possible risk points and matters that require special attention. In this way, we can determine the locations where target users may appear and the corresponding time periods at the above locations.

[0039] Analyze the purpose of the destination, such as whether it is traveling abroad, going to the station, eating in a restaurant, studying in a library, etc., identify the characteristics of the destination, such as cultural background, climate conditions, safety conditions, etc., which may affect the user's travel plan. Collect the target user's work attribute information, including occupation type, work location, nature of work, etc., analyze the characteristics of the user's occupation, such as working hours, work intensity, professional skills requirements, etc., and evaluate the correlation between the user's work attributes and the purpose of the destination, such as legal workers may need to go abroad to attend international conferences. Combined with the target user's living habits, work habits and travel plans, etc., preliminarily generate the places and time periods where the target user may appear, and generate the purpose information of the target user's electronic certificate together, that is, the target user goes abroad to attend an international conference. Combined with his living habits, work habits and travel plans, etc., he may go to places where he needs to use his ID card for registration and the possible time periods on the way, obtain the purpose information of these places, as the purpose information of the target user's electronic certificate, and generate corresponding identification information. This application does not limit the identification information, and the applicant can set it according to actual needs.

[0040] S104: Process the initial two-dimensional code image based on the identification information of the target user and the two-dimensional code encryption processing rule of the target user to generate a target two-dimensional code image.

[0041] In one implementation, a preset QR code encryption rule library is obtained, wherein the preset QR code encryption rule library is set based on different uses of electronic certificates, and the uses of different electronic certificates, such as personal identity verification, border control, financial services, etc., are analyzed. According to the uses and security requirements of electronic certificates, corresponding encryption standards and protocols are formulated, and a library containing multiple encryption rules is created, each rule targeting a specific use or security level. This application does not limit the specific uses of electronic certificates and the corresponding QR code encryption rules, and the applicant can set them according to actual needs.

[0042] The identification information of the target user is processed to generate the target user's electronic certificate usage information, the preset QR code encryption rule library is processed based on the target user's electronic certificate usage information to generate the target user's QR code encryption rule, the initial QR code image is processed based on the target user's QR code encryption rule to generate the target QR code image, wherein the target QR code image includes the target user's electronic certificate usage information. That is, the corresponding encryption rule is determined according to different travel purposes or electronic certificate usages, and the initial QR code is encrypted to generate the final target QR code. In addition, the specific display form of the target QR code image will be described in detail later, and will not be repeated here.

[0043] S105, obtaining an initial electronic document recognition model that matches the identification information of the target user and a training data set that matches the initial electronic document recognition model.

[0044] In one embodiment, the initial electronic certificate recognition model is capable of identifying the identity of various places that the user may be involved in when traveling to the destination, financial services, etc. When the user appears in a place that is inconsistent with the purpose of his or her electronic certificate or the place he or she appears in is correct but the time period is abnormal, the user's guardian (who can be the user himself or herself) will conduct a secondary confirmation to determine whether the target user can enter the corresponding place. If not, the corresponding identity recognition will be rejected.

[0045] The accuracy of the electronic certificate recognition model is improved by acquiring a corresponding training data set for the initial electronic certificate recognition model, wherein the training data set includes other electronic certificate information that matches the purpose of the target user's electronic certificate.

[0046] S106, processing the training data set based on preset processing rules to generate a training set and a validation set.

[0047] In one implementation, other electronic certificate information matching the identification information of the target user is obtained, and features of the other electronic certificate information are extracted to generate a feature data set. Specifically, by analyzing the living habits, work habits, and travel plans of different users, the locations and time periods where the target user may appear are initially generated, the usage information of the electronic certificates of different users is generated, and the data of different locations and time periods are integrated to generate a feature data set.

[0048] Based on the distance between any number of data features and other number of data features of the same category, adjacent features are generated, wherein the adjacent features include a preset number of any number of data features; in the field of data analysis and machine learning, generating adjacent features based on the distance between data features is a feature engineering method that aims to discover the relationship and pattern between features. Specifically, a certain number of data features are selected from the feature data set, which can reflect the use of electronic certificates, and the distance between any data feature and other data features of the same category is calculated using a distance metric (such as Euclidean distance, Manhattan distance or cosine similarity). According to the calculated distance, other data features closest to any data feature are determined, and these features are considered to be adjacent. A preset number is set, that is, the number of data features that are expected to be included in the adjacent feature set. For each data feature, the preset number of data features closest to it is selected to form an adjacent feature set, and the adjacent feature set is analyzed to identify the potential relationships and patterns between the features, which may be crucial to understanding the use of electronic certificates, and the importance of each data feature in the adjacent feature set is evaluated to determine which features are most critical to predicting the target variable. That is, which places may users go to in which time periods, and whether there is a sequence of appearance between different places, etc.

[0049] If there are too many features in the adjacent feature set, it may be necessary to apply dimensionality reduction techniques (such as principal component analysis PCA) to reduce the number of features while retaining important information. The generated adjacent feature set is used to train the machine learning model to predict or classify the use of electronic certificates, evaluate the performance of the model, such as accuracy, recall rate, and F1 score, and optimize the model as needed. It may be necessary to adjust the preset number and distance measurement method multiple times to find the optimal feature set. This method can better understand the complexity of the use of electronic certificates and improve the predictive ability of the early warning model. This is very important for the security management and risk assessment of electronic certificates. At the same time, this also helps to improve the model's ability to identify abnormal behaviors and ensure the security and reliability of the electronic certificate system.

[0050] Based on the number of data features in the training set, a sampling ratio is determined; based on the sampling ratio, a sampling ratio is determined; based on the sampling ratio, adjacent features are sampled to generate a preset number of sampling features; based on any data feature and each sampling feature, multiple data groups are generated, wherein each data group contains a preset number of data samples, wherein each data group contains a preset number of data samples, wherein at least one data sample includes identification information.

[0051] In data analysis and machine learning, the sampling ratio and sampling rate are determined based on the number of data features in the training set. By counting the number of each data feature in the training set, the distribution of different features can be understood. The sampling ratio is determined based on the number of data features and the size of the data set. The sampling ratio can help us decide how many samples to extract from each feature. According to the sampling ratio, the specific sampling ratio can be calculated. The sampling ratio is the ratio of the actual number of samples to the total number. The adjacent features are sampled using the sampling ratio to generate a preset number of sampled features. This process ensures the representativeness and diversity of the samples. Through the sampling process, a set of sampled features is generated, which will be used for subsequent data analysis and model training. Multiple data sets are constructed based on any data feature and each sampled feature. Each data set contains a preset number of data samples. Ensure that the samples in each data set are diverse and contain at least one sample with identification information, which helps the model learn the feature performance in different situations. Use these data sets for model training to evaluate the contribution of different features to the prediction target. Use the sampled feature set to train the machine learning model and evaluate the performance of the model through the validation set. According to the results of model training and validation, the sampling ratio and rate may need to be adjusted to optimize the prediction ability of the model. With this approach, large-scale data sets can be processed efficiently while maintaining data quality and model generalization capabilities, helping to identify potential security risks and abnormal behaviors.

[0052] S107, processing the initial electronic document recognition model based on the training set and the verification set to generate a target electronic document recognition model.

[0053] In one implementation, the initial electronic certificate recognition model is trained based on data samples in multiple data sets to generate a trained electronic certificate recognition model, and the trained electronic certificate recognition model is processed based on a test set to generate a test result; if the data sample containing identification information in the test result is in an abnormal state for information representing the use of the electronic certificate, the trained electronic certificate recognition model is used as the target electronic certificate recognition model. Data samples are collected from multiple data sets, and these samples include various information of the electronic certificate, such as text, images, fingerprints, etc. The collected data samples are used to train the initial electronic certificate recognition model, with the purpose of allowing the model to learn how to identify a valid electronic certificate and whether the device that identifies the electronic certificate has the authority to obtain the information of the electronic certificate.

[0054] After the training is completed, a trained electronic document recognition model is generated, which can perform preliminary recognition of electronic documents. An independent test set is prepared to evaluate the performance of the trained electronic document recognition model. The trained model is used to process the data samples in the test set to generate test results. If the data samples containing identification information in the test results are correctly identified as abnormal states, this indicates that the trained electronic document recognition model has good recognition capabilities. The trained electronic document recognition model with good performance is used as the target electronic document recognition model for actual electronic document recognition tasks. The model is further optimized and adjusted according to the test results to improve its recognition accuracy and robustness. Ensure that the electronic document recognition model is both accurate and secure when processing various documents, and can promptly detect and respond to potential risks and abnormal situations, thereby improving the security and reliability of the electronic document system.

[0055] S108, processing the target two-dimensional code image and the identity verification information of the terminal device based on the target electronic certificate recognition model to generate a recognition result of the target electronic certificate.

[0056] In one implementation, the identity authentication information of the terminal device is processed based on the target electronic certificate recognition model to generate the location information of the terminal device and the device usage information of the terminal device. The positioning data of the terminal device, such as GPS coordinates, is used to generate the specific location information of the device. The location information is matched with the place database to identify the place where the terminal device is located, such as a library, a hotel, etc. The usage information of the terminal device is analyzed, and the specific usage of the device, such as access control recognition, check-in registration, etc., is determined in combination with the place recognition result.

[0057] The target two-dimensional code image is processed based on the target electronic certificate recognition model to generate the real-time electronic certificate usage information of the target two-dimensional code. That is, the user may have different uses for the electronic certificate at different times. At this time, the real-time use of the electronic certificate will be used to determine whether the current terminal device has the authority or reasonable time to identify the electronic certificate. For example, if the user goes to the library to browse books or work temporarily between 8 am and 6 pm, it is normal, but if the user goes to the library around 2-3 am, it is considered that the behavior is abnormal. This application does not limit the specific electronic certificate usage information, and the applicant can set it according to actual needs. The device usage information of the terminal device is processed based on the target electronic certificate recognition model to generate a preset encryption rule, and the target two-dimensional code image is processed based on the preset encryption rule to generate image recognition information, wherein, if the device usage information of the terminal device matches the real-time electronic certificate usage information of the target two-dimensional code, the image recognition result is the identity information of the target user, that is, if the terminal device is a device used to identify the target two-dimensional code, at this time, the identity information of the target user will be displayed.

[0058] Analyze the usage information of the terminal device to determine its usage scenario and purpose, such as access control system, hotel check-in registration, etc. According to the usage information of the terminal device, select or generate the corresponding preset encryption rules from the encryption rule library, use the preset encryption rules to encrypt the target QR code image, ensure the information security in the image, process the encrypted QR code image, extract the image recognition information, and prepare for identity authentication. Match the device usage information of the terminal device with the real-time electronic certificate usage information of the target QR code. If the match is successful, that is, the usage of the terminal device matches the usage of the QR code, verify the identity information. After the verification is successful, display the identity information of the target user to complete the identity authentication process. Before displaying the identity information, check the security features in the QR code image, such as digital signatures, timestamps, etc., implement real-time monitoring, ensure the security of the identity authentication process, and respond quickly when anomalies are detected.

[0059] The location information and image recognition information of the terminal device are processed based on the target electronic certificate recognition model to generate the recognition result of the target electronic certificate, where the recognition result of the electronic certificate is the identity information of the target user and the authority information of the terminal device, that is, if the terminal device can process the target QR code image to obtain the identity information of the target user, whether it has the corresponding authority to do this; if the target user's behavior is irrelevant to his work and destination, it is considered that the terminal has no recognition authority.

[0060] Combine location information and image recognition information to generate recognition results of the target electronic certificate, extract target user's identity information such as name, photo, certificate number, etc. from the recognition results, evaluate whether the terminal device has the authority to process the target QR code image and obtain user identity information, verify the permission information of the terminal device to ensure that it complies with security policies and laws and regulations, match the purpose information of the terminal device with the purpose information of the electronic certificate to determine whether it has the corresponding authority, and if the terminal device has the corresponding authority, display the target user's identity information for further identity authentication or service provision.

[0061] If the terminal device does not have the corresponding permissions or has abnormal behavior, take corresponding security measures, such as denying access, alarming, etc., and continuously optimize the permission management and authentication process based on user feedback and monitoring results. Ensure that only terminal devices with corresponding permissions can process and access sensitive information in electronic certificates, thereby improving the security of the system and the trust of users, while preventing unauthorized access and protecting user privacy. Ensure that the information in the QR code image is processed securely and that the user's identity information is displayed only in the correct purpose and scenario, which helps to improve the security of the system and the trust of users, while protecting the privacy and information security of users.

[0062] In another embodiment, the target two-dimensional code image is processed based on the target electronic certificate recognition model to generate real-time electronic certificate usage information of the target two-dimensional code, as follows: the target two-dimensional code image is processed based on the target electronic certificate recognition model to generate image coordinate factors, the image coordinate factors are convolved to generate feature information at multiple spatial scales, wherein the feature information at multiple spatial scales is used to characterize the usage information of the electronic certificate at different periods, and the feature information at multiple spatial scales is processed based on a preset feature division method to generate real-time electronic certificate usage information of the target two-dimensional code.

[0063] Specifically, the target electronic document recognition model is used to preprocess the target QR code image, such as denoising and normalization, and coordinate factors are extracted from the preprocessed image. These factors may include the position, size and shape characteristics of the QR code. The image coordinate factors are convolved, and image features are extracted using a convolutional neural network (CNN) or a similar algorithm.

[0064] Through convolution processing, feature information of multiple spatial scales is generated. This information can characterize the characteristics of electronic certificates at different levels, analyze feature information of multiple spatial scales, and identify the usage information of electronic certificates at different periods, such as personal identity authentication, transaction authorization, etc. The preset feature division method is used to classify and quantify the feature information for further processing and analysis. Based on the feature division results, the real-time electronic certificate usage information of the target QR code is generated to clarify its application in specific scenarios. The real-time electronic certificate usage information is matched with the preset usage category to determine its compliance and applicability.

[0065] In another embodiment, the target electronic document recognition model includes a calculation formula for obtaining the image coordinate factor, which is: L(x,y,δ)=G(x,y,δ)*I(x,y); wherein G(x,y,δ) is a scale-variable Gaussian function that reflects the degree to which the image is smoothed. The smaller the value, the less smoothed the graphic is and the smaller the corresponding scale is. I(x,y) is the position information of the image on the x and y axes.

[0066] By adjusting the value of δ, the scale of the Gaussian function can be controlled to achieve different degrees of image smoothing. Applying the Gaussian function on the image can reduce image noise, smooth the image edges, and facilitate feature extraction and analysis. In addition, each point (x, y) on the image is associated with a Gaussian value, which can be used to calculate local features of the image, such as edges, corners, etc., to generate a target QR code image that matches the real-time electronic certificate usage information.

[0067] In this application, a server obtains the target user's identity information, the target user's travel information, the target user's QR code encryption processing rules and the terminal device's identity authentication information, wherein the target user information includes the target user's facial information, and the target user's QR code encryption processing rules are set based on the target user's travel information; the target user's identity information is processed to generate the target user's facial information, the target user's residential information and the target user's age information, wherein the target user's facial information includes the photo information on the electronic certificate and the facial information of a preset light intensity; the target user's facial information, the target user's residential information and the target user's age information are processed based on a preset QR code encoding model to generate an initial QR code image, wherein the initial QR code image is set based on the target user's facial information, wherein the initial QR code The image includes the identity attribute information of the target user; the target user information is cleansed to generate the travel information of the target user, wherein the travel information of the target user includes the travel mode information of the target user, the accommodation information of the target user, the destination information of the target user and the work attribute information of the target user; the travel information of the target user and the accommodation information of the target user are processed to generate the travel influencing factor of the target user; the destination information of the target user and the work attribute information of the target user are processed to generate the work influencing factor of the target user; the travel influencing factor of the target user and the work influencing factor of the target user are processed to generate the identification information of the target user, wherein the identification information of the target user is used to characterize the purpose of the electronic certificate of the target user, wherein the identification information of the target user is used to characterize the purpose of the electronic certificate of the target user.

[0068] Obtain a preset QR code encryption rule library, wherein the preset QR code encryption rule library is set based on different electronic certificate uses; process the identification information of the target user to generate the electronic certificate use information of the target user; process the preset QR code encryption rule library based on the electronic certificate use information of the target user to generate the QR code encryption rules of the target user; process the initial QR code image based on the QR code encryption rules of the target user to generate a target QR code image, wherein the target QR code image includes the electronic certificate use information of the target user, wherein the target QR code image includes the electronic certificate use information of the target user; obtain an initial electronic certificate recognition model that matches the identification information of the target user and a training data set that matches the initial electronic certificate recognition model, wherein the training data set includes Other electronic certificate information that matches the purpose of the electronic certificate; extract features from other electronic certificate information to generate a feature data set; obtain any number of data features in the feature data set; generate adjacent features based on the distance between any number of data features and other number of data features of the same category, wherein the adjacent features include a preset number of any number of data features; determine the sampling ratio based on the number of each data feature in the training set; determine the sampling ratio based on the sampling ratio; sample adjacent features based on the sampling ratio to generate a preset number of sampling features; generate multiple data groups based on any data feature and each sampling feature, wherein each data group includes a preset number of data samples, wherein each data group includes a preset number of data samples, wherein at least one data sample includes identification information. Process the multiple data groups to generate a training set and a validation set, wherein the training set and the validation set both include a number of data features; process the initial electronic certificate recognition model based on the training set and the validation set to generate a target electronic certificate recognition model; process the identity authentication information of the terminal device based on the target electronic certificate recognition model to generate the location information of the terminal device and the device usage information of the terminal device.

[0069] The target two-dimensional code image is processed based on the target electronic certificate recognition model to generate image coordinate factors; the image coordinate factors are convoluted to generate feature information of multiple spatial scales, wherein the feature information of multiple spatial scales is used to characterize the usage information of the electronic certificate at different periods; the feature information of multiple spatial scales is processed based on a preset feature division method to generate real-time electronic certificate usage information of the target two-dimensional code; the target electronic certificate recognition model includes a calculation formula for obtaining the image coordinate factors, and the calculation formula is: L(x,y,δ)=G(x,y,δ)*I(x,y); wherein G(x,y,δ) is a Gaussian function with variable scale, which reflects the degree to which the image is smoothed, and the smaller the value, the more the image is smoothed. The smaller the slippage, the smaller the corresponding scale. I(x,y) is the position information of the image on the x and y axes. Based on the target electronic certificate recognition model, the device usage information of the terminal device is processed to generate a preset encryption rule. Based on the preset encryption rule, the target QR code image is processed to generate image recognition information. If the device usage information of the terminal device matches the real-time electronic certificate usage information of the target QR code, the image recognition result is the identity information of the target user. Based on the target electronic certificate recognition model, the location information and image recognition information of the terminal device are processed to generate the recognition result of the target electronic certificate. The recognition result of the electronic certificate is the identity information of the target user and the authority information of the terminal device. The purpose of the target user using the QR code is attached to the generated QR code image to obtain the target user's real-time whereabouts, destination, and the device currently preparing to verify the target QR code, and determine whether the target user has the authority to identify the target QR code. If the QR code is used for purposes other than those set in advance, an early warning is issued.

[0070] In one embodiment, if Figure 2 As shown, the present application also provides an identity recognition device, including:

[0071] The acquisition module 201 is used to acquire the identity information of the target user, the travel information of the target user, the QR code encryption processing rule of the target user and the identity authentication information of the terminal device, wherein the target user information includes the face information of the target user, and the QR code encryption processing rule of the target user is set based on the travel information of the target user; acquire an initial electronic certificate recognition model matching the identification information of the target user and a training data set matching the initial electronic certificate recognition model, wherein the training data set includes other electronic certificate information matching the purpose of the electronic certificate of the target user;

[0072] The processing module 202 is used to process the identity information of the target user to generate an initial two-dimensional code image, wherein the initial two-dimensional code image includes the identity attribute information of the target user; process the travel information of the target user to generate the identification information of the target user, wherein the identification information of the target user is used to characterize the purpose of the electronic certificate of the target user; process the initial two-dimensional code image based on the identification information of the target user and the two-dimensional code encryption processing rules of the target user to generate a target two-dimensional code image, wherein the target two-dimensional code image includes the electronic certificate purpose information of the target user; process the training data set based on preset processing rules to generate a training set and a verification set; process the initial electronic certificate recognition model based on the training set and the verification set to generate a target electronic certificate recognition model; process the target two-dimensional code image and the identity authentication information of the terminal device based on the target electronic certificate recognition model to generate a recognition result of the target electronic certificate.

[0073] In another embodiment of the present application, the processing module 202 is configured to process the identity information of the target user to generate an initial two-dimensional code image, including:

[0074] Processing the identity information of the target user to generate facial information of the target user, residence information of the target user and age information of the target user, wherein the facial information of the target user includes photo information on an electronic certificate and facial information of a preset light intensity;

[0075] The facial information of the target user, the residential information of the target user and the age information of the target user are processed based on a preset QR code encoding model to generate an initial QR code image, wherein the initial QR code image is set based on the facial information of the target user.

[0076] In another embodiment of the present application, the processing module 202 is configured to process the travel information of the target user to generate identification information of the target user, including:

[0077] Performing data cleaning processing on the target user information to generate travel information of the target user, wherein the travel information of the target user includes travel mode information of the target user, accommodation information of the target user, destination information of the target user, and work attribute information of the target user;

[0078] Processing the travel information of the target user and the accommodation information of the target user to generate a travel influencing factor of the target user;

[0079] Processing the destination information of the target user and the work attribute information of the target user to generate a work impact factor of the target user;

[0080] The travel influencing factor of the target user and the work influencing factor of the target user are processed to generate identification information of the target user, wherein the identification information of the target user is used to characterize the purpose of the electronic certificate of the target user.

[0081] In another embodiment of the present application, the processing module 202 is configured to process the initial two-dimensional code image based on the identification information of the target user and the two-dimensional code encryption processing rule of the target user to generate a target two-dimensional code image, including:

[0082] Obtaining a preset QR code encryption rule library, wherein the preset QR code encryption rule library is set based on different uses of electronic certificates;

[0083] Processing the identification information of the target user to generate the electronic certificate usage information of the target user;

[0084] Processing the preset QR code encryption rule library based on the electronic certificate usage information of the target user to generate a QR code encryption rule for the target user;

[0085] The initial two-dimensional code image is processed based on the two-dimensional code encryption rule of the target user to generate a target two-dimensional code image, wherein the target two-dimensional code image includes the electronic certificate usage information of the target user.

[0086] In another embodiment of the present application, the processing module 202 is configured to process the training data set based on a preset processing rule to generate a training set and a validation set, including:

[0087] Acquire other electronic certificate information that matches the identification information of the target user;

[0088] Extract features from other electronic certificate information and generate feature data sets;

[0089] Obtaining any number of data features in the feature data set;

[0090] Generate adjacent features based on the distance between the any number of data features and other numbers of data features of the same category, wherein the adjacent features include a preset number of the any number of data features;

[0091] Determining a sampling ratio based on the number of each data feature in the training set;

[0092] Based on the sampling ratio, determining a sampling ratio;

[0093] Sampling the adjacent features based on the sampling ratio to generate a preset number of sampling features;

[0094] Based on any data feature and each sampling feature, generating a plurality of data groups, wherein each data group comprises a preset number of data samples, wherein each data group comprises a preset number of data samples, wherein at least one data sample comprises identification information;

[0095] The plurality of data sets are processed to generate a training set and a validation set, wherein the training set and the validation set both include a number of data features.

[0096] In another embodiment of the present application, the processing module 202 is configured to process the target two-dimensional code image and the identity authentication information of the terminal device based on the target electronic certificate recognition model to generate a recognition result of the target electronic certificate, including:

[0097] Processing the identity authentication information of the terminal device based on the target electronic certificate recognition model to generate location information of the terminal device and device usage information of the terminal device;

[0098] Processing the target two-dimensional code image based on the target electronic certificate recognition model to generate real-time electronic certificate usage information of the target two-dimensional code;

[0099] Processing the device usage information of the terminal device based on the target electronic certificate recognition model to generate a preset encryption rule;

[0100] The target two-dimensional code image is processed based on the preset encryption rule to generate image recognition information, wherein if the device usage information of the terminal device matches the real-time electronic certificate usage information of the target two-dimensional code, the image recognition result is the identity information of the target user;

[0101] The location information of the terminal device and the image recognition information are processed based on the target electronic certificate recognition model to generate a recognition result of the target electronic certificate, wherein the recognition result of the electronic certificate is the identity information of the target user and the authority information of the terminal device.

[0102] In another embodiment of the present application, the processing module 202 is configured to process the target two-dimensional code image based on the target electronic document recognition model to generate real-time electronic document usage information of the target two-dimensional code, including:

[0103] Processing the target two-dimensional code image based on the target electronic document recognition model to generate an image coordinate factor;

[0104] Performing convolution processing on the image coordinate factors to generate feature information of multiple spatial scales, wherein the feature information of multiple spatial scales is used to characterize usage information of the electronic certificate at different periods;

[0105] Processing the feature information of the multiple spatial scales based on a preset feature division method to generate real-time electronic certificate usage information of the target two-dimensional code;

[0106] The target electronic document recognition model includes a calculation formula for obtaining image coordinate factors, and the calculation formula is:

[0107] L(x,y,δ)=G(x,y,δ)*I(x,y);

[0108] Among them, G(x,y,δ) is a scale-variable Gaussian function that reflects the degree of image smoothing. The smaller the value, the less smoothed the image is and the smaller the corresponding scale is. I(x,y) is the position information of the image on the x and y axes.

[0109] The present application embodiment provides an electronic device, such as Figure 3 As shown, the electronic device 3 includes a first processor 300, a memory 301, a bus 302 and a communication interface 303. The first processor 300, the communication interface 303 and the memory 301 are connected via the bus 302; the memory 301 stores a computer program that can be run on the first processor 300, and the first processor 300 executes the identity recognition method provided in any of the aforementioned embodiments of the present application when running the computer program.

[0110] The memory 301 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 303 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0111] The bus 302 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 301 is used to store programs, and the first processor 300 executes the programs after receiving the execution instruction. The identity recognition method disclosed in any implementation of the embodiment of the present application may be applied to the first processor 300, or implemented by the first processor 300.

[0112] The first processor 300 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the first processor 300. The above-mentioned first processor 300 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a readily available programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be embodied as a hardware decoding processor to be executed, or a combination of hardware and software modules in the decoding processor to be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 301, and the first processor 300 reads the information in the memory 301 and completes the steps of the above method in combination with its hardware.

[0113] The electronic device provided by the above-mentioned embodiment of the present application and the identity recognition method provided by the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application stored therein.

[0114] The present application embodiment provides a computer-readable storage medium, such as Figure 4 As shown, the computer-readable storage medium 401 stores a computer program, and when the computer program is read and executed by the second processor 402, the identity recognition method as described above is implemented.

[0115] The technical solution of the embodiment of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device (which may be an air conditioner, a refrigeration device, a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the method described in the embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

[0116] The computer-readable storage medium provided in the above-mentioned embodiments of the present application and the identity recognition method provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.

[0117] An embodiment of the present application provides a computer program product, including a computer program, wherein the computer program is executed by a third processor to implement the method described above.

[0118] The computer program product provided by the above-mentioned embodiments of the present application and the identity recognition method provided by the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.

[0119] It should be noted that, in this application, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or still includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0120] Each embodiment in the present application is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the evaluation of the identity recognition method, electronic device, electronic device, and readable storage medium embodiment, since they are basically similar to the above-mentioned identity recognition method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the above-mentioned identity recognition method embodiment.

[0121] Although the present application is disclosed as above, the present application is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application. Therefore, the protection scope of the present application shall be subject to the scope defined by the claims.

Claims

1. An identity recognition method, characterized in that: include: Acquire the target user's identity information, the target user's travel information, the target user's QR code encryption processing rules, and the terminal device's identity verification information, wherein the target user's identity information includes the target user's face information, and the target user's QR code encryption processing rules are set based on the target user's travel information; Processing the identity information of the target user to generate an initial two-dimensional code image, wherein the initial two-dimensional code image includes the identity attribute information of the target user; Processing the travel information of the target user to generate identification information of the target user, wherein the identification information of the target user is used to characterize the purpose of the electronic certificate of the target user; Processing the initial two-dimensional code image based on the identification information of the target user and the two-dimensional code encryption processing rule of the target user to generate a target two-dimensional code image, wherein the target two-dimensional code image includes the electronic certificate usage information of the target user; Acquire an initial electronic certificate recognition model that matches the identification information of the target user and a training data set that matches the initial electronic certificate recognition model, wherein the training data set includes other electronic certificate information that matches the purpose of the electronic certificate of the target user; Process the training data set based on preset processing rules to generate a training set and a validation set; Processing the initial electronic document recognition model based on the training set and the verification set to generate a target electronic document recognition model; The target two-dimensional code image and the identity verification information of the terminal device are processed based on the target electronic certificate recognition model to generate a recognition result of the target electronic certificate.

2. The method according to claim 1, characterized in that The identity information of the target user is processed to generate an initial QR code image, including: Processing the identity information of the target user to generate facial information of the target user, residence information of the target user and age information of the target user, wherein the facial information of the target user includes photo information on an electronic certificate and facial information of a preset light intensity; The facial information of the target user, the residential information of the target user and the age information of the target user are processed based on a preset QR code encoding model to generate an initial QR code image, wherein the initial QR code image is set based on the facial information of the target user.

3. The method according to claim 1, characterized in that Processing the travel information of the target user to generate identification information of the target user includes: Performing data cleaning processing on the target user information to generate travel information of the target user, wherein the travel information of the target user includes travel mode information of the target user, accommodation information of the target user, destination information of the target user, and work attribute information of the target user; Processing the travel information of the target user and the accommodation information of the target user to generate a travel influencing factor of the target user; Processing the destination information of the target user and the work attribute information of the target user to generate a work impact factor of the target user; The travel influencing factor of the target user and the work influencing factor of the target user are processed to generate identification information of the target user, wherein the identification information of the target user is used to characterize the purpose of the electronic certificate of the target user.

4. The method according to claim 3, characterized in that The initial two-dimensional code image is processed based on the identification information of the target user and the two-dimensional code encryption processing rule of the target user to generate a target two-dimensional code image, including: Obtaining a preset QR code encryption rule library, wherein the preset QR code encryption rule library is set based on different uses of electronic certificates; Processing the identification information of the target user to generate the electronic certificate usage information of the target user; Processing the preset QR code encryption rule library based on the electronic certificate usage information of the target user to generate a QR code encryption rule for the target user; The initial two-dimensional code image is processed based on the two-dimensional code encryption rule of the target user to generate a target two-dimensional code image, wherein the target two-dimensional code image includes the electronic certificate usage information of the target user.

5. The method according to claim 3, characterized in that The training data set is processed based on the preset processing rules to generate the training set and the validation set, including: Acquire other electronic certificate information that matches the identification information of the target user; Extract features from other electronic certificate information and generate feature data sets; Obtaining any number of data features in the feature data set; Generate adjacent features based on the distance between the any number of data features and other numbers of data features of the same category, wherein the adjacent features include a preset number of the any number of data features; Determining a sampling ratio based on the number of each data feature in the training set; Based on the sampling ratio, determining a sampling ratio; Sampling the adjacent features based on the sampling ratio to generate a preset number of sampling features; Based on any data feature and each sampling feature, generating a plurality of data groups, wherein each data group comprises a preset number of data samples, wherein each data group comprises a preset number of data samples, wherein at least one data sample comprises identification information; The plurality of data sets are processed to generate a training set and a validation set, wherein the training set and the validation set both include a number of data features.

6. The method according to claim 1, characterized in that The target two-dimensional code image and the identity verification information of the terminal device are processed based on the target electronic certificate recognition model to generate a recognition result of the target electronic certificate, including: Processing the identity authentication information of the terminal device based on the target electronic certificate recognition model to generate location information of the terminal device and device usage information of the terminal device; Processing the target two-dimensional code image based on the target electronic certificate recognition model to generate real-time electronic certificate usage information of the target two-dimensional code; Processing the device usage information of the terminal device based on the target electronic certificate recognition model to generate a preset encryption rule; The target two-dimensional code image is processed based on the preset encryption rule to generate image recognition information, wherein if the device usage information of the terminal device matches the real-time electronic certificate usage information of the target two-dimensional code, the image recognition result is the identity information of the target user; The location information of the terminal device and the image recognition information are processed based on the target electronic certificate recognition model to generate a recognition result of the target electronic certificate, wherein the recognition result of the electronic certificate is the identity information of the target user and the authority information of the terminal device.

7. The method according to claim 6, characterized in that The target two-dimensional code image is processed based on the target electronic document recognition model to generate real-time electronic document usage information of the target two-dimensional code, including: Processing the target two-dimensional code image based on the target electronic document recognition model to generate an image coordinate factor; Performing convolution processing on the image coordinate factors to generate feature information of multiple spatial scales, wherein the feature information of multiple spatial scales is used to characterize usage information of the electronic certificate at different periods; Processing the feature information of the multiple spatial scales based on a preset feature division method to generate real-time electronic certificate usage information of the target two-dimensional code; The target electronic document recognition model includes a calculation formula for obtaining image coordinate factors, and the calculation formula is: L(x,y,δ)=G(x,y,δ)*I(x,y); Among them, G(x,y,δ) is a scale-variable Gaussian function that reflects the degree of image smoothing. The smaller the value, the less smoothed the image is and the smaller the corresponding scale is. I(x,y) is the position information of the image on the x and y axes.

8. An identity recognition device, characterized in that: The device comprises: An acquisition module is used to acquire the identity information of a target user, the travel information of the target user, the QR code encryption processing rule of the target user, and the identity authentication information of a terminal device, wherein the identity information of the target user includes the face information of the target user, and the QR code encryption processing rule of the target user is set based on the travel information of the target user; acquire an initial electronic certificate recognition model that matches the identification information of the target user and a training data set that matches the initial electronic certificate recognition model, wherein the training data set includes other electronic certificate information that matches the purpose of the electronic certificate of the target user; A processing module is used to process the identity information of the target user to generate an initial two-dimensional code image, wherein the initial two-dimensional code image includes the identity attribute information of the target user; process the travel information of the target user to generate the identification information of the target user, wherein the identification information of the target user is used to characterize the purpose of the electronic certificate of the target user; process the initial two-dimensional code image based on the identification information of the target user and the two-dimensional code encryption processing rules of the target user to generate a target two-dimensional code image, wherein the target two-dimensional code image includes the electronic certificate purpose information of the target user; process the training data set based on preset processing rules to generate a training set and a verification set; process the initial electronic certificate recognition model based on the training set and the verification set to generate a target electronic certificate recognition model; process the target two-dimensional code image and the identity authentication information of the terminal device based on the target electronic certificate recognition model to generate a recognition result of the target electronic certificate.

9. An electronic device, characterized in that: include: a first processor; and a memory for storing executable instructions of the first processor; The first processor is configured to execute the identity recognition method described in any one of claims 1 to 7 by executing the executable instructions.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the second processor, the identity recognition method described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Navigation method and device, computer equipment and computer readable storage medium

    CN113188561A

  • Certificate information identification method, device and system, electronic equipment and storage medium

    CN117689935A