CN115359543A - Remote printing method and system based on block chain - Google Patents

Remote printing method and system based on block chain Download PDF

Info

Publication number
CN115359543A
CN115359543A CN202211276235.4A CN202211276235A CN115359543A CN 115359543 A CN115359543 A CN 115359543A CN 202211276235 A CN202211276235 A CN 202211276235A CN 115359543 A CN115359543 A CN 115359543A
Authority
CN
China
Prior art keywords
image
printing
file
user
block chain
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.)
Granted
Application number
CN202211276235.4A
Other languages
Chinese (zh)
Other versions
CN115359543B (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.)
Beijing Huilang Times Technology Co Ltd
Original Assignee
Beijing Huilang Times Technology 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 Beijing Huilang Times Technology Co Ltd filed Critical Beijing Huilang Times Technology Co Ltd
Priority to CN202211276235.4A priority Critical patent/CN115359543B/en
Publication of CN115359543A publication Critical patent/CN115359543A/en
Application granted granted Critical
Publication of CN115359543B publication Critical patent/CN115359543B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/258Heading extraction; Automatic titling; Numbering
    • 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
    • G06V30/245Font recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/41Analysis of document content
    • G06V30/412Layout analysis of documents structured with printed lines or input boxes, e.g. business forms or tables

Abstract

The invention discloses a remote printing method and system based on a block chain, and relates to the technical field of data processing. The method comprises the following steps: determining identity information of a user; taking the printed document image as a printed document image to be identified; detecting a large size and a bold font in the image of the to-be-identified printed file, and identifying the large size and the bold font to obtain a title of the printed file; identifying non-large-size and bold fonts in the to-be-identified print file image by utilizing an OCR (optical character recognition) technology of multi-scale verification to obtain the content of the print file; and uploading the identity information of the user, the title of the user print file and the content of the user print file to a corresponding block chain for storage. The invention utilizes a method of mutual check of multiple face recognition models, a method of combining single-line character target detection and entropy check and an OCR technology of multi-scale check to realize accurate recognition of the identity of a user and the characters of a user-printed file; and combining the block chain technology to perform uplink chain storage for the core information related to the printing.

Description

