CN113160480A - Method and device for detecting thickness of bank note, computer equipment and storage medium - Google Patents

Method and device for detecting thickness of bank note, computer equipment and storage medium Download PDF

Info

Publication number
CN113160480A
CN113160480A CN202010070028.8A CN202010070028A CN113160480A CN 113160480 A CN113160480 A CN 113160480A CN 202010070028 A CN202010070028 A CN 202010070028A CN 113160480 A CN113160480 A CN 113160480A
Authority
CN
China
Prior art keywords
thickness
banknote
value
detected
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.)
Pending
Application number
CN202010070028.8A
Other languages
Chinese (zh)
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 CN202010070028.8A priority Critical patent/CN113160480A/en
Publication of CN113160480A publication Critical patent/CN113160480A/en
Pending legal-status Critical Current

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/16Testing the dimensions
    • G07D7/162Length or width
    • 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/20Testing patterns thereon

Abstract

The invention relates to a method for detecting the thickness of a banknote, which comprises the following steps: acquiring thickness data of the bank note to be detected, and acquiring image data of the bank note to be detected; extracting effective thickness data according to the thickness data of the to-be-detected bank notes, calculating to obtain average thickness data according to the effective thickness data, and determining the bank note grade corresponding to the to-be-detected bank notes according to the image data; calculating to obtain a target thickness relative value according to the effective thickness data and the average thickness data; determining a thickness template value corresponding to the banknote to be detected according to the banknote grade, and calculating according to the thickness template value and the target thickness relative value to obtain a target thickness value; according to the target thickness values, whether the thickness of the banknote to be detected is abnormal or not is determined, so that the banknote detection accuracy of the abnormal thickness can be simply and efficiently improved, the counterfeit detection capability of the banknote is enhanced, and the error rate is extremely low. In addition, a banknote thickness detection device, a computer device and a storage medium are also provided.

Description

