CN113096301B - Bill inspection method, bill inspection device, electronic device, and storage medium - Google Patents

Bill inspection method, bill inspection device, electronic device, and storage medium Download PDF

Info

Publication number
CN113096301B
CN113096301B CN201911319974.5A CN201911319974A CN113096301B CN 113096301 B CN113096301 B CN 113096301B CN 201911319974 A CN201911319974 A CN 201911319974A CN 113096301 B CN113096301 B CN 113096301B
Authority
CN
China
Prior art keywords
bill
information
handwriting
inspected
pixel value
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
CN201911319974.5A
Other languages
Chinese (zh)
Other versions
CN113096301A (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.)
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
Original Assignee
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
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 Shenzhen Yihua Computer Co Ltd, Shenzhen Yihua Time Technology Co Ltd, Shenzhen Yihua Financial Intelligent Research Institute filed Critical Shenzhen Yihua Computer Co Ltd
Priority to CN201911319974.5A priority Critical patent/CN113096301B/en
Publication of CN113096301A publication Critical patent/CN113096301A/en
Application granted granted Critical
Publication of CN113096301B publication Critical patent/CN113096301B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D7/00Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
    • G07D7/06Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency using wave or particle radiation
    • G07D7/12Visible light, infrared or ultraviolet radiation

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Inspection Of Paper Currency And Valuable Securities (AREA)

Abstract

The invention provides a bill inspection method, a bill inspection device, electronic equipment and a computer-readable storage medium, and relates to the technical field of bill inspection. The method comprises the steps of obtaining a visible light image and an infrared reflection image of a bill to be inspected, determining reference characteristic information of the bill to be inspected according to reference handwriting information in the visible light image and background information in the infrared reflection image, then respectively obtaining bill elements of the visible light image and the infrared reflection image, and determining element characteristic information corresponding to the bill elements.

Description