Remote printing method and system based on block chain
Technical Field
The invention relates to the technical field of data processing, in particular to a block chain-based remote printing method and system.
Background
With the progress of science and technology, more and more companies adopt a remote printing method, so that the printing process is more and more convenient and rapid. However, in the process of remote seal application, situations that the seal is unreasonable to use and the seal application supervision is not ideal often occur, so that great negative effects are brought to companies.
Although partial identity recognition technology and file recognition technology are applied to remote seal application in the prior art, the situations that the seal is unreasonable to use and seal application supervision is not ideal still exist. Block chain technology has played an important role in many fields as a technology emerging in recent years, and can provide direct support for printing supervision. Therefore, how to fully combine the block chain technology and the modern information technology to realize remote printing based on the block chain and ensure the printing effect becomes a new technical problem.
Disclosure of Invention
In order to overcome the above problems or at least partially solve the above problems, embodiments of the present invention provide a remote seal using method and system based on a blockchain, which implement accurate identification of seal using person identity and seal using document text by using a method of mutual check of multiple face recognition models, a method of combining single-line text target detection and entropy check, and an OCR technology of multi-scale check; and the block chain technology is combined to carry out cochain storage on the core information related to the stamp consumption, so that the reliability of the remote stamp consumption is ensured.
The embodiment of the invention is realized by the following steps:
in a first aspect, an embodiment of the present invention provides a remote printing method based on a block chain, including the following steps:
collecting the face image of the user, and identifying the face image by using a multi-face identification model mutual check method to determine the identity information of the user;
collecting and uploading a printing document image to a target company printing system, and taking the printing document image as a to-be-identified printing document image;
detecting large-size and bold font characters in the image of the to-be-identified printing file by using a method combining single-line character target detection and entropy check, and identifying the large-size and bold font characters by using an OCR (optical character recognition) model to obtain and take a first character identification result as a title of the printing file;
recognizing characters which are not large in size and have bold fonts in the to-be-recognized printing file image by utilizing an OCR technology of multi-scale verification to obtain and use a second character recognition result as the content of the to-be-printed file;
and uploading the identity information of the user, the title of the user printing file and the content of the user printing file to a corresponding block chain for storage.
In order to solve the problems in the prior art, the method utilizes a method of mutual check of a plurality of face recognition models to recognize the identity of the user, thereby improving the accuracy of the identity recognition of the user; the method combining single-line character target detection and entropy check is utilized to more accurately detect the large size and the bold font, and the large size and the bold font are identified as the title of the printed file; then, the characters with the common size are recognized by utilizing the OCR technology of multi-scale verification, the characters obtained by recognition are used as the content of the printed file, and the character recognition accuracy is obviously improved. Meanwhile, the method combines the block chain technology, realizes the uplink chain storage of the core information related to the remote printing, and obviously improves the reliability of the remote printing.
Based on the first aspect, in some embodiments of the present invention, the block chain based remote printing method further includes the following steps:
and acquiring and extracting the identity information of the user of the corresponding user file in the block chain according to the infringement judgment request.
Based on the first aspect, in some embodiments of the present invention, the method for identifying a face image by using a mutual inspection of multiple face recognition models to determine identity information of a user includes the following steps:
respectively identifying the face images by utilizing a plurality of preset face identification models to obtain a plurality of face identification results;
and determining the identity information of the user according to each face recognition result.
Based on the first aspect, in some embodiments of the present invention, the above method for detecting a large font and a bold font in an image of a print document to be identified by using a combination of single-line text object detection and entropy check includes the following steps:
detecting characters of each line in the to-be-identified printed document image by using a target detection method, and detecting and counting to obtain the character word number of each line; if the word number of the character is less than the preset word number threshold value, the line of characters is determined as large font characters;
acquiring and calculating entropy values of a plurality of thickened font template images, and calculating an average entropy value of each thickened font template image;
calculating the entropy value of each large font character in the to-be-identified document image, and calculating the difference between the entropy value of the large font character and the average entropy value of the bold font template image to obtain a difference result; and if the difference result is smaller than the preset difference value, determining the corresponding large font character as a bold font.
Based on the first aspect, in some embodiments of the present invention, the above method for calculating entropy values of a plurality of bolded font template images includes the following steps:
calculating the gray value of each pixel point in the thickened font template image;
calculating the probability of a certain gray level appearing in the bold font template image
Figure 258521DEST_PATH_IMAGE001
Using formulas
Figure 720726DEST_PATH_IMAGE002
And calculating the entropy value of the bold font template image.
Based on the first aspect, in some embodiments of the present invention, the above method for recognizing non-large-size and bold-faced font characters in an image of a print document to be recognized by using an OCR technology of multi-scale verification to obtain and use a second character recognition result as the content of the print document includes the following steps:
carrying out multi-scale division on the file image to be identified to obtain the file image to be identified under multiple scales;
identifying non-large-size and bold fonts in the to-be-identified printed document image under each scale by using an OCR technology to obtain identification results under a plurality of scales;
and determining and using the second character recognition result as the content of the print file according to the recognition results under the multiple scales.
In a second aspect, an embodiment of the present invention provides a block chain-based remote printing system, including: identity confirming module, file collecting module, title confirming module, content identifying module and data chaining module, wherein:
the identity determining module is used for collecting the face image of the user and identifying the face image by using a multi-face identification model mutual inspection method so as to determine the identity information of the user;
the file collection module is used for collecting and uploading the printing file image to a printing system of a target company, and taking the printing file image as a printing file image to be identified;
the title determining module is used for detecting large-size and bold font characters in the image of the to-be-recognized printing file by using a method of combining single-line character target detection and entropy check, and recognizing the large-size and bold font characters by using an OCR (optical character recognition) model to obtain and take a first character recognition result as a title of the to-be-recognized printing file;
the content recognition module is used for recognizing characters which are not large in size and are in bold font in the to-be-recognized printed file image by utilizing an OCR (optical character recognition) technology of multi-scale verification so as to obtain and use a second character recognition result as the content of the printed file;
and the data chain linking module is used for uploading the identity information of the user, the title of the user printing file and the content of the user printing file to a corresponding block chain for storage.
In order to solve the problems in the prior art, the system identifies the identity of a user by mutually matching a plurality of modules such as an identity determination module, a file acquisition module, a title determination module, a content identification module, a data chaining module and the like and by using a method of mutual verification of a plurality of face identification models, so that the accuracy of identity identification of the user is improved; the method combining single-line character target detection and entropy check is utilized to more accurately detect the large size and the bold font, and the large size and the bold font are identified as the title of the printed file; then, the OCR technology of multi-scale verification is utilized to recognize characters with common sizes, the recognized characters are used as the content of the printed file, and the accuracy of character recognition is remarkably improved. Meanwhile, the invention combines the block chain technology, realizes the uplink chain storage of the related core information of the remote printing, and obviously improves the reliability of the remote printing.
Based on the second aspect, in some embodiments of the present invention, the block chain-based remote printing system further includes an infringement determination module, configured to acquire and extract the identity information of the user who applies the corresponding application file in the block chain according to the infringement determination request.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory for storing one or more programs; a processor. The program or programs, when executed by a processor, implement the method of any of the first aspects as described above.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method according to any one of the first aspect described above.
The embodiment of the invention at least has the following advantages or beneficial effects:
the embodiment of the invention provides a remote seal using method and a system based on a block chain, which utilize a method of mutual check of a plurality of face recognition models to identify the identity of a user, thereby improving the accuracy of identity identification of the user; the method combining single-line character target detection and entropy check is utilized to more accurately detect the large size and the bold font, and the large size and the bold font are identified as the title of the printed file; then, the OCR technology of multi-scale verification is utilized to recognize characters with common sizes, the recognized characters are used as the content of the printed file, and the accuracy of character recognition is remarkably improved. Meanwhile, the invention combines the block chain technology, realizes the uplink chain storage of the relevant core information of the remote printing, and obviously improves the reliability of the remote printing.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
FIG. 1 is a flow chart of a block chain-based remote printing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of the method for identifying face images by using a multi-face recognition model mutual verification in the block chain-based remote printing method according to the embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for detecting a large-size and bold font in an image of a print job to be identified by combining single-line character target detection and entropy check in a remote print using method based on a block chain according to an embodiment of the present invention;
FIG. 4 is a schematic block diagram of a remote printing system based on a blockchain according to an embodiment of the present invention;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present invention.
Description of reference numerals: 100. an identity determination module; 200. a file collection module; 300. a title determination module; 400. a content identification module; 500. a data uplink module; 600. an infringement determination module; 101. a memory; 102. a processor; 103. a communication interface.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
In the description of the embodiments of the present invention, "a plurality" represents at least 2.
Example (b):
as shown in fig. 1 to fig. 3, in a first aspect, an embodiment of the present invention provides a remote printing method based on a block chain, including the following steps:
s1, collecting a face image of a user, and identifying the face image by using a multi-face identification model mutual inspection method to determine identity information of the user;
further, as shown in fig. 2, the method includes:
s11, respectively identifying the face images by utilizing a plurality of preset face identification models to obtain a plurality of face identification results;
and S12, determining the identity information of the user according to each face recognition result.
In some embodiments of the invention, the identity of the signer is identified (for example, the signer is determined to be Zhang III) by using a method of mutual check of multiple face recognition models; for example, the face recognition model A and the face recognition model B are used for respectively carrying out face recognition on the user, and when the recognition results of various face recognition methods are the same, the actual identity of the user can be determined; if one is different, the face image needs to be collected again for recognition until the accurate identity is confirmed.
S2, collecting and uploading the printed document image to a printing system of a target company, and taking the printed document image as a printed document image to be identified; and scanning and photographing the printed document, uploading the scanned and photographed document to a company printing system, and taking the scanned and photographed document as an image of the printed document to be identified.
S3, detecting large-size and bold font characters in the to-be-recognized printed file image by using a method of combining single-line character target detection and entropy check, and recognizing the large-size and bold font characters by using an OCR (optical character recognition) model to obtain and use a first character recognition result as a printed file title;
further, as shown in fig. 3, the method includes:
s31, detecting characters of each line in the to-be-identified printed document image by using a target detection method, and detecting and counting to obtain the character word number of each line; if the word number of the character is less than the preset word number threshold value, the line of characters is determined as large font characters;
s32, acquiring and calculating entropy values of the plurality of thickened font template images, and calculating an average entropy value of each thickened font template image;
s33, calculating the entropy value of each large font character in the to-be-identified printed document image, and calculating the difference between the entropy value of the large font character and the average entropy value of the bold font template image to obtain a difference result; and if the difference result is smaller than the preset difference value, determining the corresponding large font character as a bold font.
Further, the above method for calculating entropy values of a plurality of bold font template images comprises the following steps:
calculating the gray value of each pixel point in the thickened font template image; calculating the probability of a certain gray level appearing in the bold font template image
Figure 68531DEST_PATH_IMAGE001
(ii) a Using formulas
Figure 274384DEST_PATH_IMAGE002
And calculating the entropy value of the bold font template image.
In some embodiments of the present invention, a method of combining single-line character target detection and entropy check is used to detect large-size and bold fonts in the image of the document to be identified. The large-size and bold font is recognized by an OCR model as a title of the document to be printed. And detecting characters in each line by using a target detection method, and if the number of the characters in each line is small, indicating that the characters are large-size characters. After the large font is identified, the image templates with the partially thickened fonts are manually selected (only by means of network downloading or personal collection and the like, about 100 characters are needed), the entropy value of each image template with the thickened fonts is calculated, and the average entropy value of each image template with the thickened fonts is calculated. Calculating the entropy value of a certain large font, and if the entropy value of the large font is relatively similar to the average entropy value of the bold font template, indicating that the large font is the bold font; otherwise, the large font is a non-bolded font.
S4, identifying characters which are not large in size and are in bold font in the to-be-identified printing file image by utilizing an OCR (optical character recognition) technology of multi-scale verification to obtain and use a second character identification result as the content of the printing file;
further, it includes: carrying out multi-scale division on the to-be-identified printing file image to obtain the to-be-identified printing file image under multiple scales; identifying non-large-size and bold fonts in the to-be-identified printed document image under each scale by using an OCR technology to obtain identification results under a plurality of scales; and determining and using the second character recognition result as the content of the print file according to the recognition results under the multiple scales.
In some embodiments of the invention, for a common font, the OCR technology of multi-scale verification is used to identify the common font, and a final identification result is obtained as the common content of the document to be printed; description of the invention: character recognition is accomplished using OCR technology at a variety of scales. If the recognition results of the characters under multiple scales are inconsistent, a minority of the characters are used for following the principle of majority, for example, a certain character is recognized as 'true' under the most scales, a certain character is recognized as 'office' under the least scales, and finally the character is recognized as 'true'.
And S5, uploading the identity information of the user, the title of the print file and the content of the print file to a corresponding block chain for storage. After the identification of the user identity and the identification of the user file header and the general content are completed, the information is recorded in a company block chain system. For example, record employee three copies of a document entitled a, and the general content of the document is B.
The operation is adopted for all the printing processes of a company, the identity of a user, the title of a document to be printed and the common content are identified, the information is recorded in a block chain system of the company, chain storage of core information of the user is realized, the authenticity and the reliability of data are ensured, and accurate and comprehensive related data of the user are provided for follow-up printing.
In order to solve the problems in the prior art, the method utilizes a method of mutual check of a plurality of face recognition models to recognize the identity of a user, thereby improving the accuracy of the identity recognition of the user; the method combining single-line character target detection and entropy check is utilized to more accurately detect the large size and the bold font, and the large size and the bold font are identified as the title of the printed file; then, the characters with the common size are recognized by utilizing the OCR technology of multi-scale verification, the characters obtained by recognition are used as the content of the printed file, and the character recognition accuracy is obviously improved. Meanwhile, the method combines the block chain technology, realizes the uplink chain storage of the core information related to the remote printing, and obviously improves the reliability of the remote printing.
Based on the first aspect, in some embodiments of the present invention, the block chain-based remote printing method further includes the following steps:
and acquiring and extracting the identity information of the printing user of the corresponding printing file in the block chain according to the infringement judgment request.
If the conditions such as malicious seal occur, corresponding information can be extracted, real and comprehensive data support is provided for following up the responsibility of related employees, and the seal user corresponding to the seal file can be directly found out due to the fact that chain deposit evidence is linked to the core information of the seal.
As shown in fig. 4, in a second aspect, an embodiment of the present invention provides a block chain-based remote printing system, including: an identity determination module 100, a file collection module 200, a title determination module 300, a content identification module 400, and a data chaining module 500, wherein:
the identity determination module 100 is used for collecting the face image of the user and identifying the face image by using a multi-face identification model mutual check method so as to determine the identity information of the user;
the file collection module 200 is used for collecting and uploading the printing file image to a printing system of a target company, and taking the printing file image as a printing file image to be identified;
the title determining module 300 is configured to detect large-size and bold-type characters in the image of the to-be-recognized print file by using a method combining single-line character target detection and entropy check, and recognize the large-size and bold-type characters by using an OCR model to obtain and use a first character recognition result as a print-used file title;
the content recognition module 400 is configured to recognize non-large-size and bold-font characters in the to-be-recognized printed document image by using an OCR technology of multi-scale verification to obtain and use a second character recognition result as the content of the to-be-printed document;
and a data uplink module 500, configured to upload the identity information of the user, the print file title, and the print file content to a corresponding block chain for storage.
In order to solve the problems in the prior art, the system identifies the identity of the user by mutually matching a plurality of modules such as the identity determining module 100, the file collecting module 200, the title determining module 300, the content identifying module 400 and the data uplink module 500 and by using a method of mutual verification of a plurality of face identification models, so that the accuracy of identity identification of the user is improved; the method combining single-line character target detection and entropy check is utilized to more accurately detect the large size and the bold font, and the large size and the bold font are identified as the title of the printed file; then, the OCR technology of multi-scale verification is utilized to recognize characters with common sizes, the recognized characters are used as the content of the printed file, and the accuracy of character recognition is remarkably improved. Meanwhile, the invention combines the block chain technology, realizes the uplink chain storage of the related core information of the remote printing, and obviously improves the reliability of the remote printing.
According to the second aspect, in some embodiments of the present invention, as shown in fig. 4, the remote printing system based on block chains further includes an infringement determination module 600, configured to obtain and extract the identity information of the printing person who applies the corresponding printing file in the block chain according to the infringement determination request.
The operation is adopted for all printing processes of a company, the identity of a printing user, the title of a printing file and the general content are identified, the information is recorded in a block chain system of the company, and the chain storage of the printing core information is realized. If malicious usage and printing and other conditions occur, the infringement confirmation module 600 can extract corresponding information, so as to provide real and comprehensive data support for following up the responsibility of related employees.
As shown in fig. 5, in a third aspect, an embodiment of the present application provides an electronic device, which includes a memory 101 for storing one or more programs; a processor 102. The one or more programs, when executed by the processor 102, implement the method of any of the first aspects as described above.
Also included is a communication interface 103, and the memory 101, processor 102 and communication interface 103 are electrically connected to each other, directly or indirectly, to enable transfer or interaction of data. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The memory 101 may be used to store software programs and modules, and the processor 102 executes the software programs and modules stored in the memory 101 to thereby execute various functional applications and data processing. The communication interface 103 may be used for communicating signaling or data with other node devices.
The Memory 101 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The processor 102 may be an integrated circuit chip having signal processing capabilities. The Processor 102 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In the embodiments provided in the present application, it should be understood that the disclosed method and system and method can be implemented in other ways. The method and system embodiments described above are merely illustrative, for example, the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods and systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, which, when executed by the processor 102, implements the method according to any one of the first aspect described above. The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several 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 methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
The present invention has been described in terms of the preferred embodiment, and it is not intended to be limited to the embodiment. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (10)