Method and device for detecting thickness of bank note, computer equipment and storage medium
Technical Field
The invention relates to the technical field of electronic testing, in particular to a method and a device for detecting the thickness of a banknote, computer equipment and a storage medium.
Background
The CRS cash recycling system is widely used in banks, and when abnormal judgment and authenticity identification are carried out on bank notes, the thickness of the bank notes is often required to be detected, but the thickness abnormal detection capability is not high due to the difference of thickness modules, or the normal genuine bank notes are often detected by mistake. The bank has high counterfeit identification requirement on bank notes, new requirements are provided for the capability of judging the abnormal bank note, the abnormal thickness condition such as sticking adhesive tapes or white paper on real bank notes needs to be judged and detected, the existing bank note detection module thickness sensor has few channels, signal difference exists between individual thickness sensors, the transverse resolution is lower than that of an image sensor, the capability is limited, and the bank notes with abnormal thickness cannot be correctly detected.
Disclosure of Invention
Based on the above, the invention provides a banknote thickness detection method, device, computer equipment and storage medium, which can simply and efficiently improve the banknote detection accuracy of abnormal thickness, enhance the counterfeit detection capability of banknotes and have extremely low error rate.
A method of banknote thickness detection, the method comprising:
acquiring thickness data of the bank note to be detected, and acquiring image data of the bank note to be detected;
extracting effective thickness data according to the thickness data of the banknote to be detected, calculating to obtain average thickness data according to the effective thickness data, and determining the banknote grade corresponding to the banknote to be detected according to the image data;
calculating to obtain a target thickness relative value according to the effective thickness data and the average thickness data;
determining a thickness template value corresponding to the banknote to be detected according to the banknote grade, and calculating a target thickness value according to the thickness template value and the target thickness relative value;
and determining whether the thickness of the banknote to be detected is abnormal or not according to the target thickness value.
In one embodiment, the determining the thickness template value corresponding to the banknote to be detected according to the banknote grade includes: acquiring the direction of the paper money passing; and determining the thickness template value according to the banknote grade and the banknote passing direction.
In one embodiment, the thickness template value is obtained by the following steps: obtaining a plurality of sample effective thickness data corresponding to the sample bank notes in each bank note passing direction; calculating to obtain the average thickness data of the samples corresponding to each banknote passing direction according to the effective thickness data of the samples; and calculating to obtain a plurality of sample thickness relative values corresponding to each banknote passing direction according to the plurality of sample effective thickness data corresponding to each banknote passing direction and the sample average thickness data, and screening out a thickness template value corresponding to each banknote passing direction from the plurality of sample thickness relative values.
In one embodiment, said calculating a target thickness value from said thickness template value and said target relative thickness value comprises: calculating a difference between the target thickness relative value and a thickness template value; and taking the difference value as a target thickness value.
In one embodiment, the determining whether the thickness of the banknote to be detected is abnormal according to the target thickness value includes: acquiring a first preset direction, acquiring a first preset threshold, acquiring the number of the target thickness values in the first preset direction which are larger than the first preset threshold, acquiring a first preset number threshold, and determining that the thickness of the to-be-detected bank notes is abnormal when the number is larger than the first preset number threshold; acquiring a second preset direction, acquiring a second preset threshold, acquiring the number of the target thickness values in the second preset direction which are larger than the second preset threshold, acquiring a second preset number threshold, and determining that the thickness of the banknote to be detected is abnormal when the number is larger than the second preset number threshold; the method comprises the steps of obtaining a preset area, obtaining a third preset threshold value, obtaining the number of the target thickness values in the preset area which are larger than the third preset threshold value, obtaining a third preset number threshold value, and determining that the thickness of the banknote to be detected is abnormal when the number is larger than the third preset number threshold value.
In one embodiment, the extracting effective thickness data according to the thickness data of the banknote to be detected, and calculating average thickness data according to the effective thickness data includes: acquiring a preset thickness threshold corresponding to the thickness data of the banknote to be detected; extracting effective thickness data according to the preset thickness threshold value and the thickness data of the banknote to be detected; and calculating the mean value of the effective thickness data, and taking the mean value as the average thickness data.
In one embodiment, the calculating a target thickness relative value according to the effective thickness data and the average thickness data includes: calculating a difference between the effective thickness data and the average thickness data; and taking the difference value as a target thickness relative value.
In a second aspect, an embodiment of the present invention provides an apparatus for detecting the thickness of a banknote, the apparatus including:
the acquisition module is used for acquiring the thickness data of the bank note to be detected and acquiring the image data of the bank note to be detected;
the extraction module is used for extracting effective thickness data according to the thickness data of the to-be-detected bank notes, calculating to obtain average thickness data according to the effective thickness data, and determining the bank note grade corresponding to the to-be-detected bank notes according to the image data;
the first calculation module is used for calculating a target thickness relative value according to the effective thickness data and the average thickness data;
the second calculation module is used for determining a thickness template value corresponding to the banknote to be detected according to the banknote grade and calculating a target thickness value according to the thickness template value and the target thickness relative value;
and the detection module is used for determining whether the thickness of the banknote to be detected is abnormal or not according to the target thickness value.
In a third aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, where the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to execute the following steps:
acquiring thickness data of the bank note to be detected, and acquiring image data of the bank note to be detected;
extracting effective thickness data according to the thickness data of the banknote to be detected, calculating to obtain average thickness data according to the effective thickness data, and determining the banknote grade corresponding to the banknote to be detected according to the image data;
calculating to obtain a target thickness relative value according to the effective thickness data and the average thickness data;
determining a thickness template value corresponding to the banknote to be detected according to the banknote grade, and calculating a target thickness value according to the thickness template value and the target thickness relative value;
and determining whether the thickness of the banknote to be detected is abnormal or not according to the target thickness value.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the processor is caused to execute the following steps:
acquiring thickness data of the bank note to be detected, and acquiring image data of the bank note to be detected;
extracting effective thickness data according to the thickness data of the banknote to be detected, calculating to obtain average thickness data according to the effective thickness data, and determining the banknote grade corresponding to the banknote to be detected according to the image data;
calculating to obtain a target thickness relative value according to the effective thickness data and the average thickness data;
determining a thickness template value corresponding to the banknote to be detected according to the banknote grade, and calculating a target thickness value according to the thickness template value and the target thickness relative value;
and determining whether the thickness of the banknote to be detected is abnormal or not according to the target thickness value.
According to the method, the device, the computer equipment and the storage medium for detecting the thickness of the banknote, the image data of the banknote to be detected is obtained by obtaining the thickness data of the banknote to be detected, effective thickness data is extracted according to the thickness data of the banknote to be detected, average thickness data is obtained by calculation according to the effective thickness data, the banknote grade corresponding to the banknote to be detected is determined according to the image data, a target thickness relative value is obtained by calculation according to the effective thickness data and the average thickness data, a thickness template value corresponding to the banknote to be detected is determined according to the banknote grade, a target thickness value is obtained by calculation according to the thickness template value and the target thickness relative value, and whether the thickness of the banknote to be detected is abnormal or not is determined according to the target thickness value. Calculating to obtain a target thickness relative value according to the thickness data of the to-be-detected bank notes; the grade of the banknote corresponding to the banknote to be detected can be determined through the image data of the banknote to be detected, and the thickness template value corresponding to the banknote to be detected can be determined according to the grade of the banknote; and finally, a target thickness value can be calculated according to the target thickness relative value and the thickness template value, and whether the banknote to be detected is abnormal or not can be determined according to the target thickness value, so that the banknote detection accuracy of the abnormal thickness can be simply and efficiently improved, the banknote identification capability can be enhanced, and the error rate is extremely low.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is a flow chart of a method of detecting the thickness of a banknote in one embodiment;
FIG. 2 is a flow chart of obtaining a thickness template value in one embodiment;
FIG. 3 is a flow chart of calculating a target thickness value in one embodiment;
FIG. 4 is a flow chart of the determination of whether a banknote being tested is anomalous in one embodiment;
FIG. 5 is a flow chart of obtaining effective thickness data and obtaining average thickness data according to one embodiment;
fig. 6 is a block diagram showing the structure of a banknote thickness detection apparatus according to an embodiment;
FIG. 7 is a block diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, a method for detecting the thickness of a banknote is proposed, which can be applied to a terminal, and this embodiment is exemplified as being applied to a terminal. The method for detecting the thickness of the banknote specifically comprises the following steps:
and 102, acquiring thickness data of the to-be-detected bank notes, and acquiring image data of the to-be-detected bank notes.
The bank note to be detected is the bank note needing to be detected; the thickness data of the banknotes to be detected refer to an array formed by all thickness values corresponding to the banknotes to be detected, and one banknote to be detected corresponds to one group of thickness data; the image data of the to-be-detected bill refers to the information of each image corresponding to the detected to-be-detected bill. The bank notes to be detected can be bank notes of different versions, different denominations or different countries, and the thickness data of the bank notes to be detected can be the distance between the upper surface and the lower surface corresponding to each collecting point on the bank notes to be detected, which is collected by the thickness sensor. The purpose of acquiring the thickness data of the to-be-detected bank note is to determine whether the thickness of the to-be-detected bank note is abnormal or not according to the thickness data, for example, whether a foreign matter such as an adhesive tape or white paper is attached to the to-be-detected bank note or not and whether the thickness of the to-be-detected bank note attached with the foreign matter is abnormal or not are determined; the image data of the to-be-detected bank note is obtained so as to determine the bank note grade corresponding to the to-be-detected bank note according to the image data. In one embodiment, a thickness sensor can be used for respectively acquiring a plurality of thickness values corresponding to a plurality of acquisition points on the banknote to be detected, and the acquired thickness values are combined to obtain thickness data of the banknote to be detected; the image data of the bank note to be detected can be obtained by scanning the bank note to be detected through the system.
And 104, extracting effective thickness data according to the thickness data of the to-be-detected banknote, calculating to obtain average thickness data according to the effective thickness data, and determining the banknote grade corresponding to the to-be-detected banknote according to the image data.
The effective thickness data refers to an array formed by useful thickness data in the acquired thickness data, and one banknote to be detected corresponds to one effective thickness data; the average thickness data refers to an average value among a plurality of useful thickness data in a set of effective thickness data; the banknote grade refers to the corresponding new and old degree of the pre-divided banknotes to be detected, and the banknote grade can be divided according to requirements. Because a plurality of irrelevant data may exist in the acquired thickness data, the relevant thickness data can be screened from the thickness data according to the requirement, namely, the effective thickness data is extracted. The calculated average thickness data can be used to calculate a target thickness relative value. The purpose of determining the grade of the banknote corresponding to the banknote to be detected is to distinguish the new degree and the old degree of the banknote to be detected, and since the thickness of the banknote changes to a certain extent after long-term wear and tear, and the thickness of the brand-new banknote is greatly different from the thickness of the banknote used for a long time, when the thickness of the banknote to be detected is detected, the new degree and the old degree of the banknote to be detected can be determined in advance, namely, the grade of the banknote corresponding to the banknote to be detected can be determined firstly, and then the thickness template value corresponding to the banknote to be detected is determined according to the grade of the banknote, so that the accurate thickness of the banknote to be detected can be obtained. In one embodiment, a threshold corresponding to the effective thickness data can be preset, and the effective thickness data is extracted from the thickness data of the banknote to be detected according to the preset threshold; the average value between the effective thickness data can be calculated, and the obtained average value is used as the average thickness data; a plurality of banknote grades can be preset, and then the banknote grade corresponding to the banknote to be detected can be determined through a new image algorithm and an old image algorithm according to the image data of the banknote to be detected, or the banknote grade corresponding to the banknote to be detected can be determined artificially.
And 106, calculating to obtain a target thickness relative value according to the effective thickness data and the average thickness data.
The target thickness relative value refers to an array consisting of differences relative to effective thickness data which are required to be obtained. Due to the fact that the different thickness sensors are different, thickness data acquired by using the different thickness sensors to acquire the same banknote to be detected have certain fluctuation up and down, but concave-convex fluctuation characteristics in the acquired thickness data of the banknote to be detected are basically stable, a target thickness relative value can be obtained through calculation, and therefore the stable and accurate thickness value of the banknote to be detected can be obtained. In one embodiment, the target thickness relative value may be calculated from the effective thickness data and the average thickness data, for example, a difference between each useful thickness data in the effective thickness data and the average thickness data may be calculated separately, so that the target thickness relative value with respect to each useful thickness data may be obtained.
And 108, determining a thickness template value corresponding to the banknote to be detected according to the banknote grade, and calculating a target thickness value according to the thickness template value and the target thickness relative value.
The thickness template value refers to a modeling characteristic value of a characteristic template corresponding to the banknote grade, one banknote grade corresponds to one characteristic template, and one characteristic template corresponds to one modeling characteristic value; the target thickness value refers to data representing the thickness of the banknote to be inspected. Because the characteristic templates corresponding to different banknotes are different, the characteristic templates corresponding to the banknotes to be detected can be accurately matched according to the new and old degrees of the characteristic templates, and therefore the thickness template values corresponding to the characteristic templates can be obtained. For example, assume that a banknote to be inspected corresponds to a banknote grade of X1Then the feature template corresponding to the banknote grade may be M1Thereby M can be determined1Thickness template value of M1[11][77]. According to the obtained thickness template value M1[11][77]And the target thickness relative value, the target thickness value can be calculated. For example, assume that the relative values of the target thicknesses are b1[11][77]And b2[12][77]B can be calculated separately1[11][77]、b2[12][77]And thickness template value M1[11][77]The difference can be used as the target thickness value, and the target thickness value can be obtained. The target thickness value may be used to determine whether the thickness of the banknote to be detected is abnormal.
And step 110, determining whether the thickness of the banknote to be detected is abnormal or not according to the target thickness value.
Determining whether the thickness of the banknote to be detected is abnormal refers to determining whether the thickness of the banknote to be detected meets the requirement, and when the thickness of the banknote to be detected meets the requirement, determining that the thickness of the banknote to be detected is normal; when the thickness of the banknote to be detected does not meet the requirement, it can be determined that the thickness of the banknote to be detected is abnormal. In one embodiment, it may be determined from the target thickness value whether the thickness of the banknote to be inspected is abnormal. The target thickness value can represent the thickness of the banknote to be detected, so that whether the target thickness value exceeds the preset threshold value or not can be determined according to the preset threshold value by presetting the threshold value of the target thickness value, and when the target thickness value does not exceed the preset threshold value, the thickness of the banknote to be detected can be determined to meet the requirement, so that the thickness of the banknote to be detected can be determined to be normal; when the target thickness value exceeds the preset threshold value, the thickness of the banknote to be detected can be determined to be not in accordance with the requirement, so that the thickness of the banknote to be detected can be determined to be abnormal.
According to the method, the device, the computer equipment and the storage medium for detecting the thickness of the bank note, a target relative thickness value can be calculated according to the thickness data of the bank note to be detected; the grade of the banknote corresponding to the banknote to be detected can be determined through the image data of the banknote to be detected, and the thickness template value corresponding to the banknote to be detected can be determined according to the grade of the banknote; and finally, a target thickness value can be calculated according to the target thickness relative value and the thickness template value, and whether the banknote to be detected is abnormal or not can be determined according to the target thickness value, so that the banknote detection accuracy of the abnormal thickness can be simply and efficiently improved, the banknote identification capability can be enhanced, and the error rate is extremely low.
As shown in fig. 2, in an embodiment, the determining the thickness template value corresponding to the banknote to be detected according to the banknote grade includes:
step 202, acquiring the direction of the banknotes.
The paper money passing direction refers to the direction in which the paper money to be detected enters the thickness sensor, and can be divided into four according to the shape of the paper money to be detected, for example, the paper money passing direction can be divided into a first paper money passing direction, a second paper money passing direction, a third paper money passing direction and a fourth paper money passing direction by taking the RMB as an example. The direction of the banknotes to be detected entering the thickness sensor is different, so that the obtained banknote passing directions are also different. For example, assuming that the direction in which the to-be-detected bill enters the thickness sensor is the first banknote passing direction of the to-be-detected bill, the first banknote passing direction may be acquired as the direction of the to-be-detected bill.
And step 204, determining the thickness template value according to the banknote grade and the banknote passing direction.
The thickness template values of the to-be-detected bank notes in the same bank note grade and different bank note passing directions are different, so that the thickness template values of the to-be-detected bank notes can be determined according to the bank note grade and the bank note passing directions. In one embodiment, assume that the banknote to be inspected corresponds to a banknote class of X2If the bill passing direction is the first bill passing direction, the corresponding thickness template value is M2-1[11][77](ii) a In another embodiment, it is assumed that the banknote to be inspected corresponds to a banknote class of X1If the banknote passing direction is the third banknote passing direction, the corresponding thickness template value is M1-3[11][77]. From which a thickness template value can be determined. By acquiring the banknote passing direction and determining the thickness template value according to the banknote grade and the banknote passing direction, the thickness template value corresponding to each banknote passing direction of the to-be-detected banknote can be obtained accurately, and the method is suitable for banknote thickness detection of different types and different countries, so that the detection result is more accurate.
As shown in fig. 3, in one embodiment, the thickness template value is obtained by the following steps:
step 302, obtaining a plurality of sample effective thickness data corresponding to each banknote passing direction of the sample banknote.
The effective thickness data of the sample refers to the useful thickness data of the sample bill corresponding to each bill passing direction. The effective thickness data of the samples corresponding to the sample banknotes in different banknote passing directions are different, so that the effective thickness data of the samples corresponding to the sample banknotes in each banknote passing direction can be obtained respectively. In one embodiment, it is assumed that the banknote passing directions of the sample banknote are the first banknote passing direction, the second banknote passing direction, the third banknote passing direction and the fourth banknote passing direction, respectively, and the effective thickness data of the sample corresponding to the first banknote passing direction are a1-1[11][77]、a1-2[11][77]、a1-3[11][77]Assuming that the effective thickness data of the sample corresponding to the second banknote-passing direction is a2-1[11][77]、a2-2[11][77]、a2-3[11][77]Suppose that the effective thickness data of the sample corresponding to the third banknote-passing direction is a3-1[11][77]、a3-2[11][77]、a3-3[11][77]Suppose that the effective thickness data of the sample corresponding to the fourth banknote-passing direction is a4-1[11][77]、a4-2[11][77]、a4-3[11][77]And respectively obtaining a plurality of sample effective thickness data corresponding to the four banknote passing directions, so as to respectively obtain a plurality of sample effective thickness data corresponding to the first banknote passing direction, a plurality of sample effective thickness data corresponding to the second banknote passing direction, a plurality of sample effective thickness data corresponding to the third banknote passing direction and a plurality of sample effective thickness data corresponding to the fourth banknote passing direction.
And step 304, calculating to obtain the average thickness data of the samples corresponding to each bill passing direction according to the effective thickness data of the samples.
The sample average thickness data refers to an average value among a plurality of sample effective thickness data corresponding to each banknote passing direction. The sample average thickness data can be used to calculate a sample thickness relative value. In one embodiment, it is assumed that the effective thickness data of the sample corresponding to the first banknote-passing direction is a1-1[11][77]、a1-2[11][77]、a1-3[11][77]Assuming the sample average thickness data is m1The calculating of the average thickness data of the samples according to the effective thickness data of the plurality of samples may be: m is1=(a1-1[11][77]+a1-2[11][77]+a1-3[11][77]) And/3, calculating the average thickness data m of the sample1
Step 306, calculating a plurality of sample thickness relative values corresponding to each banknote passing direction according to the plurality of sample effective thickness data corresponding to each banknote passing direction and the sample average thickness data, and screening out a thickness template value corresponding to each banknote passing direction from the plurality of sample thickness relative values.
Wherein, the sample thickness relative value refers to a difference value in the thickness data of the sample banknote relative to the sample effective thickness data, and the sample thickness relative value can be a plurality of values. Because the different thickness sensors have differences, and errors may exist between the thickness data of the same sample banknote acquired by using the different thickness sensors, a stable sample thickness relative value corresponding to the sample banknote can be obtained through calculation, so that more accurate thickness data of the sample banknote can be obtained. In one embodiment, the difference between each sample effective thickness data corresponding to each banknote passing direction and the sample average thickness data may be calculated, and the obtained plurality of differences are respectively used as a plurality of sample thickness relative values, for example, it is assumed that the sample effective thickness data corresponding to the second banknote passing direction is a2-1[12][77]、a2-2[12][77]、a2-3[12][77]Assuming that the average thickness data of the samples corresponding to the second banknote-passing direction is m2Then the relative value b of the sample thickness can be calculated respectively2-1[12][77]=a2-1[12][77]-m2,b2-2[12][77]=a2-2[12][77]-m2,b2-3[12][77]=a2-3[12][77]-m2So that a plurality of relative values b of the thickness of the sample can be obtained respectively2-1[12][77]、b2-2[12][77]And b2-3[12][77]. The thickness template value corresponding to each banknote passing direction is screened from the relative thickness values of a plurality of samples, and can be selected fromMultiple relative values of sample thickness b2-1[12][77]、b2-2[12][77]And b2-3[12][77]The thickness template value corresponding to the second banknote-passing direction is obtained by screening, for example, the maximum value b in the relative values of the thicknesses of a plurality of samples can be screened2-3[12][77]The maximum value b obtained2-3[12][77]And the thickness template value corresponding to the second banknote passing direction is used. Through respectively obtaining a plurality of sample effective thickness data and sample average thickness data corresponding to the sample bank notes in each bank note passing direction, a plurality of sample thickness relative values are obtained through calculation according to the plurality of sample effective thickness data and the sample average thickness data, and then the thickness template value corresponding to each bank note passing direction is obtained through screening from the plurality of sample thickness relative values, so that all thickness data of the sample bank notes can be covered, and comprehensive modeling is realized.
In one embodiment, said calculating a target thickness value from said thickness template value and said target relative thickness value comprises:
and calculating the difference between the target thickness relative value and the thickness template value.
In one embodiment, assume a relative value of target thickness of b1[i][j]Assuming a thickness template value of M1[i][j]Assuming that the difference between the calculated target thickness relative value and the thickness template value is c1[i][j]Then c is1[i][j]=b1[i][j]-M1[i][j]And thus, the difference between the target thickness relative value and the thickness template value can be obtained.
And taking the difference value as a target thickness value.
In one embodiment, the calculated difference may be used as the target thickness value. For example, assume that the obtained differences are c respectively1[10][77],c1[11][77],c1[12][177]Then the result c can be compared1[10][77]、c1[11][77]、c1[12][177]As corresponding three target thickness values. By respectively calculating the difference between each target thickness relative value and the thickness template value and taking the obtained difference as the target thickness value, different countries, versions or denominations can be quickly detected according to different characteristics of different paper moneyThe thickness data of the to-be-detected bank notes are high in adaptability and flexible and changeable.
As shown in fig. 4, in one embodiment, the determining whether the thickness of the banknote to be detected is abnormal according to the target thickness value includes:
step 402, acquiring a first preset direction, acquiring a first preset threshold, acquiring the number of the target thickness values in the first preset direction which are larger than the first preset threshold, acquiring a first preset number threshold, and determining that the thickness of the banknote to be detected is abnormal when the number is larger than the first preset number threshold.
The first preset direction refers to a preset first detection direction; the first preset threshold is a first critical value corresponding to a preset target thickness value; the first preset number threshold is a preset critical value of the number of the target thickness values in the first preset direction larger than the first preset threshold. The target thickness value can represent the thickness of the banknote to be detected, so that a first preset threshold value can be preset, whether the target thickness value meets the requirement in the first preset direction or not is determined according to the first preset direction and the first preset threshold value, and when the target thickness value does not exceed the first preset threshold value, the thickness of the banknote to be detected can be determined to meet the requirement; when the target thickness value exceeds a first preset threshold value, it can be determined that the thickness of the banknote to be detected does not meet the requirements. The number of the target thickness values which do not meet the requirements can be counted, and when the number of the target thickness values which do not meet the requirements exceeds a first preset number threshold value, the thickness abnormity of the bank note to be detected can be determined.
In one embodiment, assuming that the first predetermined direction is the 11-pass direction of the thickness sensor, the target thickness value is assumed to be c1[11][77]The first preset threshold may be y1[11][77]. May be to obtain a target thickness value c1[11][77]Continuously exceeding a first preset threshold y in the direction of 11 channels1[11][77]Assuming that the number of target thickness values continuously exceeding the first preset threshold is 5, and assuming that the first preset number threshold is 3, the obtained number continuously exceeding the first preset threshold exceeds the first preset numberA threshold value, so that it can be determined that the thickness of the banknote to be inspected is abnormal. If the number of the target thickness values exceeding the first preset threshold is 2, the number continuously exceeding the first preset threshold does not exceed the first preset number threshold, so that the thickness of the banknote to be detected is determined to be normal.
Step 404, obtaining a second preset direction, obtaining a second preset threshold, obtaining the number of the target thickness values in the second preset direction which are larger than the second preset threshold, obtaining a second preset number threshold, and determining that the thickness of the banknote to be detected is abnormal when the number is larger than the second preset number threshold.
The second preset direction refers to a preset second detection direction; the second preset threshold is a second critical value corresponding to a preset target thickness value; the second preset number threshold is a preset critical value of the number of the target thickness values in the second preset direction larger than the second preset threshold. The target thickness value can represent the thickness of the banknote to be detected, so that a second preset threshold value can be preset, whether the target thickness value meets the requirement in the second preset direction or not is determined according to the second preset direction and the second preset threshold value, and when the target thickness value does not exceed the second preset threshold value, the thickness of the banknote to be detected can be determined to meet the requirement; when the target thickness value exceeds a second preset threshold value, it can be determined that the thickness of the banknote to be detected does not meet the requirement. The number of the target thickness values which do not meet the requirements can be counted, and when the number of the target thickness values which do not meet the requirements exceeds a second preset number threshold value, the thickness abnormity of the bank note to be detected can be determined.
In one embodiment, assuming that the second preset direction is a 77-point direction of the thickness sensor, the target thickness value is assumed to be c1[11][17]The second preset threshold may be y2[11][77]. May be to obtain a target thickness value c1[11][77]Continuously exceeding a second preset threshold y in the direction of 77 points2[11][77]Assuming that the number of target thickness values continuously exceeding the second preset threshold is 6, and assuming that the second preset number threshold is 5, the obtained number continuously exceeding the second preset threshold exceeds the second preset thresholdAnd the second preset number threshold value is adopted, so that the abnormal thickness of the banknote to be detected can be determined. If the number of the target thickness values continuously exceeding the second preset threshold value is 4, the obtained number continuously exceeding the second preset threshold value does not exceed the second preset number threshold value, so that the thickness of the banknote to be detected is determined to be normal.
Step 406, acquiring a preset region, acquiring a third preset threshold, acquiring the number of the target thickness values in the preset region which are larger than the third preset threshold, acquiring a third preset number threshold, and determining that the thickness of the banknote to be detected is abnormal when the number is larger than the third preset number threshold.
The preset area refers to a detection area preset on the bank note to be detected; the third preset threshold is a third critical value corresponding to a preset target thickness value; the third preset number threshold is a preset critical value of the number of the target thickness values in the third preset direction larger than the third preset threshold. The target thickness value can represent the thickness of the banknote to be detected, so that a third preset threshold value can be preset, whether the target thickness value meets the requirement in the preset area or not is determined according to the preset area and the first preset threshold value, and when the target thickness value does not exceed the third preset threshold value, the thickness of the banknote to be detected can be determined to meet the requirement; when the target thickness value exceeds a third preset threshold value, it can be determined that the thickness of the banknote to be detected does not meet the requirement. The number of the target thickness values which do not meet the requirements can be counted, and when the number of the target thickness values which do not meet the requirements exceeds a third preset number threshold value, the thickness abnormity of the bank note to be detected can be determined.
In one embodiment, assuming that the preset zone is a preset 6 x 6 unit area zone on the banknote to be inspected, the target thickness value is assumed to be c1[11][77]The third preset threshold may be y3[11][77]. The sliding matching can be carried out in the preset area, and then the target thickness value c is obtained1[11][77]Continuously exceeding a third preset threshold value y in a preset region of 6 x 6 unit areas3[11][77]Assuming a target thickness continuously exceeding a third preset thresholdThe number of the value values is 3, and if the first preset number threshold value is 2, the obtained number continuously exceeding the third preset number threshold value exceeds the third preset number threshold value, so that the thickness abnormity of the bank note to be detected can be determined. If the number of the target thickness values continuously exceeding the third preset threshold value is 1, the obtained number continuously exceeding the third preset threshold value does not exceed the second umbrella preset number threshold value, so that the thickness of the to-be-detected bank notes can be determined to be normal. Respectively obtaining a first preset direction, a second preset direction and a preset area, and respectively determining whether target thickness values in the first preset direction, the second preset direction and the preset area meet requirements or not according to each preset threshold, wherein when the target thickness values meet the requirements, the thickness of the banknote to be detected can be determined to be normal; when the target thickness value does not meet the requirements, it can be determined that the thickness of the banknote to be detected is abnormal. By the method, whether the thickness of the banknote to be detected is abnormal can be simply determined, and the thickness of the banknote to be detected can be detected in a channel-crossing mode through sliding matching of the preset area, so that the detection result is more accurate.
As shown in fig. 5, in an embodiment, the extracting effective thickness data according to the thickness data of the banknote to be detected, and calculating average thickness data according to the effective thickness data includes:
and 502, acquiring a preset thickness threshold corresponding to the thickness data of the banknote to be detected.
The preset thickness threshold refers to a preset critical value corresponding to the effective thickness data. The thickness data acquired by the thickness sensor can comprise background data of the thickness sensor and data of the to-be-detected bank notes, and only the data of the to-be-detected bank notes are required, so that the thickness data of the to-be-detected bank notes can be screened according to a preset thickness threshold value to obtain the data of the to-be-detected bank notes, and effective thickness data can be obtained. In one embodiment, the preset thickness threshold may be obtained assuming that the preset thickness threshold is 2142.
And step 504, extracting effective thickness data according to the preset thickness threshold value and the thickness data of the to-be-detected bank notes.
In one embodiment, the valid thickness data may be extracted from the thickness data of the banknote to be detected according to a preset thickness threshold. For example, assuming that the preset thickness threshold is 2141, assuming that the thickness data of the banknote to be detected is {56, 313,781, 1093, 2142,2142,2143}, the thickness data larger than the preset thickness threshold can be screened from the thickness data of the banknote to be detected to obtain screened thickness data {2142,2142,2143}, and the thickness data larger than the preset thickness threshold is extracted, so that effective thickness data can be obtained, and the effective thickness data can be used for calculating average thickness data.
Step 506, calculating a mean value of the effective thickness data, and taking the mean value as the average thickness data.
The effective thickness data refers to an array consisting of a plurality of thickness data extracted from the thickness data of the banknote to be detected and a preset threshold value; the mean value is the average value among a plurality of effective thickness data obtained by calculation. In one embodiment, the average between the effective thickness data may be calculated, and the resulting average may be taken as the average thickness data. For example, assuming that the effective thickness data is {2128,2129,2129,2130}, the average of the effective thickness data may be: if (2128+2129+2129+2130)/4 is 2129, the mean 2129 can be used as the average thickness data. The thickness data of the bank note to be detected is screened according to the preset thickness threshold, so that the data denoising processing of the thickness data of the bank note to be detected can be realized, and the accurate effective thickness data corresponding to the bank note to be detected can be obtained; and calculating to obtain average thickness data according to the effective thickness data obtained by screening, so that accurate average thickness data can be obtained, and the thickness detection result of the banknote to be detected can be more accurate.
In one embodiment, the calculating a target thickness relative value according to the effective thickness data and the average thickness data includes:
calculating a difference between the effective thickness data and the average thickness data.
In one embodiment, an effective thickness is assumedData is a1[10][177]Assuming that the average thickness data is m1Then, a plurality of difference values can be calculated respectively: b1[10][177]=a1[10][177]-m1Thereby, a difference b can be obtained1[10][177]。
And taking the difference value as a target thickness relative value.
In one embodiment, the resulting difference may be taken as the target thickness relative value. For example, suppose that the obtained differences are b respectively1[10][177]Then b can be substituted1[10][177]As the target thickness relative value, a plurality of target thickness relative values can be obtained. By respectively calculating the difference between the effective thickness data and the evaluation thickness data, the obtained difference value can be used as a target thickness relative value, so that a stable and reliable target thickness relative value can be obtained.
As shown in fig. 6, an embodiment of the present invention provides a banknote thickness detection apparatus, including:
the acquiring module 602 is configured to acquire thickness data of a banknote to be detected and acquire image data of the banknote to be detected;
the extracting module 604 is configured to extract effective thickness data according to the thickness data of the banknote to be detected, calculate average thickness data according to the effective thickness data, and determine a banknote grade corresponding to the banknote to be detected according to the image data;
a first calculating module 606, configured to calculate a target thickness relative value according to the effective thickness data and the average thickness data;
the second calculating module 608 is configured to determine a thickness template value corresponding to the banknote to be detected according to the banknote grade, and calculate a target thickness value according to the thickness template value and the target thickness relative value;
and the detection module 610 is used for determining whether the thickness of the banknote to be detected is abnormal or not according to the target thickness value.
In one embodiment, the determining the thickness template value corresponding to the banknote to be detected according to the banknote grade includes: the obtaining module 602 is further configured to obtain a banknote passing direction; the detection module 610 is further configured to determine the thickness template value according to the banknote grade and the banknote passing direction.
In one embodiment, the thickness template value is obtained by the following steps: the obtaining module 602 is further configured to obtain a plurality of sample effective thickness data corresponding to the sample banknotes in each banknote passing direction; the first calculating module 606 is further configured to calculate, according to the effective thickness data of the multiple samples, average thickness data of the samples corresponding to each banknote passing direction; the first calculating module 606 is further configured to calculate a plurality of sample thickness relative values corresponding to each banknote passing direction according to the plurality of sample effective thickness data corresponding to each banknote passing direction and the sample average thickness data, and screen out a thickness template value corresponding to each banknote passing direction from the plurality of sample thickness relative values.
In one embodiment, said calculating a target thickness value from said thickness template value and said target relative thickness value comprises: the second calculating module 608 is further configured to calculate a difference between the target thickness relative value and the thickness template value; and taking the difference value as a target thickness value.
In one embodiment, the determining whether the thickness of the banknote to be detected is abnormal according to the target thickness value includes: the obtaining module 602 is further configured to obtain a first preset direction, obtain a first preset threshold, obtain the number of the target thickness values in the first preset direction that are greater than the first preset threshold, obtain a first preset number threshold, and determine that the thickness of the banknote to be detected is abnormal when the number is greater than the first preset number threshold; the obtaining module 602 is further configured to obtain a second preset direction, obtain a second preset threshold, obtain the number of the target thickness values in the second preset direction that are greater than the second preset threshold, obtain a second preset number threshold, and determine that the thickness of the banknote to be detected is abnormal when the number is greater than the second preset number threshold; the obtaining module 602 is further configured to obtain a preset region, obtain a third preset threshold, obtain the number of the target thickness values in the preset region that are greater than the third preset threshold, obtain a third preset number threshold, and determine that the thickness of the banknote to be detected is abnormal when the number is greater than the third preset number threshold.
In one embodiment, the extracting effective thickness data according to the thickness data of the banknote to be detected, and calculating average thickness data according to the effective thickness data includes: the obtaining module 602 is further configured to obtain a preset thickness threshold corresponding to the thickness data of the banknote to be detected; the extracting module 604 is further configured to extract effective thickness data according to the preset thickness threshold and the thickness data of the banknote to be detected; the first calculating module 606 is further configured to calculate a mean value of the effective thickness data, and use the mean value as the average thickness data.
In one embodiment, the calculating a target thickness relative value according to the effective thickness data and the average thickness data includes: the second calculation module 606 is further configured to calculate a difference between the effective thickness data and the average thickness data; and taking the difference value as a target thickness relative value.
FIG. 7 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may be a terminal. As shown in fig. 7, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program which, when executed by the processor, causes the processor to implement the method of detecting the thickness of a banknote. The internal memory may also have stored therein a computer program which, when executed by the processor, causes the processor to perform a method of detecting the thickness of a banknote. The network interface is used for communicating with the outside. Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the method for detecting the thickness of a banknote provided by the present application can be implemented in the form of a computer program, and the computer program can be run on a computer device as shown in fig. 7. The memory of the computer device can store the various program templates which form the detection device for the thickness of the banknotes. For example, the obtaining module 702, the extracting module 604, the first calculating module 606, the second calculating module 608, and the detecting module 610.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of: acquiring thickness data of the bank note to be detected, and acquiring image data of the bank note to be detected; extracting effective thickness data according to the thickness data of the banknote to be detected, calculating to obtain average thickness data according to the effective thickness data, and determining the banknote grade corresponding to the banknote to be detected according to the image data; calculating to obtain a target thickness relative value according to the effective thickness data and the average thickness data; determining a thickness template value corresponding to the banknote to be detected according to the banknote grade, and calculating a target thickness value according to the thickness template value and the target thickness relative value; and determining whether the thickness of the banknote to be detected is abnormal or not according to the target thickness value.
In one embodiment, the determining the thickness template value corresponding to the banknote to be detected according to the banknote grade includes: acquiring the direction of the paper money passing; and determining the thickness template value according to the banknote grade and the banknote passing direction.
In one embodiment, the thickness template value is obtained by the following steps: obtaining a plurality of sample effective thickness data corresponding to the sample bank notes in each bank note passing direction; calculating to obtain the average thickness data of the samples corresponding to each banknote passing direction according to the effective thickness data of the samples; and calculating to obtain a plurality of sample thickness relative values corresponding to each banknote passing direction according to the plurality of sample effective thickness data corresponding to each banknote passing direction and the sample average thickness data, and screening out a thickness template value corresponding to each banknote passing direction from the plurality of sample thickness relative values.
In one embodiment, said calculating a target thickness value from said thickness template value and said target relative thickness value comprises: calculating a difference between the target thickness relative value and a thickness template value; and taking the difference value as a target thickness value.
In one embodiment, the determining whether the thickness of the banknote to be detected is abnormal according to the target thickness value includes: acquiring a first preset direction, acquiring a first preset threshold, acquiring the number of the target thickness values in the first preset direction which are larger than the first preset threshold, acquiring a first preset number threshold, and determining that the thickness of the to-be-detected bank notes is abnormal when the number is larger than the first preset number threshold; acquiring a second preset direction, acquiring a second preset threshold, acquiring the number of the target thickness values in the second preset direction which are larger than the second preset threshold, acquiring a second preset number threshold, and determining that the thickness of the banknote to be detected is abnormal when the number is larger than the second preset number threshold; the method comprises the steps of obtaining a preset area, obtaining a third preset threshold value, obtaining the number of the target thickness values in the preset area which are larger than the third preset threshold value, obtaining a third preset number threshold value, and determining that the thickness of the banknote to be detected is abnormal when the number is larger than the third preset number threshold value.
In one embodiment, the extracting effective thickness data according to the thickness data of the banknote to be detected, and calculating average thickness data according to the effective thickness data includes: acquiring a preset thickness threshold corresponding to the thickness data of the banknote to be detected; extracting effective thickness data according to the preset thickness threshold value and the thickness data of the banknote to be detected; and calculating the mean value of the effective thickness data, and taking the mean value as the average thickness data.
In one embodiment, the calculating a target thickness relative value according to the effective thickness data and the average thickness data includes: calculating a difference between the effective thickness data and the average thickness data; and taking the difference value as a target thickness relative value.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of: acquiring thickness data of the bank note to be detected, and acquiring image data of the bank note to be detected; extracting effective thickness data according to the thickness data of the banknote to be detected, calculating to obtain average thickness data according to the effective thickness data, and determining the banknote grade corresponding to the banknote to be detected according to the image data; calculating to obtain a target thickness relative value according to the effective thickness data and the average thickness data; determining a thickness template value corresponding to the banknote to be detected according to the banknote grade, and calculating a target thickness value according to the thickness template value and the target thickness relative value; and determining whether the thickness of the banknote to be detected is abnormal or not according to the target thickness value.
In one embodiment, the determining the thickness template value corresponding to the banknote to be detected according to the banknote grade includes: acquiring the direction of the paper money passing; and determining the thickness template value according to the banknote grade and the banknote passing direction.
In one embodiment, the thickness template value is obtained by the following steps: obtaining a plurality of sample effective thickness data corresponding to the sample bank notes in each bank note passing direction; calculating to obtain the average thickness data of the samples corresponding to each banknote passing direction according to the effective thickness data of the samples; and calculating to obtain a plurality of sample thickness relative values corresponding to each banknote passing direction according to the plurality of sample effective thickness data corresponding to each banknote passing direction and the sample average thickness data, and screening out a thickness template value corresponding to each banknote passing direction from the plurality of sample thickness relative values.
In one embodiment, said calculating a target thickness value from said thickness template value and said target relative thickness value comprises: calculating the difference between the target thickness relative value and the thickness template value to obtain a difference value; and taking the difference value as a target thickness value.
In one embodiment, the determining whether the thickness of the banknote to be detected is abnormal according to the target thickness value includes: acquiring a first preset direction, acquiring a first preset threshold, acquiring the number of the target thickness values in the first preset direction which are larger than the first preset threshold, acquiring a first preset number threshold, and determining that the thickness of the to-be-detected bank notes is abnormal when the number is larger than the first preset number threshold; acquiring a second preset direction, acquiring a second preset threshold, acquiring the number of the target thickness values in the second preset direction which are larger than the second preset threshold, acquiring a second preset number threshold, and determining that the thickness of the banknote to be detected is abnormal when the number is larger than the second preset number threshold; the method comprises the steps of obtaining a preset area, obtaining a third preset threshold value, obtaining the number of the target thickness values in the preset area which are larger than the third preset threshold value, obtaining a third preset number threshold value, and determining that the thickness of the banknote to be detected is abnormal when the number is larger than the third preset number threshold value.
In one embodiment, the extracting effective thickness data according to the thickness data of the banknote to be detected, and calculating average thickness data according to the effective thickness data includes: acquiring a preset thickness threshold corresponding to the thickness data of the banknote to be detected; extracting effective thickness data according to the preset thickness threshold value and the thickness data of the banknote to be detected; and calculating the mean value of the effective thickness data, and taking the mean value as the average thickness data.
In one embodiment, the calculating a target thickness relative value according to the effective thickness data and the average thickness data includes: calculating a difference between the effective thickness data and the average thickness data; and taking the difference value as a target thickness relative value.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of detecting the thickness of a banknote, the method comprising:
acquiring thickness data of the bank note to be detected, and acquiring image data of the bank note to be detected;
extracting effective thickness data according to the thickness data of the banknote to be detected, calculating to obtain average thickness data according to the effective thickness data, and determining the banknote grade corresponding to the banknote to be detected according to the image data;
calculating to obtain a target thickness relative value according to the effective thickness data and the average thickness data;
determining a thickness template value corresponding to the banknote to be detected according to the banknote grade, and calculating a target thickness value according to the thickness template value and the target thickness relative value;
and determining whether the thickness of the banknote to be detected is abnormal or not according to the target thickness value.
2. The method according to claim 1, wherein the determining of the corresponding thickness template value for the banknote to be tested according to the banknote grade comprises:
acquiring the direction of the paper money passing;
and determining the thickness template value according to the banknote grade and the banknote passing direction.
3. The method of claim 2, wherein the thickness template value is obtained by:
obtaining a plurality of sample effective thickness data corresponding to the sample bank notes in each bank note passing direction;
calculating to obtain the average thickness data of the samples corresponding to each banknote passing direction according to the effective thickness data of the samples;
and calculating to obtain a plurality of sample thickness relative values corresponding to each banknote passing direction according to the plurality of sample effective thickness data corresponding to each banknote passing direction and the sample average thickness data, and screening out a thickness template value corresponding to each banknote passing direction from the plurality of sample thickness relative values.
4. The method of claim 1, wherein said calculating a target thickness value from said thickness template value and said target relative thickness value comprises:
calculating a difference between the target thickness relative value and a thickness template value;
and taking the difference value as a target thickness value.
5. The method according to claim 1, characterized in that said determining whether the thickness of the banknote to be checked is abnormal, according to said target thickness value, comprises:
acquiring a first preset direction, acquiring a first preset threshold, acquiring the number of the target thickness values in the first preset direction which are larger than the first preset threshold, acquiring a first preset number threshold, and determining that the thickness of the to-be-detected bank notes is abnormal when the number is larger than the first preset number threshold;
acquiring a second preset direction, acquiring a second preset threshold, acquiring the number of the target thickness values in the second preset direction which are larger than the second preset threshold, acquiring a second preset number threshold, and determining that the thickness of the banknote to be detected is abnormal when the number is larger than the second preset number threshold;
the method comprises the steps of obtaining a preset area, obtaining a third preset threshold value, obtaining the number of the target thickness values in the preset area which are larger than the third preset threshold value, obtaining a third preset number threshold value, and determining that the thickness of the banknote to be detected is abnormal when the number is larger than the third preset number threshold value.
6. A method according to claim 1, wherein said extracting effective thickness data from thickness data of said banknote to be detected, and calculating average thickness data from said effective thickness data comprises:
acquiring a preset thickness threshold corresponding to the thickness data of the banknote to be detected;
extracting effective thickness data according to the preset thickness threshold value and the thickness data of the banknote to be detected;
and calculating the average value of the plurality of effective thickness data, and taking the average value as the average thickness data.
7. The method of claim 1, wherein calculating a target relative thickness value based on the effective thickness data and the average thickness data comprises:
calculating a difference between the plurality of effective thickness data and the average thickness data;
and taking the difference value as a target thickness relative value.
8. A banknote thickness detection device, comprising:
the acquisition module is used for acquiring the thickness data of the bank note to be detected and acquiring the image data of the bank note to be detected;
the extraction module is used for extracting effective thickness data according to the thickness data of the to-be-detected bank notes, calculating to obtain average thickness data according to the effective thickness data, and determining the bank note grade corresponding to the to-be-detected bank notes according to the image data;
the first calculation module is used for calculating a target thickness relative value according to the effective thickness data and the average thickness data;
the second calculation module is used for determining a thickness template value corresponding to the banknote to be detected according to the banknote grade and calculating a plurality of target thickness values according to the thickness template value and the target thickness relative value;
and the detection module is used for determining whether the thickness of the banknote to be detected is abnormal or not according to the target thickness value.
9. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 7.
CN202010070028.8A 2020-01-21 2020-01-21 Method and device for detecting thickness of bank note, computer equipment and storage medium Pending CN113160480A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010070028.8A CN113160480A (en) 2020-01-21 2020-01-21 Method and device for detecting thickness of bank note, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010070028.8A CN113160480A (en) 2020-01-21 2020-01-21 Method and device for detecting thickness of bank note, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113160480A true CN113160480A (en) 2021-07-23

Family

ID=76882261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010070028.8A Pending CN113160480A (en) 2020-01-21 2020-01-21 Method and device for detecting thickness of bank note, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113160480A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2246825A1 (en) * 2009-04-28 2010-11-03 Banqit AB Method for a banknote detector device, and a banknote detector device
CN103679914A (en) * 2013-12-12 2014-03-26 广州广电运通金融电子股份有限公司 Paper currency identification method and device based on thickness signal identification
CN104268979A (en) * 2014-10-30 2015-01-07 广州广电运通金融电子股份有限公司 Method and device for detecting overlapped bank note
CN105354912A (en) * 2015-09-14 2016-02-24 深圳怡化电脑股份有限公司 Method and device of banknote detection
US20160358399A1 (en) * 2013-12-12 2016-12-08 Grg Banking Equipment Co., Ltd. Method and system for recognizing bill with abnormal thickness
CN106875540A (en) * 2017-02-17 2017-06-20 深圳怡化电脑股份有限公司 A kind of banknote thickness abnormity detection method and device
CN106997635A (en) * 2017-03-03 2017-08-01 深圳怡化电脑股份有限公司 The detection method and its device of a kind of note surface foreign matter
CN107424287A (en) * 2017-08-03 2017-12-01 恒银金融科技股份有限公司 The stiff thickness detection method of adaptive stiff thickness detection module performance degradation
CN108932788A (en) * 2017-05-22 2018-12-04 深圳怡化电脑股份有限公司 A kind of detection method, device and the equipment of banknote thickness abnormity grade
CN109741516A (en) * 2018-12-20 2019-05-10 恒银金融科技股份有限公司 A kind of stiff thickness method of inspection

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2246825A1 (en) * 2009-04-28 2010-11-03 Banqit AB Method for a banknote detector device, and a banknote detector device
CN103679914A (en) * 2013-12-12 2014-03-26 广州广电运通金融电子股份有限公司 Paper currency identification method and device based on thickness signal identification
US20160358399A1 (en) * 2013-12-12 2016-12-08 Grg Banking Equipment Co., Ltd. Method and system for recognizing bill with abnormal thickness
CN104268979A (en) * 2014-10-30 2015-01-07 广州广电运通金融电子股份有限公司 Method and device for detecting overlapped bank note
CN105354912A (en) * 2015-09-14 2016-02-24 深圳怡化电脑股份有限公司 Method and device of banknote detection
CN106875540A (en) * 2017-02-17 2017-06-20 深圳怡化电脑股份有限公司 A kind of banknote thickness abnormity detection method and device
CN106997635A (en) * 2017-03-03 2017-08-01 深圳怡化电脑股份有限公司 The detection method and its device of a kind of note surface foreign matter
CN108932788A (en) * 2017-05-22 2018-12-04 深圳怡化电脑股份有限公司 A kind of detection method, device and the equipment of banknote thickness abnormity grade
CN107424287A (en) * 2017-08-03 2017-12-01 恒银金融科技股份有限公司 The stiff thickness detection method of adaptive stiff thickness detection module performance degradation
CN109741516A (en) * 2018-12-20 2019-05-10 恒银金融科技股份有限公司 A kind of stiff thickness method of inspection

