CN112530077B - 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 PDF

Info

Publication number
CN112530077B
CN112530077B CN201910879657.2A CN201910879657A CN112530077B CN 112530077 B CN112530077 B CN 112530077B CN 201910879657 A CN201910879657 A CN 201910879657A CN 112530077 B CN112530077 B CN 112530077B
Authority
CN
China
Prior art keywords
magnetic data
magnification
magnetic
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.)
Active
Application number
CN201910879657.2A
Other languages
Chinese (zh)
Other versions
CN112530077A (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 CN201910879657.2A priority Critical patent/CN112530077B/en
Publication of CN112530077A publication Critical patent/CN112530077A/en
Application granted granted Critical
Publication of CN112530077B publication Critical patent/CN112530077B/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 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 of the magnetic sensor to obtain various magnetic data with different magnifications; 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 currency, when the paper currency is faced with different types of paper currencies or different areas of the same type of paper currencies, the magnetic data with proper magnification can be selected to obtain the effective magnetic data of all the magnetic characteristics on the paper currencies.

Description

Method and device for detecting magnetic data of paper money, terminal equipment and storage medium
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.
At present, the magnification 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 regions 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 effective 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 of the magnetic sensor to obtain various magnetic data with different magnifications;
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 numerical values;
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, preset magnification X 1 ,X 2 And X 3 First, the magnification of the magnetic sensor is adjusted to X 1 The collection magnification is X 1 And then adjusting the magnification of the magnetic sensor to X 2 The collection magnification is X 2 The magnetic data of the paper money, and finally, the magnification of the magnetic sensor is adjusted to X 3 The collection magnification is X 3 To obtain magnetic data of said banknotes, respectively at a magnification of X 1 ,X 2 And X 3 3 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, before determining each target line in the banknote corresponding to the current magnification, the number of the magnification values is M, where M is an integer greater than 1, the method may further include:
dividing the row of the paper money into M parts on average, wherein row numbers of each row contained in each part form an arithmetic progression with tolerance M;
a correspondence between the M parts and the M magnification values is constructed, 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 requirements 1 And X 2 The first row of the note being X 1 Collecting signal with magnification, and adopting X in the second row of paper money 2 And 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 signal channels (corresponding to 18 chips), and the line-by-line acquisition mode is adopted without changing hardware, and only the amplification factor of the magnetic sensor is dynamically set when data is acquired. The line-by-line acquisition mode has the disadvantage that the data acquisition density is reduced, such as: one amplification can collect 24 lines of signals and the two amplifications can only collect 12 lines of signals.
Specifically, the collecting 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 detected of the paper currency can comprise:
acquiring an input area identifier;
determining the area of the current magnetic characteristic 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.
On the first hand, the magnification factor of the magnetic sensor is adjusted, a plurality of magnetic data with different magnification factors are collected and stored, and then the magnetic data with the proper magnification factor is selected from the plurality of different magnification factors according to the type of the paper currency, so that the magnetic data with the proper magnification factor can be selected for different types of paper currencies, and effective magnetic data of all magnetic characteristics on the paper currencies can be obtained.
In the second aspect, the magnification factor of the magnetic sensor is adjusted, a plurality of magnetic data with different magnification factors are collected and stored, and then the magnetic data with the proper magnification factor is selected from the plurality of magnetic data with different magnification factors according to the region of the current magnetic feature to be detected of the paper currency, so that the magnetic data with the proper magnification factor can be selected for each different region of the same type of paper currency to obtain the effective magnetic data of all the magnetic features on the paper currency.
A second aspect of an embodiment of the present application provides an apparatus for detecting magnetic data of a banknote, including:
the magnification adjustment module 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 various magnetic data with different magnifications;
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, wherein 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 the 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 one 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 a relative importance or 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 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 region of the current magnetic characteristic 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 accordance with an embodiment of the present invention is shown, including:
201. acquiring a plurality of preset different magnification numerical values;
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 respectively, so that a plurality of different amplification factor values can be obtained.
202. Sending a configuration instruction to a magnetic sensor so as to sequentially adjust the magnification of the magnetic sensor to 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 obtained in step 201.
203. Every time the magnification of the magnetic sensor is adjusted, collecting and recording the magnetic data of the paper money under the current magnification, thereby obtaining the magnetic data of various magnifications;
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 comprises the following steps: 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 (8230), and so on until the magnetic data of each magnification value is obtained.
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 row numbers of each row contained in each part form an arithmetic progression with tolerance 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 X 1 、X 2 And X 3 If the bank note to be tested has 300 rows of row position coordinates, the 300 rows are divided into 3 parts, and the row numbers of the rows in each part form an arithmetic progression with a tolerance of M, namely, the first part is the 1 st, 4 th, 7 th and 10 th 8230of the bank note, the second part is the 2 nd, 5 th, 8 th and 11 th 8230of the bank note, and the third part is the 3 rd, 6 th, 9 th and 12 th 8230of the bank note. Then, a correspondence between the note line and the respective magnification value for each portion is constructed, such as X 1 Lines 8230corresponding to 1, 4, 7, 10 of banknotes. That is, if the current magnification is X 1 And collecting and recording the magnetic data of the 1 st, 4 th, 7 th and 10 th 8230of the paper currency under all signal channels of the magnetic sensor.
The line-by-line 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 can collect 24 lines of signals and the two amplifications can only collect 12 lines 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 X 1 、X 2 And X 3 The magnetic transmissionIf the original number of signal channels of the sensor is 18, the number of signal channels is added to the hardware (corresponding to the addition of the corresponding chip) to 18 × 3= 54. The 54 signal paths are then divided on average into 3 portions, such as signal paths numbered 1-18, signal paths numbered 19-36, and signal path 3 portion numbered 37-54. Next, a correspondence between the signal path and the respective magnification factor value for each portion is constructed, such as X 1 Corresponding to signal paths numbered 1-18. That is, if the current magnification is X 1 Then 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 region of the current magnetic characteristic to be detected of the paper currency.
Step 204 is the same as step 102, and the detailed description of step 102 can be referred to.
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 accordance with an embodiment of the present invention 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 factor 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 current magnetic characteristic 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 banknote currently being tested for the magnetic characteristic, 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 currency.
And finally, selecting the magnetic data with the magnification corresponding to the region 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.
A method of sensing magnetic data of a banknote is described above generally and an apparatus for sensing magnetic data of a banknote is described below.
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 row numbers of each row contained in each part form an arithmetic 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 divide the increased number of signal channels of the magnetic sensor into N parts on average;
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 identification 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 further 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 should be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional units and modules is only used for illustration, and in practical applications, the above function distribution may be performed by different functional units and modules as needed, that is, the internal structure of the apparatus may be divided into different functional units or modules to perform all or part of the above described 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. For the specific working processes of the units and modules in the system, reference may be made to the corresponding processes in the foregoing method embodiments, which are not described herein again.
It can be clearly understood by those skilled in the art that, for convenience and simplicity 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 description of each embodiment has its own emphasis, and reference may be made to the related description of other embodiments for parts that are not described or recited in any 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 type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or 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 position, or may be distributed on multiple 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 may be implemented in the form of hardware, or may also be implemented in the 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 (9)

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;
according to the type of the paper currency or the area of the current magnetic characteristic to be detected of the paper currency, selecting target magnetic data from the magnetic data with different magnifications as the detected magnetic data of the paper currency;
wherein the selecting of the target magnetic data from the plurality of magnetic data of different magnifications according to the type of the banknote includes:
acquiring an image of the paper currency 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 magnetic data with the plurality of different magnifications as the target magnetic data;
the selecting target magnetic data from the magnetic data with different magnifications according to the area of the current magnetic characteristic to be detected of the paper currency comprises the following steps:
acquiring an input area identifier;
determining the area of the current magnetic characteristic 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.
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 row numbers of each row contained in each part form an arithmetic progression with tolerance 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 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.
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. An apparatus for detecting magnetic data of a banknote, comprising:
the magnification adjustment module 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 various magnetic data with different magnifications;
the magnetic data selection module is used for selecting target magnetic data from the magnetic data with different magnification factors according to the type of the paper money or the area of the current magnetic feature to be detected of the paper money, and the target magnetic data is used as the detected magnetic data of the paper money;
wherein the magnetic data selection module comprises:
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 searching 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 identification 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.
8. 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 realizes the steps of the method of detecting magnetic data of banknotes according to any one of claims 1 to 6 when executing the computer program.
9. 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 a banknote according to any one of claims 1 to 6.
CN201910879657.2A 2019-09-18 2019-09-18 Method and device for detecting magnetic data of paper money, terminal equipment and storage medium Active CN112530077B (en)

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 CN112530077A (en) 2021-03-19
CN112530077B true 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)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
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
CN102077253B (en) * 2008-06-25 2014-05-14 乐金信世股份有限公司 Medium discrimination apparatus and discrimination method thereof
CN105809810A (en) * 2014-12-31 2016-07-27 聚龙股份有限公司 Coin detection system and method
CN204423492U (en) * 2014-12-31 2015-06-24 聚龙股份有限公司 A kind of Detecting of coin system