1. A remote printing method based on a block chain is characterized by comprising the following steps:
collecting the face image of the user, and identifying the face image by using a method of mutual check of a plurality of face identification models so as to determine the identity information of the user;
collecting and uploading a printing file image to a printing system of a target company, and taking the printing file image as a printing file image to be identified;
detecting large-size and bold font characters in the to-be-recognized printing file image by using a method combining single-line character target detection and entropy check, and recognizing the large-size and bold font characters by using an OCR (optical character recognition) model to obtain and use a first character recognition result as a printing file title;
recognizing characters which are not large and have bold fonts in the to-be-recognized printing file image by utilizing an OCR (optical character recognition) technology of multi-scale verification to obtain and use a second character recognition result as the content of the printing file;
and uploading the identity information of the user, the title of the user print file and the content of the user print file to a corresponding block chain for storage.
2. The block chain based remote printing method according to claim 1, further comprising the steps of:
and acquiring and extracting the identity information of the printing user of the corresponding printing file in the block chain according to the infringement judgment request.
3. The remote printing method based on the block chain as claimed in claim 1, wherein the method for identifying the face image by using the mutual inspection of the multiple face recognition models to determine the identity information of the printing person comprises the following steps:
respectively identifying the face images by utilizing a plurality of preset face identification models to obtain a plurality of face identification results;
and determining the identity information of the user according to each face recognition result.
4. The remote seal method based on the block chain as claimed in claim 1, wherein the method for detecting large and bold fonts in the document image to be identified by using the combination of single-line character target detection and entropy check comprises the following steps:
detecting characters of each line in the to-be-identified printed document image by using a target detection method, and detecting and counting to obtain the character word number of each line; if the word number of the character is less than the preset word number threshold value, the line of characters is determined as large font characters;
acquiring and calculating entropy values of a plurality of thickened font template images, and calculating an average entropy value of each thickened font template image;
calculating the entropy value of each large font character in the image of the print file to be identified, and calculating the difference between the entropy value of the large font character and the average entropy value of the bold font template image to obtain a difference result; and if the difference result is smaller than the preset difference value, determining the corresponding large font character as a bold font.
5. The remote printing method based on the block chain as claimed in claim 4, wherein the method for calculating the entropy values of the plurality of bold font template images comprises the following steps:
calculating the gray value of each pixel point in the thickened font template image;
calculating the probability of a certain gray level appearing in the template image of the bold font
Figure 732173DEST_PATH_IMAGE001
Using formulas
Figure 567624DEST_PATH_IMAGE002
And calculating the entropy value of the bold font template image.
6. The remote printing method based on the block chain as claimed in claim 1, wherein the method for identifying the non-large-size and bold-font characters in the image of the document to be identified by using the OCR technology with multi-scale verification to obtain and use the second character identification result as the content of the document to be identified comprises the following steps:
carrying out multi-scale division on the to-be-identified printing file image to obtain the to-be-identified printing file image under multiple scales;
identifying non-large-size and bold fonts in the to-be-identified print file image under each scale by using an OCR (optical character recognition) technology to obtain identification results under multiple scales;
and determining and using the second character recognition result as the content of the print file according to the recognition results under multiple scales.
7. A blockchain-based remote printing system, comprising: identity confirming module, file collecting module, title confirming module, content identifying module and data chaining module, wherein:
the identity determining module is used for collecting the face image of the user and identifying the face image by using a multi-face identification model mutual inspection method so as to determine the identity information of the user;
the file collection module is used for collecting and uploading the printing file image to a printing system of a target company, and taking the printing file image as a printing file image to be identified;
the title determining module is used for detecting large-size and bold font characters in the image of the to-be-recognized printing file by using a method of combining single-line character target detection and entropy check, and recognizing the large-size and bold font characters by using an OCR (optical character recognition) model to obtain and take a first character recognition result as a title of the to-be-recognized printing file;
the content recognition module is used for recognizing characters which are not large in size and are in bold font in the to-be-recognized printed file image by utilizing an OCR (optical character recognition) technology of multi-scale verification so as to obtain and use a second character recognition result as the content of the printed file;
and the data uplink module is used for uploading the identity information of the printing user, the printing file title and the printing file content to the corresponding block chain for storage.
8. The block chain-based remote printing system according to claim 7, further comprising an infringement determination module for obtaining and extracting the identity information of the printing person who prints the corresponding printing file in the block chain according to the infringement determination request.
9. An electronic device, comprising:
a memory for storing one or more programs;
a processor;
the one or more programs, when executed by the processor, implement the method of any of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN202211276235.4A 2022-10-19 2022-10-19 Remote printing method and system based on block chain Active CN115359543B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211276235.4A CN115359543B (en) 2022-10-19 2022-10-19 Remote printing method and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211276235.4A CN115359543B (en) 2022-10-19 2022-10-19 Remote printing method and system based on block chain