Similar Documents

Publication Publication Date Title
WO2015085815A1 (en) Method and system for recognizing bill with abnormal thickness
JP5108018B2 (en) Paper sheet identification device and paper sheet identification method
CN103679914B (en) A kind of banknote recognition methods based on thickness signal identification and device
CN107507330B (en) Detection method, detection device and the terminal device of banknote thickness abnormity
KR920704243A (en) Method and apparatus for accepting coins, bills and other currencies and rejecting fake coins or counterfeit bills
EP2620920B1 (en) Valuable document identification method and system
CN104268979B (en) Method and device for detecting overlapped bank note
CN106355739A (en) Method and device for detecting new or old paper money
CN106599923B (en) Method and device for detecting seal anti-counterfeiting features
CN113192252B (en) Method, device, equipment and readable medium for detecting note duplicate
CN107067540B (en) A kind of detection method and device that paper is re-opened
CN113160480A (en) Method and device for detecting thickness of bank note, computer equipment and storage medium
CN112348750A (en) SAR image change detection method based on threshold fusion and neighborhood voting
CN106296975A (en) The recognition methods of a kind of dollar bill face amount and device
KR100404489B1 (en) Method for signature verification
CN108961530B (en) Paper currency defect identification method and system
CN108932788A (en) A kind of detection method, device and the equipment of banknote thickness abnormity grade
MXPA96002921A (en) Method for signature verification
CN113256868B (en) Currency detection method, currency detection device, currency detection terminal and storage medium
CN108665604B (en) Method and device for detecting new and old grades of paper money
CN107767528B (en) Paper money inspection method and device, ATM (automatic teller machine) and storage medium
CN113269917B (en) Magnetic medium identification method and device, electronic equipment and readable medium
CN113053020A (en) Bill thickness detection method and device, computer equipment and storage medium
CN109685971B (en) Folded paper money detection method, device and equipment
CN117218761B (en) Cash inspecting machine performance test system based on data analysis

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210723