Also Published As

Publication number Publication date
CN112530077A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
CN107331031B (en) A kind of recognition methods of note denomination, device, equipment and storage medium
CN102005078A (en) Method and device for recognizing paper currencies and tickets
CN106355739A (en) Method and device for detecting new or old paper money
CN107578526B (en) Banknote identification method and device, terminal equipment and readable storage medium
CN1106629C (en) Coin detector calibration method and apparatus
CN107742359B (en) banknote identification method and device, terminal equipment and readable storage medium
CN107134047A (en) White watermark detection method and device
CN112530077B (en) Method and device for detecting magnetic data of paper money, terminal equipment and storage medium
CN107067540B (en) A kind of detection method and device that paper is re-opened
CN106204616B (en) Method and device for identifying currency value of Iran paper money
KR20070011867A (en) Method and apparatus for recognizing banknote serial number
KR101001691B1 (en) Recognition method of wavelet using wavelet transform
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
CN107730707A (en) A kind of false distinguishing method and device of valuable document
CN108335403B (en) Banknote thickness detection method and device, terminal equipment and storage medium
CN111462392A (en) Method and device for identifying paper money based on multispectral image similarity algorithm
CN106898084B (en) method and device for determining image processing threshold
CN108877028B (en) Method, device and equipment for detecting paper money
CN108961530B (en) Paper currency defect identification method and system
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
JP3187698B2 (en) Paper sheet recognition 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