Publications (2)

Publication Number Publication Date
CN115359543A true CN115359543A (en) 2022-11-18
CN115359543B CN115359543B (en) 2023-01-10

Family

ID=84008138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211276235.4A Active CN115359543B (en) 2022-10-19 2022-10-19 Remote printing method and system based on block chain

Country Status (1)

Country Link
CN (1) CN115359543B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021115490A1 (en) * 2020-06-22 2021-06-17 平安科技(深圳)有限公司 Seal character detection and recognition method, device, and medium for complex environments
CN113177542A (en) * 2021-05-24 2021-07-27 中国建设银行股份有限公司 Method, device and equipment for identifying characters of seal and computer readable medium
EP3993318A1 (en) * 2020-10-30 2022-05-04 Bundesdruckerei GmbH Blockchain-based digital document system
CN114662132A (en) * 2022-04-12 2022-06-24 平安国际智慧城市科技股份有限公司 Block chain-based electronic seal monitoring method, device, equipment and medium
CN115063804A (en) * 2022-06-29 2022-09-16 支付宝(杭州)信息技术有限公司 Seal identification and anti-counterfeiting detection method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021115490A1 (en) * 2020-06-22 2021-06-17 平安科技(深圳)有限公司 Seal character detection and recognition method, device, and medium for complex environments
EP3993318A1 (en) * 2020-10-30 2022-05-04 Bundesdruckerei GmbH Blockchain-based digital document system
CN113177542A (en) * 2021-05-24 2021-07-27 中国建设银行股份有限公司 Method, device and equipment for identifying characters of seal and computer readable medium
CN114662132A (en) * 2022-04-12 2022-06-24 平安国际智慧城市科技股份有限公司 Block chain-based electronic seal monitoring method, device, equipment and medium
CN115063804A (en) * 2022-06-29 2022-09-16 支付宝(杭州)信息技术有限公司 Seal identification and anti-counterfeiting detection method and system

