CN114866271A - Electronic certificate generation method, device, equipment and storage medium - Google Patents

Electronic certificate generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN114866271A
CN114866271A CN202210253133.4A CN202210253133A CN114866271A CN 114866271 A CN114866271 A CN 114866271A CN 202210253133 A CN202210253133 A CN 202210253133A CN 114866271 A CN114866271 A CN 114866271A
Authority
CN
China
Prior art keywords
electronic certificate
handwritten
data
generating
electronic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210253133.4A
Other languages
Chinese (zh)
Inventor
秦增福
柳兆鹏
杨周龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongpu Software Co Ltd
Original Assignee
Dongpu Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongpu Software Co Ltd filed Critical Dongpu Software Co Ltd
Priority to CN202210253133.4A priority Critical patent/CN114866271A/en
Publication of CN114866271A publication Critical patent/CN114866271A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0861Network architectures or network communication protocols for network security for authentication of entities using biometrical features, e.g. fingerprint, retina-scan
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/24Character recognition characterised by the processing or recognition method
    • G06V30/242Division of the character sequences into groups prior to recognition; Selection of dictionaries
    • G06V30/244Division of the character sequences into groups prior to recognition; Selection of dictionaries using graphical properties, e.g. alphabet type or font
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3226Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using a predetermined code, e.g. password, passphrase or PIN
    • H04L9/3231Biological data, e.g. fingerprint, voice or retina

Abstract

The invention relates to the technical field of electronic certificates, and discloses a method, a device, equipment and a storage medium for generating an electronic certificate, which are used for improving the generation efficiency of the electronic certificate, simplifying the generation process of the electronic certificate and improving the transmission security of the electronic certificate. The method comprises the following steps: extracting handwritten characters from a target handwritten file, and identifying the handwritten characters through a preset handwritten Chinese character database to obtain an identification result of the handwritten characters; the handwritten Chinese character database comprises the font, the stroke order rule and the common word group of each character; filling the recognition result of the handwritten characters into a preset electronic certificate template to obtain an initial certificate of the target handwritten file; acquiring fingerprint data and a random code of a receiver of the electronic certificate, and generating an electronic certificate activation code based on the fingerprint data and the random code; an electronic voucher is generated based on the initial voucher and the electronic voucher activation code. In addition, the invention also relates to a block chain technology, and the generated data of the electronic certificate can be stored in the block chain node.

Description