Bill inspection method and device, electronic device and storage medium
Technical Field
The present invention relates to the field of bill inspection technologies, and in particular, to a bill inspection method and apparatus, an electronic device, and a computer-readable storage medium.
Background
The bill is a valuable paper which is issued by a drawer according to law and is unconditionally paid with a certain amount to a payee or a ticket holder by the drawer or other persons, namely, some valuable papers which can replace cash circulation. The bill element area refers to a blank area to be filled in the bill, and the bank has various requirements on detection of the bill elements. The filled-in ticket elements can be seen clearly.
In practice, there is a content of elements that is filled out using an erasable pen, and such a bill is not in compliance with the requirements and specifications of the bank. Because the handwriting filled by the erasable pen has thermal erasability, the handwriting can be erased by a common eraser or a special pen within a certain time, so that the filling content can be repeatedly modified, and further, the property loss is easily brought to banks.
At present, to the inspection of bill, usually through artifical inspection, or inspect through the bill machine, however, inspect through the manual work on the one hand, not only consume the manpower, the checking efficiency is low, and when the artifical factor handwriting of utilizing the eraser to fill in is examined, influence the check point of bill itself easily, bring certain harm for the bill, on the other hand, the bill machine only detects whether the bill factor fills in, and can't further detect whether the factor fills in the handwriting and comply, the inspection effect of bill is relatively poor, bring loss of property for the bank easily.
Disclosure of Invention
The embodiment of the invention provides a bill inspection method, which aims to solve the problems that in the prior art, the bill inspection effect is poor, the efficiency is low, and the bill is easy to damage.
Correspondingly, the embodiment of the invention also provides a bill inspection device for ensuring the realization and application of the method.
In order to solve the above problems, the embodiment of the invention discloses a bill inspection method, which comprises the following steps:
acquiring a visible light image and an infrared reflection image of a bill to be inspected, wherein the visible light image comprises reference handwriting information, and the infrared reflection image comprises background information corresponding to the reference handwriting information;
determining the reference characteristic information of the bill to be inspected according to the reference handwriting information and the background information;
respectively acquiring bill element information of the visible light image and the infrared reflection image, and determining element characteristic information corresponding to the bill element information;
and matching the reference characteristic information with the element characteristic information to determine the inspection result of the bill to be inspected.
Optionally, the determining, according to the reference handwriting information and the background information, reference feature information of the to-be-inspected bill includes:
determining a handwriting pixel value of the reference handwriting information and a background pixel value corresponding to the background information;
and calculating the reference characteristic information of the bill to be inspected according to the handwriting pixel value and the background pixel value.
Optionally, the to-be-inspected bill includes a reference area, the reference area includes the handwriting information and the background information, and the calculating, according to the handwriting pixel value and the background pixel value, reference characteristic information of the to-be-inspected bill includes:
acquiring a region pixel value of the reference region;
calculating a pixel difference value aiming at the bill to be inspected by adopting the handwriting pixel value and the background pixel value;
and generating a reference value for representing the reference characteristic information of the ticket to be checked by adopting the area pixel value and the pixel difference value.
Optionally, the matching the reference feature information with the factor feature information to determine the inspection result for the to-be-inspected bill includes:
and when the element characteristic value of each bill element information is smaller than the reference value, the bill to be inspected is a true bill.
Optionally, before determining the reference characteristic information of the to-be-inspected bill according to the reference handwriting information and the background information, the method further includes:
respectively preprocessing the initial visible light image and the initial infrared reflection image to obtain a target visible light image and a target infrared reflection image;
wherein the preprocessing comprises at least one of gray processing, contrast adjustment and binarization processing.
The embodiment of the invention also discloses a bill checking device, which comprises:
the image acquisition module is used for acquiring a visible light image and an infrared reflection image of a bill to be inspected, wherein the visible light image comprises reference handwriting information, and the infrared reflection image comprises background information corresponding to the reference handwriting information;
the reference characteristic determining module is used for determining reference characteristic information of the bill to be inspected according to the reference handwriting information and the background information;
the element characteristic determining module is used for respectively acquiring bill element information of the visible light image and the infrared reflection image and determining element characteristic information corresponding to the bill element information;
and the inspection result determining module is used for matching the reference characteristic information with the element characteristic information and determining an inspection result aiming at the bill to be inspected.
Optionally, the reference feature determination module includes:
the pixel value determining submodule is used for determining handwriting pixel values of the reference handwriting information and background pixel values corresponding to the background information;
and the characteristic information calculation module is used for calculating the reference characteristic information of the bill to be inspected according to the handwriting pixel value and the background pixel value.
Optionally, the to-be-inspected ticket includes a reference area, the reference area includes the handwriting information and the background information, and the characteristic information calculation module is specifically configured to:
acquiring a region pixel value of the reference region;
calculating a pixel difference value aiming at the bill to be inspected by adopting the handwriting pixel value and the background pixel value;
and generating a reference value for representing the reference characteristic information of the ticket to be checked by adopting the pixel value of the area and the pixel difference value.
Optionally, the element feature information is an element feature value, and the inspection result determining module is specifically configured to:
and when the element characteristic value of each piece of bill element information is smaller than the reference value, the bill to be inspected is a true bill.
Optionally, the apparatus further comprises:
the image preprocessing module is used for respectively preprocessing the initial visible light image and the initial infrared reflection image to obtain a target visible light image and a target infrared reflection image;
the preprocessing comprises at least one of gray scale processing, contrast adjustment and binarization processing.
The embodiment of the invention also discloses electronic equipment which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory finish mutual communication through the communication bus;
the memory is used for storing a computer program;
the processor is used for realizing the steps of the bill checking method when executing the program stored in the memory.
The embodiment of the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the method for checking the bill is realized.
The invention has the following advantages:
according to the method, two different images can be obtained firstly, so that the reference characteristic information of the bill to be inspected can be determined according to the difference between the different images, then the bill characteristic information filled by a bill holder is inspected according to the reference characteristic information, the counterfeit identification of the bill is realized, the bill element is inspected through the reference information of the bill, the accuracy of bill inspection is improved, the bill cannot be damaged, and the integrity of the bill is ensured.
Drawings
FIG. 1 is a schematic view of a ticket in an embodiment of the present invention;
FIG. 2 is a flow chart of the steps of a first embodiment of a method of inspecting a document of the present invention;
FIG. 3 is a flowchart of the steps of a second embodiment of a method of inspecting a document of the present invention;
FIG. 4 is a partial schematic view of an infrared reflectance image in an embodiment of the invention;
FIG. 5 is a schematic illustration of a portion of an embodiment of the invention after image contrast enhancement;
FIG. 6 is a partial schematic diagram of an image after binarization in the embodiment of the invention;
FIG. 7 is a schematic illustration of a visible light image in an embodiment of the invention;
FIG. 8 is a schematic representation of an infrared reflectance image in an embodiment of the invention;
FIG. 9 is a schematic diagram of a comparison between an ink script and an erasable pen script according to an embodiment of the present invention;
FIG. 10 is a block diagram of the structure of an embodiment of the bill validator of the invention;
FIG. 11 is a block diagram of an electronic device of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The bills may include various securities and certificates, such as stocks, corporate bonds, invoices, bills of lading, etc., which may include securities issued by a drawer, such as drafts, bankbook tickets, checks, etc., promised by oneself or entrusted payers to unconditionally pay a certain amount to a payee or drawer at the time of ticket-viewing or on a designated date.
The bill element area refers to a blank area to be filled in a bill, and as shown in fig. 1, a schematic diagram of a bill in an embodiment of the present invention is shown, and a user can fill in the bill element area.
The handwriting ink for filling the bill elements can be divided into 3 types of handwriting ink according to the difference of the handwriting ink under visible light and infrared light: carbon inks, oil pen inks, and erasable pen inks, wherein the first two are non-erasable. The erasable pen writing can be repeatedly modified and counterfeited, so that the bank refuses the bill filled by the erasable pen writing.
For carbon handwriting, ticket element information filled in under visible light is clear and visible, and the same handwriting is available under infrared light; for the ink pen ink, the ticket element information filled in under visible light is clear and visible, and under infrared light, the ticket element information is a light dark trace; for erasable pen ink, the ticketing information filled in under visible light is clearly visible, and under infrared light, the light bright color trace or the trace is basically zero. Therefore, for the handwriting information filled with the ink of the oil pen and the ink of the erasable pen, which is difficult to distinguish under the infrared light, it needs to be effectively checked.
The method is characterized in that ink traces are printed in the bill production process, and the visible light image of the ink is visible (namely visible to human eyes) and the invisible visible image of the ink is called as one-time printing ink, such as self-contained handwriting in the bill, and such words as 'Chinese XX bank' and 'transfer check'; after the complete bill is produced, the ink traces printed by manual handwriting, printer or stamp are secondary printing ink, such as the bill element information filled by carbon handwriting, oil pen handwriting, erasable pen handwriting and the like.
When a bank worker identifies a bill, the bank worker usually erases bill element information filled in the bill manually, and if handwriting can be erased, the bill is a false bill; if the filled handwriting can not be erased, the bill is a true bill. Because the bill itself has the anti-fake point, the bill is identified through the manual erasing mode, not only easily cause the damage to the bill, and inspection efficiency is low moreover. Therefore, one of the core ideas of the embodiment of the invention is that the handwriting performance is different under visible light and infrared light, and the element information filled in the bill is checked by using the self reference information of the bill, so that the checking result of the bill to be checked is determined, the checking accuracy of the bill is improved, the bill is not damaged, and the integrity of the bill is ensured.
Referring to fig. 2, a flowchart of steps of a first embodiment of a method for checking a bill of the present invention is shown, which may specifically include the following steps:
step 201, acquiring a visible light image and an infrared reflection image of a bill to be inspected, wherein the visible light image comprises reference handwriting information, and the infrared reflection image comprises background information corresponding to the reference handwriting information;
for one bill, the one-time printing ink printed in the bill production process can be included, the second-time printing ink filled in the bill element area by a user can be included, and the one-time printing ink in the bill can be used as the reference handwriting information, so that the handwriting ink of the second-time printing ink is checked according to the reference handwriting information, and the counterfeit identification of the bill is realized. In addition, the bill also includes background information on the bill, such as background shading in the bill, in addition to the one-time printing ink printed in the bill.
In an example of the present invention, assuming that the bill is a transfer check issued by agricultural bank of china, the typeface of the check, such as agricultural bank of china, may be used as the reference handwriting information. For the reference handwriting information of the one-time printing pen ink, the reference handwriting information is clearly visible in a visible light image and is not visible in an infrared light image. For background shading, it appears colored in visible light images and dark gray in infrared light images.
Step 202, determining reference characteristic information of the bill to be inspected according to the reference handwriting information and the background information;
in specific implementation, an area containing the reference handwriting information can be used as a reference area, so that the reference characteristic information of the bill to be inspected is determined by counting the pixel value of the reference handwriting information in the reference area and the pixel value of the background shading, and the reference characteristic information is used as a basis for judging the handwriting filled in the bill element area.
Step 203, respectively acquiring bill element information of the visible light image and the infrared reflection image, and determining element characteristic information corresponding to the bill element information;
the bill can include a plurality of bill element areas, so that the ticket holder can use the bill only by filling corresponding information in each bill element area.
In a particular implementation, the ticket element area may include a plurality of ticket element areas such as date of drawing the ticket, payee, amount, and line number. In the process of checking the bill, the bill element information corresponding to each bill element area can be respectively acquired, and then the element characteristic information corresponding to the bill element information is determined according to different expressions of the bill element information under visible light and infrared light.
And 204, matching the reference characteristic information with the element characteristic information, and determining an inspection result aiming at the bill to be inspected.
In specific implementation, different bill element areas can correspond to different reference handwriting information, for example, a ticket drawing date can correspond to characters such as a "ticket drawing date", a "year", a "month", and a "day", and a payee can correspond to a "payee" character, and the like.
When one piece of bill element information is checked, the corresponding reference handwriting information and the background information corresponding to the reference handwriting information can be respectively obtained, and then the reference characteristic information is determined according to different performances of the reference handwriting information and the background shading under visible light and infrared light. And then, determining element characteristic information according to different expressions of the bill element information under visible light and infrared light, matching the reference characteristic information with the element characteristic information, and checking the bill element information respectively to realize counterfeit identification of the bill.
In one embodiment of the invention, two different images can be obtained firstly so as to determine the reference characteristic information of the bill to be inspected according to the difference between different images, and then the bill characteristic information filled by a ticket holder is inspected according to the reference characteristic information, so that the counterfeit identification of the bill is realized, the bill element is inspected through the reference information of the bill, the accuracy of the bill inspection is improved, the bill cannot be damaged, and the integrity of the bill is ensured.
Referring to fig. 3, a flowchart illustrating steps of a second embodiment of the method for checking a bill of the present invention is shown, which may specifically include the following steps:
step 301, acquiring an initial visible light image and an initial infrared reflection image of a bill to be inspected;
in the specific implementation, when a bill needs to be authenticated, the initial visible light image and the initial infrared light image can be obtained, so that the authenticity of the bill can be authenticated according to different performances of the handwriting ink under visible light and infrared light.
Step 302, respectively preprocessing an initial visible light image and an initial infrared reflection image to obtain a target visible light image and a target infrared reflection image, wherein the target visible light image comprises reference handwriting information, and the target infrared reflection image comprises background information corresponding to the reference handwriting information;
in an embodiment of the invention, after the initial visible light image and the initial infrared radiation image of the bill are obtained, the initial visible light image and the initial infrared radiation image can be respectively preprocessed, so that the reference handwriting information and the background information in the image can better embody the characteristics of the reference handwriting information and the background information. The preprocessing comprises at least one of gray scale processing, contrast adjustment and binarization processing.
In specific implementation, gray processing can be performed on the image firstly, and then contrast enhancement processing can be performed on the image after the gray processing, so that background information of the bill in the infrared reflection image can be more highlighted, such as background shading, and the accuracy of the reference characteristic information is improved. After contrast enhancement, the image may be binarized so that the image appears as "white paper and black characters".
In an example, as shown in fig. 4, a partial schematic diagram of an infrared reflection image in an embodiment of the present invention is shown, a background shading of a bill in an initial infrared reflection image is light gray, as shown in fig. 5, a partial schematic diagram of an image after contrast enhancement in an embodiment of the present invention is shown, for an infrared reflection image, after contrast enhancement, the background shading is more obvious, further, as shown in fig. 6, a partial schematic diagram of an image after binarization in an embodiment of the present invention is shown, after binarization processing is performed on the image, only reference handwriting information remains in a visible light image, only a background shading remains in an infrared reflection image, and the image presents "white paper black characters", thereby facilitating determination of a pixel value.
Step 303, determining reference characteristic information of the bill to be inspected according to the reference handwriting information and the background information;
in one embodiment of the invention, the reference characteristic information of the bill to be inspected can be calculated by determining the handwriting pixel value of the reference handwriting information and the background pixel value corresponding to the background information and then according to the handwriting pixel value and the background pixel value.
In a specific implementation, after the gray processing, the contrast enhancement processing and the binarization processing are performed on the image, the image presents 'white paper and black characters'. Then, the handwriting pixel values corresponding to the reference handwriting information and the background pixel values corresponding to the background shading can be respectively counted, and then the reference characteristic information of the bill to be inspected is calculated by adopting the handwriting pixel values and the background pixel values.
In an example, an area pixel value of the reference area may be obtained first, then a pixel difference value for the to-be-inspected bill is calculated by using the handwriting pixel value and the background pixel value, and then a reference value for representing reference characteristic information of the to-be-inspected bill is generated by using the area pixel value and the pixel difference value.
Specifically, different reference areas can be selected for different bill element areas, and the reference area can include the reference handwriting information (one-time printing ink) of the bill itself and the background shading. As shown in fig. 5 and 6, an area including the character "chinese agricultural bank" in the visible light image and the infrared reflection image may be selected as a reference area, and then the gray processing, the contrast enhancement processing, and the binarization processing are performed on the reference area, so that the character "chinese agricultural bank" remains in the reference area in the visible light image, and the background shading remains in the reference area in the infrared reflection image. And then respectively counting handwriting pixel values corresponding to the Chinese agricultural bank character pattern and background pixel values corresponding to the background shading, and then subtracting the handwriting pixel values and the background shading to obtain a pixel difference value. The size of the reference area in the visible light image is consistent with that of the infrared reflection image, namely the area pixel value corresponding to the reference area is a fixed value, the ratio of the pixel difference value to the area pixel value is calculated, so that the reference value used for representing the reference characteristic information of the ticket to be inspected is generated, the pixel difference value is converted into the percentage difference value, the difference between the visible light image and the infrared reflection image is enabled to be more universal, and the ticket inspection accuracy is improved.
Step 304, respectively acquiring bill element information of the visible light image and the infrared reflection image, and determining element characteristic information corresponding to the bill element information;
in the process of checking the bills, the bill element information corresponding to each bill element area can be respectively acquired, and then the element characteristic information corresponding to the bill element information is determined according to different expressions of the bill element information under visible light and infrared light. Specifically, the same image processing is performed on the document element region while performing the grayscale processing, the contrast enhancement and the binarization processing on the reference region, so that the same processing is maintained and the consistency of the inspection is ensured.
In an example, as shown in fig. 7, a schematic diagram of a visible light image in an embodiment of the present invention is shown, where after a ticket filled with different handwriting inks is subjected to image processing, and after gray processing, contrast enhancement, and binarization processing, only corresponding handwriting information (ticket element information) remains in the visible light image. As shown in fig. 8, which illustrates a schematic diagram of an infrared reflection image in an embodiment of the present invention, after image processing is performed on a bill filled with different writing inks, in the infrared reflection image, writing information filled with a writing ink of an oil pen is displayed in black, and writing information filled with an ink of an erasable pen is displayed in white, and meanwhile, the two images include messy and more background noise. As shown in fig. 9, a schematic diagram of comparing an ink handwriting with an erasable handwriting in the embodiment of the present invention is shown, and after a binarized image is obtained, a bill feature value of bill element information may be calculated according to a calculation manner of a reference value, which is not described herein again.
And 305, matching the reference characteristic information with the element characteristic information to determine an inspection result for the to-be-inspected bill.
In a specific implementation, after the element feature value corresponding to the bill element information is obtained, the element feature value may be compared with a reference value, and when all the element feature values of the bill element information are smaller than the reference value, the bill to be inspected is a true bill. As shown in table 1:
erasable pen Oil pen
Reference value (%) 38.82 34.34
Element characteristic value (%) 75.68 8.2
It can be known from the above table that the element characteristic value of the erasable pen handwriting is obviously higher than the reference value, and the element characteristic value of the oil pen handwriting is obviously smaller than the reference value, so that after binarization is performed on the bill element information under infrared light and visible light, the corresponding pixel difference value is calculated, and finally the reference value corresponding to the reference area is used as the judgment reference, so that accurate detection and judgment on the oil pen handwriting and the erasable pen handwriting are realized, the universality of various note detections is enhanced, the accuracy of bill inspection is improved, the bill cannot be damaged, and the integrity of the bill is ensured.
And in order to guarantee the authenticity of the bill, the bill element information can be detected, and the bill to be inspected can be determined to be a real bill only when the element characteristic information corresponding to all the bill element information meets the condition, so that illegal personnel are prevented from adopting mixed handwriting to counterfeit the bill, and the bill inspection accuracy is improved.
In one embodiment of the invention, two different images can be obtained firstly so as to determine the reference characteristic information of the bill to be inspected according to the difference between different images, and then the bill characteristic information filled by a ticket holder is inspected according to the reference characteristic information, so that the counterfeit identification of the bill is realized, the bill element is inspected through the reference information of the bill, the accuracy of the bill inspection is improved, the bill cannot be damaged, and the integrity of the bill is ensured.
It should be noted that for simplicity of description, the method embodiments are shown as a series of combinations of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 10, a block diagram of a structure of an embodiment of the device for checking a bill of the present invention is shown, which may specifically include the following modules:
the image acquisition module 1001 is used for acquiring a visible light image and an infrared reflection image of a bill to be inspected, wherein the visible light image comprises reference handwriting information, and the infrared reflection image comprises background information corresponding to the reference handwriting information;
a reference characteristic determining module 1002, configured to determine reference characteristic information of the to-be-inspected bill according to the reference handwriting information and the background information;
an element characteristic determining module 1003, configured to obtain bill element information of the visible light image and the infrared reflection image, respectively, and determine element characteristic information corresponding to the bill element information;
and the inspection result determining module 1004 is used for matching the reference characteristic information with the element characteristic information to determine an inspection result for the bill to be inspected.
In one embodiment of the present invention, the baseline characteristic determination module 1002 comprises:
the pixel value determining submodule is used for determining the handwriting pixel value of the reference handwriting information and the background pixel value corresponding to the background information;
and the characteristic information calculation module is used for calculating the reference characteristic information of the bill to be inspected according to the handwriting pixel value and the background pixel value.
In an embodiment of the present invention, the ticket to be checked includes a reference area, the reference area includes the handwriting information and the background information, and the feature information calculating module is specifically configured to:
acquiring a region pixel value of the reference region;
calculating a pixel difference value aiming at the bill to be inspected by adopting the handwriting pixel value and the background pixel value;
and generating a reference value for representing the reference characteristic information of the ticket to be checked by adopting the pixel value of the area and the pixel difference value.
In an optional embodiment of the present invention, the element feature information is an element feature value, and the inspection result determining module 1004 is specifically configured to:
and when the element characteristic value of each piece of bill element information is smaller than the reference value, the bill to be inspected is a true bill.
In one embodiment of the invention, the apparatus further comprises:
the image preprocessing module is used for respectively preprocessing the initial visible light image and the initial infrared reflection image to obtain a target visible light image and a target infrared reflection image;
the preprocessing comprises at least one of gray scale processing, contrast adjustment and binarization processing.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
In addition, an electronic device is further provided in an embodiment of the present invention, as shown in fig. 11, and includes a processor 1101, a communication interface 1102, a memory 1103 and a communication bus 1104, where the processor 1101, the communication interface 1102 and the memory 1103 complete communication with each other through the communication bus 1104,
a memory 1103 for storing a computer program;
the processor 1101 is configured to implement the following steps when executing the program stored in the memory 1103:
acquiring a visible light image and an infrared reflection image of a bill to be inspected, wherein the visible light image comprises reference handwriting information, and the infrared reflection image comprises background information corresponding to the reference handwriting information;
determining the reference characteristic information of the bill to be inspected according to the reference handwriting information and the background information;
respectively acquiring bill element information of the visible light image and the infrared reflection image, and determining element characteristic information corresponding to the bill element information;
and matching the reference characteristic information with the element characteristic information to determine an inspection result aiming at the bill to be inspected.
In an embodiment of the present invention, the determining, according to the reference handwriting information and the background information, reference characteristic information of the to-be-inspected bill includes:
determining handwriting pixel values of the reference handwriting information and background pixel values corresponding to the background information;
and calculating the reference characteristic information of the bill to be inspected according to the handwriting pixel value and the background pixel value.
In an embodiment of the present invention, the to-be-inspected bill includes a reference area, the reference area includes the handwriting information and the background information, and the calculating the reference characteristic information of the to-be-inspected bill according to the handwriting pixel value and the background pixel value includes:
acquiring a region pixel value of the reference region;
calculating a pixel difference value aiming at the bill to be inspected by adopting the handwriting pixel value and the background pixel value;
and generating a reference value for representing the reference characteristic information of the ticket to be checked by adopting the area pixel value and the pixel difference value.
In an embodiment of the present invention, the matching the reference feature information and the feature information to determine the inspection result for the to-be-inspected bill includes:
and when the element characteristic value of each bill element information is smaller than the reference value, the bill to be inspected is a true bill.
In an embodiment of the present invention, before determining the reference characteristic information of the to-be-inspected bill according to the reference handwriting information and the background information, the method further includes:
respectively preprocessing the initial visible light image and the initial infrared reflection image to obtain a target visible light image and a target infrared reflection image;
wherein the preprocessing comprises at least one of gray processing, contrast adjustment and binarization processing.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this is not intended to represent only one bus or type of bus.
The communication interface is used for communication between the terminal and other devices.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components.
In yet another embodiment of the present invention, there is also provided a computer-readable storage medium having stored therein instructions which, when run on a computer, cause the computer to perform the method of validating a ticket as described in any of the above embodiments.
In a further embodiment provided by the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method of validating a ticket as described in any of the above embodiments.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, EEPROM, flash, eMMC, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the true scope of the embodiments of the present invention.
Finally, it should also 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 "include", "including" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or terminal device including a series of elements includes not only those elements but also other elements not explicitly listed or inherent to such process, method, article, or terminal device. Without further limitation, an element defined by the phrases "comprising one of \ 8230; \8230;" does not exclude the presence of additional like elements in a process, method, article, or terminal device that comprises the element.
The above detailed description is provided for a bill inspection method and a bill inspection device, and the principle and the implementation of the present invention are explained by applying specific examples, and the description of the above examples is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (7)

