Code data processing method and device, computer device and storage medium

By creating a business line code repository and implementing permission management and multi-factor authentication, the problem of chaotic permissions in business line code development was solved, and the stability and security of the business system were achieved.

CN115756571BActive Publication Date: 2026-07-28PING AN HEALTH INSURANCE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
PING AN HEALTH INSURANCE CO LTD
Filing Date
2022-11-17
Publication Date
2026-07-28

AI Technical Summary

Technical Problem

In existing technologies, the development and management permissions for document template codes across different business lines are chaotic, leading to instability in the operation of business systems and security issues.

Method used

By obtaining the business line name and personnel information, a separate business line code repository is created, and permission management is carried out based on the corresponding relationship. Identity and permission verification is performed by combining pupil feature maps and permission data tables to ensure that only relevant personnel can manage the corresponding document template code.

Benefits of technology

It enables autonomous and flexible management of each business line, avoids the instability of business systems, and improves the intelligence and security of document template code management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115756571B_ABST
    Figure CN115756571B_ABST
Patent Text Reader

Abstract

The embodiment of the application belongs to the field of artificial intelligence, and relates to a code data processing method, comprising the following steps: obtaining business line names corresponding to respective business lines; extracting single certificate template codes corresponding to the respective business lines from a business system; creating business line code repositories corresponding to the respective single certificate template codes; storing the respective single certificate template codes in the respective business line code repositories; obtaining business personnel information corresponding to the respective business lines, and creating a corresponding relationship between the business personnel information and the business line code repositories; and based on the corresponding relationship, performing one-to-one permission management configuration of the business line code repositories on business personnel corresponding to the business personnel information. The application also provides a code data processing device, a computer device and a storage medium. In addition, the application also relates to blockchain technology, and the single certificate template codes can be stored in the blockchain. The application improves the management intelligence and security of the single certificate template codes of different business lines.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of artificial intelligence technology, and in particular to methods, apparatus, computer equipment and storage media for processing code data. Background Technology

[0002] With the transformation of society towards informatization, all aspects of daily life have undergone changes. Paper documents, which serve as proof of ownership, have been replaced by online documents due to their inefficiency in viewing and rapid transmission. Currently, insurance companies have a need to use documents or develop document templates in various scenarios such as mobile apps and PCs. Since there are various types of documents, multiple business lines for document development typically exist within the business system. Due to the chaotic management permissions for each business line, different business lines can see the template code of other business lines when developing document templates, and there is a possibility of accidentally modifying the code of other business lines. This introduces instability into the operation of the business system, and the management of document development business lines is also prone to security issues. Summary of the Invention

[0003] The purpose of this application is to provide a method, apparatus, computer device, and storage medium for processing code data, in order to solve the existing problems of chaotic management permissions for each business line of document development, which allows each business line to see the template code of other business lines when developing document template code, and there is also the possibility of accidentally modifying the code of other business lines. This will bring instability to the operation of the business system, and the management of the business line of document development is also prone to security problems.

[0004] To address the aforementioned technical problems, this application provides a method for processing code data, employing the following technical solution:

[0005] Retrieve the business line names corresponding to each preset business line;

[0006] Based on the business line name, extract the document template code corresponding to each business line from the preset business system;

[0007] Based on the business line name, create a business line code repository corresponding to each of the document template codes;

[0008] Based on the first correspondence between the document template code and the business line code repository, each document template code is stored in the business line code repository in a one-to-one correspondence.

[0009] Obtain the business personnel information corresponding to each of the aforementioned business lines, and create a second correspondence between the business personnel information and the code repository of the aforementioned business line;

[0010] Based on the second correspondence, permission management configuration is performed on the business personnel corresponding to the business personnel information, which corresponds one-to-one with the business line code repository.

[0011] Furthermore, after the step of configuring permission management for the business personnel corresponding to the business personnel information based on the second correspondence relationship, the method further includes:

[0012] Determine whether a template code release request corresponding to the target business line code repository has been received, triggered by a user; wherein the code viewing request carries the user's user information;

[0013] If the template code release request is received, the target user information database corresponding to the target business line code repository is invoked;

[0014] Determine whether the user information is stored in the target user information database;

[0015] If the user information is stored, the user's permissions are verified based on the user information;

[0016] If the permission verification is successful, the user's facial information is collected, and the user's pupil feature map is obtained from the facial information;

[0017] The user is authenticated based on the pupil feature map and a preset face database;

[0018] If the identity verification is successful, obtain the target code certificate template from the target business line code repository;

[0019] Perform the release process with the target code document template.

[0020] Furthermore, the step of verifying the user's identity based on the pupil feature map and a preset face database specifically includes:

[0021] The pupil size, pupil distance, and pupil color of the user are extracted from the pupil feature map;

[0022] Obtain a specified face image that matches the user information from the face database;

[0023] Obtain a specified pupil feature map from the specified face image; wherein, the specified pupil information includes a specified pupil size, a specified pupil distance, and a specified pupil color;

[0024] Determine whether the pupil color and the specified pupil color are the same color;

[0025] If they belong to the same color, calculate the first similarity between the pupil size and the specified pupil size;

[0026] Calculate the second similarity between the pupil distance and the specified pupil distance;

[0027] Target similarity is generated based on the first similarity and the second similarity;

[0028] Determine whether the target similarity is greater than a preset similarity threshold;

[0029] If the similarity is greater than the threshold, the identity verification is considered successful; otherwise, the identity verification is considered unsuccessful.

[0030] Furthermore, the step of determining whether the pupil color and the specified pupil color belong to the same color specifically includes:

[0031] Obtain all first pixels of the first pupil region corresponding to the pupil feature map, and obtain all second pixels of the second pupil region corresponding to the specified pupil feature map;

[0032] Calculate the first pixel average value of all first pixels, and calculate the second pixel average value of all second pixels;

[0033] Calculate the absolute value of the difference between the average value of the first pixel and the average value of the second pixel;

[0034] Determine whether the absolute value of the difference is less than a preset threshold;

[0035] If so, obtain the first color channel value corresponding to the first pupil region based on the preset color model, and obtain the second color channel value corresponding to the second pupil region;

[0036] Based on the values ​​of the first color channel, the values ​​of the second color channel, and a preset value range, a color matching result is generated between the pupil color and the specified pupil color.

[0037] Furthermore, the step of generating target similarity based on the first similarity and the second similarity specifically includes:

[0038] Obtain the first weight corresponding to the first similarity;

[0039] Obtain the second weight corresponding to the second similarity;

[0040] Calculate the first product of the first similarity and the first weight, and calculate the second product of the second similarity and the second weight;

[0041] Calculate the third product between the first product and the second product;

[0042] The third product is used as the target similarity.

[0043] Furthermore, the step of verifying the user's permissions based on the user information specifically includes:

[0044] Call the preset permission data table;

[0045] Obtain the target permission score corresponding to the user information from the permission data table;

[0046] Retrieve the permission score range corresponding to the template code publishing operation;

[0047] Determine whether the target permission score is within the permission score range;

[0048] If the score falls within the specified range, the permission verification is deemed successful.

[0049] If the score is not within the specified range, the permission is deemed not granted.

[0050] Furthermore, after the step of configuring permission management for the business personnel corresponding to the business personnel information based on the second correspondence relationship, the method further includes:

[0051] Determine whether a template code modification request triggered by a specified user and corresponding to a specified business line code repository has been received;

[0052] If so, retrieve the specified document template code corresponding to the specified business line code repository;

[0053] The original code is determined based on the specified document template code; wherein, the original code includes the data to be filled;

[0054] The data to be filled in the original code is detected based on the preset inspection logic;

[0055] Receive replacement data corresponding to the data to be filled, input by the specified user;

[0056] The data to be filled in the original code is replaced with the replacement data to complete the modification process of the specified document template code.

[0057] To address the aforementioned technical problems, this application also provides a code data processing apparatus, which employs the following technical solution:

[0058] The first acquisition module is used to acquire the business line names corresponding to each preset business line;

[0059] The extraction module is used to extract the document template code corresponding to each of the business lines from a preset business system based on the business line name.

[0060] The first creation module is used to create a business line code repository corresponding to each of the document template codes, based on the business line name.

[0061] The storage module is used to store each of the document template codes into the respective business line code warehouses in a one-to-one correspondence based on the first correspondence between the document template codes and the business line code warehouses;

[0062] The second creation module is used to obtain business personnel information corresponding to each of the business lines, and to create a second correspondence between the business personnel information and the code repository of the business line.

[0063] The management module is used to configure permission management for the business personnel corresponding to the business personnel information, based on the second correspondence, so that they correspond one-to-one with the business line code repository.

[0064] To address the aforementioned technical problems, this application also provides a computer device that employs the following technical solution:

[0065] Retrieve the business line names corresponding to each preset business line;

[0066] Based on the business line name, extract the document template code corresponding to each business line from the preset business system;

[0067] Based on the business line name, create a business line code repository corresponding to each of the document template codes;

[0068] Based on the first correspondence between the document template code and the business line code repository, each document template code is stored in the business line code repository in a one-to-one correspondence.

[0069] Obtain the business personnel information corresponding to each of the aforementioned business lines, and create a second correspondence between the business personnel information and the code repository of the aforementioned business line;

[0070] Based on the second correspondence, permission management configuration is performed on the business personnel corresponding to the business personnel information, which corresponds one-to-one with the business line code repository.

[0071] To address the aforementioned technical problems, this application also provides a computer-readable storage medium, employing the technical solution described below:

[0072] Retrieve the business line names corresponding to each preset business line;

[0073] Based on the business line name, extract the document template code corresponding to each business line from the preset business system;

[0074] Based on the business line name, create a business line code repository corresponding to each of the document template codes;

[0075] Based on the first correspondence between the document template code and the business line code repository, each document template code is stored in the business line code repository in a one-to-one correspondence.

[0076] Obtain the business personnel information corresponding to each of the aforementioned business lines, and create a second correspondence between the business personnel information and the code repository of the aforementioned business line;

[0077] Based on the second correspondence, permission management configuration is performed on the business personnel corresponding to the business personnel information, which corresponds one-to-one with the business line code repository.

[0078] Compared with the prior art, the embodiments of this application have the following main advantages:

[0079] First, obtain the business line names corresponding to each preset business line; then, based on the business line names, extract the document template codes corresponding to each business line from the preset business system; and based on the business line names, create a business line code repository corresponding to each document template code; then, based on the first correspondence between the document template codes and the business line code repository, store each document template code in its corresponding business line code repository; subsequently, obtain the business personnel information corresponding to each business line, and create a second correspondence between the business personnel information and the business line code repository; finally, based on the second correspondence, configure permission management for the business personnel corresponding to the business personnel information, corresponding one-to-one with the business line code repository. This application embodiment manages the document template codes of each business line contained in the business system as separate code repositories. This ensures that for each business line code repository, only business personnel associated with that business line code repository have the authority to manage the document template codes within that repository. This allows business personnel corresponding to each business line to develop and manage the document template codes for their own business line more autonomously and flexibly, effectively avoiding the instability of the business system and improving the intelligence and security of managing document template codes for different business lines. Attached Figure Description

[0080] To more clearly illustrate the solutions in this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0081] Figure 1 This is an exemplary system architecture diagram to which this application can be applied;

[0082] Figure 2 A flowchart of an embodiment of the code data processing method according to this application;

[0083] Figure 3 This is a schematic diagram of the structure of an embodiment of the code data processing apparatus according to this application;

[0084] Figure 4 This is a schematic diagram of the structure of one embodiment of the computer device according to this application. Detailed Implementation

[0085] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein in the specification of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "comprising" and "having," and any variations thereof, in the specification, claims, and foregoing drawings of this application, are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the specification, claims, or foregoing drawings of this application are used to distinguish different objects, not to describe a particular order.

[0086] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0087] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.

[0088] like Figure 1As shown, system architecture 100 may include terminal devices 101, 102, and 103, a network 104, and a server 105. Network 104 serves as the medium for providing communication links between terminal devices 101, 102, and 103 and server 105. Network 104 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.

[0089] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, and 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social media platform software, etc.

[0090] Terminal devices 101, 102, and 103 can be various electronic devices with displays and support web browsing, including but not limited to smartphones, tablets, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 players (Moving Picture Experts Group Audio Layer IV), laptops, and desktop computers, etc.

[0091] Server 105 can be a server that provides various services, such as a backend server that supports the pages displayed on terminal devices 101, 102, and 103.

[0092] It should be noted that the code data processing method provided in the embodiments of this application is generally executed by a server / terminal device, and correspondingly, the code data processing device is generally located in the server / terminal device.

[0093] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0094] Continue to refer to Figure 2 A flowchart illustrating an embodiment of a code data processing method according to this application is shown. The code data processing method includes the following steps:

[0095] Step S201: Obtain the business line name corresponding to each preset business line.

[0096] In this embodiment, the code data processing method runs on an electronic device (e.g., Figure 1 The server / terminal device shown can obtain the service line name via wired or wireless connection. It should be noted that the aforementioned wireless connection methods may include, but are not limited to, 3G / 4G / 5G connections, Wi-Fi connections, Bluetooth connections, Wi-Fi connections, Zigbee connections, UWB (ultra-Wi-Fi) connections, and other currently known or future wireless connection methods. The aforementioned service line may refer to a document service line. Since there are various types of documents, such as service receipts, service confirmations, service processing orders, and service contracts, there will also be various types of document service lines. Furthermore, the service line name can also be based on the corresponding document type; for example, it could include a service receipt service line, a service confirmation service line, a service processing order service line, and a service contract service line.

[0097] Step S202: Based on the business line name, extract the document template code corresponding to each business line from the preset business system.

[0098] In this embodiment, the aforementioned business system is a pre-created system that stores document template codes corresponding to all business lines. These document template codes are typically stored within the business system using the name of the associated business line as the code file name. Furthermore, based on the business line names, the document template codes corresponding to each business line can be extracted from the business system.

[0099] Step S203: Based on the business line name, create a business line code repository corresponding to each of the document template codes.

[0100] In this embodiment, for the document template codes corresponding to different business lines, business line code repositories corresponding to each business line will be generated separately. This ensures that each business line code repository only stores the document template codes that match the business line corresponding to that business line code repository. The document template codes of each document are isolated and securely isolated by creating multiple business line code repositories to store the document template codes of different business lines.

[0101] Step S204: Based on the first correspondence between the document template code and the business line code repository, store each document template code in its corresponding business line code repository.

[0102] In this embodiment, since there is a correspondence between the document template code and the business line name, and the business line name is also corresponding to the business line code repository, there is also a correspondence between the document template code and the business line code repository.

[0103] Step S205: Obtain the business personnel information corresponding to each of the business lines, and create a second correspondence between the business personnel information and the code repository of the business line.

[0104] In this embodiment, since there is a correspondence between the business line and the business personnel information, and the business line also has a correspondence with the business line code repository, a second correspondence between the business personnel information and the business line code repository can be constructed.

[0105] Step S206: Based on the second correspondence, configure permission management for the business personnel corresponding to the business personnel information to correspond one-to-one with the business line code repository.

[0106] In this embodiment, for example, the person corresponding to the target business line code repository is the target business personnel. Therefore, for the target business line code repository, only the target business personnel have the permission to manage the document template codes in the business line code repository.

[0107] This application first obtains the business line names corresponding to each preset business line; then, based on the business line names, it extracts the document template codes corresponding to each business line from the preset business system; and based on the business line names, it creates a business line code repository corresponding to each document template code; then, based on the first correspondence between the document template codes and the business line code repository, it stores each document template code in its corresponding business line code repository; subsequently, it obtains the business personnel information corresponding to each business line and creates a second correspondence between the business personnel information and the business line code repository; finally, based on the second correspondence, it configures permission management for the business personnel corresponding to the business personnel information, corresponding one-to-one with the business line code repository. This application manages the document template code of each business line contained in the business system as a separate code repository. This ensures that for each business line code repository, only business personnel associated with that business line code repository have the authority to manage the document template code within that repository. This allows business personnel in each business line to develop and manage the document template code for their own business line more autonomously and flexibly, effectively avoiding the instability of the business system and improving the intelligence and security of managing document template code for different business lines.

[0108] In some alternative implementations, after step S201, the electronic device may further perform the following steps:

[0109] Determine whether a template code release request corresponding to the target business line's code repository has been received, triggered by a user. The code viewing request carries the user's user information.

[0110] In this embodiment, the aforementioned template code publishing request is a user-triggered request to publish the target code document template in the target business line code repository.

[0111] If the template code release request is received, the target user information database corresponding to the target business line code repository is invoked.

[0112] In this embodiment, for each business line code repository, a user information database is pre-configured to allow for the configuration of access permissions for that business line code repository. This database stores user information. There is a one-to-one correspondence between the business line code repository and the user information database. For any given business line code repository (hereinafter referred to as a specific business line code repository), only the specific user corresponding to the specific user information contained in the specific user information database that corresponds to that specific business line code repository has the function of managing and operating the code data within that specific business line code repository.

[0113] Determine whether the user information is stored in the target user information database.

[0114] In this embodiment, the user's information can be matched with all user information contained in the target user information database. If a matching user information is found, it is determined whether the target user information database stores the user's information.

[0115] If the user information is stored, the user's permissions are verified based on the user information.

[0116] In this embodiment, the specific implementation process of verifying the user's permissions based on the user information will be further described in detail in subsequent specific embodiments of this application, and will not be elaborated on here.

[0117] If the permission verification is successful, the user's facial information is collected, and the user's pupil feature map is obtained from the facial information.

[0118] In this embodiment, pupil image extraction can be performed on facial information to obtain the user's pupil feature map from the facial information.

[0119] The user is authenticated based on the pupil feature map and a preset face database.

[0120] In this embodiment, the specific implementation process of verifying the user's identity based on the pupil feature map and the preset face database will be further described in detail in subsequent specific embodiments of this application, and will not be elaborated on here.

[0121] If the identity verification is successful, the target code certificate template is obtained from the target business line code repository.

[0122] Perform the release process with the target code document template.

[0123] In this embodiment, the publishing process may refer to publishing the target code certificate template online for use by relevant customers.

[0124] When a template code release request corresponding to the target business line code repository is triggered, this application first checks whether the user's user information is stored in the target user information database corresponding to the target business line code repository. If it is stored, the user's permissions and identity will be further verified. Only when the user passes the permission and identity verification will the template code release request be responded to, and the subsequent release process will be executed. This can effectively avoid adverse consequences caused by responding to template code release requests entered by illegal users, effectively ensure the security and standardization of template code release requests during the processing, and improve the intelligence and isolation of template code release request processing.

[0125] In some optional implementations of this embodiment, the user authentication based on the pupil feature map and a preset face database includes the following steps:

[0126] The pupil size, pupil distance, and pupil color of the user are extracted from the pupil feature map.

[0127] In this embodiment, the pupil size, pupil distance, and pupil color of the user can be extracted from the pupil feature map by performing information extraction processing on the pupil feature map.

[0128] Retrieve a specified face image that matches the user information from the face database.

[0129] Obtain a specified pupil feature map from the specified face image. The specified pupil information includes specified pupil size, specified pupil distance, and specified pupil color.

[0130] In this embodiment, a specified pupil feature image can be obtained from a specified face image by extracting pupil feature images from the specified face image.

[0131] Determine whether the pupil color and the specified pupil color are the same color.

[0132] In this embodiment, the specific implementation process of determining whether the pupil color and the specified pupil color belong to the same color will be further described in detail in subsequent specific embodiments of this application, and will not be elaborated on here.

[0133] If they belong to the same color, calculate the first similarity between the pupil size and the specified pupil size.

[0134] Calculate the second similarity between the pupil distance and the specified pupil distance.

[0135] In this embodiment, the calculation method for the first similarity and the second similarity is not specifically limited, and can be set according to actual usage requirements, such as Manhattan distance, cosine similarity, Euclidean distance, etc.

[0136] Target similarity is generated based on the first similarity and the second similarity.

[0137] In this embodiment, the specific implementation process of generating target similarity based on the first similarity and the second similarity will be further described in detail in subsequent specific embodiments of this application, and will not be elaborated on here.

[0138] Determine whether the target similarity is greater than a preset similarity threshold.

[0139] In this embodiment, the specific value of the similarity threshold is not limited and can be set according to actual usage requirements.

[0140] If the similarity is greater than the threshold, the identity verification is considered successful; otherwise, the identity verification is considered unsuccessful.

[0141] This application employs multiple authentication methods—comparing pupil color information, pupil distance information, and pupil size information in facial images—to achieve accurate user authentication. This improves the reliability and accuracy of authentication, effectively preventing adverse consequences caused by responding to template code publishing requests from unauthorized users. It also effectively ensures the security and standardization of template code publishing requests during processing.

[0142] In some optional implementations, determining whether the pupil color and the specified pupil color belong to the same color includes the following steps:

[0143] Obtain all first pixels of the first pupil region corresponding to the pupil feature map, and obtain all second pixels of the second pupil region corresponding to the specified pupil feature map.

[0144] In this embodiment, the method of obtaining pixels is not limited; for example, it can be obtained through an app such as PS (Photoshop).

[0145] Calculate the first pixel average value for all first pixels, and calculate the second pixel average value for all second pixels.

[0146] In this embodiment, the average pixel value can be calculated according to the formula for calculating the average pixel value, wherein the formula for calculating the average pixel value is calculated based on each pixel.

[0147] Calculate the absolute value of the difference between the average value of the first pixel and the average value of the second pixel.

[0148] Determine whether the absolute value of the difference is less than a preset threshold.

[0149] In this embodiment, the value of the preset threshold is not limited and can be set according to actual usage requirements.

[0150] If so, obtain the first color channel value corresponding to the first pupil region based on the preset color model, and obtain the second color channel value corresponding to the second pupil region.

[0151] In this embodiment, the color model is specifically an RGB color model. The first color channel value includes the first value of the R color channel, the second value of the G color channel, and the third value of the B color channel of the pupil feature map corresponding to the first pupil region in the RGB color model. The second color channel value includes the fourth value of the R color channel, the fifth value of the G color channel, and the sixth value of the B color channel of the specified pupil feature map corresponding to the second pupil region in the RGB color model.

[0152] Based on the values ​​of the first color channel, the values ​​of the second color channel, and a preset value range, a color matching result is generated between the pupil color and the specified pupil color.

[0153] In this embodiment, a first difference between the first value and the fourth value is calculated, a second difference between the second value and the fifth value is calculated, and a third difference between the third value and the sixth value is calculated. It is then determined whether the first difference, the second difference, and the third difference are within the specified range. If all three differences are within the specified range, the pupil color is determined to be a matching color with the specified pupil color, and a color matching result is generated indicating that the pupil color and the specified pupil color belong to the same color. Otherwise, a color matching result is generated indicating that the pupil color and the specified pupil color do not belong to the same color.

[0154] This application combines pixel-based calculation with color channel numerical analysis to detect whether the pupil color and the specified pupil color are the same color, ensuring the reliability of color detection and the accuracy of the color matching results between the generated pupil color and the specified pupil color. This facilitates accurate user authentication based on the obtained color matching results.

[0155] In some optional implementations, generating the target similarity based on the first similarity and the second similarity includes the following steps:

[0156] Obtain the first weight corresponding to the first similarity.

[0157] In this embodiment, the value of the first weight is not specifically limited and can be set according to actual usage requirements.

[0158] Obtain the second weight corresponding to the second similarity.

[0159] In this embodiment, the value of the second weight is not specifically limited and can be set according to actual usage requirements. Preferably, the sum of the first weight and the second weight is equal to 1.

[0160] Calculate the first product of the first similarity and the first weight, and calculate the second product of the second similarity and the second weight.

[0161] Calculate the third product between the first product and the second product.

[0162] The third product is used as the target similarity.

[0163] This application obtains a first weight corresponding to the first similarity and a second weight corresponding to the second similarity, and then performs a weighted product of the first similarity and the second similarity based on the obtained first weight and second weight to quickly and accurately generate the target similarity. This is beneficial for accurately verifying user identity based on the generated target similarity, thus ensuring the accuracy of identity verification.

[0164] In some optional implementations of this embodiment, the step of verifying the user's permissions based on the user information includes the following steps:

[0165] Call the preset permission data table.

[0166] In this embodiment, the aforementioned permission data table is a data table created in advance based on actual business usage needs, which stores user information of each employee and permission scores corresponding one-to-one with each employee's user information.

[0167] Obtain the target permission score corresponding to the user information from the permission data table.

[0168] In this embodiment, the target user information that matches the user information can be retrieved from the permission data table first, and then the permission score corresponding to the target information can be retrieved from the permission data table as the target permission score.

[0169] Get the permission score range corresponding to the template code publishing operation.

[0170] In this embodiment, an operation permission database can be pre-created based on actual business usage needs. This database stores various business operation information and a data table showing the permission score ranges corresponding to each business operation. Then, the permission score range corresponding to the template code publishing operation can be retrieved from the operation permission data table.

[0171] Determine whether the target permission score is within the permission score range.

[0172] If the score falls within the specified permission range, the permission verification is considered successful.

[0173] If the score is not within the specified range, the permission is deemed not granted.

[0174] This application obtains the target permission score corresponding to the user information from the permission data table, and obtains the permission score range corresponding to the template code publishing operation. Then, by detecting whether the target permission score is within the permission score range, the application can quickly and accurately verify the user's permissions based on the obtained detection results, thus ensuring the accuracy of permission verification.

[0175] In some optional implementations of this embodiment, after step S206, the electronic device may further perform the following steps:

[0176] Determine whether a template code modification request triggered by a specified user and corresponding to a specified business line code repository has been received.

[0177] In this embodiment, the aforementioned template code modification request is a request triggered by a specified user to modify the specified document template code in the code repository of a specified business line.

[0178] If so, retrieve the specified document template code corresponding to the specified business line code repository.

[0179] The original code is determined based on the specified document template code. The original code includes the data to be filled in.

[0180] In this embodiment, the specified document template code can typically be the original code that can achieve the corresponding function. Some parameters or functions need to be set according to actual needs, such as prompting the user to input them themselves.

[0181] The data to be filled in the original code is detected based on a preset inspection logic.

[0182] In this embodiment, the above-mentioned inspection logic is pre-written and generated logical data used to locate the data to be filled in the original code.

[0183] Receive replacement data corresponding to the data to be filled, input by the specified user.

[0184] In this embodiment, a data filling reminder can be sent to a designated user in advance to remind the user to enter the corresponding data that needs to replace the data to be filled in the original code.

[0185] The data to be filled in the original code is replaced with the replacement data to complete the modification process of the specified document template code.

[0186] When this application receives a template code modification request triggered by a specified user and corresponding to a specified business line code repository, it determines the original code based on the specified document template code. The original code includes data to be filled, and the data to be filled in the original code is checked based on preset checking logic. Then, it receives replacement data input by the specified user corresponding to the data to be filled, and replaces the data to be filled in the original code with the replacement data to complete the modification process of the specified document template code. By generating new code based on customized data input by the user and the specified document template code, the template code and code generation can be isolated. Users can customize the template code according to their actual needs, simplifying the operation and improving the user experience.

[0187] It should be emphasized that, in order to further ensure the privacy and security of the above-mentioned document template code, the above-mentioned document template code can also be stored in a node of a blockchain.

[0188] The blockchain referred to in this application is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked together using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain can include an underlying blockchain platform, a platform product service layer, and an application service layer.

[0189] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. 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 that knowledge to obtain optimal results.

[0190] Foundational technologies for artificial intelligence generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.

[0191] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing related hardware through computer-readable instructions. These computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the methods described above. The aforementioned storage medium can be a non-volatile storage medium such as a magnetic disk, optical disk, or read-only memory (ROM), or random access memory (RAM).

[0192] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0193] Further reference Figure 3 As a response to the above Figure 2 The implementation of the method shown in this application provides an embodiment of a code data processing apparatus, which is similar to... Figure 2 Corresponding to the method embodiments shown, this device can be specifically applied to various electronic devices.

[0194] like Figure 3 As shown, the code data processing device 300 described in this embodiment includes: a first acquisition module 301, an extraction module 302, a first creation module 303, a storage module 304, a second creation module 305, and a management module 306. Wherein:

[0195] The first acquisition module 301 is used to acquire the names of the business lines corresponding to each preset business line;

[0196] Extraction module 302 is used to extract the document template code corresponding to each business line from a preset business system based on the business line name;

[0197] The first creation module 303 is used to create a business line code repository corresponding to each of the document template codes based on the business line name.

[0198] The storage module 304 is used to store each of the document template codes into the respective business line code warehouses in a one-to-one correspondence based on the first correspondence between the document template codes and the business line code warehouses;

[0199] The second creation module 305 is used to obtain business personnel information corresponding to each of the business lines, and to create a second correspondence between the business personnel information and the code repository of the business line.

[0200] The management module 306 is used to configure permission management for the business personnel corresponding to the business personnel information, based on the second correspondence, so that they correspond one-to-one with the business line code repository.

[0201] In this embodiment, the operations performed by the above modules or units correspond one-to-one with the steps of the code data processing method in the aforementioned embodiments, and will not be repeated here.

[0202] In some optional implementations of this embodiment, the code data processing device further includes:

[0203] The first judgment module is used to determine whether a template code release request corresponding to the target business line code repository has been received, triggered by a user; wherein, the code viewing request carries the user's user information;

[0204] The calling module is used to call the target user information database corresponding to the target business line code repository if the template code release request is received.

[0205] The second judgment module is used to determine whether the target user information database stores the user information.

[0206] The first verification module is used to verify the user's permissions based on the stored user information if such user information is stored.

[0207] The acquisition module is used to acquire the user's facial information if the permission verification is successful, and to obtain the user's pupil feature map from the facial information;

[0208] The second verification module is used to verify the user's identity based on the pupil feature map and a preset face database;

[0209] The second acquisition module is used to acquire the target code certificate template from the target business line code repository if the identity verification is successful.

[0210] The publishing module is used to perform the publishing process with the target code document template.

[0211] In this embodiment, the operations performed by the above modules or units correspond one-to-one with the steps of the code data processing method in the aforementioned embodiments, and will not be repeated here.

[0212] In some optional implementations of this embodiment, the second verification module includes:

[0213] An extraction submodule is used to extract the user's pupil size, pupil distance, and pupil color from the pupil feature map;

[0214] The first acquisition submodule is used to acquire a specified face image that matches the user information from the face database;

[0215] The second acquisition submodule is used to acquire a specified pupil feature map from the specified face image; wherein, the specified pupil information includes a specified pupil size, a specified pupil distance, and a specified pupil color;

[0216] The first judgment submodule is used to determine whether the pupil color and the specified pupil color are the same color;

[0217] The first calculation submodule is used to calculate the first similarity between the pupil size and the specified pupil size if they belong to the same color.

[0218] The second calculation submodule is used to calculate the second similarity between the pupil distance and the specified pupil distance;

[0219] A generation submodule is used to generate a target similarity based on the first similarity and the second similarity;

[0220] The second judgment submodule is used to determine whether the target similarity is greater than a preset similarity threshold;

[0221] The first determination submodule is used to determine that the identity verification is successful if the similarity is greater than the similarity threshold, otherwise the identity verification is unsuccessful.

[0222] In this embodiment, the operations performed by the above modules or units correspond one-to-one with the steps of the code data processing method in the aforementioned implementation method, and will not be repeated here.

[0223] In some optional implementations of this embodiment, the first determination submodule includes:

[0224] The first acquisition unit is used to acquire all first pixel points of the first pupil region corresponding to the pupil feature map, and to acquire all second pixel points of the second pupil region corresponding to the specified pupil feature map;

[0225] The first calculation unit is used to calculate the first pixel average value of all the first pixel points and to calculate the second pixel average value of all the second pixel points;

[0226] The second calculation unit is used to calculate the absolute value of the difference between the average value of the first pixel and the average value of the second pixel;

[0227] The judgment unit is used to determine whether the absolute value of the difference is less than a preset threshold.

[0228] The second acquisition unit is used to acquire, if yes, the first color channel value corresponding to the first pupil region based on a preset color model, and to acquire the second color channel value corresponding to the second pupil region.

[0229] The generation unit is used to generate a color matching result between the pupil color and the specified pupil color based on the first color channel value, the second color channel value, and a preset value range.

[0230] In this embodiment, the operations performed by the above modules or units correspond one-to-one with the steps of the code data processing method in the aforementioned embodiments, and will not be repeated here.

[0231] In some optional implementations of this embodiment, the generation submodule includes:

[0232] The third acquisition unit is used to acquire the first weight corresponding to the first similarity;

[0233] The fourth acquisition unit is used to acquire the second weight corresponding to the second similarity;

[0234] The third calculation unit is used to calculate the first product of the first similarity and the first weight, and to calculate the second product of the second similarity and the second weight;

[0235] The fourth calculation unit is used to calculate the third product between the first product and the second product;

[0236] A determining unit is used to take the third product as the target similarity.

[0237] In this embodiment, the operations performed by the above modules or units correspond one-to-one with the steps of the code data processing method in the aforementioned embodiments, and will not be repeated here.

[0238] In some optional implementations of this embodiment, the first verification module includes:

[0239] Call the submodule to call the preset permission data table;

[0240] The third acquisition submodule is used to obtain the target permission score corresponding to the user information from the permission data table;

[0241] The fourth submodule is used to obtain the permission score range corresponding to the template code publishing operation;

[0242] The third judgment submodule is used to determine whether the target permission score is within the permission score range;

[0243] The second determination submodule is used to determine that the permission verification is successful if the value is within the permission score range.

[0244] The third determination submodule is used to determine that permission has not been granted if the score is not within the specified permission range.

[0245] In this embodiment, the operations performed by the above modules or units correspond one-to-one with the steps of the code data processing method in the aforementioned embodiments, and will not be repeated here.

[0246] In some optional implementations of this embodiment, the code data processing device further includes:

[0247] The third judgment module is used to determine whether a template code modification request triggered by a specified user and corresponding to a specified business line code repository has been received;

[0248] The third acquisition module is used to acquire, if yes, the specified document template code corresponding to the specified business line code repository;

[0249] The determining module is used to determine the original code based on the specified document template code; wherein the original code includes data to be filled.

[0250] The detection module is used to detect the data to be filled in the original code based on preset inspection logic;

[0251] The receiving module is used to receive the replacement data corresponding to the data to be filled, input by the specified user;

[0252] The replacement module is used to replace the data to be filled in the original code with the replacement data, so as to complete the modification process of the specified document template code.

[0253] In this embodiment, the operations performed by the above modules or units correspond one-to-one with the steps of the code data processing method in the aforementioned embodiments, and will not be repeated here.

[0254] To address the aforementioned technical problems, embodiments of this application also provide a computer device. Please refer to [link / reference needed]. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.

[0255] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected via a system bus. It should be noted that only the computer device 4 with components 41-43 is shown in the figure; however, it should be understood that it is not required to implement all the shown components, and more or fewer components can be implemented alternatively. Those skilled in the art will understand that the computer device described here is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions. Its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), programmable gate arrays (FPGAs), digital digital processors (DSPs), embedded devices, etc.

[0256] The computer device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The computer device can interact with the user via a keyboard, mouse, remote control, touchpad, or voice control.

[0257] The memory 41 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 41 may be an internal storage unit of the computer device 4, such as the hard disk or memory of the computer device 4. In other embodiments, the memory 41 may also be an external storage device of the computer device 4, such as a plug-in hard disk, smart memory card (SMC), secure digital card (SD) card, flash memory card, etc. of the computer device 4. Of course, the memory 41 may also include both the internal storage unit and the external storage device of the computer device 4. In this embodiment, the memory 41 is typically used to store the operating system and various application software installed on the computer device 4, such as computer-readable instructions for processing code data. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or will be output.

[0258] In some embodiments, the processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. The processor 42 is typically used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to execute computer-readable instructions stored in the memory 41 or to process data, such as computer-readable instructions for executing methods of processing the code data.

[0259] The network interface 43 may include a wireless network interface or a wired network interface, which is typically used to establish communication connections between the computer device 4 and other electronic devices.

[0260] Compared with the prior art, the embodiments of this application have the following main advantages:

[0261] This application embodiment manages the document template codes of each business line contained in the business system as separate code repositories. This ensures that for each business line code repository, only business personnel associated with that business line code repository have the authority to manage the document template codes within that repository. This allows business personnel corresponding to each business line to develop and manage the document template codes for their own business line more autonomously and flexibly, effectively avoiding the instability of the business system and improving the intelligence and security of managing document template codes for different business lines.

[0262] This application also provides another embodiment, namely, providing a computer-readable storage medium storing computer-readable instructions that can be executed by at least one processor to cause the at least one processor to perform the steps of the code data processing method described above.

[0263] Compared with the prior art, the embodiments of this application have the following main advantages:

[0264] This application embodiment manages the document template codes of each business line contained in the business system as separate code repositories. This ensures that for each business line code repository, only business personnel associated with that business line code repository have the authority to manage the document template codes within that repository. This allows business personnel corresponding to each business line to develop and manage the document template codes for their own business line more autonomously and flexibly, effectively avoiding the instability of the business system and improving the intelligence and security of managing document template codes for different business lines.

[0265] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0266] Obviously, the embodiments described above are only some embodiments of this application, not all embodiments. The accompanying drawings show preferred embodiments of this application, but do not limit the patent scope of this application. This application can be implemented in many different forms; rather, the purpose of providing these embodiments is to provide a more thorough and comprehensive understanding of the disclosure of this application. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing specific embodiments, or make equivalent substitutions for some of the technical features. Any equivalent structures made using the content of this application's specification and drawings, directly or indirectly applied to other related technical fields, are similarly within the scope of patent protection of this application.

Claims

1. A method for processing code data, characterized in that, Includes the following steps: Retrieve the business line names corresponding to each preset business line; Based on the business line name, extract the document template code corresponding to each business line from the preset business system; Based on the business line name, create a business line code repository corresponding to each of the document template codes; Based on the first correspondence between the document template code and the business line code repository, each document template code is stored in the business line code repository in a one-to-one correspondence. Obtain the business personnel information corresponding to each of the aforementioned business lines, and create a second correspondence between the business personnel information and the code repository of the aforementioned business line; Based on the second correspondence, permission management configuration is performed on the business personnel corresponding to the business personnel information, which corresponds one-to-one with the business line code repository. The step of configuring permission management for the business personnel corresponding to the business personnel information based on the second correspondence relationship, corresponding one-to-one with the business line code repository, further includes: Determine whether a template code release request corresponding to the target business line code repository has been received, triggered by a user; wherein the code viewing request carries the user's user information; If the template code release request is received, the target user information database corresponding to the target business line code repository is invoked; Determine whether the user information is stored in the target user information database; If the user information is stored, the user's permissions are verified based on the user information; If the permission verification is successful, the user's facial information is collected, and the user's pupil feature map is obtained from the facial information; The user is authenticated based on the pupil feature map and a preset face database; If the identity verification is successful, obtain the target code certificate template from the target business line code repository; Perform the release process for the target code document template; The step of verifying the user's identity based on the pupil feature map and a preset face database specifically includes: The pupil size, pupil distance, and pupil color of the user are extracted from the pupil feature map; Obtain a specified face image that matches the user information from the face database; Obtain a specified pupil feature map from the specified face image; wherein, the specified pupil information includes a specified pupil size, a specified pupil distance, and a specified pupil color; Determine whether the pupil color and the specified pupil color are the same color; If they belong to the same color, calculate the first similarity between the pupil size and the specified pupil size; Calculate the second similarity between the pupil distance and the specified pupil distance; Target similarity is generated based on the first similarity and the second similarity; Determine whether the target similarity is greater than a preset similarity threshold; If the similarity is greater than the threshold, the identity verification is deemed successful; otherwise, the identity verification is deemed unsuccessful. The step of determining whether the pupil color and the specified pupil color belong to the same color specifically includes: Obtain all first pixels of the first pupil region corresponding to the pupil feature map, and obtain all second pixels of the second pupil region corresponding to the specified pupil feature map; Calculate the first pixel average value of all first pixels, and calculate the second pixel average value of all second pixels; Calculate the absolute value of the difference between the average value of the first pixel and the average value of the second pixel; Determine whether the absolute value of the difference is less than a preset threshold; If so, obtain the first color channel value corresponding to the first pupil region based on the preset color model, and obtain the second color channel value corresponding to the second pupil region; Based on the values ​​of the first color channel, the values ​​of the second color channel, and a preset value range, a color matching result is generated between the pupil color and the specified pupil color.

2. The method for processing code data according to claim 1, characterized in that, The step of generating target similarity based on the first similarity and the second similarity specifically includes: Obtain the first weight corresponding to the first similarity; Obtain the second weight corresponding to the second similarity; Calculate the first product of the first similarity and the first weight, and calculate the second product of the second similarity and the second weight; Calculate the third product between the first product and the second product; The third product is used as the target similarity.

3. The method for processing code data according to claim 1, characterized in that, The step of verifying the user's permissions based on the user information specifically includes: Call the preset permission data table; Obtain the target permission score corresponding to the user information from the permission data table; Retrieve the permission score range corresponding to the template code publishing operation; Determine whether the target permission score is within the permission score range; If the score falls within the specified range, the permission verification is deemed successful. If the score is not within the specified range, the permission is deemed not granted.

4. The method for processing code data according to claim 1, characterized in that, After the step of configuring permission management for the business personnel corresponding to the business personnel information based on the second correspondence relationship, corresponding one-to-one with the business line code repository, the method further includes: Determine whether a template code modification request triggered by a specified user and corresponding to a specified business line code repository has been received; If so, retrieve the specified document template code corresponding to the specified business line code repository; The original code is determined based on the specified document template code; wherein, the original code includes the data to be filled; The data to be filled in the original code is detected based on the preset inspection logic; Receive replacement data corresponding to the data to be filled, input by the specified user; The data to be filled in the original code is replaced with the replacement data to complete the modification process of the specified document template code.

5. A code data processing apparatus, characterized in that, include: The first acquisition module is used to acquire the business line names corresponding to each preset business line; The extraction module is used to extract the document template code corresponding to each of the business lines from a preset business system based on the business line name. The first creation module is used to create a business line code repository corresponding to each of the document template codes, based on the business line name. The storage module is used to store each of the document template codes into the respective business line code warehouses in a one-to-one correspondence based on the first correspondence between the document template codes and the business line code warehouses; The second creation module is used to obtain business personnel information corresponding to each of the business lines, and to create a second correspondence between the business personnel information and the code repository of the business line. The management module is used to configure permission management for the business personnel corresponding to the business personnel information, based on the second correspondence relationship, to correspond one-to-one with the business line code repository; The code data processing device also includes: The first judgment module is used to determine whether a template code release request corresponding to the target business line code repository has been received, triggered by a user; wherein the code viewing request carries the user's user information; The calling module is used to call the target user information database corresponding to the target business line code repository if the template code release request is received. The second judgment module is used to determine whether the target user information database stores the user information. The first verification module is used to verify the user's permissions based on the stored user information if such user information is stored. The acquisition module is used to acquire the user's facial information if the permission verification is successful, and to obtain the user's pupil feature map from the facial information; The second verification module is used to verify the user's identity based on the pupil feature map and a preset face database; The second acquisition module is used to acquire the target code certificate template from the target business line code repository if the identity verification is successful. The publishing module is used to perform the publishing process with the target code document template; The second verification module includes: An extraction submodule is used to extract the user's pupil size, pupil distance, and pupil color from the pupil feature map; The first acquisition submodule is used to acquire a specified face image that matches the user information from the face database; The second acquisition submodule is used to acquire a specified pupil feature map from the specified face image; wherein, the specified pupil information includes a specified pupil size, a specified pupil distance, and a specified pupil color; The first judgment submodule is used to determine whether the pupil color and the specified pupil color are the same color; The first calculation submodule is used to calculate the first similarity between the pupil size and the specified pupil size if they belong to the same color. The second calculation submodule is used to calculate the second similarity between the pupil distance and the specified pupil distance; A generation submodule is used to generate a target similarity based on the first similarity and the second similarity; The second judgment submodule is used to determine whether the target similarity is greater than a preset similarity threshold; The first determination submodule is used to determine that the identity verification is successful if the similarity is greater than the similarity threshold, and otherwise determine that the identity verification is unsuccessful. The first judgment submodule includes: The first acquisition unit is used to acquire all first pixel points of the first pupil region corresponding to the pupil feature map, and to acquire all second pixel points of the second pupil region corresponding to the specified pupil feature map; The first calculation unit is used to calculate the first pixel average value of all the first pixel points and to calculate the second pixel average value of all the second pixel points; The second calculation unit is used to calculate the absolute value of the difference between the average value of the first pixel and the average value of the second pixel; The judgment unit is used to determine whether the absolute value of the difference is less than a preset threshold. The second acquisition unit is used to acquire, if yes, the first color channel value corresponding to the first pupil region based on a preset color model, and to acquire the second color channel value corresponding to the second pupil region. The generation unit is used to generate a color matching result between the pupil color and the specified pupil color based on the first color channel value, the second color channel value, and a preset value range.

6. A computer device comprising a memory and a processor, wherein the memory stores computer-readable instructions, and the processor, when executing the computer-readable instructions, implements the steps of the method for processing code data as described in any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the method for processing code data as described in any one of claims 1 to 4.