Electronic certificate generation method, device, equipment and storage medium
Technical Field
The present invention relates to the field of electronic certificates, and in particular, to a method, an apparatus, a device, and a storage medium for generating an electronic certificate.
Background
In many project scenarios, electronic vouchers need to be used to enable proof of work and work interfacing. In the related technology, when the electronic certificate is generated, various fonts need to be loaded in advance, and the handwritten text is identified and typeset through the loaded fonts to generate the electronic certificate; in the storage and transmission process of the electronic certificate, a database, a remote dictionary service and various engines are required to be used. In the above manner, a large amount of labor cost is required for generating the electronic voucher, the error rate is high, and meanwhile, in the storage and transmission process of the electronic voucher, the content of the electronic voucher is easy to leak, and the security is low.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for generating an electronic certificate, which are used for synchronously loading data and fonts when the electronic certificate is generated, facilitating font change, improving the generation efficiency of the electronic certificate, simplifying the generation process of the electronic certificate and improving the transmission safety of the electronic certificate.
In order to achieve the above object, a first aspect of the present invention provides a method for generating an electronic certificate, including: extracting handwritten characters from a target handwritten file, and identifying the handwritten characters through a preset handwritten Chinese character database to obtain an identification result of the handwritten characters; the handwritten Chinese character database comprises the font, the stroke order rule and the common word group of each character; filling the recognition result of the handwritten character into a preset electronic certificate template to obtain an initial certificate of the target handwritten file; acquiring fingerprint data and a random code of a receiver of the electronic certificate, and generating an electronic certificate activation code based on the fingerprint data and the random code; and generating the electronic certificate based on the initial certificate and the electronic certificate activation code.
Optionally, in a first implementation manner of the first aspect of the present invention, the step of recognizing the handwritten text by using a preset handwritten chinese character database to obtain a recognition result of the handwritten text includes: aiming at each handwritten character, recognizing the handwritten character based on the font and the stroke order rule of each character in the handwritten character database to obtain an initial recognition result; and acquiring adjacent characters of the handwritten characters, and determining a final recognition result of the handwritten characters based on the common word group of the characters corresponding to the initial recognition result in the handwritten character database.
Optionally, in a second implementation manner of the first aspect of the present invention, the step of generating an electronic certificate activation code based on the fingerprint data and the random code includes: extracting a plurality of target data from the fingerprint data and the random code according to a preset rule; for each target data, performing operation processing on the target data according to a preset operation rule to obtain an operation result of the target data; and generating the electronic certificate activation code based on the operation result of each target datum.
Optionally, in a third implementation manner of the first aspect of the present invention, the fingerprint data and the random code are both binary data; the step of extracting a plurality of target data from the fingerprint data and the random code according to a preset rule comprises the following steps: converting the data combined by the fingerprint data and the random codes into decimal data; and according to a preset space distance, space selection is carried out on the decimal data combined by the fingerprint data and the random codes to obtain a plurality of target data.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the target data is decimal data; the method comprises the following steps of carrying out operation processing on target data according to a preset operation rule to obtain an operation result of the target data, wherein the operation result comprises the following steps: converting the target data into binary data, and performing preset bit operation on the binary data of the target data to obtain a first intermediate result; converting the first intermediate result into decimal data, performing division operation on the decimal data of the first intermediate result and a preset value to obtain a second intermediate result, and performing modulus operation on the decimal data of the first intermediate result and the preset value to obtain a third intermediate result; and adding the second intermediate result and the third intermediate result to obtain an operation result of the target data.
Optionally, in a fifth implementation manner of the first aspect of the present invention, the step of generating an electronic certificate activation code based on an operation result of each piece of target data includes: adding the operation results of each target data to obtain an addition result; multiplying the addition result by a preset weighted value to obtain a multiplication result; and performing modular processing on the specific numerical value of the multiplication result to obtain the electronic certificate activation code.
Optionally, in a sixth implementation manner of the first aspect of the present invention, the step of generating an electronic certificate based on the initial certificate and the electronic certificate activation code includes: and encrypting the initial certificate through the electronic certificate activation code and the electronic certificate card number of the receiver of the electronic certificate to obtain the electronic certificate.
The second aspect of the invention provides a device for generating an electronic certificate, which comprises an identification module, a recognition module and a control module, wherein the identification module is used for extracting handwritten characters from a target handwritten file, and identifying the handwritten characters through a preset handwritten Chinese character database to obtain an identification result of the handwritten characters; the handwritten Chinese character database comprises the font, the stroke order rule and the common word group of each character; the filling module is used for filling the recognition result of the handwritten characters into a preset electronic certificate template to obtain an initial certificate of the target handwritten file; the acquisition module is used for acquiring the fingerprint data and the random code of the receiver of the electronic certificate and generating an electronic certificate activation code based on the fingerprint data and the random code; and the generating module is used for generating the electronic certificate based on the initial certificate and the electronic certificate activation code.
Optionally, in a first implementation manner of the second aspect of the present invention, the recognition module is further configured to, for each handwritten character, recognize the handwritten character based on a font and a stroke order rule of each character in the handwritten character database, so as to obtain an initial recognition result; and acquiring adjacent characters of the handwritten characters, and determining a final recognition result of the handwritten characters based on the common word group of the characters corresponding to the initial recognition result in the handwritten character database.
Optionally, in a second implementation manner of the second aspect of the present invention, the obtaining module is further configured to extract a plurality of target data from the fingerprint data and the random code according to a preset rule; for each target data, performing operation processing on the target data according to a preset operation rule to obtain an operation result of the target data; and generating an electronic certificate activation code based on the operation result of each target datum.
Optionally, in a third implementation manner of the second aspect of the present invention, the fingerprint data and the random code are both binary data; the acquisition module is also used for converting the data after the combination of the fingerprint data and the random codes into decimal data; and according to a preset space distance, space selection is carried out on the decimal data combined by the fingerprint data and the random codes to obtain a plurality of target data.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the target data is decimal data; the acquisition module is also used for converting the target data into binary data and carrying out preset bit operation on the binary data of the target data to obtain a first intermediate result; converting the first intermediate result into decimal data, performing division operation on the decimal data of the first intermediate result and a preset value to obtain a second intermediate result, and performing modulus operation on the decimal data of the first intermediate result and the preset value to obtain a third intermediate result; and adding the second intermediate result and the third intermediate result to obtain an operation result of the target data.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the obtaining module is further configured to add the operation result of each target data to obtain an addition result; multiplying the addition result by a preset weighted value to obtain a multiplication result; and performing modular processing on the specific numerical value of the multiplication result to obtain the electronic certificate activation code.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the generating module is further configured to encrypt the initial credential by using the electronic credential activation code and the electronic credential card number of the recipient of the electronic credential, so as to obtain the electronic credential.
A third aspect of the present invention provides an electronic certificate generation apparatus, including: a memory and at least one processor, the memory having instructions stored therein; the at least one processor calls instructions in the memory to cause the generation device of the electronic certificate to execute the generation method of the electronic certificate.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to execute the above-described method of generating an electronic certificate.
In the technical scheme provided by the invention, handwritten characters are extracted from a target handwritten file, and the handwritten characters are identified through a preset handwritten Chinese character database to obtain an identification result of the handwritten characters; the handwritten Chinese character database comprises the font, the stroke order rule and the common word group of each character; filling the recognition result of the handwritten character into a preset electronic certificate template to obtain an initial certificate of the target handwritten file; acquiring fingerprint data and a random code of a receiver of the electronic certificate, and generating an electronic certificate activation code based on the fingerprint data and the random code; and generating the electronic certificate based on the initial certificate and the electronic certificate activation code. In the mode, handwritten characters are identified through a preset Chinese character database, an initial certificate is generated, synchronous font loading during data loading is realized, additional font installation at a server side is not needed, font changing is more convenient, an electronic certificate activation code is generated through fingerprint data and random coding of an electronic certificate receiver, an electronic certificate is generated according to the initial certificate and the electronic certificate activation code, the database does not need to be accessed in the whole process, persistent middleware such as remote dictionary service and the like are not needed, the generation efficiency of the electronic certificate is improved, the generation process of the electronic certificate is simplified, and the propagation safety of the electronic certificate is improved.
Drawings
FIG. 1 is a schematic diagram of an embodiment of a method for generating an electronic certificate according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of another embodiment of a method for generating an electronic certificate according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an embodiment of an apparatus for generating an electronic certificate according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an embodiment of an electronic certificate generation device in the embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method, a device, equipment and a storage medium for generating an electronic certificate, which are used for synchronously loading data and fonts when the electronic certificate is generated, facilitating font change, improving the generation efficiency of the electronic certificate, simplifying the generation process of the electronic certificate and improving the transmission safety of the electronic certificate.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a detailed flow of the embodiment of the present invention is described below, and referring to fig. 1, an embodiment of the method for generating an electronic certificate in the embodiment of the present invention includes:
101. extracting handwritten characters from a target handwritten file, and identifying the handwritten characters through a preset handwritten Chinese character database to obtain an identification result of the handwritten characters; the handwritten Chinese character database comprises the font, the stroke order rule and the common word group of each character;
the electronic certificate is a proof that proves that one party has finished docking in the project needing docking at present, and the legal right of the party having finished docking is prevented from being lost, for example: after the shopping is carried out for the super-purchased goods or the restaurant is used, an electronic invoice can be generated according to the payment information of the consumer, and the fact that the consumer finishes the transaction is proved. With the rapid development of science and technology and social economy, more and more users and enterprises can conduct online transactions, so that the logistics industry is rapidly developed, and in order to guarantee the legal benefits of multiple parties, a method for generating electronic certificates based on logistics documents in the logistics industry becomes more important.
There are many types of logistics documents, including: warehousing documents, warehouse management documents, scrapped documents, ex-warehouse documents, statistical reports, billing reports and the like, wherein each document contains different contents, such as: the goods placing list in the warehousing document comprises the following steps: the goods placing list can be used as a goods warehousing certificate. For the project name recorded in the logistics document, the logistics worker is usually required to fill in information corresponding to the project name by handwriting. Based on this, can guarantee that every link in the logistics process is clear, the problem is convenient for traceing back in the follow-up in-process.
The method for generating the electronic certificate provided by the embodiment of the invention is provided with a handwritten file which is used for storing logistics receipts handwritten by logistics staff, selecting the logistics receipts needing to be generated with the electronic certificate from the handwritten file, namely the target handwritten file, extracting handwritten characters on the target logistics receipts from the target handwritten file, and identifying the handwritten characters through a preset handwritten character database to obtain an identification result of the handwritten characters. Considering that the handwritten fonts of each person are different, the preset handwritten Chinese character database comprises the fonts, the stroke order rules and the common word groups of each character.
Based on the method, the text information on the target logistics document can be accurately identified, and the accuracy of the identification result of the handwritten text is ensured.
102. Filling the recognition result of the handwritten characters into a preset electronic certificate template to obtain an initial certificate of the target handwritten file;
specifically, through the above step 101, the recognition result of the handwritten character of the target handwritten file may be obtained, and the recognition result of the handwritten character is filled into a preset electronic certificate template, so as to obtain the initial certificate of the target handwritten file. The preset electronic voucher templates comprise a plurality of types, the electronic voucher templates are different due to different types of logistics documents, and each type of logistics document is provided with the corresponding electronic voucher template, so that the information on the electronic voucher can be ensured to embody the information recorded by the logistics document in detail and accurately. The initial voucher is obtained by filling the information recorded in the logistics voucher into an electronic template corresponding to the logistics voucher to form the basic information of the electronic voucher.
103. Acquiring fingerprint data and a random code of a receiver of the electronic certificate, and generating an electronic certificate activation code based on the fingerprint data and the random code;
specifically, the information of the electronic certificate receiver is obtained, and includes fingerprint data and a random code, where the fingerprint data is data used for determining the identity of the electronic certificate receiver and has uniqueness, and includes fingerprint parameter information of the electronic certificate receiver, such as: receiver ID information, identification number, etc. The random codes can be automatically generated by a random code generator, and the group number of the codes, the number of characters contained in each group of codes, separators between each group of codes, the number of the codes, whether the codes comprise letters, numbers and other information can be set according to requirements. Optionally, different types of random codes may be generated according to different types of electronic certificates to be generated. For example: for different types of electronic certificates, the number of characters contained in each group of codes is set to be different, or other items in the random code generator are set to be different for distinguishing. Further, an electronic certificate activation code is generated based on the fingerprint data and the random code, the electronic certificate activation code being a digital code that activates the electronic certificate, the electronic certificate being generated using the electronic certificate activation code.
By adopting the steps, different users can be prevented from exchanging the same electronic certificate, so that the exchange rule can be ensured not to be damaged, and the loss of an operation system is avoided.
104. An electronic voucher is generated based on the initial voucher and the electronic voucher activation code.
And combining the initial certificate and the electronic certificate activation code to generate the electronic certificate. Specifically, after the initial voucher is obtained, the electronic voucher activation code is added to the initial voucher to generate the electronic voucher.
In the embodiment of the invention, handwritten characters are extracted from a target handwritten file, and the handwritten characters are identified through a preset handwritten Chinese character database to obtain an identification result of the handwritten characters; the handwritten Chinese character database comprises the font, the stroke order rule and the common word group of each character; filling the recognition result of the handwritten character into a preset electronic certificate template to obtain an initial certificate of the target handwritten file; acquiring fingerprint data and a random code of a receiver of the electronic certificate, and generating an electronic certificate activation code based on the fingerprint data and the random code; and generating the electronic certificate based on the initial certificate and the electronic certificate activation code. In the mode, handwritten characters are identified through a preset Chinese character database, an initial certificate is generated, synchronous font loading during data loading is realized, additional font installation at a server side is not needed, font changing is more convenient, an electronic certificate activation code is generated through fingerprint data and random coding of an electronic certificate receiver, an electronic certificate is generated according to the initial certificate and the electronic certificate activation code, the database does not need to be accessed in the whole process, persistent middleware such as remote dictionary service and the like are not needed, the generation efficiency of the electronic certificate is improved, the generation process of the electronic certificate is simplified, and the propagation safety of the electronic certificate is improved.
Optionally, for each handwritten character, recognizing the handwritten character based on the font and the stroke order rule of each character in the handwritten character database to obtain an initial recognition result; and acquiring adjacent characters of the handwritten characters, and determining a final recognition result of the handwritten characters based on the common word group of the characters corresponding to the initial recognition result in the handwritten character database.
In practical implementation, considering the situation that continuous strokes or irregular writing in order of strokes may occur when some logistics workers write by hands, the embodiment of the invention identifies the handwritten characters based on the font and the order of strokes rule of each character in the handwritten character database aiming at each handwritten character to obtain an initial identification result; and obtaining an accurate character recognition result through initial recognition under the conditions of regular handwriting and standard writing order. Further, adjacent characters of the handwritten characters are obtained, the character fonts or the stroke orders of the adjacent characters are similar to those in the initial recognition result, and then the final recognition result of the handwritten characters is determined based on the common phrases of the characters corresponding to the initial recognition result in the handwritten character database.
By adopting the steps, the accuracy of the recognition result of the handwritten characters can be improved, the recognition result of the handwritten characters is ensured to be accurate, and the error information is avoided when the initial electronic certificate is generated.
Optionally, according to a preset rule, extracting a plurality of target data from the fingerprint data and the random code; for each target data, performing operation processing on the target data according to a preset operation rule to obtain an operation result of the target data; and generating an electronic certificate activation code based on the operation result of each target datum.
In practical implementation, the fingerprint data and the random code are combined, then a plurality of target data are extracted from the combined data according to a preset rule, further, the plurality of target data are operated according to the preset operation rule to obtain operation results of the target data, and then the electronic voucher activation code is generated based on the operation results of each target data.
The fingerprint data and the random code are both binary data; in an optional manner, the preset rule is specifically that data obtained by combining the fingerprint data and the random code is converted into decimal data; and according to a preset space distance, space selection is carried out on the decimal data combined by the fingerprint data and the random codes to obtain a plurality of target data.
That is, the fingerprint data and the random code are both numbers expressed by two numbers of 0 and 1, and the method of acquiring a plurality of target data is to combine the fingerprint data and the random code first, and then convert the combined data into decimal data; and further, selecting the decimal data subjected to the combination of the fingerprint data and the random codes in a spacing mode according to a preset spacing distance to obtain a plurality of target data. For example: the spacing distance may be set to 1, and the combined decimal data of the texture data and the random code may be selected according to a left-to-right order, for example: and selecting the first target data as the first left bit, and then the next target data is the third left bit, and so on to obtain a plurality of target data.
The target data is decimal data; optionally, the target data is converted into binary data, and the binary data of the target data is subjected to a preset bit operation to obtain a first intermediate result; converting the first intermediate result into decimal data, performing division operation on the decimal data of the first intermediate result and a preset value to obtain a second intermediate result, and performing modulus operation on the decimal data of the first intermediate result and the preset value to obtain a third intermediate result; and adding the second intermediate result and the third intermediate result to obtain an operation result of the target data.
In practical implementation, the target data is decimal data. Optionally, the target data is converted into binary data, that is, data that can be read and understood by a computer, and then, the binary data of the target data is subjected to a preset bit operation, that is, the computer performs an operation on the binary data, so as to obtain a first intermediate result; further, converting the first intermediate result into decimal data, and then dividing the decimal data of the first intermediate data by a preset value to obtain a second intermediate result; performing modulus operation on the decimal data of the first intermediate data and a preset value to obtain a third intermediate result; further, the second intermediate result and the third intermediate result are added to obtain an operation result of the target data.
The step obviously improves the execution efficiency of the code on the machine by reasonably using bit operation, thereby improving the generation efficiency of the electronic certificate.
Optionally, adding the operation results of each target data to obtain an addition result; multiplying the addition result by a preset weighted value to obtain a multiplication result; and performing modular processing on the specific numerical value of the multiplication result to obtain the electronic certificate activation code.
In actual implementation, through the steps, operation results of a plurality of target data can be obtained, and the operation results of each target data are added to obtain an addition result; further, the addition result is multiplied by a preset weighted value to obtain a multiplication result; the multiplication result carries out modular processing on the specific numerical value, namely, the remainder of the division of the multiplication result and the specific numerical value is solved, and therefore the electronic certificate activation code is obtained.
Further, the initial certificate is encrypted through the electronic certificate activation code and the electronic certificate card number of the electronic certificate receiver to obtain the electronic certificate. In actual implementation, after the electronic certificate activation code is obtained, the initial certificate is encrypted through the electronic certificate activation code and an electronic certificate card number of a receiver of the electronic certificate, wherein the electronic certificate card number is generated for different users, has uniqueness, and is data capable of representing the identity of the user. Based on the method, the initial certificate is encrypted by using the unique identity data information, so that the security of the electronic certificate in the transmission process is ensured.
Another embodiment of the method for generating an electronic certificate according to the present invention is described below with reference to fig. 2.
201. For each handwritten character, recognizing the handwritten character based on the font and the stroke order rule of each character in the handwritten character database to obtain an initial recognition result;
the method for generating the electronic certificate provided by the embodiment of the invention is provided with a handwritten file which is used for storing logistics receipts handwritten by logistics staff, selecting the logistics receipts needing to be generated with the electronic certificate from the handwritten file, namely the target handwritten file, extracting handwritten characters on the target logistics receipts from the target handwritten file, and identifying the handwritten characters through a preset handwritten character database to obtain an identification result of the handwritten characters. Considering that the handwritten fonts of each person are different, the preset handwritten Chinese character database comprises the font, the stroke order rule and the common word group of each character, and the handwritten characters are identified based on the font and the stroke order rule of each character in the handwritten Chinese character database, so that an initial identification result can be obtained.
202. Acquiring adjacent characters of the handwritten characters, and determining a final recognition result of the handwritten characters based on common word formation of characters corresponding to an initial recognition result in the handwritten character database;
in practical implementation, considering the situation that continuous strokes or irregular writing of stroke orders may occur when some logistics workers write by hand, the embodiment of the invention identifies the handwritten characters based on the font and stroke order rules of each character in the handwritten character database aiming at each handwritten character to obtain an initial identification result; and obtaining an accurate character recognition result through initial recognition under the conditions of regular handwriting and standard writing order. Further, adjacent characters of the handwritten characters are obtained, the character fonts or the stroke orders of the adjacent characters are similar to those in the initial recognition result, and then the final recognition result of the handwritten characters is determined based on the common phrases of the characters corresponding to the initial recognition result in the handwritten character database.
By adopting the steps, the accuracy of the recognition result of the handwritten characters can be improved, the recognition result of the handwritten characters is ensured to be accurate, and the error information is avoided when the initial electronic certificate is generated.
203. Filling the recognition result of the handwritten characters into a preset electronic certificate template to obtain an initial certificate of the target handwritten file;
204. acquiring fingerprint data and a random code of a receiver of the electronic certificate, and generating an electronic certificate activation code based on the fingerprint data and the random code;
205. an electronic voucher is generated based on the initial voucher and the electronic voucher activation code.
Step 203-.
In the above description of the method for generating an electronic certificate in the embodiment of the present invention, referring to fig. 3, a device for generating an electronic certificate in the embodiment of the present invention is described below, where an embodiment of the device for generating an electronic certificate in the embodiment of the present invention includes:
the recognition module 301 is configured to extract handwritten characters from a target handwritten file, and recognize the handwritten characters through a preset handwritten Chinese character database to obtain a recognition result of the handwritten characters; the handwritten Chinese character database comprises the font, the stroke order rule and the common word group of each character;
a filling module 302, configured to fill the recognition result of the handwritten text into a preset electronic certificate template to obtain an initial certificate of the target handwritten file;
an obtaining module 303, configured to obtain fingerprint data and a random code of a recipient of the electronic certificate, and generate an electronic certificate activation code based on the fingerprint data and the random code;
a generating module 304, configured to generate the electronic certificate based on the initial certificate and the electronic certificate activation code.
In the embodiment of the invention, handwritten characters are extracted from a target handwritten file, and the handwritten characters are identified through a preset handwritten Chinese character database to obtain an identification result of the handwritten characters; the handwritten Chinese character database comprises the font, the stroke order rule and the common word group of each character; filling the recognition result of the handwritten character into a preset electronic certificate template to obtain an initial certificate of the target handwritten file; acquiring fingerprint data and a random code of a receiver of the electronic certificate, and generating an electronic certificate activation code based on the fingerprint data and the random code; and generating the electronic certificate based on the initial certificate and the electronic certificate activation code. In the mode, handwritten characters are identified through a preset Chinese character database, an initial certificate is generated, synchronous font loading during data loading is realized, additional font installation at a server side is not needed, font changing is more convenient, an electronic certificate activation code is generated through fingerprint data and random coding of an electronic certificate receiver, an electronic certificate is generated according to the initial certificate and the electronic certificate activation code, the database does not need to be accessed in the whole process, persistent middleware such as remote dictionary service and the like are not needed, the generation efficiency of the electronic certificate is improved, the generation process of the electronic certificate is simplified, and the propagation safety of the electronic certificate is improved.
Optionally, the recognition module 301 may be further specifically configured to, for each handwritten character, recognize the handwritten character based on a font and a stroke order rule of each character in the handwritten character database, so as to obtain an initial recognition result; and acquiring adjacent characters of the handwritten characters, and determining a final recognition result of the handwritten characters based on the common word group of the characters corresponding to the initial recognition result in the handwritten character database.
Optionally, the obtaining module 303 may be further specifically configured to extract a plurality of target data from the fingerprint data and the random code according to a preset rule; for each target data, performing operation processing on the target data according to a preset operation rule to obtain an operation result of the target data; and generating an electronic certificate activation code based on the operation result of each target datum.
The fingerprint data and the random code are both binary data; optionally, the obtaining module 303 is further configured to convert the data obtained by combining the fingerprint data and the random code into decimal data; and according to a preset space distance, space selection is carried out on the decimal data combined by the fingerprint data and the random codes to obtain a plurality of target data.
The target data is decimal data; optionally, the obtaining module 303 may be further specifically configured to convert the target data into binary data, and perform a preset bit operation on the binary data of the target data to obtain a first intermediate result; converting the first intermediate result into decimal data, performing division operation on the decimal data of the first intermediate result and a preset value to obtain a second intermediate result, and performing modulus operation on the decimal data of the first intermediate result and the preset value to obtain a third intermediate result; and adding the second intermediate result and the third intermediate result to obtain an operation result of the target data.
Optionally, the obtaining module 303 may be further specifically configured to add the operation result of each target data to obtain an addition result; multiplying the addition result by a preset weighted value to obtain a multiplication result; and performing modular processing on the specific numerical value of the multiplication result to obtain the electronic certificate activation code.
Optionally, the generating module 304 may be further specifically configured to encrypt the initial credential by using the electronic credential activation code and the electronic credential card number of the recipient of the electronic credential to obtain the electronic credential.
Fig. 3 describes in detail the apparatus for generating an electronic certificate in the embodiment of the present invention, and the apparatus for generating an electronic certificate in the embodiment of the present invention is described in detail from the perspective of hardware processing.
Fig. 4 is a schematic structural diagram of an electronic certificate generating apparatus according to an embodiment of the present invention, where the electronic certificate generating apparatus 400 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 410 (e.g., one or more processors) and a memory 420, and one or more storage media 430 (e.g., one or more mass storage devices) for storing applications 433 or data 432. Memory 420 and storage medium 430 may be, among other things, transient or persistent storage. The program stored in the storage medium 430 may include one or more modules (not shown), each of which may include a series of instruction operations in the generation apparatus 400 for electronic vouchers. Still further, the processor 410 may be arranged to communicate with the storage medium 430 to execute a series of instruction operations in the storage medium 430 on the electronic voucher generation device 400.
The electronic credential generation apparatus 400 may also include one or more power supplies 440, one or more wired or wireless network interfaces 450, one or more input-output interfaces 460, and/or one or more operating systems 431, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, and the like. Those skilled in the art will appreciate that the electronic voucher generation apparatus structure shown in fig. 4 does not constitute a limitation on the electronic voucher generation apparatus, and may include more or fewer components than those shown, or some of the components may be combined, or a different arrangement of components.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, which may also be a volatile computer readable storage medium, having stored therein instructions, which, when run on a computer, cause the computer to perform the steps of the method for generating an electronic certificate.
The invention further provides a device for generating the electronic certificate, which includes a memory and a processor, wherein the memory stores instructions, and the instructions, when executed by the processor, cause the processor to execute the steps of the method for generating the electronic certificate in the above embodiments.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for generating an electronic certificate is characterized in that the method for generating the electronic certificate comprises the following steps:
extracting handwritten characters from a target handwritten file, and identifying the handwritten characters through a preset handwritten Chinese character database to obtain an identification result of the handwritten characters; the handwritten Chinese character database comprises the font, the stroke order rule and the common word group of each character;
filling the recognition result of the handwritten characters into a preset electronic certificate template to obtain an initial certificate of the target handwritten file;
acquiring fingerprint data and a random code of a receiver of the electronic certificate, and generating an electronic certificate activation code based on the fingerprint data and the random code;
generating an electronic voucher based on the initial voucher and the electronic voucher activation code.
2. The method for generating an electronic certificate according to claim 1, wherein the step of recognizing the handwritten character through a preset handwritten character database to obtain the recognition result of the handwritten character comprises:
for each handwritten character, recognizing the handwritten character based on the font and the stroke order rule of each character in the handwritten character database to obtain an initial recognition result;
and acquiring adjacent characters of the handwritten characters, and determining a final recognition result of the handwritten characters based on the common word group of the characters corresponding to the initial recognition result in the handwritten character database.
3. The method of generating an electronic voucher according to claim 1, wherein the step of generating an electronic voucher activation code based on the fingerprint data and the random code comprises:
extracting a plurality of target data from the fingerprint data and the random code according to a preset rule;
for each target data, performing operation processing on the target data according to a preset operation rule to obtain an operation result of the target data;
and generating an electronic certificate activation code based on the operation result of each target datum.
4. A method of generating an electronic certificate as claimed in claim 3, characterized in that said fingerprint data and said random code are both binary data; the step of extracting a plurality of target data from the fingerprint data and the random code according to a preset rule includes:
converting the data combined by the fingerprint data and the random codes into decimal data;
and selecting at intervals from the decimal data combined by the fingerprint data and the random codes according to a preset interval distance to obtain a plurality of target data.
5. A method of generating an electronic voucher according to claim 3, wherein the target data is decimal data; the step of performing operation processing on the target data according to a preset operation rule to obtain an operation result of the target data includes:
converting the target data into binary data, and performing preset bit operation on the binary data of the target data to obtain a first intermediate result;
converting the first intermediate result into decimal data, performing division operation on the decimal data of the first intermediate result and a preset value to obtain a second intermediate result, and performing modulus operation on the decimal data of the first intermediate result and the preset value to obtain a third intermediate result;
and adding the second intermediate result and the third intermediate result to obtain an operation result of the target data.
6. The method for generating an electronic certificate according to claim 3, wherein the step of generating an electronic certificate activation code based on the operation result of each target data includes:
adding the operation results of each target data to obtain an addition result;
multiplying the addition result by a preset weighted value to obtain a multiplication result;
and performing modular processing on the specific numerical value of the multiplication result to obtain the electronic certificate activation code.
7. The method of generating an electronic voucher according to claim 1, wherein the step of generating an electronic voucher based on the initial voucher and the electronic voucher activation code comprises:
and encrypting the initial certificate through the electronic certificate activation code and the electronic certificate card number of the receiver of the electronic certificate to obtain the electronic certificate.
8. An apparatus for generating an electronic certificate, the apparatus comprising:
the identification module is used for extracting handwritten characters from a target handwritten file, and identifying the handwritten characters through a preset handwritten Chinese character database to obtain an identification result of the handwritten characters; the handwritten Chinese character database comprises the font, the stroke order rule and the common word group of each character;
the filling module is used for filling the recognition result of the handwritten character into a preset electronic certificate template to obtain an initial certificate of the target handwritten file;
the acquisition module is used for acquiring the fingerprint data and the random code of the receiver of the electronic certificate and generating an electronic certificate activation code based on the fingerprint data and the random code;
and the generating module is used for generating the electronic certificate based on the initial certificate and the electronic certificate activation code.
9. An apparatus for generating an electronic voucher, the apparatus comprising: a memory and at least one processor, the memory having instructions stored therein;
the at least one processor invoking the instructions in the memory to cause the electronic voucher generation device to perform the electronic voucher generation method of any of claims 1-7.
10. A computer-readable storage medium having stored thereon instructions, which when executed by a processor, implement a method of generating an electronic voucher according to any one of claims 1-7.
CN202210253133.4A 2022-03-15 2022-03-15 Electronic certificate generation method, device, equipment and storage medium Pending CN114866271A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210253133.4A CN114866271A (en) 2022-03-15 2022-03-15 Electronic certificate generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210253133.4A CN114866271A (en) 2022-03-15 2022-03-15 Electronic certificate generation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114866271A true CN114866271A (en) 2022-08-05