1. A method of validating a document, comprising:
acquiring a visible light image and an infrared reflection image of a bill to be inspected, wherein the visible light image comprises reference handwriting information, and the infrared reflection image comprises background information corresponding to the reference handwriting information;
determining the reference characteristic information of the bill to be inspected according to the reference handwriting information and the background information;
acquiring bill element information of the visible light image and the infrared reflection image respectively, and determining element characteristic information corresponding to the bill element information;
matching the reference characteristic information with the element characteristic information to determine an inspection result aiming at the bill to be inspected;
the determining the reference characteristic information of the bill to be inspected according to the reference handwriting information and the background information comprises the following steps:
determining handwriting pixel values of the reference handwriting information and background pixel values corresponding to the background information;
calculating the reference characteristic information of the bill to be inspected according to the handwriting pixel value and the background pixel value;
the method comprises the following steps of calculating the standard characteristic information of the bill to be inspected according to the handwriting pixel value and the background pixel value, wherein the bill to be inspected comprises a standard area, the standard area comprises the standard handwriting information and the background information, and the standard characteristic information comprises the following steps:
acquiring a region pixel value of the reference region;
calculating a pixel difference value aiming at the bill to be inspected by adopting the handwriting pixel value and the background pixel value;
and generating a reference value for representing the reference characteristic information of the ticket to be checked by adopting the pixel value of the area and the pixel difference value.
2. The method according to claim 1, wherein the feature information is a feature value, and the matching the reference feature information with the feature information to determine the inspection result for the to-be-inspected sheet includes:
and when the element characteristic value of each bill element information is smaller than the reference value, the bill to be inspected is a true bill.
3. The method according to claim 1, wherein before determining the reference characteristic information of the bill to be inspected according to the reference handwriting information and the background information, the method further comprises:
respectively preprocessing the initial visible light image and the initial infrared reflection image to obtain a target visible light image and a target infrared reflection image;
wherein the preprocessing comprises at least one of gray processing, contrast adjustment and binarization processing.
4. An apparatus for validating documents, comprising:
the image acquisition module is used for acquiring a visible light image and an infrared reflection image of a bill to be inspected, wherein the visible light image comprises reference handwriting information, and the infrared reflection image comprises background information corresponding to the reference handwriting information;
the reference characteristic determining module is used for determining reference characteristic information of the bill to be inspected according to the reference handwriting information and the background information;
the element characteristic determining module is used for respectively acquiring bill element information of the visible light image and the infrared reflection image and determining element characteristic information corresponding to the bill element information;
the inspection result determining module is used for matching the reference characteristic information with the element characteristic information and determining an inspection result aiming at the bill to be inspected;
wherein the reference feature determination module comprises:
the pixel value determining submodule is used for determining the handwriting pixel value of the reference handwriting information and the background pixel value corresponding to the background information;
the characteristic information calculation module is used for calculating the reference characteristic information of the bill to be inspected according to the handwriting pixel value and the background pixel value;
the bill to be inspected comprises a reference area, the reference area comprises the handwriting information and the background information, and the characteristic information calculation module is specifically used for:
acquiring a region pixel value of the reference region;
calculating a pixel difference value aiming at the bill to be inspected by adopting the handwriting pixel value and the background pixel value;
and generating a reference value for representing the reference characteristic information of the ticket to be checked by adopting the pixel value of the area and the pixel difference value.
5. The apparatus of claim 4, further comprising:
the image preprocessing module is used for respectively preprocessing the initial visible light image and the initial infrared reflection image to obtain a target visible light image and a target infrared reflection image;
wherein the preprocessing comprises at least one of gray processing, contrast adjustment and binarization processing.
6. An electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
the memory is used for storing a computer program;
the processor, when executing a program stored on the memory, implements the steps of the method of checking a ticket according to claims 1 to 3.
7. A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out a method of checking a ticket according to any one of claims 1 to 3.
CN201911319974.5A 2019-12-19 2019-12-19 Bill inspection method, bill inspection device, electronic device, and storage medium Active CN113096301B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911319974.5A CN113096301B (en) 2019-12-19 2019-12-19 Bill inspection method, bill inspection device, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911319974.5A CN113096301B (en) 2019-12-19 2019-12-19 Bill inspection method, bill inspection device, electronic device, and storage medium

Publications (2)

Publication Number Publication Date
CN113096301A CN113096301A (en) 2021-07-09
CN113096301B true CN113096301B (en) 2023-01-13

Family

ID=76662777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911319974.5A Active CN113096301B (en) 2019-12-19 2019-12-19 Bill inspection method, bill inspection device, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN113096301B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005225072A (en) * 2004-02-13 2005-08-25 Hitachi Ltd Method for issuing certificate and method for verifying certificate
WO2007046289A1 (en) * 2005-10-18 2007-04-26 Matsushita Electric Industrial Co., Ltd. Information processing device, and method therefor

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB9218204D0 (en) * 1992-08-27 1992-10-14 De La Rue Thomas & Co Ltd Security document inspection
DE69415087T2 (en) * 1993-06-15 1999-06-24 Sharp Kk Image processing device
JP2000222615A (en) * 1998-11-27 2000-08-11 Nittetsu Mining Co Ltd Authenticity discriminating method, object of authenticity discrimination and autheticity discrimination device
JP4235968B2 (en) * 2000-12-26 2009-03-11 独立行政法人 国立印刷局 Authenticity discrimination printed matter and authentication method
MXPA04011277A (en) * 2002-05-14 2006-02-22 Mediasec Technologies Gmbh Visible authentication patterns for printed document.
US7640205B2 (en) * 2003-12-23 2009-12-29 First Data Corporation Systems and methods for accessing reconcilement information
CN102236930A (en) * 2010-04-27 2011-11-09 北京中科金财科技股份有限公司 Method and device for digitally collecting and indentifying anti-counterfeiting material information of bill
JP2012022455A (en) * 2010-07-13 2012-02-02 Panasonic Electric Works Sunx Co Ltd Image processing inspection system of printing medium, genuineness determination method of printing medium and imaging apparatus suitable therefor
KR101883425B1 (en) * 2011-08-01 2018-07-31 삼성전자주식회사 Method for differentiation forgery by portable terminal device
CN102568079A (en) * 2011-12-12 2012-07-11 中钞实业有限公司 Note intelligent identifier and note anti-counterfeiting method based on multispectral characteristic
JP5850370B2 (en) * 2012-11-20 2016-02-03 独立行政法人 国立印刷局 Printed material production method, printed material and authenticity determination method
CN103617673B (en) * 2013-12-10 2016-01-20 江苏国光信息产业股份有限公司 A kind of check distinguishing method between true and false based on ultraviolet image feature
GB2548546A (en) * 2016-02-18 2017-09-27 Checkprint Ltd Method and apparatus for detection of document tampering
CN109816847B (en) * 2018-12-20 2021-01-01 深圳怡化电脑股份有限公司 Method and device for judging handwritten handwriting correction and terminal equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005225072A (en) * 2004-02-13 2005-08-25 Hitachi Ltd Method for issuing certificate and method for verifying certificate
WO2007046289A1 (en) * 2005-10-18 2007-04-26 Matsushita Electric Industrial Co., Ltd. Information processing device, and method therefor

Also Published As

Publication number Publication date
CN113096301A (en) 2021-07-09

Similar Documents

Publication Publication Date Title
US8180137B2 (en) Comparison of optical and magnetic character data for identification of character defect type
CN109816847B (en) Method and device for judging handwritten handwriting correction and terminal equipment
CN110458998B (en) Bill detection method, bill detection device and terminal
US9436937B1 (en) Highlight-based bill processing
EP3417429A1 (en) Method and apparatus for detection of document tampering
US8903155B2 (en) Optical waveform generation and use based on print characteristics for MICR data of paper documents
CN103729656A (en) Seal imprint identification method and identification system
CN105788064B (en) Bill identification method and device
CN111462388A (en) Bill inspection method and device, terminal equipment and storage medium
CN103235934A (en) Comparison method and system of seal images
US8229203B2 (en) Dynamic print contrast signal determination for paper documents
CN109800745B (en) Bill detection method, device, terminal and computer readable storage medium
CN113096301B (en) Bill inspection method, bill inspection device, electronic device, and storage medium
Chhabra et al. Detecting fraudulent bank checks
CN109543554B (en) Bill detection method, device, terminal and computer readable storage medium
CN115346306B (en) Method and device for identifying stained paper money
Stamp Accounting Standard Setting.. A New Beginning Evolution, Not Revolution 1
CN100405405C (en) Fiber image antifake method
EP2774125B1 (en) Document checking
CN113077355B (en) Insurance claim settlement method and device, electronic equipment and storage medium
Sarkar et al. Detecting counterfeit currency and identifying its source
Saxena Identification of Fake Currency: A Case Study of Indian Scenario.
TWI684157B (en) A Smart Claims System Based on Action Vehicle
Swami et al. Currency recognition and fake currency identification using image processing
Bhoyar et al. Detection of Fake Currency using Image Processing

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