CN112530077A - Method and device for detecting magnetic data of paper money, terminal equipment and storage medium - Google Patents
Method and device for detecting magnetic data of paper money, terminal equipment and storage medium Download PDFInfo
- Publication number
- CN112530077A CN112530077A CN201910879657.2A CN201910879657A CN112530077A CN 112530077 A CN112530077 A CN 112530077A CN 201910879657 A CN201910879657 A CN 201910879657A CN 112530077 A CN112530077 A CN 112530077A
- Authority
- CN
- China
- Prior art keywords
- magnetic data
- magnetic
- magnification
- paper money
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 71
- 230000008569 process Effects 0.000 claims abstract description 18
- 230000003321 amplification Effects 0.000 claims description 85
- 238000003199 nucleic acid amplification method Methods 0.000 claims description 85
- 238000004590 computer program Methods 0.000 claims description 24
- 230000006870 function Effects 0.000 description 7
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 229920006395 saturated elastomer Polymers 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07D—HANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
- G07D7/00—Testing 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/04—Testing 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 application relates to the technical field of financial machine control, and provides a method and a device for detecting magnetic data of paper money, terminal equipment and a storage medium. The method for detecting the magnetic data of the paper money comprises the following steps: in the process of detecting the magnetic data of the paper money through the magnetic sensor, adjusting the magnification factor of the magnetic sensor to obtain various magnetic data with different magnification factors; and selecting target magnetic data from the plurality of magnetic data with different magnifications as the detected magnetic data of the paper currency according to the type of the paper currency or the area of the current magnetic feature to be detected of the paper currency. By adopting the method for detecting the magnetic data of the paper money, when the paper money is faced with different types of paper money or different areas of the same type of paper money, the magnetic data with proper magnification can be selected to obtain the effective magnetic data of all the magnetic characteristics on the paper money.
Description
Technical Field
The application relates to the technical field of financial machine control, in particular to a method and a device for detecting magnetic data of paper money, terminal equipment and a storage medium.
Background
After the paper money is deposited in the self-service deposit and withdrawal machine, the magnetic data of the paper money can be detected through the magnetic sensor, and then the magnetic characteristics of each area of the paper money are detected to identify the authenticity of the paper money. Specifically, the magnetic sensor converts the magnetic signal of the paper money into an electrical signal, amplifies the electrical signal according to a preset amplification factor, and performs analog-to-digital conversion to obtain final magnetic data.
Currently, the amplification factor of the magnetic sensor adopted by the self-service deposit and withdrawal machine is generally fixed, however, the magnetic characteristics of different types of paper money or different areas of the same type of paper money are generally different, namely the strength of the collected magnetic signals is different. For such a situation, if the magnetic sensors with the same amplification factor are still used to acquire magnetic data, the magnetic signals with high magnetic strength may be saturated, and the magnetic signals with low magnetic strength may be submerged in background noise, that is, effective magnetic data of all magnetic characteristics on the paper money cannot be acquired.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, an apparatus, a terminal device and a storage medium for detecting magnetic data of a banknote, and aim to solve the problem that valid magnetic data of all magnetic features on a banknote cannot be acquired when facing different types of banknotes or different areas of the same type of banknote.
A first aspect of an embodiment of the present application provides a method for detecting magnetic data of a banknote, including:
in the process of detecting the magnetic data of the paper money through the magnetic sensor, adjusting the magnification factor of the magnetic sensor to obtain various magnetic data with different magnification factors;
and selecting target magnetic data from the plurality of magnetic data with different magnifications as the detected magnetic data of the paper currency according to the type of the paper currency or the area of the current magnetic feature to be detected of the paper currency.
According to the embodiment of the application, the amplification factors of the magnetic sensors are adjusted, the magnetic data with different amplification factors are collected and stored, and then the magnetic data with the proper amplification factor is selected from the different amplification factors according to the type of the paper money or the region of the current magnetic feature to be detected of the paper money, so that the magnetic data with the proper amplification factor can be selected when the situation that different types of paper money or different regions of the same type of paper money face, and the effective magnetic data of all the magnetic features on the paper money is obtained.
Further, the adjusting the magnification of the magnetic sensor to obtain magnetic data of a plurality of different magnifications may include:
acquiring a plurality of preset different magnification times;
sending a configuration instruction to the magnetic sensors to sequentially adjust the magnification of the magnetic sensors to the magnification values;
and acquiring and recording the magnetic data of the paper money under the current magnification every time the magnification of the magnetic sensor is adjusted once, thereby obtaining the magnetic data of various magnifications.
The processor of the terminal equipment can acquire a plurality of preset different magnification numerical values and then sends a configuration instruction to the magnetic sensors so as to sequentially adjust the magnification of the magnetic sensors to the magnification numerical values. When the magnetic data are collected, the amplification factor of the magnetic sensor is adjusted once, and the magnetic data of the paper money under the current amplification factor are collected and recorded, so that the magnetic data with various different amplification factors are obtained. For example, the preset magnification X1,X2And X3First, the magnification of the magnetic sensor is adjusted to X1The collection magnification is X1And then adjusting the magnification of the magnetic sensor to X2The collection magnification is X2The magnetic data of the paper money, and finally, the magnification of the magnetic sensor is adjusted to X3The collection magnification is X3To obtain magnetic data of said banknotes, respectively at a magnification of X1,X2And X33 kinds of magnetic data.
Specifically, the acquiring and recording the magnetic data of the banknote under the current magnification may include:
determining each target row corresponding to the current magnification in the paper money;
and collecting and recording the magnetic data of each target row under all signal channels of the magnetic sensor as the magnetic data of the paper money under the current magnification.
Further, the number of the magnification values is M, where M is an integer greater than 1, and before determining each target line in the banknote corresponding to the current magnification, the method may further include:
dividing the row of the paper money into M parts on average, wherein the row number of each row contained in each part forms an arithmetic difference number array with the tolerance of M;
constructing a correspondence between the M parts and the M magnification values, one part corresponding to one magnification value.
The method is a line-by-line acquisition mode of magnetic signals, for example, two amplification factors X of a magnetic sensor are configured according to business requirements1And X2The first row of the note being X1Collecting signal by magnification, and adopting X in the second row of paper money2And acquiring signals by amplification factors. The branch acquisition mode has the advantages of lower hardware cost and smaller change on the basis of the existing hardware. Such as: the original magnetic sensor is 18-channel signal channels (corresponding to 18 chips), and the mode of line-by-line acquisition is adopted without changing hardware, and only the amplification factor of the magnetic sensor is dynamically set when data is acquired. The disadvantage of the line-by-line acquisition method is that the data acquisition density is reduced, such as: one amplification factor can collect 24 rows of signals, and each of the two amplification factors can only collect 12 rows of signals.
Specifically, the acquiring and recording the magnetic data of the banknote under the current magnification may include:
determining each target signal channel corresponding to the current amplification factor in the signal channels of the magnetic sensor;
and collecting and recording the magnetic data of each row of the paper currency under the target signal channel of the magnetic sensor as the magnetic data of the paper currency under the current magnification.
Further, the number of the amplification factor values is N, where N is an integer greater than 1, and before determining each target signal channel corresponding to the current amplification factor in the signal channels of the magnetic sensor, the method may further include:
increasing the number of signal channels of the magnetic sensor to N times the original number;
averagely dividing the increased number of signal channels of the magnetic sensor into N parts;
constructing a correspondence between the N parts and the N magnification values, one part corresponding to one magnification value.
The method is a frequency doubling acquisition mode of magnetic signals, namely, the number of signal channels of a magnetic sensor is increased, and then corresponding signal channels are respectively allocated to each amplification factor to finish the acquisition of magnetic data. The corresponding relation between each amplification factor and each signal channel of the magnetic sensor can be constructed in advance, then when magnetic data under a certain amplification factor is collected and recorded, each target signal channel corresponding to the amplification factor is determined firstly, and then the magnetic data of each row of paper money under the target signal channel of the magnetic sensor is collected and used as the magnetic data of the paper money under the amplification factor. The frequency multiplication acquisition mode has the advantages that the density of data acquisition is not reduced, the detail characteristics of the magnetic signals can be better represented, and the defects that an additional signal channel is required to be added and the hardware cost is high.
Further, the selecting the target magnetic data from the plurality of magnetic data with different magnifications according to the type of the paper money may include:
acquiring an image of the paper money through an image sensor;
determining the type of the paper currency according to the image of the paper currency;
searching a first magnification corresponding to the type of the paper money;
selecting the magnetic data with the first magnification from the plurality of magnetic data with different magnifications as the target magnetic data;
the selecting the target magnetic data from the plurality of magnetic data with different magnifications according to the region of the magnetic feature to be currently inspected of the paper money may include:
acquiring an input area identifier;
determining the area of the magnetic feature to be tested of the paper currency according to the area identifier;
searching a second magnification corresponding to the area;
and selecting the magnetic data with the second magnification from the plurality of magnetic data with different magnifications as the target magnetic data.
According to the first aspect, the amplification factor of the magnetic sensor is adjusted, a plurality of magnetic data with different amplification factors are collected and stored, and then the magnetic data with the proper amplification factor is selected from the plurality of different amplification factors according to the type of the paper money, so that the magnetic data with the proper amplification factor can be selected for different types of paper money, and effective magnetic data of all magnetic characteristics on the paper money can be obtained.
In the second aspect, the amplification factor of the magnetic sensor is adjusted, a plurality of magnetic data with different amplification factors are collected and stored, and then the magnetic data with the proper amplification factor is selected from the plurality of different amplification factors according to the region of the magnetic characteristic to be detected of the paper money, so that the magnetic data with the proper amplification factor can be selected for each different region of the same type of paper money to obtain the effective magnetic data of all the magnetic characteristics on the paper money.
A second aspect of an embodiment of the present application provides an apparatus for detecting magnetic data of a banknote, including:
the amplification factor adjusting module is used for adjusting the amplification factor of the magnetic sensor in the process of detecting the magnetic data of the paper money through the magnetic sensor to obtain various magnetic data with different amplification factors;
and the magnetic data selection module is used for selecting target magnetic data from the magnetic data with different magnifications according to the type of the paper currency or the area of the current magnetic feature to be detected of the paper currency, and the target magnetic data is used as the detected magnetic data of the paper currency.
A third aspect of an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor, when executing the computer program, implements the steps of the method for detecting magnetic data of a banknote as provided in the first aspect of an embodiment of the present application.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method of detecting magnetic data of a banknote as provided in the first aspect of embodiments of the present application.
A fifth aspect of embodiments of the present application provides a computer program product, which, when run on a terminal device, causes the terminal device to perform the method for detecting magnetic data of a banknote according to the first aspect of embodiments of the present application.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a flow chart of a first embodiment of a method for detecting magnetic data of a banknote according to an embodiment of the present application;
FIG. 2 is a flow chart of a second embodiment of a method for detecting magnetic data of a banknote according to an embodiment of the present application;
FIG. 3 is a flow chart of a third embodiment of a method for detecting magnetic data of a banknote according to an embodiment of the present application;
FIG. 4 is a flow chart of a fourth embodiment of a method for detecting magnetic data of a paper currency according to the embodiment of the application;
FIG. 5 is a block diagram of an embodiment of an apparatus for detecting magnetic data of a banknote according to an embodiment of the present application;
fig. 6 is a schematic diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail. Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
The embodiment of the application provides a method, a device, a terminal device and a storage medium for detecting magnetic data of paper money, and aims to solve the problem that effective magnetic data of all magnetic characteristics on the paper money cannot be acquired when the paper money is faced with different types of paper money or different areas of the same type of paper money. It should be understood that the execution subject of the various method embodiments of the present application is financial equipment such as an ATM machine, or other relevant terminal equipment.
Referring to fig. 1, a method for detecting magnetic data of a banknote in an embodiment of the present application is shown, including:
101. in the process of detecting the magnetic data of the paper money through the magnetic sensor, adjusting the magnification factor of the magnetic sensor to obtain various magnetic data with different magnification factors;
in the process of detecting the magnetic data of the paper money through the magnetic sensor, the magnetic data with various different magnifications can be obtained by adjusting the magnification of the magnetic sensor. The magnification of the magnetic sensor adopted by the application is not fixed, but can be dynamically adjusted through software configuration instructions. At present, there are magnetic sensors with dynamically adjustable amplification, and the working principle of the magnetic sensors can be referred to the prior art.
In actual operation, the currency and the banknote area to be supported by the financial device are determined, and an optimal magnetic signal amplification factor is preset for each currency or each banknote area. In the process of detecting the magnetic data of the paper money, firstly, the magnification of a magnetic sensor is set to be a first preset magnification, and then the paper money to be detected is scanned through the magnetic sensor to obtain the magnetic data of the first magnification; then, adjusting the magnification of the magnetic sensor to a second preset magnification, and scanning the paper money to be detected through the magnetic sensor to obtain magnetic data of the second magnification; and by analogy, magnetic data of each preset magnification factor is obtained.
102. And selecting target magnetic data from the plurality of magnetic data with different magnifications as the detected magnetic data of the paper currency according to the type of the paper currency or the area of the current magnetic feature to be detected of the paper currency.
Then, identifying the type of the paper money to be detected, or determining the region of the paper money to be detected with the magnetic characteristics, and selecting the target magnetic data from the magnetic data with different magnifications as the detected magnetic data of the paper money to be detected. For example, if the type of the banknote to be detected is 100 yuan, magnetic data of a magnification corresponding to 100 yuan of renminbi is selected as the detected magnetic data. And if the current region of the magnetic characteristics to be detected of the paper money to be detected is the magnetic line region, selecting the magnetic data with the magnification corresponding to the magnetic line region as the detected magnetic data. It can be seen that by this arrangement, magnetic data can be selected to a suitable magnification even in the face of different types of banknotes or different regions of the same type of banknote to obtain valid magnetic data for all of the magnetic features on the banknote.
According to the embodiment of the application, the amplification factors of the magnetic sensors are adjusted, the magnetic data with different amplification factors are collected and stored, and then the magnetic data with the proper amplification factor is selected from the different amplification factors according to the type of the paper money or the region of the current magnetic feature to be detected of the paper money, so that the magnetic data with the proper amplification factor can be selected when the situation that different types of paper money or different regions of the same type of paper money face, and the effective magnetic data of all the magnetic features on the paper money is obtained.
Referring to FIG. 2, another method for detecting magnetic data of a banknote in an embodiment of the present application is shown, including:
201. acquiring a plurality of preset different magnification times;
first, a plurality of preset different magnification values are obtained. The currency and the paper money area which are required to be supported by the financial equipment can be determined according to the requirements of actual business conditions, and a proper magnetic signal amplification factor is preset for each currency or each paper money area, so that a plurality of different amplification factor values can be obtained.
202. Sending a configuration instruction to the magnetic sensors so as to sequentially adjust the magnification of the magnetic sensors to be each magnification value;
then, the terminal device sends a configuration instruction for setting the magnification to the magnetic sensor by connecting the magnetic sensor, so as to sequentially adjust the magnification of the magnetic sensor to each magnification value acquired in step 201.
203. The amplification factor of the magnetic sensor is adjusted once, and the magnetic data of the paper money under the current amplification factor is collected and recorded, so that the magnetic data of various different amplification factors are obtained;
and when the magnification of the magnetic sensor is adjusted once, the magnetic data of the paper money under the current magnification can be collected and recorded. The specific process is as follows: adjusting the magnification of the magnetic sensor to be a first magnification value, and collecting and recording the magnetic data of the paper money under the magnification value; and adjusting the magnification of the magnetic sensor to be a second magnification value, collecting and recording the magnetic data … of the paper money under the magnification value, and so on until obtaining the magnetic data of each magnification value.
Optionally, the acquiring and recording the magnetic data of the banknote under the current magnification may include:
(1) determining each target row corresponding to the current magnification in the paper money;
(2) and collecting and recording the magnetic data of each target row under all signal channels of the magnetic sensor as the magnetic data of the paper money under the current magnification.
When the magnetic data is collected and recorded, a line-by-line collection mode can be adopted, namely, the magnetic data of different lines of paper money are respectively acquired by different amplification factors. The corresponding relation between each amplification factor and each row of the paper money can be constructed in advance, then when the magnetic data under a certain amplification factor is collected and recorded, each target row corresponding to the amplification factor is determined firstly, and then the magnetic data of each target row under all signal channels of the magnetic sensor is collected and used as the magnetic data of the paper money under the amplification factor.
Specifically, assuming that the number of the magnification values is M, where M is an integer greater than 1, before determining each target line in the banknote corresponding to the current magnification, the method may further include:
(1) dividing the row of the paper money into M parts on average, wherein the row number of each row contained in each part forms an arithmetic difference number array with the tolerance of M;
(2) constructing a correspondence between the M parts and the M magnification values, one part corresponding to one magnification value.
For example, if the magnification value is set to X1、X2And X3If the paper money to be measured has 300 lines of line position coordinates, the 300 lines are divided into 3 parts, and the line number of each line contained in each part forms an arithmetic progression with the tolerance MThat is, the first portion is the 1 st, 4 th, 7 th, 10 … th row of banknotes, the second portion is the 2 nd, 5 th, 8 th, 11 … th row of banknotes, and the third portion is the 3 rd, 6 th, 9 th, 12 … th row of banknotes. Then, a correspondence between the note line and the respective magnification value of each portion is constructed, such as X1Corresponding to lines 1, 4, 7, 10 … of the note. That is, if the current magnification is X1Then the magnetic data of the 1 st, 4 th, 7 th, 10 … th line of the paper currency under all signal channels of the magnetic sensor are collected and recorded.
The branch acquisition mode has the advantages of lower hardware cost and smaller change on the basis of the existing hardware. Such as: the original magnetic sensor is 18-channel signal channels (corresponding to 18 chips), and the mode of line-by-line acquisition is adopted without changing hardware, and only the amplification factor of the magnetic sensor is dynamically set when data is acquired. The disadvantage of the line-by-line acquisition method is that the data acquisition density is reduced, such as: one amplification factor can collect 24 rows of signals, and each of the two amplification factors can only collect 12 rows of signals.
Optionally, the acquiring and recording the magnetic data of the banknote under the current magnification may include:
(1) determining each target signal channel corresponding to the current amplification factor in the signal channels of the magnetic sensor;
(2) and collecting and recording the magnetic data of each row of the paper currency under the target signal channel of the magnetic sensor as the magnetic data of the paper currency under the current magnification.
When the magnetic data is collected and recorded, a frequency doubling collection mode can be adopted, namely, the number of signal channels of the magnetic sensor is increased, and then corresponding signal channels are distributed for each amplification factor respectively, so that the collection of the magnetic data is completed. The corresponding relation between each amplification factor and each signal channel of the magnetic sensor can be constructed in advance, then when magnetic data under a certain amplification factor is collected and recorded, each target signal channel corresponding to the amplification factor is determined firstly, and then the magnetic data of each row of paper money under the target signal channel of the magnetic sensor is collected and used as the magnetic data of the paper money under the amplification factor.
Specifically, assuming that the number of the amplification factor values is N, where N is an integer greater than 1, before determining each target signal channel corresponding to the current amplification factor in the signal channels of the magnetic sensor, the method may further include:
(1) increasing the number of signal channels of the magnetic sensor to N times the original number;
(2) averagely dividing the increased number of signal channels of the magnetic sensor into N parts;
(3) constructing a correspondence between the N parts and the N magnification values, one part corresponding to one magnification value.
For example, if the magnification value is set to X1、X2And X3If the number of original signal channels of the magnetic sensor is 18, the number of signal channels (corresponding to the number of corresponding chips) is added to the hardware until 18 × 3 is 54. The 54 signal paths are then divided on average into 3 portions, such as the 1 st to 18 th numbered signal paths, the 19 th to 36 th numbered signal paths, and the 37 th to 54 th numbered signal path 3 portion. Next, a correspondence between the signal path and the respective magnification factor value for each portion is constructed, such as X1Corresponding to signal paths numbered 1-18. That is, if the current magnification is X1Then the magnetic data of all the lines of the paper currency under the signal channels of the 1 st to 18 th numbers of the magnetic sensors are collected and recorded.
The frequency multiplication acquisition mode has the advantages that the density of data acquisition is not reduced, the detail characteristics of the magnetic signals can be better represented, and the defects that an additional signal channel is required to be added and the hardware cost is high.
204. And selecting target magnetic data from the plurality of magnetic data with different magnifications as the detected magnetic data of the paper currency according to the type of the paper currency or the area of the current magnetic feature to be detected of the paper currency.
Step 204 is the same as step 102, and reference may be made to the related description of step 102.
The method for detecting the magnetic data of the paper money provided by the embodiment of the application comprises the following steps: acquiring a plurality of preset different magnification times; sending a configuration instruction to the magnetic sensors so as to sequentially adjust the magnification of the magnetic sensors to be each magnification value; the amplification factor of the magnetic sensor is adjusted once, and the magnetic data of the paper money under the current amplification factor is collected and recorded, so that the magnetic data of various different amplification factors are obtained; and selecting target magnetic data from the plurality of magnetic data with different magnifications as the detected magnetic data of the paper currency according to the type of the paper currency or the area of the current magnetic feature to be detected of the paper currency. Compared with the first embodiment of the present application, this embodiment proposes a specific way to adjust the magnification of the magnetic sensor and to collect and record the magnetic data.
Referring to FIG. 3, another method for detecting magnetic data of a banknote in an embodiment of the present application is shown, including:
301. in the process of detecting the magnetic data of the paper money through the magnetic sensor, adjusting the magnification factor of the magnetic sensor to obtain various magnetic data with different magnification factors;
step 301 is the same as step 101, and specific reference may be made to the description related to step 101.
302. Acquiring an image of the paper money through an image sensor;
after obtaining the magnetic data of various different magnifications, the image sensor acquires the image of the paper money to be detected, and the image is used for determining the type of the paper money.
303. Determining the type of the paper currency according to the image of the paper currency;
the type of the bill can be determined from the image of the bill, such as the RMB, Hongkong or Euro bill.
304. Searching a first magnification corresponding to the type of the paper money;
in actual operation, the currency and the banknote area to be supported by the financial device are determined, and an optimal magnetic signal amplification factor is preset for each currency or each banknote area. Thus, after determining the type of banknote to be tested, a magnification corresponding to that type may be found.
305. And selecting the magnetic data with the first magnification from the plurality of magnetic data with different magnifications as the detected magnetic data of the paper money.
And finally, selecting the magnetic data with the magnification corresponding to the type of the paper currency from the magnetic data with different magnifications as the detected magnetic data. Through setting up like this, can effectively solve the inconsistent problem of the magnetic characteristic magnetic signal intensity between the different grade type paper currency, gather all effective magnetic data of magnetic characteristic on all kinds of different paper currencies to make same financial equipment can detect the magnetic data of multiple different grade type paper currencies, and then can realize the function that the multi-type paper currency is deposited with many kinds of currency exchanges thoughtlessly.
The embodiment of the application collects and stores magnetic data of various different amplification factors by adjusting the amplification factor of the magnetic sensor, and then selects the magnetic data of proper amplification factor from the various different amplification factors according to the type of the paper money, so that the magnetic data of proper amplification factor can be selected for the paper money of different types to obtain effective magnetic data of all magnetic characteristics on the paper money.
Referring to FIG. 4, another method for detecting magnetic data of a banknote in an embodiment of the present application is shown, including:
401. in the process of detecting the magnetic data of the paper money through the magnetic sensor, adjusting the magnification factor of the magnetic sensor to obtain various magnetic data with different magnification factors;
step 401 is the same as step 101, and specific reference may be made to the related description of step 101.
402. Acquiring an input area identifier;
after obtaining the magnetic data with different magnifications, the input area identifier is obtained, and the area identifier is used for representing the area of the current magnetic characteristic to be tested of the paper currency to be tested. Specifically, the region identifier may be manually input, or may be automatically generated according to a preset set of banknote region detection procedures, for example, if the current procedure is to check magnetic data of the magnetic line region, the region identifier of the magnetic line region is generated.
403. Determining the area of the magnetic feature to be tested of the paper currency according to the area identifier;
according to the area identifier, the area of the current magnetic characteristic to be checked of the paper money can be determined, such as a magnetic line area, a watermark area, a crown word number area and the like.
404. Searching a second magnification corresponding to the area;
in actual operation, the currency and the banknote area to be supported by the financial device are determined, and an optimal magnetic signal amplification factor is preset for each currency or each banknote area. Thus, after determining the region of the current magnetic signature to be inspected of the banknote under test, a magnification corresponding to that region may be found.
405. And selecting the magnetic data with the second magnification from the plurality of magnetic data with different magnifications as the detected magnetic data of the paper money.
And finally, selecting the magnetic data with the magnification corresponding to the area from the plurality of magnetic data with different magnifications as the detected magnetic data. Through setting up like this, can effectively solve the inconsistent problem of the magnetic characteristic magnetic signal intensity in the different regions of same type paper currency, gather the effective magnetic data of all magnetic characteristics on each different region of paper currency to can promote the false ability of distinguishing to this paper currency.
The embodiment of the application collects and stores magnetic data of various different amplification factors by adjusting the amplification factor of the magnetic sensor, and then selects the magnetic data of proper amplification factor from the various different amplification factors according to the region of the magnetic characteristic to be detected of the paper money, so that the magnetic data of proper amplification factor can be selected for different regions of the same type of paper money to obtain effective magnetic data of all the magnetic characteristics on the paper money.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
While a method of detecting magnetic data of a banknote has been described above, an apparatus for detecting magnetic data of a banknote will be described.
Referring to fig. 5, an embodiment of an apparatus for detecting magnetic data of a banknote in an embodiment of the present application includes:
the magnification adjustment module 501 is used for adjusting the magnification of the magnetic sensor in the process of detecting the magnetic data of the paper money through the magnetic sensor to obtain a plurality of magnetic data with different magnifications;
a magnetic data selecting module 502, configured to select, according to the type of the banknote or the area of the current magnetic feature to be inspected of the banknote, target magnetic data from the multiple magnetic data with different magnifications, as the detected magnetic data of the banknote.
Further, the magnification adjustment module may include:
the magnification power value acquisition unit is used for acquiring a plurality of preset different magnification power values;
a configuration instruction sending unit, configured to send a configuration instruction to the magnetic sensors, so as to sequentially adjust the magnification of the magnetic sensors to each magnification value;
and the magnetic data acquisition unit is used for acquiring and recording the magnetic data of the paper money under the current magnification factor every time the magnification factor of the magnetic sensor is adjusted once, so that the magnetic data of various different magnification factors are obtained.
Optionally, the magnetic data acquisition unit may include:
the target line determining subunit is used for determining each target line corresponding to the current magnification in the paper money;
and the first magnetic data acquisition subunit is used for acquiring and recording the magnetic data of each target row under all signal channels of the magnetic sensor, and the magnetic data is used as the magnetic data of the paper money under the current magnification.
Further, the number of the magnification values is M, where M is an integer greater than 1, and the magnetic data acquisition unit may further include:
the row dividing subunit is used for averagely dividing the row of the paper money into M parts, and the row number of each row contained in each part forms an arithmetic difference number sequence with the tolerance of M;
a first association subunit, configured to construct a correspondence between the M portions and the M magnification values, where one portion corresponds to one magnification value.
Optionally, the magnetic data acquisition unit may include:
a target signal channel determining subunit, configured to determine each target signal channel corresponding to the current amplification factor in the signal channels of the magnetic sensor;
and the second magnetic data acquisition subunit is used for acquiring and recording the magnetic data of each row of the paper money under the target signal channel of the magnetic sensor as the magnetic data of the paper money under the current magnification.
Further, the number of the magnification values is N, where N is an integer greater than 1, and the magnetic data acquisition unit may further include:
a channel number increasing subunit, configured to increase the number of signal channels of the magnetic sensor to N times the original number;
a channel dividing subunit, configured to averagely divide the increased number of signal channels of the magnetic sensor into N parts;
a second association subunit, configured to construct a correspondence between the N parts and the N magnification values, where one part corresponds to one magnification value.
Further, the magnetic data selecting module may include:
the paper money image acquisition unit is used for acquiring an image of the paper money through an image sensor;
a banknote type determination unit for determining the type of the banknote from the image of the banknote;
a first multiple search unit for searching a first magnification corresponding to the type of the paper money;
a first magnetic data selecting unit configured to select magnetic data of the first magnification from the plurality of magnetic data of different magnifications as the target magnetic data;
an area identifier acquisition unit for acquiring an input area identifier;
the to-be-inspected area determining unit is used for determining the area of the current to-be-inspected magnetic characteristics of the paper money according to the area identifier;
the second magnification searching unit is used for searching a second magnification corresponding to the area;
a second magnetic data selecting unit configured to select the magnetic data at the second magnification from the plurality of magnetic data at different magnifications as the target magnetic data.
The embodiment of the present application further provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement any one of the steps of the method for detecting magnetic data of a banknote as shown in fig. 1 to 4.
Embodiments of the present application also provide a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the steps of any one of the methods for detecting magnetic data of a banknote as shown in fig. 1 to 4.
The embodiment of the present application further provides a computer program product, which when run on a terminal device, causes the terminal device to execute the steps of implementing any one of the methods for detecting magnetic data of paper currency as shown in fig. 1 to 4.
Fig. 6 is a schematic diagram of a terminal device according to an embodiment of the present application. As shown in fig. 6, the terminal device 6 of this embodiment includes: a processor 60, a memory 61 and a computer program 62 stored in said memory 61 and executable on said processor 60. The processor 60, when executing the computer program 62, implements the steps of the various embodiments of the method of detecting magnetic data of banknotes described above, such as the steps 101 to 102 shown in figure 1. Alternatively, the processor 60, when executing the computer program 62, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 501 to 502 shown in fig. 5.
The computer program 62 may be divided into one or more modules/units that are stored in the memory 61 and executed by the processor 60 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 62 in the terminal device 6.
The Processor 60 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may be an internal storage unit of the terminal device 6, such as a hard disk or a memory of the terminal device 6. The memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the terminal device 6. The memory 61 is used for storing the computer program and other programs and data required by the terminal device. The memory 61 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.
Claims (10)
1. A method of detecting magnetic data of a banknote, comprising:
in the process of detecting the magnetic data of the paper money through the magnetic sensor, adjusting the magnification factor of the magnetic sensor to obtain various magnetic data with different magnification factors;
and selecting target magnetic data from the plurality of magnetic data with different magnifications as the detected magnetic data of the paper currency according to the type of the paper currency or the area of the current magnetic feature to be detected of the paper currency.
2. A method of sensing magnetic data from a banknote as claimed in claim 1 wherein said adjusting the magnification of said magnetic sensor to obtain a plurality of different magnifications of the magnetic data comprises:
acquiring a plurality of preset different magnification times;
sending a configuration instruction to the magnetic sensors to sequentially adjust the magnification of the magnetic sensors to the magnification values;
and acquiring and recording the magnetic data of the paper money under the current magnification every time the magnification of the magnetic sensor is adjusted once, thereby obtaining the magnetic data of various magnifications.
3. The method of claim 2 wherein said collecting and recording magnetic data of said note at a current magnification comprises:
determining each target row corresponding to the current magnification in the paper money;
and collecting and recording the magnetic data of each target row under all signal channels of the magnetic sensor as the magnetic data of the paper money under the current magnification.
4. A method of sensing magnetic data in a banknote as claimed in claim 3 wherein the number of magnification values is M, M being an integer greater than 1, and further comprising, prior to determining each target row in the banknote corresponding to the current magnification:
dividing the row of the paper money into M parts on average, wherein the row number of each row contained in each part forms an arithmetic difference number array with the tolerance of M;
constructing a correspondence between the M parts and the M magnification values, one part corresponding to one magnification value.
5. The method of claim 2 wherein said collecting and recording magnetic data of said note at a current magnification comprises:
determining each target signal channel corresponding to the current amplification factor in the signal channels of the magnetic sensor;
and collecting and recording the magnetic data of each row of the paper currency under the target signal channel of the magnetic sensor as the magnetic data of the paper currency under the current magnification.
6. The method of sensing magnetic data for a banknote of claim 5 wherein the number of magnification values is N, N being an integer greater than 1, and further comprising, prior to determining each of the target signal paths of the magnetic sensor corresponding to the current magnification:
increasing the number of signal channels of the magnetic sensor to N times the original number;
averagely dividing the increased number of signal channels of the magnetic sensor into N parts;
constructing a correspondence between the N parts and the N magnification values, one part corresponding to one magnification value.
7. The method of detecting banknote magnetic data according to any one of claims 1 to 6 wherein said selecting target magnetic data from said plurality of different magnification magnetic data according to the type of said banknote comprises:
acquiring an image of the paper money through an image sensor;
determining the type of the paper currency according to the image of the paper currency;
searching a first magnification corresponding to the type of the paper money;
selecting the magnetic data with the first magnification from the plurality of magnetic data with different magnifications as the target magnetic data;
the selecting the target magnetic data from the plurality of magnetic data with different magnifications according to the region of the magnetic feature to be detected of the paper money comprises the following steps:
acquiring an input area identifier;
determining the area of the magnetic feature to be tested of the paper currency according to the area identifier;
searching a second magnification corresponding to the area;
and selecting the magnetic data with the second magnification from the plurality of magnetic data with different magnifications as the target magnetic data.
8. An apparatus for detecting magnetic data of a banknote, comprising:
the amplification factor adjusting module is used for adjusting the amplification factor of the magnetic sensor in the process of detecting the magnetic data of the paper money through the magnetic sensor to obtain various magnetic data with different amplification factors;
and the magnetic data selection module is used for selecting target magnetic data from the magnetic data with different magnifications according to the type of the paper currency or the area of the current magnetic feature to be detected of the paper currency, and the target magnetic data is used as the detected magnetic data of the paper currency.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, carries out the steps of the method of detecting magnetic data of banknotes according to any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of a method of detecting magnetic data of banknotes according to any one of claims 1 to 7.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910879657.2A CN112530077B (en) | 2019-09-18 | 2019-09-18 | Method and device for detecting magnetic data of paper money, terminal equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910879657.2A CN112530077B (en) | 2019-09-18 | 2019-09-18 | Method and device for detecting magnetic data of paper money, terminal equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112530077A true CN112530077A (en) | 2021-03-19 |
| CN112530077B CN112530077B (en) | 2022-10-11 |
Family
ID=74974967
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910879657.2A Active CN112530077B (en) | 2019-09-18 | 2019-09-18 | Method and device for detecting magnetic data of paper money, terminal equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112530077B (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0594569A (en) * | 1991-03-05 | 1993-04-16 | Laurel Bank Mach Co Ltd | Automatic adjustment device of magnetic detection circuit in bill counting machine |
| JP2005257440A (en) * | 2004-03-11 | 2005-09-22 | Hitachi Omron Terminal Solutions Corp | Paper sheet identification device |
| EP2306409A2 (en) * | 2008-06-25 | 2011-04-06 | LG N-Sys Inc. | Medium discrimination apparatus and discrimination method thereof |
| CN204423492U (en) * | 2014-12-31 | 2015-06-24 | 聚龙股份有限公司 | A kind of Detecting of coin system |
| CN105809810A (en) * | 2014-12-31 | 2016-07-27 | 聚龙股份有限公司 | Coin detection system and method |
-
2019
- 2019-09-18 CN CN201910879657.2A patent/CN112530077B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0594569A (en) * | 1991-03-05 | 1993-04-16 | Laurel Bank Mach Co Ltd | Automatic adjustment device of magnetic detection circuit in bill counting machine |
| JP2005257440A (en) * | 2004-03-11 | 2005-09-22 | Hitachi Omron Terminal Solutions Corp | Paper sheet identification device |
| EP2306409A2 (en) * | 2008-06-25 | 2011-04-06 | LG N-Sys Inc. | Medium discrimination apparatus and discrimination method thereof |
| CN204423492U (en) * | 2014-12-31 | 2015-06-24 | 聚龙股份有限公司 | A kind of Detecting of coin system |
| CN105809810A (en) * | 2014-12-31 | 2016-07-27 | 聚龙股份有限公司 | Coin detection system and method |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112530077B (en) | 2022-10-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107331031B (en) | A kind of recognition methods of note denomination, device, equipment and storage medium | |
| CN106355739B (en) | A kind of method and device that detection bank note is new and old | |
| JPH06195543A (en) | Paper money discriminating device | |
| CN102005078A (en) | Method and device for recognizing paper currencies and tickets | |
| CN1106629C (en) | Coin detector calibration method and apparatus | |
| CN107067540B (en) | A kind of detection method and device that paper is re-opened | |
| CN107134047A (en) | White watermark detection method and device | |
| CN107507330A (en) | Detection method, detection means and the terminal device of banknote thickness abnormity | |
| CN112530077B (en) | Method and device for detecting magnetic data of paper money, terminal equipment and storage medium | |
| CN107742359B (en) | banknote identification method and device, terminal equipment and readable storage medium | |
| CN106204616B (en) | Method and device for identifying currency value of Iran paper money | |
| KR20070011867A (en) | Method and apparatus for recognizing banknote serial number | |
| CN112802259B (en) | Method and device for detecting number of paper money in money box, terminal equipment and storage medium | |
| CN113269919A (en) | Banknote identifying method, banknote identifying device, medium and banknote identifying apparatus | |
| KR20070011866A (en) | Method and apparatus for recognizing banknote denomination | |
| CN108961530B (en) | Paper currency defect identification method and system | |
| CN108877028B (en) | Method, device and equipment for detecting paper money | |
| CN106910276B (en) | Detect the new and old method and device of bank note | |
| JP4431690B2 (en) | Disc-shaped object recognition system, apparatus and method | |
| CN108074322B (en) | Image identification method and device | |
| CN108665604B (en) | Method and device for detecting new and old grades of paper money | |
| CN106846606A (en) | A kind of collecting method, device and finance device | |
| JP2009265998A (en) | Image processing system, image processing method, and image processing program | |
| JP3187698B2 (en) | Paper sheet recognition device | |
| CN113256873A (en) | Paper money abnormality detection method, paper money abnormality detection device, electronic apparatus, and machine storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |