Font library updating method, identity recognition method, device and electronic equipment
By updating the encoding library and font library of documents and establishing correlation relationships, the problem of poor recognition of rare characters by OCR technology is solved, effective recognition of rare characters in documents is achieved, and the accuracy and consistency of recognition are improved.
Patent Information
- Application Number
- CN202110090591.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-22
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-01-22
AI Technical Summary
Existing OCR technology has problems with poor recognition, misrecognition, and inability to recognize rare characters, and the unified encoding management of domestic characters is relatively scattered, making it difficult to recognize rare characters in documents.
By determining the target text graphics and coding of the document, it is judged whether it belongs to the scope of the coding library. If not, the coding library and font library are updated, the association between the coding library and the font library is established, and the font library is expanded to solve the problem of rare character recognition.
It has achieved effective recognition of rare characters in documents, solved the problem of incomplete font graphics library and inconsistent character codes, and improved the ability of customers with rare characters to conduct financial services.
Smart Images

Figure CN112800240B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and more specifically, to a font library updating method, an identity recognition method, a device and an electronic device. Background Art
[0002] With the development of OCR technology, because it can quickly recognize printed words as computer-recognizable characters, it improves the speed of information recognition and interaction, and its application fields are becoming more and more extensive. More than 60 million people use uncommon Chinese characters in their names, and a large number of users in Hong Kong, Macau and Taiwan have names that contain traditional Chinese characters and variant characters.
[0003] However, ORC has always had problems with poor recognition, wrong recognition, and failure to recognize rare characters in certificates, as rare characters are relatively uncommon and numerous. The unified encoding management of domestic characters is relatively scattered, with no unified national standards and only some technical specification guidance documents. Certificates issued by relevant departments and other authoritative organizations have multiple codes for one character (one font graphic, multiple codes). How to effectively identify rare characters in certificates has become a problem. Summary of the invention
[0004] The present application provides a character library updating method, an identity recognition method, a device and an electronic device, which updates the character library with determined uncommon characters, so that the uncommon characters can be effectively recognized later. The technical solution adopted by the present application is as follows:
[0005] In a first aspect, a method for updating a font library is provided, comprising:
[0006] Determine a target text pattern of the certificate and a target text code of the certificate, wherein the target text code is obtained by performing OCR recognition on the target text pattern;
[0007] Determine whether the target text encoding belongs to the encoding library;
[0008] If the target text code does not belong to the code library, then updating the code library based on the target text code and updating the target character library based on the target text graphic of the certificate;
[0009] Establish an association relationship between the target text code in the code library and the target text graphic in the target character library.
[0010] Optionally, updating the target character library based on the target text graphic of the certificate includes:
[0011] Determining whether the target text graphic of the certificate belongs to the target character library;
[0012] If the target text graphic of the certificate does not belong to the target character library, the target text graphic of the certificate is added to the target character library.
[0013] Optionally, the method further comprises:
[0014] If the target text graphic of the certificate belongs to the target character library, then the original text graphic of the target character library is not replaced by the target text graphic of the certificate;
[0015] The linking of the target character code in the code library and the target character graphic in the target character library is established, including:
[0016] A mapping relationship between the original target text graphics in the target character library and the target text encoding in the updated encoding library is established.
[0017] Optionally, the method further comprises:
[0018] If the target text pattern of the certificate belongs to the target character library, it is determined that the target text pattern of the certificate is one-character-multiple-codes, and the one-character-multiple-codes library is updated based on the target text encoding.
[0019] Optionally, updating the one-word multiple-code library based on the target text encoding includes:
[0020] The original text code corresponding to the target text graphic in the target character library and the target text code are added to the one-character-multiple-code library, and an association relationship between the two is established.
[0021] In a second aspect, an identity recognition method is provided, comprising:
[0022] Determine the text pattern and first text code of the target object's certificate;
[0023] Sending the text image and the first text code of the target object's certificate to the identity verification system of the relevant department for identity verification;
[0024] If the verification fails, judging whether the text pattern of the certificate of the target object belongs to one-word multiple codes based on the one-word multiple codes library;
[0025] If the text pattern of the target object's certificate belongs to one-word multiple codes, determining a second text code corresponding to the text pattern of the target object's certificate from the one-word multiple codes library;
[0026] The text graphic of the target object's certificate and the second text code are sent to the identity verification system of the relevant department for identity verification.
[0027] Optionally, the method comprises:
[0028] If the verification based on the text pattern of the target object's certificate and the second text code fails, determining a third text code corresponding to the text pattern of the target object's certificate from the one-word multiple-code library;
[0029] The text graphic of the target object's certificate and the third text code are sent to the identity verification system of the relevant department for identity verification.
[0030] In a third aspect, a font library updating device is provided, characterized in that it comprises:
[0031] A first determination module is used to determine a target text pattern of a certificate and a target text code of the certificate, wherein the target text code is obtained by performing OCR recognition on the target text pattern;
[0032] The first judgment module is used to judge whether the target text encoding belongs to the encoding library;
[0033] A first updating module, for updating the encoding library based on the target text encoding and updating the target character library based on the target text graphics of the certificate if the target text encoding does not belong to the encoding library range;
[0034] The establishing module is used to establish the association relationship between the target text code in the encoding library and the target text graphic in the target character library.
[0035] Optionally, the first updating module includes:
[0036] A judging unit, used for judging whether the target text graphic of the certificate belongs to the target character library;
[0037] The adding unit is used for adding the target text graphic of the certificate to the target character library if the target text graphic of the certificate does not belong to the target character library.
[0038] Optionally, the first updating module is used for not replacing the original text graphics of the target character library with the target text graphics of the certificate if the target text graphics of the certificate belong to the target character library;
[0039] The establishment module is used to establish a mapping relationship between the original target text graphics in the target character library and the target text encoding in the updated encoding library.
[0040] Optionally, the device further comprises:
[0041] The second updating module is used to determine that the target text pattern of the certificate is one-character-multiple-codes if the target text pattern of the certificate belongs to the target character library, and update the one-character-multiple-codes library based on the target text encoding.
[0042] Optionally, the second updating module is specifically used to add the original text code corresponding to the target text graphic in the target character library and the target text code to the one-character-multiple-code library, and establish an association relationship between the two.
[0043] In a fourth aspect, an identity recognition device is provided, comprising:
[0044] A second determination module, used to determine the text graphic and the first text code of the certificate of the target object;
[0045] A first sending module, used to send the text image and the first text code of the target object's certificate to the identity verification system of the relevant department for identity verification;
[0046] A second judgment module is used to judge whether the text pattern of the certificate of the target object belongs to one-word multiple codes based on the one-word multiple codes library if the verification fails;
[0047] A third determination module is used to determine a second character code corresponding to the character graphic of the certificate of the target object from the one-character-multiple-code library if the character graphic of the certificate of the target object belongs to one-character-multiple-code;
[0048] The second sending module is used to send the text image of the target object's certificate and the second text code to the identity verification system of the relevant department for identity verification.
[0049] Optionally, the device comprises:
[0050] a fourth determination module, configured to determine a third character code corresponding to the character pattern of the certificate of the target object from the one-character-multiple-code library if verification based on the character pattern of the certificate of the target object and the second character code fails;
[0051] The third sending module is used to send the text image of the target object's certificate and the third text code to the identity verification system of the relevant department for identity verification.
[0052] In a fifth aspect, an electronic device is provided, the electronic device comprising:
[0053] one or more processors;
[0054] Memory;
[0055] One or more applications, wherein the one or more applications are stored in a memory and configured to be executed by one or more processors, and the one or more programs are configured to: execute the method shown in the first aspect or the second aspect.
[0056] In a sixth aspect, a computer-readable storage medium is provided, which is used to store computer instructions. When the computer-readable storage medium is run on a computer, the computer can execute the method shown in the first aspect or the second aspect.
[0057] The present application provides a method for updating a character library, an identification method, a device and an electronic device. The present application determines the target text graphic of the certificate and the target text code of the certificate, wherein the target text code is obtained by performing OCR recognition on the target text graphic; determines whether the target text code belongs to the scope of the coding library; if the target text code does not belong to the scope of the coding library, updates the coding library based on the target text code and updates the target character library based on the target text graphic of the certificate; and establishes an association between the target text code in the coding library and the target text graphic in the target character library. That is, when the target text code does not belong to the scope of the coding library, the coding library and the target character library are updated based on the target text graphic and the target text code of the certificate, thereby realizing the expansion of the character library, and further solving the problem that the font graphic library is incomplete for the image of rare characters and the character code is inconsistent, resulting in the inability to recognize the font in the certificate, which affects the financial business of customers with rare characters.
[0058] Additional aspects and advantages of the present application will be partially given in the following description, which will become apparent from the following description, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0060] Figure 1 A flowchart of a method for updating a character library according to an embodiment of the present application is shown;
[0061] Figure 2 A flowchart of an identity recognition method according to an embodiment of the present application;
[0062] Figure 3 A schematic diagram of the structure of a character library updating device according to an embodiment of the present application;
[0063] Figure 4 A schematic diagram of the structure of an electronic device according to an embodiment of the present application;
[0064] Figure 5 A schematic diagram of the structure of an identity recognition device according to an embodiment of the present application. DETAILED DESCRIPTION
[0065] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present application.
[0066] Those skilled in the art will appreciate that, unless expressly stated, the singular forms "a", "an" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0067] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0068] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0069] The present application embodiment provides a method for updating a character library, such as Figure 1 As shown, the method may include the following steps:
[0070] Step S101, determining the target text pattern of the certificate and the target text code of the certificate, wherein the target text code is obtained by performing OCR recognition on the target text pattern; wherein the certificate may be a related identity document. The image of the certificate may be first collected, and the collected image of the certificate may be recognized by image recognition technology to determine the target text pattern of the certificate (i.e., the image corresponding to the text in the certificate) and the target text code of the certificate (i.e., the text code obtained by recognizing the text pattern).
[0071] Step S102, determining whether the target text encoding belongs to the encoding library range;
[0072] Exemplarily, the coding library may be a coding library maintained by a bank, in which codes corresponding to various text graphics are stored.
[0073] Step S103, if the target text code does not belong to the code library range, then update the code library based on the target text code and update the target character library based on the target text graphic of the certificate;
[0074] Specifically, if the target text code does not belong to the code library range, it means that the code library does not include the target text code, then the code library is updated based on the target text code and the target font library is updated based on the target text graphic of the certificate;
[0075] Step S104, establish an association relationship between the target text code in the code library and the target text graphic in the target character library. That is, establish an index relationship between the target text code and the target text graphic in the target character library, and the corresponding target text graphic can be found through the target text code. Optionally, the target text code can also be found through the target text graphic.
[0076] The embodiment of the present application also provides a possible implementation method, which updates the target character library based on the target text graphic of the certificate, including:
[0077] Determining whether the target text graphic of the certificate belongs to the target character library;
[0078] If the target text graphic of the certificate does not belong to the target character library, the target text graphic of the certificate is added to the target character library, which means that the target character library does not include the uncommon character, and the target text graphic of the certificate is added to the target character library, thereby updating the uncommon character to the character library.
[0079] Optionally, the method further comprises:
[0080] If the target text graphic of the certificate belongs to the target character library, it means that the target text graphic belongs to the situation of one character with multiple codes, that is, one text graphic can correspond to multiple codes, and the target text graphic of the certificate does not need to replace the original text graphic of the target character library;
[0081] The linking of the target character code in the code library and the target character graphic in the target character library is established, including:
[0082] A mapping relationship between the original target text graphics in the target character library and the target text encoding in the updated encoding library is established.
[0083] Optionally, the method further comprises:
[0084] If the target text graphic of the certificate belongs to the target character library, it is determined that the target text graphic of the certificate is a one-character multiple-code, and the one-character multiple-code library is updated based on the target text code. Optionally, the updating of the one-character multiple-code library based on the target text code includes: adding the original text code corresponding to the target text graphic in the target character library and the target text code to the one-character multiple-code library, and establishing an association between the two. That is, if a certain text graphic is a one-character multiple-code (there are multiple text codes), a one-character multiple-code library is established separately through one-character multiple-code, so as to improve the efficiency of retrieving the text code corresponding to a certain text graphic, and then improve the efficiency of subsequent identity recognition.
[0085] The present application provides a method for updating a character library, which determines the target text graphic of a certificate and the target text code of the certificate, wherein the target text code is obtained by performing OCR recognition on the target text graphic; determines whether the target text code belongs to the scope of the coding library; if the target text code does not belong to the scope of the coding library, updates the coding library based on the target text code and updates the target character library based on the target text graphic of the certificate; and establishes an association between the target text code in the coding library and the target text graphic in the target character library. That is, when the target text code does not belong to the scope of the coding library, the coding library and the target character library are updated based on the target text graphic and the target text code of the certificate, thereby realizing the expansion of the character library, and further solving the problem that the font graphic library is incomplete for the image of rare characters and the character code is inconsistent, resulting in the inability to recognize the font in the certificate, which affects the financial business of customers with rare characters.
[0086] Embodiment 2
[0087] like Figure 2 As shown, the embodiment of the present application provides an identity recognition method, including:
[0088] Step S201, determining the text graphics and the first text code of the target object's certificate; illustratively, it can be a scenario of online identity authentication, by collecting the target object's certificate image, and then performing image analysis to obtain the text graphics and the first text code of the target object's certificate.
[0089] Step S202, sending the text pattern and the first text code of the target object's certificate to the identity verification system of the relevant department for identity verification; wherein the identity verification system is used to verify whether the text pattern and the first text code match.
[0090] Step S203, if the verification fails, judging whether the text pattern of the certificate of the target object belongs to one-word multiple codes based on the one-word multiple codes library;
[0091] Step S204: If the text pattern of the target object's certificate is a one-word multiple-code, a second text code corresponding to the text pattern of the target object's certificate is determined from the one-word multiple-code library; that is, if it is a one-word multiple-code situation, the text code corresponding to the text pattern of the target object's certificate stored in the identity verification system is different from the first text code, and the identity authentication can be re-performed by replacing it with other corresponding text codes. The one-word multiple-code library stores multiple text codes corresponding to a certain text pattern, and the multiple text codes are stored in an associated manner.
[0092] Step S205, sending the text image of the target object's certificate and the second text code to the identity verification system of the relevant department for identity verification.
[0093] Optionally, the method comprises:
[0094] If the verification based on the text pattern of the target object's certificate and the second text code fails, determining a third text code corresponding to the text pattern of the target object's certificate from the one-word multiple-code library;
[0095] The text graphic of the target object's certificate and the third text code are sent to the identity verification system of the relevant department for identity verification.
[0096] For the embodiment of the present application, when identity authentication fails, it is determined whether there are multiple codes for one character. If there are multiple codes for one character, a new text code is determined for identity verification, thereby solving the problem of incomplete images of rare characters and inconsistent character codes in the font graphic library, which leads to the inability to recognize the fonts in the certificate, affecting the problem of customers with rare characters being unable to conduct financial business.
[0097] Figure 3 A font library updating device provided in an embodiment of the present application, wherein the device 30 comprises:
[0098] The first determination module 301 is used to determine the target text pattern of the certificate and the target text code of the certificate, wherein the target text code is obtained by performing OCR recognition on the target text pattern;
[0099] The first judgment module 302 is used to judge whether the target text encoding belongs to the encoding library;
[0100] The first updating module 303 is used for updating the encoding library based on the target text encoding and updating the target character library based on the target text graphics of the certificate if the target text encoding does not belong to the encoding library range;
[0101] The establishing module 304 is used to establish the association relationship between the target text code in the coding library and the target text graphic in the target font library.
[0102] Optionally, the first updating module includes:
[0103] A judging unit, used for judging whether the target text graphic of the certificate belongs to the target character library;
[0104] The adding unit is used for adding the target text graphic of the certificate to the target character library if the target text graphic of the certificate does not belong to the target character library.
[0105] Optionally, the first updating module is used for not replacing the original text graphics of the target character library with the target text graphics of the certificate if the target text graphics of the certificate belong to the target character library;
[0106] The establishment module is used to establish a mapping relationship between the original target text graphics in the target character library and the target text encoding in the updated encoding library.
[0107] Optionally, the device further comprises:
[0108] The second updating module is used to determine that the target text pattern of the certificate is one-character-multiple-codes if the target text pattern of the certificate belongs to the target character library, and update the one-character-multiple-codes library based on the target text encoding.
[0109] Optionally, the second updating module is specifically used to add the original text code corresponding to the target text graphic in the target character library and the target text code to the one-character-multiple-code library, and establish an association relationship between the two.
[0110] The embodiment of the present application provides a device, which is applicable to the method shown in the above embodiment, and will not be described in detail here. The beneficial effects achieved are similar, and will not be described in detail here.
[0111] Embodiment 4
[0112] like Figure 5 As shown, an identity recognition device is provided, the device 50 comprising:
[0113] The second determination module 501 is used to determine the text pattern and the first text code of the certificate of the target object;
[0114] The first sending module 502 is used to send the text image and the first text code of the target object's certificate to the identity verification system of the relevant department for identity verification;
[0115] The second judgment module 503 is used to judge whether the text pattern of the certificate of the target object belongs to one-word multiple codes based on the one-word multiple codes library if the verification fails;
[0116] A third determination module 504 is used to determine a second character code corresponding to the character pattern of the target object's certificate from the one-character-multiple-code library if the character pattern of the target object's certificate belongs to one-character-multiple-code;
[0117] The second sending module 505 is used to send the text image of the target object's certificate and the second text code to the identity verification system of the relevant department for identity verification.
[0118] Optionally, the device comprises:
[0119] a fourth determination module, configured to determine a third character code corresponding to the character pattern of the certificate of the target object from the one-character-multiple-code library if verification based on the character pattern of the certificate of the target object and the second character code fails;
[0120] The third sending module is used to send the text image of the target object's certificate and the third text code to the identity verification system of the relevant department for identity verification.
[0121] The embodiment of the present application provides a device, which is applicable to the method shown in the above embodiment, and will not be described in detail here. The beneficial effects achieved are similar, and will not be described in detail here.
[0122] Embodiment 5
[0123] The present application embodiment provides an electronic device, such as Figure 4 As shown, Figure 4 The electronic device 40 shown includes: a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, such as through a bus 4002. Further, the electronic device 40 may also include a transceiver 4004. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 40 does not constitute a limitation on the embodiments of the present application. The processor 4001 is used in the embodiments of the present application to implement Figure 3 or Figure 5 Functions of the modules shown. Transceiver 4004 includes a receiver and a transmitter.
[0124] Processor 4001 may be a CPU, a general-purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0125] The bus 4002 may include a path to transmit information between the above components. The bus 4002 may be a PCI bus or an EISA bus, etc. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0126] Memory 4003 can be ROM or other types of static storage devices that can store static information and instructions, RAM or other types of dynamic storage devices that can store information and instructions, or it can be EEPROM, CD-ROM or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this.
[0127] The memory 4003 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 4001. The processor 4001 is used to execute the application code stored in the memory 4003 to implement Figure 3 or Figure 5 The illustrated embodiments provide for the functionality of the device.
[0128] The beneficial effects of the embodiments of the present application are similar to those of the method embodiments shown and will not be repeated here.
[0129] The present application embodiment provides an electronic device applicable to the above method embodiment, which will not be described in detail here.
[0130] Embodiment 6
[0131] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the method shown in the above embodiment is implemented.
[0132] The embodiment of the present application provides a computer-readable storage medium applicable to the above method embodiment. No further description is given here. The beneficial effects of the embodiment of the present application are similar to those of the method embodiment shown, and no further description is given here.
[0133] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0134] The above are only some implementation methods of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for updating a character library, characterized in that: include: Determine a target text pattern of the certificate and a target text code of the certificate, wherein the target text code is obtained by performing OCR recognition on the target text pattern; Determine whether the target text encoding belongs to the encoding library; If the target text code does not belong to the code library, then updating the code library based on the target text code and updating the target character library based on the target text graphic of the certificate; Establishing an association relationship between the target text code in the code library and the target text graphic in the target character library; Updating the target character library based on the target text graphic of the certificate includes: Determining whether the target text graphic of the certificate belongs to the target character library; If the target text graphic of the certificate does not belong to the target character library, adding the target text graphic of the certificate to the target character library; If the target text graphic of the certificate belongs to the target character library, then the original text graphic of the target character library is not replaced by the target text graphic of the certificate; The linking of the target character code in the code library and the target character graphic in the target character library is established, including: A mapping relationship between the original target text graphics in the target character library and the target text encoding in the updated encoding library is established.
2. The method according to claim 1, characterized in that: The method further includes: If the target text pattern of the certificate belongs to the target character library, it is determined that the target text pattern of the certificate is one-character-multiple-codes, and the one-character-multiple-codes library is updated based on the target text encoding.
3. The method according to claim 2, characterized in that: The updating of the one-word multiple-code library based on the target text encoding includes: The original text code corresponding to the target text graphic in the target character library and the target text code are added to the one-character-multiple-code library, and an association relationship between the two is established.
4. A font library updating device, characterized in that: include: A first determination module is used to determine a target text pattern of a certificate and a target text code of the certificate, wherein the target text code is obtained by performing OCR recognition on the target text pattern; The first judgment module is used to judge whether the target text encoding belongs to the encoding library; A first updating module, for updating the encoding library based on the target text encoding and updating the target character library based on the target text graphics of the certificate if the target text encoding does not belong to the encoding library range; An establishing module, used for establishing an association relationship between the target text code in the coding library and the target text graphic in the target character library; Updating the target character library based on the target text graphic of the certificate includes: Determining whether the target text graphic of the certificate belongs to the target character library; If the target text graphic of the certificate does not belong to the target character library, adding the target text graphic of the certificate to the target character library; If the target text graphic of the certificate belongs to the target character library, then the original text graphic of the target character library is not replaced by the target text graphic of the certificate; The linking of the target character code in the code library and the target character graphic in the target character library is established, including: A mapping relationship between the original target text graphics in the target character library and the target text encoding in the updated encoding library is established.
5. An electronic device, characterized in that: include: one or more processors; Memory; One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to: execute the method according to any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that: The computer storage medium is used to store computer instructions, and when the computer storage medium is run on a computer, the computer can execute the method according to any one of claims 1 to 3.