Also Published As

Publication number Publication date
CN115359543B (en) 2023-01-10

Similar Documents

Publication Publication Date Title
US9542752B2 (en) Document image compression method and its application in document authentication
CN113963147B (en) Key information extraction method and system based on semantic segmentation
CN111583180B (en) Image tampering identification method and device, computer equipment and storage medium
CN112508011A (en) OCR (optical character recognition) method and device based on neural network
CN108830275B (en) Method and device for identifying dot matrix characters and dot matrix numbers
Mayan et al. Number plate recognition using template comparison for various fonts in MATLAB
CN110598566A (en) Image processing method, device, terminal and computer readable storage medium
CN112308046A (en) Method, device, server and readable storage medium for positioning text region of image
JP2019079347A (en) Character estimation system, character estimation method, and character estimation program
CN112149401A (en) Document comparison identification method and system based on ocr
Nayak et al. Automatic number plate recognition
CN115147253A (en) Block chain-based smart campus book big data borrowing management method and system
CN112001200A (en) Identification code identification method, device, equipment, storage medium and system
CN101118592A (en) Printers evidence obtaining method based on character printing feature
CN114550193A (en) Document integrity detection method and system and electronic equipment
CN111598099B (en) Image text recognition performance testing method, device, testing equipment and medium
CN111178347B (en) Ambiguity detection method, ambiguity detection device, ambiguity detection equipment and ambiguity detection storage medium for certificate image
WO2017069741A1 (en) Digitized document classification
CN115147855A (en) Method and system for carrying out batch OCR (optical character recognition) on bills
CN115359543B (en) Remote printing method and system based on block chain
Khan et al. Urdu optical character recognition technique using point feature matching; a generic approach
CN115205866A (en) Block chain-based scientific and technological paper big data plagiarism detection method and system
Qian et al. A digit recognition system for paper currency identification based on virtual instruments
CN115713630A (en) Low-quality seal image big data identification method and system based on artificial intelligence
CN115457585A (en) Processing method and device for homework correction, computer equipment and readable storage medium

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