CN107369240B - Paper money counterfeit discrimination method and device, computer and storage medium - Google Patents

Paper money counterfeit discrimination method and device, computer and storage medium Download PDF

Info

Publication number
CN107369240B
CN107369240B CN201710556268.7A CN201710556268A CN107369240B CN 107369240 B CN107369240 B CN 107369240B CN 201710556268 A CN201710556268 A CN 201710556268A CN 107369240 B CN107369240 B CN 107369240B
Authority
CN
China
Prior art keywords
peak
valley
determining
magnetic signal
preset
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
CN201710556268.7A
Other languages
Chinese (zh)
Other versions
CN107369240A (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 CN201710556268.7A priority Critical patent/CN107369240B/en
Publication of CN107369240A publication Critical patent/CN107369240A/en
Application granted granted Critical
Publication of CN107369240B publication Critical patent/CN107369240B/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/04Testing magnetic properties of the materials thereof, e.g. by detection of magnetic imprint

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Inspection Of Paper Currency And Valuable Securities (AREA)

Abstract

The embodiment of the invention discloses a paper money counterfeit identification method, a paper money counterfeit identification device, a computer and a storage medium. The method comprises the following steps: acquiring a magnetic signal waveform of a preset region of the paper money; determining the peak-valley center position of the magnetic signal waveform according to a preset rule; and determining the authenticity of the paper money according to the center position of the peak and valley. The embodiment of the invention solves the problems of high randomness of the peak-valley position and inaccurate determination of the peak-valley position caused by the saturation problem of the magnetic signal of the paper currency, achieves the purpose of accurately determining the peak-valley position of the magnetic signal, and improves the accuracy of true and false identification of the paper currency.

Description

Paper money counterfeit discrimination method and device, computer and storage medium
Technical Field
The embodiment of the invention relates to a currency identification technology, in particular to a method and a device for identifying counterfeit paper money, a computer and a storage medium.
Background
Along with the continuous development of scientific technology, the level of illegal molecules for manufacturing counterfeit money is increased day by day, and various versions of counterfeit money flow into the market, so that social economy and masses of people are lost and affected.
At present, the method for detecting the authenticity of paper money generally comprises the following steps: ultraviolet/white light/infrared/multispectral image analysis and identification technology; a safety line characteristic magnetic analysis and identification technology; magnetic image analysis and identification technology; magnetic characteristic qualitative identification technology; crown word number recognition techniques, etc. The paper currency counterfeit identification technologies such as a safety line characteristic magnetic analysis identification technology, a magnetic image analysis identification technology, a crown word number identification technology and the like all relate to identification of authenticity of paper currency according to magnetic signals of the paper currency. In the process of collecting the magnetic signals of the paper money, the magnetic signals collected by the paper money or the magnetic signal collecting equipment are easy to saturate, so that the identification accuracy of the paper money is reduced, and the true and false identification error is increased.
Disclosure of Invention
The embodiment of the invention provides a paper money counterfeit identification method, a paper money counterfeit identification device, a computer and a storage medium, and aims to improve the accuracy of paper money identification.
In a first aspect, an embodiment of the present invention provides a method for identifying counterfeit paper money, where the method includes:
acquiring a magnetic signal waveform of a preset region of the paper money;
determining the peak-valley center position of the magnetic signal waveform according to a preset rule;
and determining the authenticity of the paper money according to the center position of the peak and valley.
Further, acquiring a magnetic signal waveform of a preset region of the paper money comprises:
if the current magnetic signal is greater than or equal to a first preset value, adjusting the current magnetic signal to the first preset value;
if the current magnetic signal is smaller than or equal to a second preset value, adjusting the current magnetic signal to the second preset value, wherein the first preset value is larger than the second preset value;
and determining the magnetic signal waveform according to the adjusted magnetic signals.
Further, determining the peak-valley center position of the magnetic signal waveform according to a preset rule includes:
determining the maximum value position or the minimum value position of each waveform period in the magnetic signal waveform;
and determining the peak center position or the trough center position of each waveform period according to the maximum value position or the minimum value position.
Further, determining the peak center position of each waveform period according to the maximum position includes:
determining a first central position of each maximum value according to the initial position and the cut-off position of each maximum value;
and determining the first central positions as peak central positions of the waveform periods.
Further, determining the center position of the trough of each waveform period according to the minimum value position includes:
determining a second central position of each minimum value according to the initial position and the cut-off position of each minimum value;
and determining the second center positions as the valley center positions of the waveform periods.
Further, determining the authenticity of the paper currency according to the center position of the peak and valley comprises the following steps:
matching the peak-valley central positions with a standard position template, and determining the number of the peak-valley central positions successfully matched, wherein the standard position template comprises the standard peak-valley positions of each waveform period;
and determining the authenticity of the paper currency according to the matching result.
Further, matching the peak-valley center positions with a standard position template, and determining the number of peak-valley center positions successfully matched, including:
and if the error between the peak-valley central position and the corresponding standard peak-valley position is smaller than a preset error threshold, determining that the peak-valley central position is successfully matched, and counting the number of the successfully matched peak-valley central positions.
Further, the method for determining the authenticity of the paper currency according to the matching result comprises the following steps:
and if the number of the peak-valley central positions successfully matched is larger than the preset matching number, determining that the paper money is true.
In a second aspect, an embodiment of the present invention further provides a banknote authentication device, including:
the magnetic signal acquisition module is used for acquiring the magnetic signal waveform of the preset region of the paper money;
the peak-valley position determining module is used for determining the peak-valley central position of the magnetic signal waveform according to a preset rule;
and the paper currency identification module is used for determining the authenticity of the paper currency according to the center position of the peak valley.
Further, the magnetic signal acquisition module is specifically configured to:
if the current magnetic signal is greater than or equal to a first preset value, adjusting the current magnetic signal to the first preset value;
if the current magnetic signal is smaller than or equal to a second preset value, adjusting the current magnetic signal to the second preset value, wherein the first preset value is larger than the second preset value;
and determining the magnetic signal waveform according to the adjusted magnetic signals.
Further, the peak-to-valley position determination module comprises:
an extreme value determining unit, configured to determine a maximum value position or a minimum value position of each waveform period in the magnetic signal waveform;
and the peak-valley position determining unit is used for determining the peak center position or the valley center position of each waveform period according to the maximum value position or the minimum value position.
Further, the peak-valley position determining unit is specifically configured to:
determining a first central position of each maximum value according to the initial position and the cut-off position of each maximum value;
and determining the first central positions as peak central positions of the waveform periods.
Further, the peak-valley position determining unit is specifically configured to:
determining a second central position of each minimum value according to the initial position and the cut-off position of each minimum value;
and determining the second center positions as the valley center positions of the waveform periods.
Further, the banknote evaluation module includes:
the position matching unit is used for matching the peak-valley central position with a standard position template and determining the number of the peak-valley central positions successfully matched, wherein the standard position template comprises the standard peak-valley positions of each waveform period;
and the paper currency identification unit is used for determining the authenticity of the paper currency according to the matching result.
Further, the position matching unit is specifically configured to:
and if the error between the peak-valley central position and the corresponding standard peak-valley position is smaller than a preset error threshold, determining that the peak-valley central position is successfully matched, and counting the number of the successfully matched peak-valley central positions.
Further, the banknote validation unit is specifically configured to:
and if the number of the peak-valley central positions successfully matched is larger than the preset matching number, determining that the paper money is true.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the banknote authentication method according to any embodiment of the present invention.
In a fourth aspect, the embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the banknote authentication method according to any of the embodiments of the present invention.
According to the embodiment of the invention, the center positions of the peaks and the valleys in each period in the waveform of the magnetic signal of the paper currency are obtained, and the authenticity of the paper currency is judged according to the center positions of the peaks and the valleys, so that the problems of high randomness of the peak and the valley positions and inaccurate determination of the peak and the valley positions caused by the saturation problem of the magnetic signal of the paper currency are solved, the peak and valley positions of the magnetic signal are accurately determined, and the accuracy of authenticity identification of the paper currency is improved.
Drawings
FIG. 1 is a flow chart of a method for identifying counterfeit paper money according to an embodiment of the present invention;
FIG. 2A is a schematic diagram of magnetic signals of a banknote according to an embodiment of the present invention;
FIG. 2B is a schematic diagram of a magnetic signal waveform according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method for identifying counterfeit paper money according to a second embodiment of the present invention;
FIG. 4 is a flow chart of a method for identifying counterfeit paper money according to a third embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a paper money discriminating apparatus according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer device 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. 1 is a flowchart of a method for authenticating a banknote according to an embodiment of the present invention, which is applicable to the case of authenticating the banknote according to a magnetic signal of a security thread of the banknote, and can be performed by a banknote authentication apparatus according to an embodiment of the present invention, which can be implemented by software and/or hardware. Referring to fig. 1, the method specifically includes:
and S110, acquiring a magnetic signal waveform of the preset region of the paper money.
In order to improve the anti-counterfeiting capacity of the paper money, magnetic signals are arranged in different areas of different paper money. For example, the rmb is taken as an example for description, and referring to fig. 2A, fig. 2A is a schematic diagram of a magnetic signal of a banknote according to an embodiment of the present invention. The RMB in FIG. 2A has three magnetic signal regions, wherein, the upper left magnetic signal region in FIG. 2A is the area of the crown word, the middle magnetic signal region is the area of the safety line, the right magnetic signal region is the area of the hall, and can be known from FIG. 2A, the magnetic signal of the area of the safety line has regular distribution, namely the interval between the wave crests or the wave troughs of the adjacent magnetic signals has the predetermined law, can distinguish the true and false of the paper currency according to the above-mentioned predetermined law.
Optionally, the preset area is a banknote security thread area.
And S120, determining the center position of the peak valley of the magnetic signal waveform according to a preset rule.
In the embodiment, in the process of acquiring the magnetic signal of the paper money, the problem of magnetic signal saturation of the acquired magnetic signal is easily caused by factors such as the distance between the paper money and the sensor or the freshness of the paper money. The closer the distance between the paper money and the sensor is, the higher the strength of the acquired magnetic signal is; the newer the banknote, the greater the strength of the magnetic signal collected. Illustratively, referring to fig. 2B, fig. 2B is a schematic diagram of providing a waveform of a magnetic signal according to an embodiment of the present invention. In fig. 2B, if there is no magnetic signal in the banknote collection area, the value collected by the sensor is 2000, and if there is a magnetic signal in the banknote collection area, the value collected by the sensor is increased or decreased based on 2000 according to the direction of the magnetic signal, so as to form a peak or a trough. Because the sensor has a collection threshold value, if the intensity of the magnetic signal is too large, the collected numerical value is larger than the threshold value of the sensor, the magnetic signal is displayed by using the maximum threshold value, and the condition that a plurality of maximum values and/or a plurality of minimum values exist in the waveform period of the collected magnetic signal waveform is caused.
In this embodiment, the peak-valley center position of each period is determined based on the acquired magnetic signal waveform, where the peak-valley center position includes a peak center position and a trough center position. The peak center position refers to the center position of a plurality of maxima in the waveform period; the center position of the trough refers to the center position of a plurality of minimum values in the waveform period. Optionally, if there is only one maximum value and/or one minimum value in the waveform period of the magnetic signal, the maximum value and/or the minimum value is determined as the peak center position and/or the valley center position.
And S130, determining the authenticity of the paper currency according to the center position of the peak valley.
In this embodiment, the principle of detecting the authenticity of the banknote through the banknote magnetic signal is as follows: and judging whether the distance between adjacent wave crests or wave troughs in the magnetic signal waveform of the safety line of the paper money to be detected meets a preset rule, if so, determining that the paper money to be detected is true, otherwise, determining that the paper money to be detected is false.
In the embodiment, when the magnetic signal is saturated, the center position of the peak and the valley of the magnetic signal of the paper currency is determined, and the authenticity of the paper currency is determined according to the center position of the peak and the valley, so that the problem that when a plurality of extreme values exist in the waveform period of the magnetic signal, any extreme value is randomly determined to be a wave peak or a wave trough, and the distance error between adjacent magnetic signals is increased is solved. For example, referring to fig. 2B, in the waveform of the magnetic signal, if the first maximum position of the first period is determined as the peak position of the first period and the last maximum position of the second period is determined as the peak position of the second period, the peak distance between the first period and the second period is increased compared with the actual distance, in the case that the waveform of the first period and the waveform of the second period have the problem of magnetic signal saturation; or determining the last maximum position of the first period as the peak position of the first period, and determining the first maximum position of the second period as the peak position of the second period, so that the peak distance between the first period and the second period is reduced compared with the actual distance. The determination mode of the two wave peak positions can increase the distance error of the adjacent magnetic signals, and further reduce the accuracy of the authenticity identification of the paper money.
According to the technical scheme of the embodiment, the center positions of the peaks and the valleys in each period in the magnetic signal waveform of the paper money are obtained, and the authenticity of the paper money is judged according to the center positions of the peaks and the valleys, so that the problems that the randomness of the peak and the valley positions is high and the determination of the peak and the valley positions is inaccurate due to the saturation problem of the magnetic signal of the paper money are solved, the peak and valley positions of the magnetic signal are accurately determined, and the authenticity identification accuracy of the paper money is improved.
On the basis of the above embodiment, step S110 includes:
if the current magnetic signal is greater than or equal to the first preset value, adjusting the current magnetic signal to the first preset value;
if the current magnetic signal is smaller than or equal to a second preset value, the current magnetic signal is adjusted to be the second preset value, and the first preset value is larger than the second preset value;
and determining the magnetic signal waveform according to the adjusted magnetic signals.
In this embodiment, a first preset value and a second preset value are set, and if the current magnetic signal is greater than or equal to the first preset value, the current magnetic signal is adjusted to the first preset value; if the current magnetic signal is less than or equal to a second preset value, adjusting the current magnetic signal to the second preset value; and if the current magnetic signal is smaller than the first preset value and larger than the second preset value, keeping the current magnetic signal unchanged. Illustratively, the first preset value may be 3900 and the second preset value may be 50.
In this embodiment, the first preset value and the second preset value are set to intercept the acquired magnetic signal waveform, so that complexity of magnetic signal acquisition is reduced, a data processing process is simplified, and meanwhile, when the acquired magnetic signal exceeds the range of the first preset value and the second preset value, a problem that an acquired value fluctuates up and down exists, a problem that a determined peak-valley center position of each period is inaccurate is easily caused, a data acquisition error is reduced, and a banknote identification accuracy is improved.
Example two
Fig. 3 is a flowchart of a banknote authentication method according to a second embodiment of the present invention, and further provides a method for determining a center position of a peak and a valley of a magnetic signal waveform according to a predetermined rule based on the first embodiment. Correspondingly, the method specifically comprises the following steps:
s210, acquiring a magnetic signal waveform of the preset region of the paper money.
And S220, determining the maximum value position or the minimum value position of each waveform period in the magnetic signal waveform.
If a plurality of maximum values or minimum values exist in the same period, the initial position and the cut-off position of the maximum values or the minimum values are recorded respectively. If a maximum value or a minimum value exists in the same period, the actual position of the maximum value or the minimum value is coincided with the initial position and the cut-off position.
And S230, determining the peak center position or the trough center position of each waveform period according to the maximum value position or the minimum value position.
In this embodiment, the peak center position of each waveform period is determined according to the maximum position, and the valley center position of each waveform period is determined according to the minimum position. Optionally, determining a peak center position of each waveform period according to the maximum position includes: determining a first central position of each maximum value according to the initial position and the cut-off position of each maximum value; and determining each first central position as the peak central position of each waveform period.
The first center position may be determined by an average of the initial position of the maximum value and the cut-off position, that is, a position corresponding to a center-located maximum value among the plurality of maximum values. In this embodiment, the center positions of the maximum positions in each period are determined as the peak center positions of the period, so that the accuracy of the peak center positions and the accuracy of the peak intervals between adjacent magnetic signals are improved.
Optionally, determining the center position of the trough of each waveform period according to the minimum value position includes:
determining a second central position of each minimum value according to the initial position and the cut-off position of each minimum value;
and determining each second center position as a valley center position of each waveform period.
The second center position may be determined by an average of the initial position of the minimum value and the cut-off position, that is, a position corresponding to the minimum value centered in the plurality of minimum values. In this embodiment, the center positions of the minimum positions in each period are determined as the center positions of the wave troughs of the period, so that the accuracy of the center positions of the wave troughs and the accuracy of the wave trough spacing between adjacent magnetic signals are improved.
And S240, determining the authenticity of the paper currency according to the center position of the peak valley.
According to the technical scheme of the embodiment, the wave crest center position of the period is determined according to the position information of the maximum value in each period in the magnetic signal waveform, the wave trough center position of the period is determined according to the position information of the minimum value in each period in the magnetic signal waveform, the accuracy of the distance between the wave crest center positions or the wave trough center positions which are connected is improved, and the recognition rate of the authenticity of the paper money is improved.
EXAMPLE III
Fig. 4 is a flow chart of a banknote authentication method according to a third embodiment of the present invention, and further provides a method for determining authenticity of a banknote according to a center position of a peak and a valley based on the third embodiment. Correspondingly, the method specifically comprises the following steps:
s310, acquiring a magnetic signal waveform of the preset region of the paper money.
And S320, determining the center position of the peak valley of the magnetic signal waveform according to a preset rule.
S330, matching the peak-valley center positions with a standard position template, and determining the number of the peak-valley center positions successfully matched, wherein the standard position template comprises the standard peak-valley positions of each waveform period.
The standard position template refers to a template for representing the distribution rule of the magnetic signals, and comprises fixed standard peak-valley positions or standard adjacent peak-valley position intervals. Where different versions of a banknote may have different standard position templates. In this embodiment, if the peak-valley center position of the banknote to be detected corresponds to the standard peak-valley position in the standard position template, the banknote to be detected is determined to be a genuine banknote, and otherwise, the banknote to be detected is determined to be a counterfeit banknote.
Optionally, step S330 includes:
and if the error between the peak-valley central position and the corresponding standard peak-valley position is smaller than a preset error threshold, determining that the peak-valley central position is successfully matched, and counting the number of the successfully matched peak-valley central positions.
And if the position error is smaller than a preset error threshold, the peak-valley central position is determined to be successfully matched. For example, if the preset error threshold is 2, the preset error range is (-2, 2). The peak center position of the first cycle is, for example, 49, the corresponding standard peak position is 50, the error between the peak center position and the corresponding standard peak position is-1, it can be determined that the peak center position is successfully matched, the number of the peak center positions which are successfully matched is +1, and the matching of the peak center position of the next cycle is continued.
Optionally, the positions of the standard peaks and valleys in the standard position template are sequentially determined as first peak and valley positions, different orders of the positions of the standard peaks and valleys are determined, matching is performed with the center positions of the peaks and valleys, and the maximum value of the number of the successfully matched center positions of the peaks and valleys is determined as the final successfully matched number.
In this embodiment, the magnetic signal of the banknote security thread is set periodically, and the same magnetic signal is set in each period, for example, the magnetic signal in the period is set with a serial number: 1. 2, 3, 4 and 5. The arrangement of the magnetic signals may be different for different banknotes but adjacent magnetic signals are unchanged, for example the order of arrangement of the magnetic signals may be 12345, 23451,34512,45123, 51234. By matching the standard peak-valley positions with the peak-valley center positions in different orders, the problem that the matching result is inaccurate when the magnetic signals are in different orders is solved, and the accuracy of identifying the paper money is improved.
And S340, determining the authenticity of the paper currency according to the matching result.
In this embodiment, the authenticity of the banknote is determined by the number of successfully matched peak-valley center positions.
Optionally, step S340 includes:
and if the number of the peak-valley central positions successfully matched is larger than the preset matching number, determining that the paper money is true.
Illustratively, the preset matching number is determined according to the version of the paper currency, and the number of the peak-valley center positions of the magnetic signals of the paper currency in different versions is different. If the number of the central positions of the wave peaks of the magnetic signal of the paper money is 15, the preset matching number can be 14.
In this embodiment, if the number of peak-valley center positions successfully matched is greater than the preset matching number, the banknote is determined to be a genuine banknote, and if the number of peak-valley center positions successfully matched is less than the preset matching number, the banknote is determined to be a counterfeit banknote.
According to the technical scheme, the peak-valley central position of the paper money to be detected is matched with the standard position template, the number of the peak-valley central positions successfully matched is determined, the authenticity of the paper money is determined according to the number of the peak-valley central positions successfully matched, and the authenticity identification rate of the paper money is improved.
Example four
Fig. 5 is a schematic structural diagram of a banknote authentication device according to a fourth embodiment of the present invention, the device specifically includes:
the magnetic signal acquisition module 410 is used for acquiring the magnetic signal waveform of the preset region of the paper money;
a peak-valley position determining module 420, configured to determine a peak-valley center position of the magnetic signal waveform according to a preset rule;
and the banknote identifying module 430 is used for determining the authenticity of the banknote according to the center position of the peak and valley.
Preferably, the magnetic signal acquisition module 410 is specifically configured to:
if the current magnetic signal is greater than or equal to the first preset value, adjusting the current magnetic signal to the first preset value;
if the current magnetic signal is smaller than or equal to a second preset value, the current magnetic signal is adjusted to be the second preset value, and the first preset value is larger than the second preset value;
and determining the magnetic signal waveform according to the adjusted magnetic signals.
Preferably, the peak-valley position determining module 420 includes:
the extreme value determining unit is used for determining the maximum value position or the minimum value position of each waveform period in the magnetic signal waveform;
and the peak-valley position determining unit is used for determining the peak center position or the valley center position of each waveform period according to the maximum value position or the minimum value position.
Preferably, the peak-valley position determining unit is specifically configured to:
determining a first central position of each maximum value according to the initial position and the cut-off position of each maximum value;
and determining each first central position as the peak central position of each waveform period.
Preferably, the peak-valley position determining unit is specifically configured to:
determining a second central position of each minimum value according to the initial position and the cut-off position of each minimum value;
and determining each second center position as a valley center position of each waveform period.
Preferably, the banknote validator module 430 comprises:
the position matching unit is used for matching the peak-valley central position with a standard position template and determining the number of the peak-valley central positions successfully matched, wherein the standard position template comprises the standard peak-valley positions of each waveform period;
and the paper money identification unit is used for determining the authenticity of the paper money according to the matching result.
Preferably, the location matching unit is specifically configured to:
and if the error between the peak-valley central position and the corresponding standard peak-valley position is smaller than a preset error threshold, determining that the peak-valley central position is successfully matched, and counting the number of the successfully matched peak-valley central positions.
Preferably, the banknote validation unit is specifically adapted to:
and if the number of the peak-valley central positions successfully matched is larger than the preset matching number, determining that the paper money is true.
The paper money counterfeit distinguishing device provided by the embodiment of the invention can execute the paper money counterfeit distinguishing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the paper money counterfeit distinguishing method.
EXAMPLE five
Fig. 6 is a schematic structural diagram of a computer device according to a fifth embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary computer device 500 suitable for use in implementing embodiments of the present invention. The computer device 500 shown in fig. 6 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present invention.
As shown in fig. 6, computer device 500 is in the form of a general purpose computing device. The components of computer device 500 may include, but are not limited to: one or more processors or processing units 501, a system memory 502, and a bus 503 that couples the various system components (including the system memory 502 and the processing unit 501).
Bus 503 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 500 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 500 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 502 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)504 and/or cache memory 505. The computer device 500 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 506 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 503 by one or more data media interfaces. Memory 502 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 508 having a set (at least one) of program modules 507 may be stored, for instance, in memory 502, such program modules 507 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 507 generally perform the functions and/or methodologies of embodiments of the invention as described herein.
The computer device 500 may also communicate with one or more external devices 509 (e.g., keyboard, pointing device, display 512, etc.), with one or more devices that enable a user to interact with the computer device 500, and/or with any devices (e.g., network card, modem, etc.) that enable the computer device 500 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 510. Moreover, computer device 500 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network such as the Internet) via network adapter 511. As shown, the network adapter 511 communicates with the other modules of the computer device 500 over a bus 503. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computer device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 501 executes various functional applications and data processing, such as implementing a bill authentication method provided by an embodiment of the present invention, by executing a program stored in the system memory 502.
The method comprises the following steps:
acquiring a magnetic signal waveform of a preset region of the paper money;
determining the peak-valley center position of the magnetic signal waveform according to a preset rule;
and determining the authenticity of the paper money according to the center position of the peak and valley.
EXAMPLE six
A sixth embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the banknote authentication method according to any of the embodiments of the present invention. The method comprises the following steps:
acquiring a magnetic signal waveform of a preset region of the paper money;
determining the peak-valley center position of the magnetic signal waveform according to a preset rule;
and determining the authenticity of the paper money according to the center position of the peak and valley.
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 method for authenticating a banknote, comprising:
acquiring a magnetic signal waveform of a preset region of the paper money;
determining the peak-valley central position of the magnetic signal waveform according to a preset rule, wherein the peak-valley central position comprises a peak central position and a valley central position;
matching the peak-valley central position with a standard position template, and determining the number of peak-valley central positions successfully matched, wherein the method comprises the following steps: if the error between the peak-valley central position and the corresponding standard peak-valley position is smaller than a preset error threshold, determining that the peak-valley central position is successfully matched, and counting the number of the successfully matched peak-valley central positions; wherein the standard position template comprises standard peak-valley positions of each waveform period;
and determining the authenticity of the paper currency according to the matching result, comprising the following steps: and if the number of the peak-valley central positions successfully matched is larger than the preset matching number, determining that the paper money is true.
2. The method of claim 1, wherein acquiring a magnetic signal waveform for a predetermined region of the banknote includes:
if the current magnetic signal is greater than or equal to a first preset value, adjusting the current magnetic signal to the first preset value;
if the current magnetic signal is smaller than or equal to a second preset value, adjusting the current magnetic signal to the second preset value, wherein the first preset value is larger than the second preset value;
and determining the magnetic signal waveform according to the adjusted magnetic signals.
3. The method of claim 1, wherein determining the peak-to-valley center position of the magnetic signal waveform according to a preset rule comprises:
determining the maximum value position or the minimum value position of each waveform period in the magnetic signal waveform;
and determining the peak center position or the trough center position of each waveform period according to the maximum value position or the minimum value position.
4. The method of claim 3, wherein determining the peak center position for each waveform period from the maximum position comprises:
determining a first central position of each maximum value according to the initial position and the cut-off position of each maximum value;
and determining the first central positions as peak central positions of the waveform periods.
5. The method of claim 3, wherein determining the valley center position for each waveform period based on the minimum position comprises:
determining a second central position of each minimum value according to the initial position and the cut-off position of each minimum value;
and determining the second center positions as the valley center positions of the waveform periods.
6. A paper money discriminating apparatus, comprising:
the magnetic signal acquisition module is used for acquiring the magnetic signal waveform of the preset region of the paper money;
the peak-valley position determining module is used for determining the peak-valley central position of the magnetic signal waveform according to a preset rule, wherein the peak-valley central position comprises a peak central position and a valley central position;
the paper money identification module is used for matching the peak-valley central position with a standard position template and determining the number of the peak-valley central positions successfully matched, and comprises: if the error between the peak-valley central position and the corresponding standard peak-valley position is smaller than a preset error threshold, determining that the peak-valley central position is successfully matched, and counting the number of the successfully matched peak-valley central positions; and determining the authenticity of the paper currency according to the matching result, comprising: if the number of the peak-valley central positions successfully matched is larger than the preset matching number, determining the paper money as true paper money; wherein the standard position template comprises standard peak-to-valley positions for each waveform period.
7. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-5 when executing the program.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-5.
CN201710556268.7A 2017-07-10 2017-07-10 Paper money counterfeit discrimination method and device, computer and storage medium Active CN107369240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710556268.7A CN107369240B (en) 2017-07-10 2017-07-10 Paper money counterfeit discrimination method and device, computer and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710556268.7A CN107369240B (en) 2017-07-10 2017-07-10 Paper money counterfeit discrimination method and device, computer and storage medium