Family

ID=82628509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210253133.4A Pending CN114866271A (en) 2022-03-15 2022-03-15 Electronic certificate generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114866271A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116206319A (en) * 2023-02-17 2023-06-02 北京中兴正远科技有限公司 Data processing system for clinical trials

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109523256A (en) * 2018-10-15 2019-03-26 珠海横琴现联盛科技发展有限公司 Electronic certificate bill generation method based on anti-tamper Encryption Algorithm
CN109960997A (en) * 2018-07-17 2019-07-02 江苏科技大学 A kind of data acquisition platform based on smart electronics pen
CN112215087A (en) * 2020-09-21 2021-01-12 浙江数链科技有限公司 Picture auditing method and device, computer equipment and storage medium
CN113762958A (en) * 2021-01-04 2021-12-07 北京沃东天骏信息技术有限公司 Method and device for generating electronic certificate

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109960997A (en) * 2018-07-17 2019-07-02 江苏科技大学 A kind of data acquisition platform based on smart electronics pen
CN109523256A (en) * 2018-10-15 2019-03-26 珠海横琴现联盛科技发展有限公司 Electronic certificate bill generation method based on anti-tamper Encryption Algorithm
CN112215087A (en) * 2020-09-21 2021-01-12 浙江数链科技有限公司 Picture auditing method and device, computer equipment and storage medium
CN113762958A (en) * 2021-01-04 2021-12-07 北京沃东天骏信息技术有限公司 Method and device for generating electronic certificate

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116206319A (en) * 2023-02-17 2023-06-02 北京中兴正远科技有限公司 Data processing system for clinical trials
CN116206319B (en) * 2023-02-17 2023-09-29 北京中兴正远科技有限公司 Data processing system for clinical trials

Similar Documents

Publication Publication Date Title
US20180232204A1 (en) Intelligent data extraction
US20200110806A1 (en) Methods, devices and systems for data augmentation to improve fraud detection
CN111626124A (en) OCR image sample generation method, OCR image sample generation device, OCR image sample printing body verification equipment and OCR image sample printing body verification medium
CN113449187A (en) Product recommendation method, device and equipment based on double portraits and storage medium
CN112016967B (en) Transaction data processing method and device
CN105630924A (en) Asynchronous data processing method and asynchronous data processing system
CN107229694A (en) A kind of data message consistency processing method, system and device based on big data
CN113946690A (en) Potential customer mining method and device, electronic equipment and storage medium
CN114866271A (en) Electronic certificate generation method, device, equipment and storage medium
CN112528616A (en) Business form generation method and device, electronic equipment and computer storage medium
CN112380439A (en) Target object recommendation method and device, electronic equipment and computer-readable storage medium
CN111178830B (en) Cost accounting method, cost accounting device, computer equipment and storage medium
CN112288604A (en) Judicial case data processing method and device, electronic equipment and readable storage medium
CN114398346A (en) Data migration method, device, equipment and storage medium
CN115292731B (en) Encryption storage method and related equipment for text reading information
CN115358728A (en) ERP data processing method based on cloud computing
CN115168509A (en) Processing method and device of wind control data, storage medium and computer equipment
CN114880590A (en) Multi-language website currency automatic conversion system and method thereof
JP7118923B2 (en) Form handling system, form handling method and form handling program
CN113486646A (en) Product report issuing method and device, electronic equipment and readable storage medium
CN112561538A (en) Risk model creation method and device, computer equipment and readable storage medium
CN112000701A (en) Data query method, device, equipment and storage medium
CN108140076B (en) Authentication with fault tolerance for secure product identifiers
JP2020166443A (en) Data processing method recommendation system, data processing method recommendation method, and data processing method recommendation program
KR102375535B1 (en) Method for managing production point for smart factory and server thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination