[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114866271B - 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
CN114866271B
CN114866271B CN202210253133.4A CN202210253133A CN114866271B CN 114866271 B CN114866271 B CN 114866271B CN 202210253133 A CN202210253133 A CN 202210253133A CN 114866271 B CN114866271 B CN 114866271B
Authority
CN
China
Prior art keywords
handwritten
electronic
data
electronic certificate
result
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.)
Active
Application number
CN202210253133.4A
Other languages
Chinese (zh)
Other versions
CN114866271A (en
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/CN114866271B/en
Publication of CN114866271A publication Critical patent/CN114866271A/en
Application granted granted Critical
Publication of CN114866271B publication Critical patent/CN114866271B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biodiversity & Conservation Biology (AREA)
  • Character Discrimination (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to the technical field of electronic certificates, and discloses a method, a device, equipment and a storage medium for generating electronic certificates, which are used for improving the generation efficiency of the electronic certificates, simplifying the generation process of the electronic certificates and improving the propagation security of the electronic certificates. 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 handwriting Chinese character database comprises fonts, stroke order rules and common word groups 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 random codes of a receiver of the electronic certificate, and generating an electronic certificate activation code based on the fingerprint data and the random codes; an electronic credential is generated based on the initial credential and the electronic credential activation code. In addition, the invention also relates to a blockchain technology, and the generated data of the electronic certificate can be stored in a blockchain 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 certificates need to be used to achieve job certification and job interfacing. In the related technology, when an electronic voucher is generated, various fonts are needed to be preloaded, and the handwritten text is identified and typeset through the loaded fonts to generate the electronic voucher; in the storage and transmission of electronic certificates, databases, remote dictionary services, and various types of engines are required. In the mode, a large amount of labor cost is required for generating the electronic certificate, the error rate is high, meanwhile, the content of the electronic certificate is easy to leak in the storage and transmission process of the electronic certificate, and the safety 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 the font change, improving the generation efficiency of the electronic certificate, simplifying the generation process of the electronic certificate and improving the propagation safety of the electronic certificate.
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 handwriting Chinese character database comprises fonts, stroke order rules and common word groups 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 random codes of a receiver of the electronic certificate, and generating an electronic certificate activation code based on the fingerprint data and the random codes; 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 identifying, through a preset handwritten chinese character database, the handwritten text to obtain an identification result of the handwritten text includes: aiming at each handwritten character, based on the font and stroke order rule of each character in a handwritten Chinese character database, recognizing the handwritten character 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 common word groups of the characters corresponding to the initial recognition result in the handwritten Chinese character database.
Optionally, in a second implementation manner of the first aspect of the present invention, the step of generating the 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 codes according to a preset rule; aiming at each target data, carrying out 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 data.
Optionally, in a third implementation manner of the first aspect of the present invention, the fingerprint data and the random code are 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 fingerprint data and the data after the random encoding into decimal data; and selecting the space bit from the decimal data combined by the fingerprint data and the random codes according to the preset space bit distance 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; performing 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 modulo 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 the electronic certificate activation code based on an operation result of each of the above target data includes: adding the operation results of each target data to obtain an addition result; multiplying the added result with a preset weighting value to obtain a multiplied result; and performing modulo processing on 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 the 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 invention provides a generating device of an electronic certificate, which comprises an identification module, a first processing module and a second processing 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 handwriting Chinese character database comprises fonts, stroke order rules and common word groups 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 fingerprint data and random codes of a receiver of the electronic certificate and generating an electronic certificate activation code based on the fingerprint data and the random codes; and the generation 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 recognize, for each handwritten character, based on a font and a stroke order rule of each character in the handwritten chinese character database, the handwritten character, and 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 common word groups of the characters corresponding to the initial recognition result in the handwritten Chinese 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; aiming at each target data, carrying out 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 data.
Optionally, in a third implementation manner of the second aspect of the present invention, the fingerprint data and the random code are binary data; the acquisition module is also used for converting the data combined by the fingerprint data and the random codes into decimal data; and selecting the space bit from the decimal data combined by the fingerprint data and the random codes according to the preset space bit distance 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 modulo 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 an operation result of each target data to obtain an addition result; multiplying the added result with a preset weighting value to obtain a multiplied result; and performing modulo processing on 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 through an electronic credential activation code and an electronic credential card number of a recipient of the electronic credential to obtain the electronic credential.
A third aspect of the present invention provides an apparatus for generating an electronic certificate, including: a memory and at least one processor, the memory storing instructions; the at least one processor invokes instructions in the memory to cause the electronic credential generation device to perform the electronic credential generation method described above.
A fourth aspect of the present invention provides a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of generating electronic vouchers described above.
According to 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, so that an identification result of the handwritten characters is obtained; the handwriting Chinese character database comprises fonts, stroke order rules and common word groups 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 random codes of a receiver of the electronic certificate, and generating an electronic certificate activation code based on the fingerprint data and the random codes; and generating the electronic certificate based on the initial certificate and the electronic certificate activation code. In the mode, handwriting characters are identified through a preset Chinese character database to generate an initial voucher, the synchronous loading of fonts during loading data is realized, the fonts do not need to be additionally installed at a server, the fonts are more convenient to change, an electronic voucher activation code is generated through fingerprint data and random codes of an electronic voucher receiver, then the electronic voucher is generated according to the initial voucher and the electronic voucher activation code, and the whole process does not need to access durable middleware such as a database, a remote dictionary service and the like, so that the generation efficiency of the electronic voucher is improved, the generation process of the electronic voucher is simplified, and the propagation safety of the electronic voucher 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 electronic certificate generation apparatus according to an embodiment of the present invention;
Fig. 4 is a schematic diagram of an embodiment of an electronic certificate generating apparatus in an 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 the font change, improving the generation efficiency of the electronic certificate, simplifying the generation process of the electronic certificate and improving the propagation security of the electronic certificate.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, 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 or inherent to such process, method, article, or apparatus.
For ease of understanding, a specific flow of an embodiment of the present invention is described below, referring to fig. 1, and one embodiment of a method for generating an electronic certificate in an 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 handwriting Chinese character database comprises fonts, stroke order rules and common word groups of each character;
the electronic certificate is a proof that in the project needing to be docked, one party has completed docking, and the legal rights of the party who has completed docking are prevented from being lost, for example: after going to the business or being consumed by the restaurant, an electronic invoice can be generated according to the payment information of the consumer to prove that the consumer has completed the transaction. With 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 ensure legal interests of multiple parties, a method for generating electronic certificates based on logistics documents in the logistics industry is particularly important.
There are a number of types of logistics documents, including: warehouse entry receipts, warehouse management receipts, scrapped receipts, warehouse exit receipts, statistics, charging reports and the like, wherein each receipt contains different contents, for example: the article placing list in the warehouse-in bill comprises the following components: serial number, date, commodity name, model, batch number, specification, unit, quantity, stock position, remark and the like, and the goods placing bill can be used as a goods warehousing certificate. For the project names recorded in the logistics documents, the logistics staff is usually required to fill in information corresponding to the project names in a handwriting mode. Based on the method, each link in the logistics process can be ensured to be clear, and problems in the follow-up process are convenient to trace.
In the method for generating the electronic certificate provided by the embodiment of the invention, the handwritten file is arranged and used for storing the logistics documents handwritten by the logistics staff, the logistics documents needing to generate the electronic certificate, namely the target handwritten file, are selected from the handwritten file, handwritten characters on the target logistics documents are extracted from the target handwritten file, and the handwritten characters are identified through a preset handwritten Chinese character database, so that an identification result of the handwritten characters is obtained. The preset handwritten Chinese character database comprises the fonts, the stroke order rules and the common word groups of each character in consideration of the different handwriting fonts of each person.
Based on the method, the character information on the target logistics bill can be accurately identified, and the accuracy of the identification result of the handwritten characters 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, a recognition result of the handwritten text of the target handwritten document may be obtained, and the recognition result of the handwritten text is filled into a preset electronic voucher template, so as to obtain an initial voucher of the target handwritten document. The preset electronic voucher templates comprise a plurality of types, and the electronic voucher templates are different due to different types of the logistics receipts, and each type of logistics receipts is provided with the corresponding electronic voucher template, so that the information on the electronic vouchers can be guaranteed to be capable of accurately representing the information recorded by the logistics receipts. The initial voucher is obtained by filling information recorded in the logistics bill into an electronic template corresponding to the logistics bill, and basic information of the electronic voucher is formed.
103. Acquiring fingerprint data and random codes of a receiver of the electronic certificate, and generating an electronic certificate activation code based on the fingerprint data and the random codes;
Specifically, the receiver information of the electronic certificate is obtained, including fingerprint data and random codes, the fingerprint data is used for judging the identity of the receiver of the electronic certificate, and the data has uniqueness, including fingerprint parameter information of the receiver of the electronic certificate, for example: receiver ID information, identification number, etc. The random codes can be automatically generated by a random code generator, and the number of groups of codes, the number of characters contained in each group of codes, separators between each group of codes, the number of codes, whether information such as letters, numbers and the like is set according to requirements. Alternatively, different types of random codes may be generated according to different types of electronic certificates that need to be generated. For example: for different types of electronic credentials, 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 is a digital code for activating the electronic certificate, and the electronic certificate is generated by using the electronic certificate activation code.
By adopting the step, different users can be prevented from exchanging the same electronic certificate, so that the exchange rule can be prevented from being destroyed, and the loss of an operation system is avoided.
104. An electronic credential is generated based on the initial credential and the electronic credential activation code.
Combining the initial certificate and the electronic certificate activation code to generate the electronic certificate. Specifically, after the initial credential is obtained, an electronic credential activation code is added to the initial credential to generate the electronic credential.
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, so that an identification result of the handwritten characters is obtained; the handwriting Chinese character database comprises fonts, stroke order rules and common word groups 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 random codes of a receiver of the electronic certificate, and generating an electronic certificate activation code based on the fingerprint data and the random codes; and generating the electronic certificate based on the initial certificate and the electronic certificate activation code. In the mode, handwriting characters are identified through a preset Chinese character database to generate an initial voucher, the synchronous loading of fonts during loading data is realized, the fonts do not need to be additionally installed at a server, the fonts are more convenient to change, an electronic voucher activation code is generated through fingerprint data and random codes of an electronic voucher receiver, then the electronic voucher is generated according to the initial voucher and the electronic voucher activation code, and the whole process does not need to access durable middleware such as a database, a remote dictionary service and the like, so that the generation efficiency of the electronic voucher is improved, the generation process of the electronic voucher is simplified, and the propagation safety of the electronic voucher is improved.
Optionally, identifying the handwritten characters according to the font and the stroke order rule of each character in the handwritten Chinese character database aiming at each handwritten character to obtain an initial identification result; and acquiring adjacent characters of the handwritten characters, and determining a final recognition result of the handwritten characters based on common word groups of the characters corresponding to the initial recognition result in the handwritten Chinese character database.
In actual implementation, considering that some logistics workers may have the condition of irregular writing of continuous strokes or irregular writing of strokes when handwriting is performed, the embodiment of the invention recognizes the handwritten characters according to the font and the stroke rule of each character in the handwritten Chinese character database aiming at each handwritten character, and obtains an initial recognition result; for the conditions of regular handwriting and standard writing order, an accurate character recognition result can be obtained through initial recognition. Further, adjacent characters of the handwritten characters are obtained, the adjacent characters are similar to characters in the initial recognition result in terms of fonts or strokes, and then the final recognition result of the handwritten characters is determined based on common phrases of the characters corresponding to the initial recognition result in the handwritten Chinese character database.
By adopting the step, the accuracy of the recognition result of the handwritten characters can be improved, the accuracy of the recognition result of the handwritten characters is ensured, and error information is avoided when the initial electronic certificate is generated.
Optionally, extracting a plurality of target data from the fingerprint data and the random code according to a preset rule; aiming at each target data, carrying out 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 data.
In actual implementation, fingerprint data and random codes 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 subjected to operation processing according to the preset operation rule to obtain an operation result of the target data, and then an electronic credential activation code is generated based on the operation result of each target data.
The fingerprint data and the random codes are binary data; in an optional manner, the preset rule specifically is to convert the data obtained by combining the fingerprint data and the random code into decimal data; and selecting the space bit from the decimal data combined by the fingerprint data and the random codes according to the preset space bit distance to obtain a plurality of target data.
That is, the fingerprint data and the random code are numbers expressed by using two numbers of 0 and 1, and the method for obtaining the plurality of target data is to combine the fingerprint data and the random code first and then convert the combined data into decimal data; further, according to the preset spacing distance, a plurality of target data are obtained by selecting the spacing from the decimal data after the fingerprint data and the random codes are combined. For example: the separation distance may be set to 1, and the decimal data after combining the pattern data and the random code may be selected in order from left to right, for example: and the selected first bit of target data is the first left bit, the next target data is the third left bit, and so on, so as to obtain a plurality of target data.
The target data are decimal data; optionally, 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 modulo 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 actual implementation, the target data is decimal data. Optionally, the target data are converted into binary data, that is, data that can be read by a computer, and then a preset bit operation is performed on the binary data of the target data, that is, the binary data is operated by the computer, 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 modular operation on 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 codes on a machine through reasonable bit operation, thereby improving the generation efficiency of the electronic certificate.
Optionally, adding the operation result of each target data to obtain an addition result; multiplying the added result with a preset weighting value to obtain a multiplied result; and performing modulo processing on the multiplication result to obtain the electronic certificate activation code.
In actual implementation, the above steps can obtain the operation results of a plurality of target data, and the operation results of each target data are added to obtain the addition result; further, multiplying the addition result with a preset weighting value to obtain a multiplication result; and performing modulo processing on the multiplication result by using the specific numerical value, namely obtaining a remainder of dividing the multiplication result by the specific numerical value, thereby obtaining the electronic certificate activation code.
Further, the initial credential is encrypted through the electronic credential activation code and the electronic credential card number of the receiver of the electronic credential to obtain the electronic credential. When in actual implementation, after the electronic certificate activation code is obtained, the initial certificate is encrypted through the electronic certificate activation code and the electronic certificate card number of the receiver of the electronic certificate, wherein the electronic certificate card number is generated aiming at 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 process of transmission is ensured.
Another embodiment of the method for generating an electronic certificate according to the present invention is described below, referring to fig. 2.
201. Aiming at each handwritten character, recognizing the handwritten character based on the font and stroke order rule of each character in the handwritten Chinese character database to obtain an initial recognition result;
In the method for generating the electronic certificate provided by the embodiment of the invention, the handwritten file is arranged and used for storing the logistics documents handwritten by the logistics staff, the logistics documents needing to generate the electronic certificate, namely the target handwritten file, are selected from the handwritten file, handwritten characters on the target logistics documents are extracted from the target handwritten file, and the handwritten characters are identified through a preset handwritten Chinese character database, so that an identification result of the handwritten characters is obtained. Considering that the handwriting fonts of each person are different, the preset handwriting Chinese character database comprises the fonts, the stroke order rules and the common word groups of each character, and the initial recognition result can be obtained by recognizing the handwriting characters based on the fonts and the stroke order rules of each character in the handwriting Chinese character database.
202. Acquiring adjacent characters of the handwritten characters, and determining a final recognition result of the handwritten characters based on common word groups of the characters corresponding to the initial recognition result in a handwritten Chinese character database;
In actual implementation, considering that some logistics workers may have the condition of irregular writing of continuous strokes or irregular writing of strokes when handwriting is performed, the embodiment of the invention recognizes the handwritten characters according to the font and the stroke rule of each character in the handwritten Chinese character database aiming at each handwritten character, and obtains an initial recognition result; for the conditions of regular handwriting and standard writing order, an accurate character recognition result can be obtained through initial recognition. Further, adjacent characters of the handwritten characters are obtained, the adjacent characters are similar to characters in the initial recognition result in terms of fonts or strokes, and then the final recognition result of the handwritten characters is determined based on common phrases of the characters corresponding to the initial recognition result in the handwritten Chinese character database.
By adopting the step, the accuracy of the recognition result of the handwritten characters can be improved, the accuracy of the recognition result of the handwritten characters is ensured, and 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 random codes of a receiver of the electronic certificate, and generating an electronic certificate activation code based on the fingerprint data and the random codes;
205. An electronic credential is generated based on the initial credential and the electronic credential activation code.
Steps 203-205 are identical to steps 102-104 and are not described in detail herein.
The method for generating the electronic certificate in the embodiment of the present invention is described above, and the apparatus for generating the electronic certificate in the embodiment of the present invention is described below, referring to fig. 3, where an embodiment of the apparatus for generating the 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 handwriting Chinese character database comprises fonts, stroke order rules and common word groups of each character;
the filling module 302 is 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 receiver of the electronic certificate, and generate an electronic certificate activation code based on the fingerprint data and the random code;
The generating module 304 is configured to generate an electronic credential based on the initial credential and the electronic credential 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, so that an identification result of the handwritten characters is obtained; the handwriting Chinese character database comprises fonts, stroke order rules and common word groups 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 random codes of a receiver of the electronic certificate, and generating an electronic certificate activation code based on the fingerprint data and the random codes; and generating the electronic certificate based on the initial certificate and the electronic certificate activation code. In the mode, handwriting characters are identified through a preset Chinese character database to generate an initial voucher, the synchronous loading of fonts during loading data is realized, the fonts do not need to be additionally installed at a server, the fonts are more convenient to change, an electronic voucher activation code is generated through fingerprint data and random codes of an electronic voucher receiver, then the electronic voucher is generated according to the initial voucher and the electronic voucher activation code, and the whole process does not need to access durable middleware such as a database, a remote dictionary service and the like, so that the generation efficiency of the electronic voucher is improved, the generation process of the electronic voucher is simplified, and the propagation safety of the electronic voucher is improved.
Optionally, the recognition module 301 may be further specifically configured to recognize, for each handwritten character, the handwritten character based on the font and the stroke order rule of each character in the handwritten chinese 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 common word groups of the characters corresponding to the initial recognition result in the handwritten Chinese 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; aiming at each target data, carrying out 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 data.
The fingerprint data and the random code are binary data; optionally, the acquiring module 303 is further configured to convert the fingerprint data and the data after the random encoding into decimal data; and selecting the space bit from the decimal data combined by the fingerprint data and the random codes according to the preset space bit distance to obtain a plurality of target data.
The target data are 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 modulo 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 added result with a preset weighting value to obtain a multiplied result; and performing modulo processing on 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 through the electronic credential activation code and the electronic credential card number of the recipient of the electronic credential to obtain the electronic credential.
The apparatus for generating an electronic certificate in the embodiment of the present invention is described in detail above in fig. 3, and the apparatus for generating an electronic certificate in the embodiment of the present invention is described in detail below from the viewpoint of hardware processing.
Fig. 4 is a schematic structural diagram of an electronic certificate generating device according to an embodiment of the present invention, where the electronic certificate generating device 400 may generate relatively large differences according to different configurations or performances, and may include one or more processors (central processing units, CPUs) 410 (e.g., one or more processors) and a memory 420, and one or more storage mediums 430 (e.g., one or more mass storage devices) storing application programs 433 or data 432. Wherein memory 420 and storage medium 430 may be transitory or persistent storage. The program stored on the storage medium 430 may include one or more modules (not shown), each of which may include a series of instruction operations in the electronic certificate generation apparatus 400. Still further, the processor 410 may be configured to communicate with the storage medium 430 to execute a series of instruction operations in the storage medium 430 on the electronic certificate generation device 400.
The electronic credential generation device 400 can 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 Serve, mac OS X, unix, linux, freeBSD, and the like. It will be appreciated by those skilled in the art that the electronic credential generation device structure shown in fig. 4 does not constitute a limitation of the electronic credential generation device and may include more or fewer components than shown, or may combine certain components, or may be 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, and which may also be a volatile computer readable storage medium, in which instructions are stored which, when executed on a computer, cause the computer to perform the steps of the method of generating electronic vouchers.
The invention also provides a generating device of the electronic certificate, which comprises a memory and a processor, wherein the memory stores instructions which, when executed by the processor, cause the processor to execute the steps of the generating method of 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 from the use of blockchain nodes, and the like.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The blockchain (Blockchain), essentially a de-centralized database, is a string of data blocks that are generated in association using cryptographic methods, each of which contains information from a batch of network transactions for verifying the validity (anti-counterfeit) of its information and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. The method for generating the electronic certificate is characterized by comprising the following steps of:
Extracting handwritten characters from a target handwritten file, wherein the target handwritten file is used for storing logistics documents handwritten by logistics workers; identifying the handwritten characters through a preset handwritten Chinese character database to obtain an identification result of the handwritten characters; the handwriting Chinese character database comprises fonts, stroke order rules and common word groups 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 random codes of a receiver of the electronic certificate, and generating an electronic certificate activation code based on the fingerprint data and the random codes;
generating an electronic credential based on the initial credential and the electronic credential activation code;
The method comprises the steps of identifying the handwritten characters through a preset handwritten Chinese character database to obtain an identification result of the handwritten characters, and comprises the following steps:
For each handwritten character, recognizing the handwritten character based on the font and the stroke order rule of each character in the handwritten Chinese 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 common word groups of characters corresponding to the initial recognition result in the handwritten Chinese character database.
2. The method of generating electronic certificates of claim 1, wherein the step of generating an electronic certificate activation code based on the fingerprint data and the random encoding comprises:
extracting a plurality of target data from the fingerprint data and the random code according to a preset rule;
Aiming at each target data, carrying out 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 data.
3. The method of generating electronic certificates according to claim 2, wherein 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 includes:
Converting the fingerprint data and the data after the random encoding combination into decimal data;
And selecting and obtaining a plurality of target data from the decimal data after the combination of the fingerprint data and the random codes according to a preset spacing distance.
4. The method of claim 2, 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 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 modular 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.
5. The method of generating electronic certificates according to claim 2, wherein the step of generating an electronic certificate activation code based on the operation result of each of the target data includes:
adding the operation results of each target data to obtain an addition result;
multiplying the addition result with a preset weighting value to obtain a multiplication result;
and performing modular processing on the multiplication result to obtain the electronic certificate activation code.
6. The method of generating electronic certificates of claim 1, wherein the step of generating electronic certificates based on the initial certificates and the electronic certificate activation codes 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.
7. An electronic certificate generation device, characterized in that the electronic certificate generation device comprises:
The identification module is used for extracting handwritten characters from a target handwritten file, and the target handwritten file is used for storing logistics documents handwritten by logistics staff; identifying the handwritten characters through a preset handwritten Chinese character database to obtain an identification result of the handwritten characters; the handwriting Chinese character database comprises fonts, stroke order rules and common word groups of each character;
The filling module is used for filling the recognition result of the handwritten text into a preset electronic certificate template to obtain an initial certificate of the target handwritten file;
The acquisition module is used for acquiring fingerprint data and random codes of a receiver of the electronic certificate and generating an electronic certificate activation code based on the fingerprint data and the random codes;
The generation module is used for generating an electronic certificate based on the initial certificate and the electronic certificate activation code;
The recognition module is also used for recognizing the handwritten characters according to the font and the stroke order rule of each character in the handwritten Chinese 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 common word groups of characters corresponding to the initial recognition result in the handwritten Chinese character database.
8. An electronic certificate generation device, characterized in that the electronic certificate generation device comprises: 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 credential generation device to perform the electronic credential generation method of any of claims 1-6.
9. A computer readable storage medium having instructions stored thereon, which when executed by a processor, implement a method of generating electronic credentials as claimed in any of claims 1 to 6.
CN202210253133.4A 2022-03-15 2022-03-15 Electronic certificate generation method, device, equipment and storage medium Active CN114866271B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210253133.4A CN114866271B (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 CN114866271B (en) 2022-03-15 2022-03-15 Electronic certificate generation method, device, equipment and storage medium

Publications (2)

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

Family

ID=82628509

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN114866271B (en)

Families Citing this family (1)

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

Citations (2)

* 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
CN113762958A (en) * 2021-01-04 2021-12-07 北京沃东天骏信息技术有限公司 Method and device for generating electronic certificate

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019079815A1 (en) * 2017-10-20 2019-04-25 Asignio Inc. Electronic verification systems and methods
KR101853610B1 (en) * 2017-11-07 2018-05-02 주식회사 시큐브 Digital signature authentication system based on biometric information and digital signature authentication method thereof
CN109960997A (en) * 2018-07-17 2019-07-02 江苏科技大学 A kind of data acquisition platform based on smart electronics pen
CN109829317A (en) * 2018-12-14 2019-05-31 平安科技(深圳)有限公司 A kind of method, apparatus and system generating electronic contract based on handwritten signature picture
CN109919153A (en) * 2019-02-22 2019-06-21 北京印刷学院 Automatic document entry system and method based on handwriting recognition artificial intelligence technology
CN111343170B (en) * 2020-02-19 2022-07-08 深圳壹账通智能科技有限公司 Electronic signing method and system
CN112215087A (en) * 2020-09-21 2021-01-12 浙江数链科技有限公司 Picture auditing method and device, computer equipment and storage medium
CN113743899A (en) * 2021-08-31 2021-12-03 远光软件股份有限公司 Management method for coexistence of paper and electronic archives, computer device and storage medium

Patent Citations (2)

* 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
CN113762958A (en) * 2021-01-04 2021-12-07 北京沃东天骏信息技术有限公司 Method and device for generating electronic certificate

Also Published As

Publication number Publication date
CN114866271A (en) 2022-08-05

Similar Documents

Publication Publication Date Title
CN109816327B (en) Contract data processing method, apparatus, computer device and storage medium
US10402163B2 (en) Intelligent data extraction
US10997366B2 (en) Methods, devices and systems for data augmentation to improve fraud detection
CN110503434A (en) Data verification method, device, equipment and storage medium based on hash algorithm
CN113837113A (en) Document verification method, device, equipment and medium based on artificial intelligence
CN112528616A (en) Business form generation method and device, electronic equipment and computer storage medium
US20140012763A1 (en) Money transfer fraud prevention methods and systems
CN114866271B (en) Electronic certificate generation method, device, equipment and storage medium
CN114169301A (en) Electronic surface list convergence number-taking method, device, equipment and storage medium
CN113191121A (en) Express bill number generation method, device, equipment and storage medium
CN110021108B (en) Banknote crown word number recording and tracing method and system
CN101414908A (en) Symbolism stamping method based on public key system
CN114547696A (en) File desensitization method and device, electronic equipment and storage medium
CN113886577A (en) Text classification method, device, equipment and storage medium
CN109389198A (en) A kind of invoice information storage method and system based on planar bar code technology
CN111144855B (en) Service data storage method and device
JP2019133218A (en) Document sheet accommodating system, document sheet accommodating method, and document sheet accommodating program
CN113297346A (en) Text intention recognition method, device, equipment and storage medium
CN111355709A (en) Data verification method and device, electronic equipment and computer readable storage medium
CN111104853A (en) Image information input method and device, electronic equipment and storage medium
CN112561538B (en) Risk model creation method, apparatus, computer device and readable storage medium
CN113822215A (en) Equipment operation guide file generation method and device, electronic equipment and storage medium
CN113901821A (en) Entity naming identification method, device, equipment and storage medium
CN113486646A (en) Product report issuing method and device, electronic equipment and readable storage medium
CN104428813B (en) System and method for verifying and formatting the knowledge of IP token

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
GR01 Patent grant
GR01 Patent grant