Publications (2)

Publication Number Publication Date
CN107369240A CN107369240A (en) 2017-11-21
CN107369240B true CN107369240B (en) 2020-03-27

Family

ID=60306023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710556268.7A Active CN107369240B (en) 2017-07-10 2017-07-10 Paper money counterfeit discrimination method and device, computer and storage medium

Country Status (1)

Country Link
CN (1) CN107369240B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108091032B (en) * 2018-01-10 2020-09-15 深圳怡化电脑股份有限公司 Magnetic counterfeit discriminating method and device for paper money, ATM and storage medium
CN108428278B (en) * 2018-03-02 2020-11-17 深圳怡化电脑股份有限公司 Paper money counterfeit discrimination method and device, terminal equipment and storage medium
CN109410420B (en) * 2018-10-12 2021-01-01 深圳怡化电脑股份有限公司 Image detection method and device and bill discriminator
CN112509209A (en) * 2019-08-26 2021-03-16 深圳怡化电脑股份有限公司 Paper currency magnetic detection method and device, currency detection equipment and readable storage medium
CN110599672B (en) * 2019-08-30 2021-10-08 深圳怡化电脑股份有限公司 Cash-sticking detection method and device for financial equipment, terminal equipment and storage medium
CN111292463A (en) * 2020-01-17 2020-06-16 深圳怡化电脑股份有限公司 Paper money identification method, device, server and storage medium
CN115147977B (en) * 2021-03-30 2023-12-22 深圳怡化电脑股份有限公司 Paper money discriminating method, paper money discriminating device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101203892A (en) * 2005-06-23 2008-06-18 贝卡尔特股份有限公司 Authentication by means of geometric security features
CN106780954A (en) * 2016-12-01 2017-05-31 深圳怡化电脑股份有限公司 A kind of method and device of paper money recognition

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3463947B2 (en) * 1992-11-20 2003-11-05 株式会社東芝 Paper sheet pass / fail judgment device
CN104091388B (en) * 2014-07-22 2016-06-22 新达通科技股份有限公司 A kind of paper money discrimination method based on magnetic image and device
CN105243648B (en) * 2015-10-30 2018-04-27 深圳怡化电脑股份有限公司 A kind of method and system for eliminating magnetic spot noise on press-note axis

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101203892A (en) * 2005-06-23 2008-06-18 贝卡尔特股份有限公司 Authentication by means of geometric security features
CN106780954A (en) * 2016-12-01 2017-05-31 深圳怡化电脑股份有限公司 A kind of method and device of paper money recognition

Also Published As

Publication number Publication date
CN107369240A (en) 2017-11-21

Similar Documents

Publication Publication Date Title
CN107369240B (en) Paper money counterfeit discrimination method and device, computer and storage medium
CN109299135B (en) Abnormal query recognition method, recognition equipment and medium based on recognition model
CN107437294B (en) Character segmentation method, device, equipment and storage medium
CN102324132B (en) Bank-note detecting method by identifying ultraviolet-light image and system
CN105991593B (en) A kind of method and device identifying consumer's risk
CN102542655B (en) Note anti-counterfeiting discrimination method based on fiber personality characteristics
WO2022100349A1 (en) Artificial intelligence-based dual-recording quality inspection method and apparatus, computer device and medium
CN107316373B (en) A kind of Paper Currency Identification, device, terminal device and readable storage medium storing program for executing
CN201348798Y (en) Currency detector capable of scanning, storing and analyzing numbers on paper money
CN102110323B (en) Method and device for examining money
CN105243301A (en) Keyboard input abnormality detection method and apparatus as well as security prompt method and apparatus
CN114297448A (en) License applying method, system and medium based on intelligent epidemic prevention big data identification
CN106898078B (en) Port currency version identification method and device
CN109800745B (en) Bill detection method, device, terminal and computer readable storage medium
CN108198322A (en) A kind of magnetic stripe localization method and device
CN108269349B (en) Paper money processing method, device, equipment and storage medium
CN110674480A (en) Behavior data processing method, device and equipment and readable storage medium
CN107680246B (en) Method and equipment for positioning curve boundary in paper money pattern
CN109543554B (en) Bill detection method, device, terminal and computer readable storage medium
CN112819305A (en) Service index analysis method, device, equipment and storage medium
CN107705414A (en) A kind of recognition methods of bank note, device, terminal device and storage medium
CN109300220B (en) Paper authentication method, device and equipment based on safety line and readable storage medium
CN107358717B (en) A kind of Paper Currency Identification, system and its terminal device
CN111292463A (en) Paper money identification method, device, server and storage medium
CN109271377A (en) A kind of data quality checking method and device

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