CN111683202B - Bill stamping method, device, equipment and storage medium - Google Patents

Bill stamping method, device, equipment and storage medium Download PDF

Info

Publication number
CN111683202B
CN111683202B CN202010484238.1A CN202010484238A CN111683202B CN 111683202 B CN111683202 B CN 111683202B CN 202010484238 A CN202010484238 A CN 202010484238A CN 111683202 B CN111683202 B CN 111683202B
Authority
CN
China
Prior art keywords
bill
infrared
image
stamped
stamping
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
CN202010484238.1A
Other languages
Chinese (zh)
Other versions
CN111683202A (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 CN202010484238.1A priority Critical patent/CN111683202B/en
Publication of CN111683202A publication Critical patent/CN111683202A/en
Application granted granted Critical
Publication of CN111683202B publication Critical patent/CN111683202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/30Transforming light or analogous information into electric information
    • H04N5/33Transforming infrared radiation
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41KSTAMPS; STAMPING OR NUMBERING APPARATUS OR DEVICES
    • B41K3/00Apparatus for stamping articles having integral means for supporting the articles to be stamped
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41KSTAMPS; STAMPING OR NUMBERING APPARATUS OR DEVICES
    • B41K3/00Apparatus for stamping articles having integral means for supporting the articles to be stamped
    • B41K3/62Details or accessories
    • 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/22Character recognition characterised by the type of writing
    • G06V30/224Character recognition characterised by the type of writing of printed characters having additional code marks or containing code marks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Inspection Of Paper Currency And Valuable Securities (AREA)

Abstract

The embodiment of the invention discloses a bill stamping method, a bill stamping device, bill stamping equipment and a storage medium. The method comprises the following steps: acquiring an infrared bill image of a bill to be stamped by infrared light photographing; preprocessing the infrared bill image, and performing OCR recognition on the preprocessed infrared bill image to acquire a recognition code obtained by recognition; if the identification code is determined to be consistent with the expected code in the printing control management system, acquiring a white-light bill image of the bill to be stamped through natural light shooting; and (4) carrying out bill stamping on the bill to be stamped and storing the white bill image. The method can solve the problem of bill stamping in the printing control management system, and can achieve the effects of high recognition accuracy and high stamping accuracy of the bill identification code.

Description

Bill stamping method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a bill stamping method, a bill stamping device, bill stamping equipment and a storage medium.
Background
In a print control management system of a bank, an image of a bill needs to be acquired before the bill is stamped at a designated position, a verification code of the bill is identified, and whether the verification code is consistent with the verification code in a request message or not is judged.
In the prior art, the verification code identification is usually realized by adopting a traditional method or a deep learning method. The traditional method is to collect a bill picture and remove noise to identify a verification code. The deep learning method is to obtain a model through a large number of training sets and predict the model.
The traditional method does not carry out special treatment on the bill, directly carries out identifying code identification on the bill image, and has unsatisfactory identification effect. The deep learning method needs a large number of training samples, is high in cost and difficulty, and needs retraining when newly adding bill types.
Disclosure of Invention
The embodiment of the invention provides a bill stamping method, a bill stamping device, bill stamping equipment and a storage medium, which can improve the identification accuracy of a bill identification code and the stamping accuracy.
In a first aspect, an embodiment of the present invention provides a bill stamping method, where the method includes:
acquiring an infrared bill image of a bill to be stamped by infrared light photographing;
preprocessing the infrared bill image, and performing OCR recognition on the preprocessed infrared bill image to acquire a recognition code obtained by recognition;
if the identification code is determined to be consistent with the expected code in the printing control management system, acquiring a white-light bill image of the bill to be stamped through natural light shooting;
and stamping the bills to be stamped and storing the white light bill images.
In a second aspect, an embodiment of the present invention further provides a bill sealing device, where the device includes:
the infrared bill image acquisition module is used for acquiring an infrared bill image of a bill to be stamped through infrared light photographing;
the identification code recognition module is used for preprocessing the infrared bill image, performing OCR recognition on the preprocessed infrared bill image and acquiring a recognition code obtained by recognition;
the white-light bill image acquisition module is used for acquiring a white-light bill image of the bill to be stamped through natural light shooting if the identification code is determined to be consistent with the expected code in the printing control management system;
and the bill stamping/storage module is used for stamping the bills to be stamped and storing the white light bill images.
In a third aspect, an embodiment of the present invention further provides a print control apparatus, including:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of ticket stamping according to any embodiment of the invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for stamping a bill according to any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, the infrared bill image of the bill to be stamped is obtained by infrared light photographing; preprocessing the infrared bill image, and performing OCR recognition on the preprocessed infrared bill image to acquire a recognition code obtained by recognition; if the identification code is determined to be consistent with the expected code in the printing control management system, acquiring a white-light bill image of the bill to be stamped through natural light shooting; the bill stamping is carried out on the bill to be stamped, and the white light bill image is stored, so that the problem of bill stamping in the printing control management system is solved, and the effects of high recognition accuracy rate and high stamping accuracy rate of the bill identification code are achieved.
Drawings
Fig. 1a is a flowchart of a method for stamping a note according to an embodiment of the present invention;
FIG. 1b is a schematic representation of an infrared document image of a non-photocopied original document according to one embodiment of the present invention;
FIG. 1c is a schematic representation of a pre-processed infrared document image of a non-photocopied original document according to one embodiment of the present invention;
FIG. 1d is a schematic illustration of a copy of a pre-processed infrared document image of an original document in accordance with one embodiment of the present invention;
FIG. 1e is a schematic view of a white light bill image according to one embodiment of the present invention;
fig. 2a is a flowchart of a bill stamping method according to a second embodiment of the present invention;
FIG. 2b is a schematic diagram of an infrared bill image of a copied original bill according to the second embodiment of the present invention;
fig. 3a is a flowchart of a note stamping method according to a third embodiment of the present invention;
FIG. 3b is a schematic diagram of a white light image of a non-copy original document after stamping according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a note stamping device according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a print control apparatus according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1a is a flowchart of a bill stamping method according to an embodiment of the present invention, where this embodiment is applicable to a case of stamping a bill in a print control management system, and the method may be executed by a bill stamping device, where the device may be implemented in a software and/or hardware manner, and the device may be integrated in a print control device, as shown in fig. 1a, where the method specifically includes:
and 110, acquiring an infrared bill image of a bill to be stamped through infrared light photographing.
Wherein, the printing font of the common bill during publishing adopts infrared anti-counterfeiting ink to perform anti-counterfeiting printing. The infrared anti-counterfeiting ink is prepared by adding one or more near-infrared absorbing materials into the ink, and absorbs in a near-infrared region. For example, the infrared light can transmit 75% to 95% of the near infrared light, and the infrared light having a wavelength of 700 nm to 1000 nm can be absorbed. The oscillation wavelength falls in the near infrared region. When the infrared light is used for photographing the bill, the infrared anti-counterfeiting ink on the bill can absorb the infrared light, so that part of information on the bill can be in a hidden state, namely, an invisible state.
FIG. 1b is a schematic view of an infrared document image of a non-copy original document according to an embodiment of the present invention. As shown in fig. 1b, the print font (data information with a dotted line frame in fig. 1 b) of the ticket at the time of publication is photographed by infrared light, and then the ticket is in a transparent state. The printed font (data information not outlined in dashed lines in fig. 1 b) appears invisible. And the characters printed, copied or written in the bill at the later stage are in a visible state due to the adoption of the non-infrared anti-counterfeiting ink. The content in the infrared bill image can be greatly reduced, and the infrared bill image can be favorably subjected to subsequent processing, such as identification of an identification code in a bill to be stamped.
And 120, preprocessing the infrared bill image, performing OCR recognition on the preprocessed infrared bill image, and acquiring a recognition code obtained by recognition.
The infrared bill image preprocessing method comprises the following steps of preprocessing an infrared bill image, wherein the preprocessing of the infrared bill image can be to intercept an identification code area in the infrared bill image and preprocess the intercepted identification code area; alternatively, it may be a pre-processing of the entire infrared ticket image. Preprocessing may include removing color-contributing factors, crease-contributing factors, or other noise-contributing factors of the infrared ticket image.
Optical Character Recognition (OCR) refers to a process in which an electronic device examines a printed Character on a document, determines its shape by detecting dark and light patterns, and then translates the shape into computer text using Character Recognition methods. The electronic device may be a scanner or a digital camera, among others. The method can convert characters in the infrared bill image into image files of black and white dot matrixes, and convert the image files into text formats through recognition software for the word processing software to edit and process so as to generate computer characters.
Characters in the preprocessed infrared bill image are recognized through OCR, and the recognition code in the infrared bill image can be accurately acquired. The method can avoid directly carrying out OCR recognition on the original bill to be stamped, and has a large amount of background character interference. The recognition efficiency and the recognition accuracy can be improved.
In an implementation manner of the embodiment of the present invention, optionally, the preprocessing the infrared bill image includes: converting the infrared bill image into a gray image, and carrying out fuzzy processing on the gray image to remove noise; and carrying out binarization processing on the gray level image after the fuzzy processing to obtain a preprocessed infrared bill image.
Wherein the gray scale image may be obtained by measuring the brightness of each pixel within a single electromagnetic wave frequency, such as visible light, for the infrared bill image. The processing can be directly carried out through some image editing software, and the processing can also be realized through script programming. The blurring process may be a process of reducing noise by linear filtering. The average value blurring process, gaussian blurring process, median filtering, bilateral filtering, or the like may be used. The binarization is to divide the gray image subjected to the fuzzy processing into a foreground and a background, define the foreground information as black, and define the background information as white. The character information of the infrared bill image can be reduced, and the identification accuracy of the identification code in the infrared bill image is improved.
Fig. 1c is a schematic diagram of a preprocessed infrared bill image of a non-copy original bill according to an embodiment of the present invention, and as shown in fig. 1c, only some characters printed with non-infrared anti-counterfeit ink or some handwritten characters exist in the preprocessed infrared bill image of the non-copy original bill, so that accuracy of identification code recognition can be greatly improved.
Fig. 1d is a schematic diagram of a preprocessed infrared bill image of a copied original bill according to an embodiment of the present invention, and as shown in fig. 1d, a large amount of data information exists in the preprocessed infrared bill image of the copied original bill. If the original non-copied bill is pre-processed after being photographed by natural light, an image similar to that of fig. 1d can also be obtained. For the image shown in FIG. 1d, OCR recognition is likely to be affected by surrounding data information, resulting in inaccurate recognition.
And step 130, if the identification code is determined to be consistent with the expected code in the printing control management system, acquiring a white-light bill image of the bill to be stamped through natural light shooting.
The identification code may be information representing a bill to be stamped. Such as the number, serial number, authentication code, name or serial number of the ticket to be sealed. The operating system for realizing the bill stamping by the print control management system can be a hardware and/or software system. The expected code may be representation information corresponding to a bill which is expected to be subjected to a stamping operation in the printing control management system, for example, a serial number of the bill.
For example, before the bill is stamped, the bank staff may review the stamping request according to the stamping request, and record the representation information corresponding to the bill passing the request in the print control management system to generate the request message. The corresponding presentation information of the ticket may be an expected code in the request message. When the seal control management system carries out the seal operation, the request message can be obtained through the appointed path so as to obtain the expected code in the request message.
If the identification code is consistent with the expected code in the printing control management system, the bill to be stamped is shown to be the bill passing the stamping request, and the bill to be stamped can be photographed, so that a worker can monitor the stamped bill, check the work and the like. In order to make the obtained bill image clear and facilitate the checking work of the staff, the bill to be stamped can be shot by adopting natural light.
And 140, performing bill stamping on the bill to be stamped, and storing the white light bill image.
If the identification code is consistent with the expected code in the printing control management system, the bill to be stamped is the bill passing the stamping request, and the stamping operation can be carried out. The white light bill image obtained by photographing can be stored in the printing control management system, so that the staff can monitor the stamped bill for checking work and the like. When the bill seal verification device is used for storing, the identification code and the white light bill image can be stored correspondingly, and whether the seal of the bill is correct or not can be quickly verified by workers.
Fig. 1e is a schematic diagram of a white light bill image according to an embodiment of the present invention. As shown in FIG. 1e, all information in the white light bill image can be clearly identified, and reliable data dependence is provided for the subsequent checking work of staff.
In an implementation manner of the embodiment of the present invention, optionally, the performing bill stamping on the bill to be stamped includes: acquiring stamping configuration information matched with at least one type of bill from pre-stored bill configuration information; extracting a sealing position and a sealing rotation angle matched with the bill to be sealed from the sealing configuration information according to the type of the bill to be sealed; and after the signature is controlled to rotate along the reference angle by the signature rotation angle, the bill to be stamped is stamped at the stamping position of the bill to be stamped.
Wherein, in the print control management system, bill configuration information of different types of bills is stored in advance. For example, the request message may record ticket configuration information of different types of tickets. The ticket configuration information may include a ticket type and ticket information corresponding to the ticket type. The bill information may be the size of the bill, the position of the seal, the rotation angle of the signature, the position of the identification code, and the like.
The note types may be liquidated notes and non-liquidated notes. The non-liquidation bill can be further divided according to the actual business requirement, such as settlement, liquidation, reconciliation and the like. The stamping position may be a position of the signature in the ticket, and may be, for example, an origin point of a central position of the signature in the print control management system, and the stamping position may be an abscissa and an ordinate with respect to the origin point. The signature rotation angle may be an angle, for example, 0 degrees, by which a reference angle with respect to the signature needs to be rotated when the desired signature is stamped in the document. The seal position in the bill can be enabled to be correct, and the seal information can be observed conveniently. After the stamping is finished, the signature is rotated back to the original reference angle.
According to the technical scheme of the embodiment, an infrared bill image of a bill to be stamped is obtained through infrared light photographing; preprocessing the infrared bill image, and performing OCR recognition on the preprocessed infrared bill image to acquire a recognition code obtained by recognition; if the identification code is determined to be consistent with the expected code in the printing control management system, acquiring a white-light bill image of the bill to be stamped through natural light shooting; the bill stamping is carried out on the bill to be stamped, and the white light bill image is stored, so that the problem of bill stamping in the printing control management system is solved, and the effects of high recognition accuracy rate and high stamping accuracy rate of the bill identification code are achieved.
Example two
Fig. 2a is a flowchart of a note stamping method provided in a second embodiment of the present invention, which is a further refinement of the above technical solution, and the technical solution in this embodiment may be combined with various alternatives in one or more of the above embodiments. As shown in fig. 2a, the method specifically includes:
and step 210, acquiring an infrared bill image of a bill to be stamped through infrared light photographing.
And step 220, intercepting at least one infrared ink anti-counterfeiting area in the infrared bill image.
The infrared ink anti-counterfeiting area refers to an area which should be printed by adopting infrared anti-counterfeiting ink in the bill. And the area printed by adopting the infrared anti-counterfeiting ink in the infrared bill image is in an invisible state. When the infrared ink anti-counterfeiting area is intercepted, the infrared ink anti-counterfeiting area which cannot be changed by manpower can be intercepted. For example, a name area of a bill or a bill header information area, etc.
And step 230, if the copying characteristic data is not identified in each infrared ink anti-counterfeiting area, determining that the infrared bill image is a non-copying original bill.
Wherein, the area printed by adopting the infrared anti-counterfeiting ink in the infrared bill image is in an invisible state. Therefore, when the copy characteristic data is not recognized in the infrared ink anti-counterfeiting area in the infrared bill image, the infrared ink anti-counterfeiting area of the bill is printed by using the infrared anti-counterfeiting ink, and the bill is a non-copy original bill and can be understood as a true bill. And if the copying characteristic data is identified in the infrared ink anti-counterfeiting area, the infrared ink anti-counterfeiting area is printed without adopting infrared anti-counterfeiting ink, and the original bill is copied and can be understood as a false bill.
Fig. 2b is a schematic diagram of an infrared bill image of a copied original bill according to the second embodiment of the present invention. As shown in fig. 2b, the data in the infrared bill image of the original copy bill are all in a visible state, and when any infrared ink anti-counterfeiting area is intercepted for copy characteristic data identification, the copy characteristic data can be identified. It can be determined to copy the original ticket. The stamping operation can not be executed for the original bill of copy, and the stamping accuracy can be improved.
And step 240, if the infrared bill image is determined to be the non-copy original bill, converting the infrared bill image into a gray image, and performing fuzzy processing on the gray image to remove noise.
And step 250, carrying out binarization processing on the blurred gray level image to obtain a preprocessed infrared bill image.
And step 260, performing OCR recognition on the preprocessed infrared bill image to acquire a recognition code obtained by recognition.
In an implementation manner of the embodiment of the present invention, optionally, performing OCR recognition on the preprocessed infrared bill image to obtain a recognition code obtained by the recognition, includes: extracting a verification code position and a numbering position matched with the bill to be stamped from the stamping configuration information according to the type of the bill to be stamped; intercepting areas corresponding to the positions of the verification codes and the serial numbers in the preprocessed infrared bill images; and performing OCR recognition in the intercepted area, acquiring the verification code and the serial number obtained by recognition, and taking the verification code and the serial number as the identification code.
In order to further improve the accuracy of OCR recognition, the type of the bill to be stamped can be recognized by using a template matching method. And extracting the stamping configuration information corresponding to the type of the bill to be stamped from the pre-stored bill configuration information. And extracting the verification code position and the serial number position matched with the bill to be stamped from the stamping configuration information. The verification code position and the number position may be position data expressed by an abscissa and an ordinate with a signature position as an origin in the print control management system.
For example, the validation code location may record the abscissa of the start location, the abscissa of the end location, the ordinate of the start location, and the ordinate of the end location of the validation code in the ticket with respect to the origin.
The intercepted area may be an area that is consistent with the position of the authentication code and the numbering position, or may be an area that is consistent with the position of the authentication code and the numbering position and is added with a certain error area. The accuracy of OCR recognition can be improved, and OCR recognition errors caused by interception offset can be avoided.
And 270, if the identification code is consistent with the expected code in the printing control management system, acquiring a white light bill image of the bill to be stamped through natural light shooting, and storing the white light bill image.
And step 280, acquiring stamping configuration information matched with at least one type of bill from the pre-stored bill configuration information.
And 290, extracting the sealing position and the sealing rotation angle matched with the bill to be sealed from the sealing configuration information according to the type of the bill to be sealed.
Step 2100, after controlling the signature to rotate the signature rotation angle along the reference angle, performing bill sealing on the bill to be sealed at the sealing position of the bill to be sealed.
Step 2110, acquiring a stamped white light image of the bill to be stamped through natural light shooting, and storing the stamped white light image of the bill to be stamped.
The method and the device have the advantages that the stamped bill image is obtained, so that the staff can conveniently compare, check and the like bills before and after stamping. In order to clearly record the seal condition of the bill, such as identifying the type of the seal, the sealed bill can be shot by using natural light, a sealed white light image is obtained, and the white light image is stored in the printing control management system.
According to the technical scheme of the embodiment, an infrared bill image of a bill to be stamped is obtained through infrared light photographing; intercepting at least one infrared ink anti-counterfeiting area in the infrared bill image; if the copying characteristic data are not recognized in each infrared ink anti-counterfeiting area, determining that the infrared bill image is a non-copying original bill; if the infrared bill image is determined to be the non-copy original bill, converting the infrared bill image into a gray image, and carrying out fuzzy processing on the gray image to remove noise; carrying out binarization processing on the gray level image after the fuzzy processing to obtain a preprocessed infrared bill image; performing OCR recognition on the preprocessed infrared bill image to obtain a recognition code obtained by recognition; if the identification code is consistent with the expected code in the printing control management system, acquiring a white light bill image of the bill to be stamped through natural light shooting, and storing the white light bill image; acquiring stamping configuration information matched with at least one type of bill from pre-stored bill configuration information; extracting a sealing position and a sealing rotation angle matched with the bill to be sealed from the sealing configuration information according to the type of the bill to be sealed; after controlling the signature to rotate along the reference angle by the signature rotation angle, performing bill stamping on the bill to be stamped at the stamping position of the bill to be stamped; the white light image after stamping of the bill to be stamped is obtained through natural light shooting, and the white light image after stamping of the bill to be stamped is stored, so that the problem of stamping of the bill in a printing control management system is solved, the recognition accuracy rate of the bill recognition code is high, the stamping accuracy rate is high, the stored bill is clear and easy to recognize, and the checking effect is convenient.
EXAMPLE III
Fig. 3a is a flowchart of a note stamping method provided in a third embodiment of the present invention, which is a further refinement of the above technical solution, and the technical solution in this embodiment may be combined with various alternatives in one or more embodiments. As shown in fig. 3a, the method specifically includes:
and 311, acquiring an infrared bill image of the bill to be stamped by infrared light photographing.
And step 312, intercepting at least one infrared ink anti-counterfeiting area in the infrared bill image.
313, judging whether the copying characteristic data can be identified in each infrared ink anti-counterfeiting area so as to determine whether the infrared bill image is a non-copying original bill or a copying original bill; if the infrared bill image is determined to be the non-copy original bill, executing step 314; if the infrared bill image is determined to be the original bill of copy, step 325 is executed.
And step 314, converting the infrared bill image into a gray image, and performing fuzzy processing on the gray image to remove noise.
And 315, carrying out binarization processing on the blurred gray level image to obtain a preprocessed infrared bill image.
And step 316, extracting the verification code position and the serial number position matched with the bill to be stamped from the stamping configuration information according to the type of the bill to be stamped.
And 317, intercepting areas corresponding to the positions of the verification codes and the serial numbers in the preprocessed infrared bill images.
And 318, performing OCR recognition in the intercepted area, acquiring the verification code and the serial number obtained by recognition, and taking the verification code and the serial number as the identification code.
319, judging whether the identification code is consistent with the expected code in the print control management system, if so, executing 320; if not, go to step 325.
And step 320, acquiring a white light bill image of the bill to be stamped through natural light shooting, and storing the white light bill image.
Step 320 can be executed after a preset duration after step 319, a certain response time can be given to the print control management system, and the accuracy and definition of the white light bill image can be improved. The preset duration may be 500 ms.
And 321, acquiring stamping configuration information matched with at least one type of bill from the prestored bill configuration information.
And 322, extracting a sealing position and a sealing rotation angle matched with the bill to be sealed from the sealing configuration information according to the type of the bill to be sealed.
And 323, controlling the signature to rotate along the reference angle by the signature rotation angle, and then sealing the bill to be sealed at the sealing position of the bill to be sealed.
And 324, acquiring a stamped white light image of the bill to be stamped through natural light shooting, storing the stamped white light image of the bill to be stamped, and ending.
Step 324 can be executed after step 323 for a preset time, for example, 500ms, and a certain response time can be given to the printing control management system, so that the obtained stamped white light image is an image of the stamped bill, and the accuracy and definition of the stamped white light image can be improved.
Fig. 3b is a schematic diagram of a white light image after stamping of a non-copy original bill according to a third embodiment of the present invention. As shown in fig. 3b, the ticket information as well as the signature information can be clearly learned.
And step 325, discarding the infrared bill image, and ending.
According to the technical scheme of the embodiment of the invention, the infrared bill image of the bill to be stamped is obtained by infrared light photographing; intercepting at least one infrared ink anti-counterfeiting area in the infrared bill image; judging whether the copying characteristic data can be identified in each infrared ink anti-counterfeiting area; if yes, determining the infrared bill image as a copied original bill; if not, determining that the infrared bill image is a non-copied original bill; discarding the original copying bill; converting an infrared bill image of a non-copied original bill into a gray image, and carrying out fuzzy processing on the gray image to remove noise; carrying out binarization processing on the gray level image after the fuzzy processing to obtain a preprocessed infrared bill image; performing OCR recognition on the preprocessed infrared bill image to obtain a recognition code obtained by recognition; judging whether the identification code is consistent with an expected code in the printing control management system or not; if not, discarding the infrared bill image; if yes, acquiring a white light bill image of the bill to be stamped through natural light shooting, and storing the white light bill image; acquiring stamping configuration information matched with at least one type of bill from pre-stored bill configuration information; extracting a sealing position and a sealing rotation angle matched with the bill to be sealed from the sealing configuration information according to the type of the bill to be sealed; after controlling the signature to rotate along the reference angle by the signature rotation angle, performing bill stamping on the bill to be stamped at the stamping position of the bill to be stamped; the white light image after stamping of the bill to be stamped is obtained through natural light shooting, and the white light image after stamping of the bill to be stamped is stored, so that the problem of stamping of the bill in a printing control management system is solved, the recognition accuracy rate of the bill recognition code is high, the stamping accuracy rate is high, the stored bill is clear and easy to recognize, and the checking effect is convenient.
Example 4
Fig. 4 is a schematic structural diagram of a note stamping device according to a fourth embodiment of the present invention. With reference to fig. 4, the apparatus comprises: an infrared bill image acquisition module 410, an identification code recognition module 420, a white light bill image acquisition module 430 and a bill stamping/storage module 440.
The infrared bill image acquisition module 410 is used for acquiring an infrared bill image of a bill to be stamped through infrared light photographing;
the identification code recognition module 420 is configured to pre-process the infrared bill image, perform optical character OCR recognition on the pre-processed infrared bill image, and acquire a recognition code obtained by recognition;
the white-light bill image acquisition module 430 is used for acquiring a white-light bill image of a bill to be stamped through natural light shooting if the identification code is determined to be consistent with the expected code in the printing control management system;
and the bill stamping/storage module 440 is used for stamping the bills of the bills to be stamped and storing the white bill images.
Optionally, the apparatus further includes:
the infrared ink anti-counterfeiting area intercepting module is used for intercepting at least one infrared ink anti-counterfeiting area in an infrared bill image after the infrared bill image of a bill to be stamped is acquired through infrared light photographing;
and the non-copying original bill determining module is used for determining that the infrared bill image is a non-copying original bill if the copying characteristic data is not identified in each infrared ink anti-counterfeiting area.
Optionally, the identification code recognition module 420 includes:
and the preprocessing unit is used for preprocessing the infrared bill image if the infrared bill image is determined to be the non-copy original bill.
Optionally, the apparatus further includes:
and the white light image storage module after stamping is used for acquiring the white light image after stamping of the bill to be stamped through natural light shooting after bill stamping is performed on the bill to be stamped, and storing the white light image after stamping of the bill to be stamped.
Optionally, the bill sealing/storing module 440 includes:
the seal configuration information acquisition unit is used for acquiring seal configuration information matched with at least one type of bill from pre-stored bill configuration information;
the position and angle extraction unit is used for extracting a sealing position and a sealing rotation angle matched with the bill to be sealed from the sealing configuration information according to the type of the bill to be sealed;
and the bill stamping unit is used for controlling the bill to be stamped to stamp the bill at the stamping position of the bill to be stamped after the signature rotates along the reference angle by the signature rotation angle.
Optionally, the identification code recognition module 420 includes:
the fuzzy processing unit is used for converting the infrared bill image into a gray image and carrying out fuzzy processing on the gray image so as to remove noise;
and the binarization processing unit is used for carrying out binarization processing on the gray level image after the fuzzy processing so as to obtain a preprocessed infrared bill image.
Optionally, the identification code recognition module 420 includes:
the position extraction unit is used for extracting the verification code position and the serial number position matched with the bill to be stamped from the stamping configuration information according to the type of the bill to be stamped;
the area intercepting unit is used for intercepting areas corresponding to the positions of the verification codes and the serial numbers in the preprocessed infrared bill images;
and the identification code recognition unit is used for performing OCR recognition in the intercepted area, acquiring the verification code and the serial number obtained by recognition, and taking the verification code and the serial number as the identification code.
Optionally, the apparatus further includes:
the infrared bill image discarding module is used for determining that the infrared bill image is an original copied bill and discarding the infrared bill image if copying characteristic data is identified in any infrared ink anti-counterfeiting area after at least one infrared ink anti-counterfeiting area is intercepted in the infrared bill image;
optionally, the infrared bill image discarding module is further configured to discard the infrared bill image if it is determined that the identification code is inconsistent with the expected code in the print control management system after performing OCR recognition on the preprocessed infrared bill image and acquiring the identification code obtained by the recognition.
The bill stamping device provided by the embodiment of the invention can execute the bill stamping method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a print control apparatus according to a fifth embodiment of the present invention, and as shown in fig. 5, the apparatus includes:
one or more processors 510, one processor 510 being illustrated in FIG. 5;
a memory 520;
the apparatus may further include: an input device 530 and an output device 540.
The processor 510, the memory 520, the input device 530 and the output device 540 of the apparatus may be connected by a bus or other means, and fig. 5 illustrates the connection by a bus as an example.
The memory 520, as a non-transitory computer-readable storage medium, may be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to a bill stamping method in the embodiment of the present invention (for example, the infrared bill image acquiring module 410, the identification code identifying module 420, the white bill image acquiring module 430, and the bill stamping/storing module 440 shown in fig. 4). The processor 510 executes various functional applications and data processing of the computer device by running software programs, instructions and modules stored in the memory 520, namely, implementing a bill stamping method of the above method embodiment, that is:
acquiring an infrared bill image of a bill to be stamped by infrared light photographing;
preprocessing the infrared bill image, and performing optical character OCR (optical character recognition) on the preprocessed infrared bill image to acquire a recognition code obtained by recognition;
if the identification code is determined to be consistent with the expected code in the printing control management system, acquiring a white-light bill image of the bill to be stamped through natural light shooting;
and stamping the bills to be stamped and storing the white light bill images.
The memory 520 may 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; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 520 may optionally include memory located remotely from processor 510, which may be connected to a terminal device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the computer apparatus. The output device 540 may include a display device such as a display screen.
EXAMPLE six
The sixth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for stamping a bill, according to the sixth embodiment of the present invention:
acquiring an infrared bill image of a bill to be stamped by infrared light photographing;
preprocessing the infrared bill image, and performing optical character OCR (optical character recognition) on the preprocessed infrared bill image to acquire a recognition code obtained by recognition;
if the identification code is determined to be consistent with the expected code in the printing control management system, acquiring a white-light bill image of the bill to be stamped through natural light shooting;
and stamping the bills to be stamped and storing the white light bill images.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (8)

1. A bill stamping method is characterized by comprising the following steps:
acquiring an infrared bill image of a bill to be stamped by infrared light photographing;
intercepting at least one infrared ink anti-counterfeiting area in the infrared bill image;
if the copying characteristic data are not recognized in each infrared ink anti-counterfeiting area, determining that the infrared bill image is a non-copying original bill;
preprocessing the infrared bill image, and performing optical character OCR (optical character recognition) on the preprocessed infrared bill image to acquire a recognition code obtained by recognition;
wherein, the bill image is preprocessed, which comprises the following steps:
if the infrared bill image is determined to be a non-copied original bill, preprocessing the infrared bill image;
if the identification code is determined to be consistent with the expected code in the printing control management system, acquiring a white-light bill image of the bill to be stamped through natural light shooting after 500 ms;
bill stamping is carried out on the bill to be stamped, and the white light bill image is stored;
the method comprises the following steps of performing OCR recognition on the preprocessed infrared bill image to obtain a recognition code obtained by recognition, wherein the method comprises the following steps:
acquiring stamping configuration information matched with at least one type of bill from pre-stored bill configuration information;
extracting a verification code position and a serial number position matched with the bill to be stamped from the stamping configuration information according to the type of the bill to be stamped;
intercepting areas corresponding to the verification code positions and the number positions in the preprocessed infrared bill images;
and performing OCR recognition in the intercepted area, acquiring a verification code and a serial number obtained by recognition, and taking the verification code and the serial number as the identification code.
2. The method of claim 1, after bill stamping is performed on the bill to be stamped, further comprising:
and acquiring a stamped white light image of the bill to be stamped through natural light shooting, and storing the stamped white light image of the bill to be stamped.
3. The method of claim 1, wherein the note stamping of the note to be stamped comprises:
extracting a sealing position and a sealing rotation angle matched with the bill to be sealed from the sealing configuration information according to the type of the bill to be sealed;
and after the signature rotates along the reference angle by the signature rotation angle, performing bill sealing on the bill to be sealed at the sealing position of the bill to be sealed.
4. The method of claim 1, wherein pre-processing the infrared document image comprises:
converting the infrared bill image into a gray image, and carrying out fuzzy processing on the gray image to remove noise;
and carrying out binarization processing on the gray level image after the fuzzy processing to obtain the infrared bill image after the preprocessing.
5. The method of claim 1, further comprising, after intercepting at least one infrared ink security area in the infrared ticket image:
if the copying characteristic data is identified in any infrared ink anti-counterfeiting area, determining the infrared bill image as a copying original bill, and discarding the infrared bill image;
after OCR recognition is carried out on the preprocessed infrared bill image and the recognition code obtained by recognition is obtained, the method further comprises the following steps:
and if the identification code is determined to be inconsistent with the expected code in the printing control management system, discarding the infrared bill image.
6. A bill sealing device, comprising:
the infrared bill image acquisition module is used for acquiring an infrared bill image of a bill to be stamped through infrared light photographing;
the infrared ink anti-counterfeiting area intercepting module is used for intercepting at least one infrared ink anti-counterfeiting area in the infrared bill image;
the non-copying original bill determining module is used for determining the infrared bill image as a non-copying original bill if the copying characteristic data is not identified in each infrared ink anti-counterfeiting area;
the identification code recognition module is used for preprocessing the infrared bill image, performing optical character OCR recognition on the preprocessed infrared bill image and acquiring a recognition code obtained by recognition;
wherein, the identification code identification module includes:
the preprocessing unit is used for preprocessing the infrared bill image if the infrared bill image is determined to be a non-copied original bill;
the white-light bill image acquisition module is used for acquiring a white-light bill image of the bill to be stamped through natural light shooting after 500ms if the identification code is determined to be consistent with the expected code in the printing control management system;
the bill stamping/storage module is used for stamping the bills to be stamped and storing the white-light bill images;
wherein, the identification code identification module includes:
the seal configuration information acquisition unit is used for acquiring seal configuration information matched with at least one type of bill from pre-stored bill configuration information;
the position extraction unit is used for extracting the verification code position and the serial number position matched with the bill to be stamped from the stamping configuration information according to the type of the bill to be stamped;
the area intercepting unit is used for intercepting areas corresponding to the verification code positions and the number positions in the preprocessed infrared bill images;
and the identification code identification unit is used for performing OCR identification in the intercepted area, acquiring the verification code and the serial number obtained by identification, and taking the verification code and the serial number as the identification code.
7. A print control apparatus, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of seal stamping a document as claimed in any one of claims 1 to 5.
8. A computer-readable storage medium, on which a computer program is stored, which program, when executed by a processor, carries out a method of stamping a document as claimed in any one of claims 1 to 5.
CN202010484238.1A 2020-06-01 2020-06-01 Bill stamping method, device, equipment and storage medium Active CN111683202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010484238.1A CN111683202B (en) 2020-06-01 2020-06-01 Bill stamping method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010484238.1A CN111683202B (en) 2020-06-01 2020-06-01 Bill stamping method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111683202A CN111683202A (en) 2020-09-18
CN111683202B true CN111683202B (en) 2021-12-21

Family

ID=72434628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010484238.1A Active CN111683202B (en) 2020-06-01 2020-06-01 Bill stamping method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111683202B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113283231B (en) * 2021-06-26 2023-02-03 厦门海迈科技股份有限公司 Method for acquiring signature bit, setting system, signature system and storage medium
CN115366553A (en) * 2022-09-06 2022-11-22 中国建设银行股份有限公司 File sealing method and device, seal control machine, medium and product

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1862605A (en) * 2005-05-11 2006-11-15 深圳鼎识科技有限公司 Real-forge discriminating method for credentials, certificate, bill, etc. document of title
CN102254363A (en) * 2010-05-31 2011-11-23 北京中科金财科技股份有限公司 Spectrographic analysis-based bill anti-counterfeiting self-service telling method and device
CN104916032A (en) * 2015-05-28 2015-09-16 浪潮软件集团有限公司 Bill processing equipment based on bank self-service
CN105500941A (en) * 2015-12-18 2016-04-20 杭州日美开开电子科技有限公司 Intelligent seal check controller with seal locking function
CN108995412A (en) * 2018-10-08 2018-12-14 北京惠朗时代科技有限公司 A kind of automatic sealing method, apparatus, print control instrument and storage medium
CN110211280A (en) * 2019-07-01 2019-09-06 中国工商银行股份有限公司 Bill examination, printing equipment, system, method, equipment and storage medium
CN110598699A (en) * 2019-09-16 2019-12-20 华中科技大学 Anti-counterfeiting bill authenticity distinguishing system and method based on multispectral image

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201892963U (en) * 2010-12-17 2011-07-06 天津环球磁卡股份有限公司 Hidden anti-counterfeiting magnetic strip card
CN103965679A (en) * 2013-02-05 2014-08-06 上海盛业印刷有限公司 Multiband infrared absorption anti-forgery ink and application thereof
CN109766778A (en) * 2018-12-19 2019-05-17 平安科技(深圳)有限公司 Invoice information input method, device, equipment and storage medium based on OCR technique
CN110218485A (en) * 2019-07-25 2019-09-10 李兴宇 A kind of infrared absorption anti-forgery ink
CN110781877B (en) * 2019-10-28 2024-01-23 京东方科技集团股份有限公司 Image recognition method, device and storage medium
CN111178219A (en) * 2019-12-24 2020-05-19 泰康保险集团股份有限公司 Bill identification management method and device, storage medium and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1862605A (en) * 2005-05-11 2006-11-15 深圳鼎识科技有限公司 Real-forge discriminating method for credentials, certificate, bill, etc. document of title
CN102254363A (en) * 2010-05-31 2011-11-23 北京中科金财科技股份有限公司 Spectrographic analysis-based bill anti-counterfeiting self-service telling method and device
CN104916032A (en) * 2015-05-28 2015-09-16 浪潮软件集团有限公司 Bill processing equipment based on bank self-service
CN105500941A (en) * 2015-12-18 2016-04-20 杭州日美开开电子科技有限公司 Intelligent seal check controller with seal locking function
CN108995412A (en) * 2018-10-08 2018-12-14 北京惠朗时代科技有限公司 A kind of automatic sealing method, apparatus, print control instrument and storage medium
CN110211280A (en) * 2019-07-01 2019-09-06 中国工商银行股份有限公司 Bill examination, printing equipment, system, method, equipment and storage medium
CN110598699A (en) * 2019-09-16 2019-12-20 华中科技大学 Anti-counterfeiting bill authenticity distinguishing system and method based on multispectral image

Also Published As

Publication number Publication date
CN111683202A (en) 2020-09-18

Similar Documents

Publication Publication Date Title
US11749007B1 (en) Systems and methods of check detection
US11030752B1 (en) System, computing device, and method for document detection
US20210152707A1 (en) Apparatus and methods for computerized authentication of electronic documents
CN110569769A (en) image recognition method and device, computer equipment and storage medium
US8326041B2 (en) Machine character recognition verification
US20120226600A1 (en) Computerized integrated authentication/document bearer verification system and methods useful in conjunction therewith
CN111683202B (en) Bill stamping method, device, equipment and storage medium
CN110516672A (en) Card card information identifying method, device and terminal
CN103488923B (en) A kind of electric endorsement method, Apparatus and system
CN105046553A (en) Cloud intelligent invoice recognition inspection system and method based on mobile phone
CN111274957A (en) Webpage verification code identification method, device, terminal and computer storage medium
CN112528998B (en) Certificate image processing method and device, electronic equipment and readable storage medium
US11721117B1 (en) Systems and methods of check processing with background removal
CN111931783A (en) Training sample generation method, machine-readable code identification method and device
CN111462388A (en) Bill inspection method and device, terminal equipment and storage medium
CN109492532A (en) A kind of methods, devices and systems of image AI identification
CN111582115A (en) Financial bill processing method, device and equipment and readable storage medium
CN116029777A (en) Anti-counterfeiting bill generation method, device, equipment and medium
CN107016320B (en) Method for improving image security level identification accuracy rate based on Chinese lexicon
Berchtold et al. Smartphone-supported integrity verification of printed documents
CN111046860A (en) Intelligent claim settlement system based on mobile carrier
US20240217256A1 (en) Evaluating Three-Dimensional Security Features on Document Images
US20240221413A1 (en) Generating a Document Assembly Object and Derived Checks
US11900755B1 (en) System, computing device, and method for document detection and deposit processing
US20240217257A1 (en) Evaluating Perforations on Document Images

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