CN111524268A - Method, device and equipment for detecting paper money adhesive substance - Google Patents

Method, device and equipment for detecting paper money adhesive substance Download PDF

Info

Publication number
CN111524268A
CN111524268A CN201910039598.8A CN201910039598A CN111524268A CN 111524268 A CN111524268 A CN 111524268A CN 201910039598 A CN201910039598 A CN 201910039598A CN 111524268 A CN111524268 A CN 111524268A
Authority
CN
China
Prior art keywords
traversal
value
paper money
image
sum value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910039598.8A
Other languages
Chinese (zh)
Other versions
CN111524268B (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 CN201910039598.8A priority Critical patent/CN111524268B/en
Publication of CN111524268A publication Critical patent/CN111524268A/en
Application granted granted Critical
Publication of CN111524268B publication Critical patent/CN111524268B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D7/00Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
    • G07D7/06Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency using wave or particle radiation
    • G07D7/12Visible light, infrared or ultraviolet radiation
    • 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
    • G07D7/2008Testing patterns thereon using pre-processing, e.g. de-blurring, averaging, normalisation or rotation

Landscapes

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

Abstract

The invention discloses a method, a device and equipment for detecting a paper money adhesive substance, wherein the method comprises the following steps: acquiring a fluorescence image of the paper money to be detected, and performing binarization processing on the fluorescence image to obtain a binarization image of the paper money to be detected; performing sum value traversal calculation on the binary image according to a first traversal sequence, and acquiring a position of which the sum value meets a preset condition as a refining traversal position; and performing sum value traversal calculation on the binary image at the thinning traversal position according to a second traversal sequence, and determining whether the paper money to be detected has a sticky object or not according to a sum value calculation result. The technical scheme of the embodiment of the invention can improve the detection rate of the paper money stickers.

Description

Method, device and equipment for detecting paper money adhesive substance
Technical Field
The invention relates to the technical field of paper money identification, in particular to a method, a device and equipment for detecting a paper money adhesive substance.
Background
Paper money is widely distributed in various aspects of social life as an exchange medium. In the circulation process, the paper money is inevitably worn and changed into damaged or worn money. In daily life, people often use damaged currency to be continuously used after the damaged currency is processed by using a sticker (such as an adhesive tape), but at present, equipment such as a common currency detector, an Automatic Teller Machine (ATM) and the like cannot accurately identify the currency with the sticker, and even the equipment is damaged when the currency is identified.
In the prior art, two methods are generally adopted to detect stickers in paper money. A method for distinguishing the reflectivity of infrared light by the paper money stuck on an object (such as adhesive tape) by optical sensor. The other uses a Hall sensor to measure the thickness of the paper money through a structure and finally converts the thickness into an electronic quantity.
In the process of implementing the invention, the inventor finds that the prior art has the following defects: the infrared reflection type detection method mainly uses a scheme of transmitting and receiving, the resolution ratio is low, and the detection result is seriously influenced by the old and new paper money, the face value of the paper money and the temperature change. The detection method for measuring the thickness of the paper money has high requirement on the consistency of the structure, the influence of vibration needs to be eliminated, and the control on the production consistency is difficult. Therefore, the comprehensive detection rate of the conventional paper money stickers is low.
Disclosure of Invention
The invention provides a method, a device and equipment for detecting a paper money adhesive substance, which are used for improving the detection rate of the paper money adhesive substance.
In a first aspect, an embodiment of the present invention provides a method for detecting a banknote attached matter, including:
acquiring a fluorescence image of the paper money to be detected, and performing binarization processing on the fluorescence image to obtain a binarization image of the paper money to be detected;
performing sum value traversal calculation on the binary image according to a first traversal sequence, and acquiring a position of which the sum value meets a preset condition as a refining traversal position;
performing sum value traversal calculation on the binary image at the thinning traversal position according to a second traversal sequence, and determining whether the paper money to be detected has a sticky object or not according to a sum value calculation result;
and the sum value is the sum of the number of the set pixel points. .
In a second aspect, an embodiment of the present invention further provides a device for detecting a banknote attached matter, including:
the binarization image acquisition module is used for acquiring a fluorescence image of the paper money to be detected and carrying out binarization processing on the fluorescence image to obtain a binarization image of the paper money to be detected;
the thinning traversal position acquisition module is used for performing value traversal calculation on the binary image according to a first traversal sequence, and acquiring a position of which the sum value meets a preset condition as a thinning traversal position;
the first sticker determining module is used for performing sum value traversal calculation on the binary image at the refining traversal position according to a second traversal sequence and determining whether a sticker exists on the paper money to be detected according to a sum value calculation result;
and the sum value is the sum of the number of the set pixel points.
In a third aspect, an embodiment of the present invention further provides a financial instrument device, including:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method for detecting a banknote sticker provided by any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, which when executed by a processor, implements the method for detecting a banknote sticker provided in any embodiment of the present invention.
According to the embodiment of the invention, the obtained fluorescent image of the paper money to be detected is subjected to binarization processing to obtain the binarized image of the paper money to be detected, the binarized image is subjected to sum value traversal calculation according to the first traversal sequence, the position where the sum value meets the preset condition is obtained as the refined traversal position, the binarized image is subjected to sum value traversal calculation according to the second traversal sequence at the refined traversal position, whether the paper money to be detected has the stickers or not is determined according to the sum value calculation result, the problem of low detection rate of the existing paper money stickers detection method is solved, and the detection rate of the paper money stickers is improved.
Drawings
Fig. 1 is a flowchart of a method for detecting a banknote adhesive according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for detecting a banknote adhesive according to a second embodiment of the present invention;
fig. 3a is a flowchart of a method for detecting a banknote adhesive according to a third embodiment of the present invention;
FIG. 3b is a schematic diagram of a fluorescence image of a banknote to be detected according to a third embodiment of the present invention;
fig. 3c is a schematic diagram of a binarized image of a banknote to be measured according to a third embodiment of the present invention;
fig. 3d is a statistical graph of sum values obtained by performing sum value traversal calculation on the binarized image according to the first traversal order according to the third embodiment of the present invention;
fig. 4 is a schematic view of a banknote attached matter detection device according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a financial tool device according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a method for detecting a banknote adhesive according to an embodiment of the present invention, where the method is applicable to detecting a banknote adhesive, and the method may be implemented by a banknote adhesive detecting apparatus, which may be implemented by software and/or hardware, and may be generally integrated into various banknote identification devices (typically, various sorters or ATMs, etc.). As shown in fig. 1, the method includes the operations of:
s110, obtaining a fluorescence image of the paper money to be detected, and performing binarization processing on the fluorescence image to obtain a binarization image of the paper money to be detected.
The paper money to be detected is the paper money needing to detect whether the stickers exist or not. In an embodiment of the present invention, the sticker may optionally include an adhesive tape.
In the embodiment of the invention, when detecting whether the sticking object exists in the paper money to be detected, the fluorescence image of the paper money to be detected can be obtained firstly. This is because if there is a sticker in the bill to be tested, especially a reflective sticker such as an adhesive tape, there will be an obvious trace in the fluorescence image. Correspondingly, after the fluorescence image of the paper money to be detected is obtained, binarization processing can be carried out on the fluorescence image, so that a binarization image of the paper money to be detected is obtained.
In an optional embodiment of the present invention, the binarizing processing on the fluorescence image may include: and carrying out alternate sampling processing on the fluorescence image, and carrying out binarization processing on the processed fluorescence image.
In the embodiment of the invention, when the fluorescent image is subjected to binarization processing, alternate-point sampling processing can be performed on the fluorescent image to obtain a half-reduced fluorescent image. When the fluorescence image obtained after the alternate point sampling processing is subjected to binarization processing, the fluorescence image obtained after the processing can be firstly converted into a gray level image, and a certain proportion of pixel points are selected according to the gray level image for binarization processing. For example, when the binarization processing is performed, a histogram may be established according to each pixel point in the grayscale image, and the grayscale value of 2% of the bright point pixel points (e.g., pixel points having grayscale values of 254 and 255) may be selected according to the established histogram and set to 255, and the grayscale value of the remaining pixel points may be set to 0.
And S120, performing sum value traversal calculation on the binary image according to the first traversal order, and acquiring a position of which the sum value meets a preset condition as a refining traversal position.
The first traversal order may be a traversal order set according to actual requirements, such as traversal from top to bottom. The preset condition may also be a determination condition set according to an actual demand, such as a maximum sum value. The refinement traversal position can be a certain line position in the binary image, and more refined traversal calculation can be carried out according to a preset area at the refinement traversal position.
Correspondingly, after the binary image of the paper money to be detected is obtained, the binary image can be subjected to sum value traversal calculation according to the first traversal sequence, and the position where the sum value meets the preset condition is obtained as the thinning traversal position. For example, sum value traversal calculation is performed on the binarized image in the order from top to bottom, and the position where the sum value is maximum is acquired as the refined traversal position. The sum is the sum of the number of the set pixels, and optionally, the set pixels may be pixels with a gray value of 255.
S130, performing sum value traversal calculation on the binary image at the refining traversal position according to a second traversal sequence, and determining whether the paper money to be detected has a sticker according to a sum value calculation result.
The second traversal order may be a traversal order set according to actual requirements, such as traversing from left to right.
In the embodiment of the invention, after the refining traversal position is obtained, the sum value traversal calculation can be continuously carried out on the binary image at the refining traversal position according to the second traversal order, and whether the paper money to be detected has the stickers or not is determined according to the sum value calculation result. For example, sum value traversal calculation is performed on the binary image in the order from left to right at the thinning traversal position, and whether the stickers exist in the paper money to be detected is determined according to the specific sum value of the set pixel points at the thinning traversal position.
In an alternative embodiment of the invention, the sum traversal calculation comprises an integral map calculation method.
It should be noted that, in order to increase the calculation speed, in the embodiment of the present invention, optionally, the sum value traversal calculation may be implemented by an integral graph calculation method.
By adopting the scheme, the binaryzation treatment is carried out on the fluorescence map of the paper money to be detected, the position of the suspicious sticker in the paper money to be detected is positioned through different traversal sequences, the characteristics of the sticker can be rapidly and effectively detected, and the detection rate of the paper money sticker is improved.
According to the embodiment of the invention, the obtained fluorescent image of the paper money to be detected is subjected to binarization processing to obtain the binarized image of the paper money to be detected, the binarized image is subjected to sum value traversal calculation according to the first traversal sequence, the position where the sum value meets the preset condition is obtained as the refined traversal position, the binarized image is subjected to sum value traversal calculation according to the second traversal sequence at the refined traversal position, whether the paper money to be detected has the stickers or not is determined according to the sum value calculation result, the problem of low detection rate of the existing paper money stickers detection method is solved, and the detection rate of the paper money stickers is improved.
Example two
Fig. 2 is a flowchart of a method for detecting a banknote sticker according to a second embodiment of the present invention, which is embodied on the basis of the above embodiments, and in this embodiment, a specific implementation manner is provided in which a sum value calculation is performed on the binarized image according to a first traversal order, and a sum value calculation is performed on the binarized image according to a second traversal order at the thinned traversal position, and whether a sticker exists on the banknote to be detected is determined according to a sum value calculation result. Correspondingly, as shown in fig. 2, the method of the present embodiment may include:
s210, obtaining a fluorescence image of the paper money to be detected, and performing binarization processing on the fluorescence image to obtain a binarization image of the paper money to be detected.
S220, sequentially calculating the sum value in a first preset range for the binary image according to the traversal sequence from top to bottom or from left to right.
When the first traversal order is from top to bottom, the first preset range is a range formed by a set height value and the binarization image width value; when the first traversal order is from left to right, the first preset range is a range formed by a set width value and the height value of the binary image.
The set height value and the set width value related to the first preset range may be values adaptively set according to shape characteristics of the sticker, for example, when the sticker is a tape, the set height value and the set width value may be 20 pixels, and the specific values of the set height value and the set width value are not limited in the embodiment of the present invention. Correspondingly, when the first traversal order is from top to bottom, the first preset range may be a multi-line scanning range in the binarized image; when the first traversal order is from left to right, the first preset range may be a multi-column scanning range in the binarized image.
In the embodiment of the invention, when the binary image of the paper money to be detected is traversed, the sum value in the first preset range can be sequentially calculated according to the traversal sequence from top to bottom or from left to right. Specifically, the stickers with the width larger than the height value can be effectively detected according to the traversal sequence from top to bottom, and the stickers with the height larger than the width value can be effectively detected according to the traversal sequence from left to right.
And S230, acquiring the position of which the sum value meets the preset condition as a refining traversal position.
S240, sequentially calculating the sum value in a second preset range for the binary image at the refining traversal position according to a traversal sequence from left to right or from top to bottom.
The second preset range is a range formed by a set height value and a set width value; the second traversal order is distinct from the first traversal order.
Similarly, in the embodiment of the present invention, both the set height value and the set width value related to the second preset range may be values adaptively set according to the shape characteristics of the sticker, for example, when the sticker is a tape, the set height value and the set width value may be 20 × 30 or 30 × 20 (unit is a pixel), and the embodiment of the present invention does not limit specific values of the set height value and the set width value.
Correspondingly, when the binary image is subjected to the value traversal calculation at the refining traversal position, the sum values in the second preset range can be calculated sequentially according to the traversal sequence from left to right or from top to bottom. It should be noted that the second traversal order is different from the first traversal order. That is, when the first traversal order is from top to bottom, the second traversal order is from left to right; accordingly, when the first traversal order is from left to right, the second traversal order is from top to bottom.
And S250, if the sum value in one second preset range at the refining traversal position exceeds a first preset threshold value, determining that the to-be-detected paper currency has a sticky object.
The first preset threshold may be a value set according to a characteristic of the sticker. For example, when the sticker is a tape, the first preset threshold may be set to 550.
In the embodiment of the invention, after different traversal orders are adopted to traverse the binary image, if the thinning traversal position where the sum of the set pixel points meets the preset condition is determined through the first traversal order, and the sum of the set pixel points in one second preset range exceeds the first preset threshold value during traversal calculation at the thinning traversal position, the fact that the stickers exist in the paper money to be detected can be determined.
By adopting the technical scheme, the binary image of the paper money to be detected is scanned and positioned in sequence by adopting different traversing orders, so that whether the stickers exist in the paper money to be detected is determined according to the sum of the set pixel points obtained by scanning, the problem of low detection rate of the existing paper money stickers detection method is solved, and the detection rate of the paper money stickers is improved.
EXAMPLE III
Fig. 3a is a flowchart of a method for detecting a banknote sticker according to a third embodiment of the present invention, which is embodied based on the above embodiments, and in this embodiment, a specific implementation manner for further determining whether a sticker exists in a banknote is provided. Accordingly, as shown in fig. 3a, the method of the present embodiment may include:
s310, obtaining a fluorescence image of the paper money to be detected, and carrying out binarization processing on the fluorescence image to obtain a binarization image of the paper money to be detected.
And S320, sequentially calculating the sum value in a first preset range for the binary image according to the traversal sequence from top to bottom or from left to right.
When the first traversal order is from top to bottom, the first preset range is a range formed by a set height value and the binarization image width value; when the first traversal order is from left to right, the first preset range is a range formed by a set width value and the height value of the binary image.
And S330, acquiring the position of which the sum value meets the preset condition as a refining traversal position.
S340, sequentially calculating the sum value in a second preset range for the binary image at the refining traversal position according to a traversal sequence from left to right or from top to bottom.
The second preset range is a range formed by a set height value and a set width value; the second traversal order is distinct from the first traversal order.
S350, resetting the thinning traversal position and the gray value of the set pixel point in the setting range of the thinning traversal position.
The setting range may be a range selected according to actual requirements, for example, a range formed by positions of 5 pixel points near the distance-refining traversal position, and the embodiment of the present invention does not limit specific values of the setting range. The set pixel point may be a pixel point with a gray value of 255, i.e., a white point.
In the embodiment of the invention, in order to further improve the accuracy of detecting the paper money stickers, the sum value traversal calculation is carried out on the binary image at the thinning traversal position according to the second traversal sequence, and after the sum value of the set pixel points obtained by calculation is determined to exceed the first preset threshold value, the gray values of the set pixel points at the thinning traversal position and in the setting range of the thinning traversal position can be reset. For example, the grayscale values at the refinement traversal position and the white points within the refinement traversal position setting range are set to zero or a minimum value.
And S360, judging whether the preset traversal times are reached. If so, go to step S370, otherwise, go back to step S320.
The preset traversal number may be a value set according to a characteristic of the sticker, such as 4, 5, or 10, which is not limited in the embodiment of the present invention.
Correspondingly, after the number of the set pixel points in the thinning traversal position and the thinning traversal position setting range is reset, the sum value traversal calculation can be performed again according to the first traversal order and the second traversal order, so that the thinning traversal position with the sum value exceeding the first preset threshold value is continuously located until the preset traversal number is reached.
And S370, if the number of the refining traversal positions of which the sum value in one second preset range exceeds the first preset threshold exceeds a second preset threshold, determining that the to-be-detected paper money has a sticky object.
The second preset threshold may also be a value set according to a characteristic of the sticker, such as 4, 5, 6, 8, or 10, which is not limited in the embodiment of the present invention.
Accordingly, if the number (i.e. the number of rows or the number of columns) of the refining traversal positions of which the sum value in one second preset range exceeds the first preset threshold exceeds the second preset threshold after the end of the circulation traversal, it can be further determined that the stickers exist in the paper money to be tested.
Fig. 3b is a schematic diagram of a fluorescence image of a banknote to be detected according to a third embodiment of the present invention, fig. 3c is a schematic diagram of a binarized image of a banknote to be detected according to a third embodiment of the present invention, and fig. 3d is a statistical diagram of a sum value obtained by performing sum value traversal calculation on the binarized image according to a first traversal order according to a third embodiment of the present invention. In a specific example, as shown in fig. 3b, the image labeled (1) in fig. 3b is a fluorescence image of a normal banknote as a banknote to be tested, and the image labeled (2) is a fluorescence image of a banknote to be tested with an adhesive tape attached thereto. As shown in fig. 3b, if the adhesive tape is present in the bill to be tested, the fluorescent image thereof has a distinct sticking trace. Correspondingly, when the paper money to be detected is detected, the fluorescence image of the paper money to be detected can be subjected to dot separation sampling to obtain a half-reduced image, the gray value of bright point pixel points (such as pixel points with gray values of 254 and 255) with a certain proportion is selected to be set to be 255, and the gray value of the pixel points of the rest part is set to be 0, so that the binarization processing is completed. The image shown in fig. 3c is a binarized image obtained after the fluorescent image binarization processing of the banknote to be tested which is labeled with the adhesive tape in fig. 3b and is labeled with (2). After the binary image is acquired, the binary image may be traversed from top to bottom, and the sum of the number of white dots having a height H (H is about 20 pixels, and the height of the adhesive tape is generally 20) and a width within a range of the width of the binary image is calculated, that is, line scanning is performed. As shown in fig. 3d, when the binary image of the fluorescence image of the banknote to be tested with the adhesive tape attached thereto, which is labeled (2) in fig. 3b, is calculated from top to bottom, the sum of the white dots is maximum at a position of about 86 lines, and the position of the line is highly likely to have the adhesive tape attached thereto. Correspondingly, after the position with the maximum sum value is found, the position with the maximum sum value is used as a refining traversal position (namely, the 86 th row is used as the refining traversal position), the binary image is continuously traversed from left to right, and the sum value of white dots in the rectangular range of every 20 × 30 (the unit is a pixel point) is sequentially calculated. If the sum of the white dots in one of the 20 × 30 rectangles exceeds a first preset threshold, it indicates that the tape is actually stuck at a position of about 86 rows, otherwise it indicates that the tape is not stuck.
In addition, in order to improve the detection accuracy, after the refinement traversal position is calculated once, the gray values of the pixels at the refinement traversal position and near the refinement traversal position (positions around 5 pixels) are set to be zero or the minimum value. And then returning to continue to search for the next refining traversal position according to the traversal calculation from top to bottom, traversing from left to right at the refining traversal position, and calculating the sum of white points in the range of 20-30 rectangles until the preset traversal times are completed, such as 5 times of traversal calculation. After the circulation traversal calculation is completed, whether the adhesive tape is stuck in the paper money to be detected can be judged according to the overall traversal result. For example, after 5 times of traversal calculation, if the sum of white dots in a second preset range at a certain position in all the first 4 thinning traversal positions exceeds the first preset threshold value, the fact that the adhesive tape is pasted in the range of about 86-106 lines in the paper money to be tested is indicated.
It should be noted that, in the above example, the situation that the adhesive tape is stuck along the horizontal position of the banknote to be tested can be effectively detected. When the adhesive tape is pasted in the paper money to be detected in the vertical direction, in order to improve the detection accuracy and the detection rate, the corresponding first traversal sequence can be from left to right, and the first preset range can be a range formed by a set width value and a binary image height value (namely, column scanning is performed); the second traversal order may be from top to bottom, and the second predetermined range may be a range formed by the set height value and the set width value, such as a rectangular range of 30 × 20. It should be further noted that, when the sum value in the second preset range is sequentially calculated for the binarized image at the thinned traversal position according to the traversal order from left to right or from top to bottom, the row or column where the thinned traversal position is located may be taken as the starting row or column of the second preset range, or the row or column where the centerline of the second preset range is located, and the like, which is not limited in the embodiment of the present invention.
By adopting the technical scheme, after one-time traversal calculation is completed, the gray values of the set pixel points at the refining traversal position and in the set range of the refining traversal position are reset, and the circulation traversal is performed to determine whether the stickers exist in the paper money to be detected according to the circulation traversal result, so that the detection accuracy and the detection rate of the paper money stickers are improved.
It should be noted that any permutation and combination between the technical features in the above embodiments also belong to the scope of the present invention.
Example four
Fig. 4 is a schematic view of a banknote attached matter detection apparatus according to a fourth embodiment of the present invention, as shown in fig. 4, the apparatus includes: a binarized image obtaining module 410, a refined traversal position obtaining module 420, and a first sticker determining module 430, wherein:
a binarization image obtaining module 410, configured to obtain a fluorescence image of the paper money to be detected, and perform binarization processing on the fluorescence image to obtain a binarization image of the paper money to be detected;
a refining traversal position obtaining module 420, configured to perform summation value traversal calculation on the binarized image according to a first traversal order, and obtain a position where a summation value meets a preset condition as a refining traversal position;
the first sticker determining module 430 is used for performing sum value traversal calculation on the binary image at the refining traversal position according to a second traversal order, and determining whether a sticker exists on the paper money to be detected according to a sum value calculation result;
and the sum value is the sum of the number of the set pixel points.
According to the embodiment of the invention, the obtained fluorescent image of the paper money to be detected is subjected to binarization processing to obtain the binarized image of the paper money to be detected, the binarized image is subjected to sum value traversal calculation according to the first traversal sequence, the position where the sum value meets the preset condition is obtained as the refined traversal position, the binarized image is subjected to sum value traversal calculation according to the second traversal sequence at the refined traversal position, whether the paper money to be detected has the stickers or not is determined according to the sum value calculation result, the problem of low detection rate of the existing paper money stickers detection method is solved, and the detection rate of the paper money stickers is improved.
Optionally, the refining traversal position obtaining module 420 is specifically configured to sequentially calculate the sum value within a first preset range for the binarized image according to a traversal order from top to bottom or from left to right;
when the first traversal order is from top to bottom, the first preset range is a range formed by a set height value and the binarization image width value; when the first traversal order is from left to right, the first preset range is a range formed by a set width value and the height value of the binary image.
Optionally, the first sticker determining module 430 is specifically configured to sequentially calculate the sum value within a second preset range for the binarized image at the refined traversal position according to a traversal order from left to right or from top to bottom;
the second preset range is a range formed by a set height value and a set width value;
the second traversal order is distinct from the first traversal order.
Optionally, the first sticker determining module 430 is specifically configured to determine that a sticker exists on the banknote to be detected if the sum of the detailed traversal positions in one of the second preset ranges exceeds a first preset threshold.
Optionally, the apparatus further comprises: the reset calculation module is used for resetting the thinning traversal position and the gray value of the set pixel point in the setting range of the thinning traversal position, and returning to execute the operation of performing value traversal calculation on the binary image according to the first traversal sequence until the preset traversal times are reached;
and the second sticker determining module is used for determining that the to-be-detected paper currency has stickers if the number of the refining traversal positions of which the sum value exceeds the first preset threshold value in one second preset range exceeds a second preset threshold value.
Optionally, the binarized image obtaining module 410 is specifically configured to perform alternate sampling processing on the fluorescence image, and perform binarizing processing on the fluorescence image obtained after the processing.
Optionally, the sum traversal calculation includes an integral graph calculation method.
Optionally, the sticker comprises an adhesive tape.
The detection device for the paper money adhesive object can execute the detection method for the paper money adhesive object provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For details of the technique not described in detail in this embodiment, reference may be made to the method for detecting a banknote attached matter provided in any embodiment of the present invention.
Since the above-described detecting device for a banknote adhesive substance is a device capable of executing the detecting method for a banknote adhesive substance in the embodiment of the present invention, based on the detecting method for a banknote adhesive substance in the embodiment of the present invention, a person skilled in the art can understand the specific implementation and various modifications of the detecting device for a banknote adhesive substance in the embodiment, and therefore, how to implement the detecting method for a banknote adhesive substance in the embodiment of the present invention by the detecting device for a banknote adhesive substance is not described in detail herein. As long as those skilled in the art can implement the device used in the method for detecting a banknote adhesive substance in the embodiment of the present invention, the device is within the scope of the present application.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a financial tool device according to a fifth embodiment of the present invention. FIG. 5 illustrates a block diagram of a financial instrument device 512 suitable for use in implementing embodiments of the present invention. The financial instrument device 512 shown in FIG. 5 is only an example and should not impose any limitations on the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 5, the financial instrument device 512 is in the form of a general purpose computing device. The components of the financial instrument device 512 may include, but are not limited to: one or more processors 516, a storage device 528, and a bus 518 that couples the various system components including the storage device 528 and the processors 516.
Bus 518 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Financial instrument device 512 typically includes a variety of computer system readable media. Such media can be any available media that can be accessed by financial instrument device 512 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 528 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 530 and/or cache Memory 532. Financial instrument device 512 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 534 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk-Read Only Memory (CD-ROM), a Digital Video disk (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 518 through one or more data media interfaces. Storage 528 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program 536 having a set (at least one) of program modules 526 may be stored, for example, in storage 528, such program modules 526 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination may include an implementation of a network environment. Program modules 526 generally perform the functions and/or methodologies of the described embodiments of the invention.
Financial instrument device 512 may also communicate with one or more external devices 514 (e.g., keyboard, pointing device, camera, display 524, etc.), with one or more devices that enable a user to interact with the financial instrument device 512, and/or with any devices (e.g., network card, modem, etc.) that enable the financial instrument device 512 to communicate with one or more other computing devices. Such communication may be through an Input/Output (I/O) interface 522. Also, financial instrument device 512 may communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network, such as the internet) via Network adapter 520. As shown, the network adapter 520 communicates with other modules of the financial instrument device 512 via a bus 518. It should be appreciated that, although not shown in the figures, other hardware and/or software modules may be used in conjunction with financial instrument device 512, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, disk array (RAID) systems, tape drives, and data backup storage systems, to name a few.
The processor 516 executes various functional applications and data processing by executing programs stored in the storage device 528, for example, to implement the detection method of the banknote attached matter provided by the above-described embodiment of the present invention.
That is, the processing unit implements, when executing the program: acquiring a fluorescence image of the paper money to be detected, and performing binarization processing on the fluorescence image to obtain a binarization image of the paper money to be detected; performing sum value traversal calculation on the binary image according to a first traversal sequence, and acquiring a position of which the sum value meets a preset condition as a refining traversal position; performing sum value traversal calculation on the binary image at the thinning traversal position according to a second traversal sequence, and determining whether the paper money to be detected has a sticky object or not according to a sum value calculation result; and the sum value is the sum of the number of the set pixel points.
EXAMPLE six
An embodiment of the present invention further provides a computer storage medium storing a computer program, which when executed by a computer processor is configured to execute the method for detecting a banknote sticker according to any one of the above embodiments of the present invention: acquiring a fluorescence image of the paper money to be detected, and performing binarization processing on the fluorescence image to obtain a binarization image of the paper money to be detected; performing sum value traversal calculation on the binary image according to a first traversal sequence, and acquiring a position of which the sum value meets a preset condition as a refining traversal position; performing sum value traversal calculation on the binary image at the thinning traversal position according to a second traversal sequence, and determining whether the paper money to be detected has a sticky object or not according to a sum value calculation result; and the sum value is the sum of the number of the set pixel points.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM) or flash Memory), an optical fiber, a portable compact disc Read Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for detecting a banknote adhesive, comprising:
acquiring a fluorescence image of the paper money to be detected, and performing binarization processing on the fluorescence image to obtain a binarization image of the paper money to be detected;
performing sum value traversal calculation on the binary image according to a first traversal sequence, and acquiring a position of which the sum value meets a preset condition as a refining traversal position;
performing sum value traversal calculation on the binary image at the thinning traversal position according to a second traversal sequence, and determining whether the paper money to be detected has a sticky object or not according to a sum value calculation result;
and the sum value is the sum of the number of the set pixel points.
2. The method of claim 1, wherein performing the sum-value traversal calculation on the binarized image in a first traversal order comprises:
sequentially calculating the sum value in a first preset range for the binary image according to the traversal sequence from top to bottom or from left to right;
when the first traversal order is from top to bottom, the first preset range is a range formed by a set height value and the binarization image width value; when the first traversal order is from left to right, the first preset range is a range formed by a set width value and the height value of the binary image.
3. The method of claim 2, wherein performing sum value traversal calculations on the binarized image at the refined traversal positions in a second traversal order comprises:
sequentially calculating the sum value in a second preset range for the binary image at the thinning traversal position according to a traversal sequence from left to right or from top to bottom;
the second preset range is a range formed by a set height value and a set width value;
the second traversal order is distinct from the first traversal order.
4. The method according to claim 3, wherein determining whether the banknote under test has stickers based on the calculation comprises:
and if the sum value in one second preset range at the refining traversal position exceeds a first preset threshold value, determining that the paper money to be detected has a sticky object.
5. The method of claim 4, further comprising, after performing the value traversal calculation and the binarization image in a second traversal order at the refined traversal position:
resetting the gray values of the set pixel points at the thinning traversal position and in the setting range of the thinning traversal position, and returning to execute the operations of performing value traversal calculation on the binary image according to the first traversal sequence until the preset traversal times are reached;
and if the number of the refining traversal positions of which the sum value exceeds the first preset threshold value in one second preset range exceeds a second preset threshold value, determining that the to-be-detected paper money has a sticky object.
6. The method according to claim 1, wherein the binarizing processing of the fluorescence image comprises:
and carrying out alternate sampling processing on the fluorescence image, and carrying out binarization processing on the processed fluorescence image.
7. The method of any of claims 1-6, wherein the sum traversal calculation comprises an integral map calculation method.
8. The method of any of claims 1-6, wherein the sticker comprises a tape.
9. A detection device for a banknote attached matter, characterized by comprising:
the binarization image acquisition module is used for acquiring a fluorescence image of the paper money to be detected and carrying out binarization processing on the fluorescence image to obtain a binarization image of the paper money to be detected;
the thinning traversal position acquisition module is used for performing value traversal calculation on the binary image according to a first traversal sequence, and acquiring a position of which the sum value meets a preset condition as a thinning traversal position;
the first sticker determining module is used for performing sum value traversal calculation on the binary image at the refining traversal position according to a second traversal sequence and determining whether a sticker exists on the paper money to be detected according to a sum value calculation result;
and the sum value is the sum of the number of the set pixel points.
10. A financial implement apparatus, characterized in that the apparatus comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method of detecting a banknote sticker as claimed in any one of claims 1-8.
CN201910039598.8A 2019-01-16 2019-01-16 Method, device and equipment for detecting paper money adhesive substance Active CN111524268B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910039598.8A CN111524268B (en) 2019-01-16 2019-01-16 Method, device and equipment for detecting paper money adhesive substance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910039598.8A CN111524268B (en) 2019-01-16 2019-01-16 Method, device and equipment for detecting paper money adhesive substance

Publications (2)

Publication Number Publication Date
CN111524268A true CN111524268A (en) 2020-08-11
CN111524268B CN111524268B (en) 2022-08-30

Family

ID=71900027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910039598.8A Active CN111524268B (en) 2019-01-16 2019-01-16 Method, device and equipment for detecting paper money adhesive substance

Country Status (1)

Country Link
CN (1) CN111524268B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2004122940A (en) * 2004-07-26 2006-01-20 Общество с ограниченной ответственностью Фирма "ДАТА-ЦЕНТР" (ООО Фирма "ДАТА-ЦЕНТР") (RU) METHOD FOR DETERMINING NON-PAYABLE BANKNOTES
CN102842167A (en) * 2011-06-24 2012-12-26 日立欧姆龙金融系统有限公司 Automatic transaction device with image evidence function
WO2015085815A1 (en) * 2013-12-12 2015-06-18 广州广电运通信息科技有限公司 Method and system for recognizing bill with abnormal thickness
JP2015162185A (en) * 2014-02-28 2015-09-07 グローリー株式会社 Currency processing support system and currency processing support method
CN105551133A (en) * 2015-11-16 2016-05-04 新达通科技股份有限公司 Banknote splicing seam or crease recognition method and system
CN105788064A (en) * 2014-12-26 2016-07-20 山东新北洋信息技术股份有限公司 Bill identifying method and bill identifying device
CN106296974A (en) * 2016-07-29 2017-01-04 广州广电运通金融电子股份有限公司 A kind of stickup paper money detection method and device
CN106296973A (en) * 2015-05-15 2017-01-04 山东新北洋信息技术股份有限公司 Paper currency detecting method and bank note treatment device
CN106780965A (en) * 2016-12-14 2017-05-31 深圳怡化电脑股份有限公司 A kind of Paper Currency Identification and device
CN106934921A (en) * 2017-02-22 2017-07-07 广州广电运通金融电子股份有限公司 Paper foreign matter pastes detection method and device
CN107316373A (en) * 2017-06-15 2017-11-03 深圳怡化电脑股份有限公司 A kind of Paper Currency Identification, device, terminal device and readable storage medium storing program for executing
CN107437294A (en) * 2017-08-01 2017-12-05 深圳怡化电脑股份有限公司 A kind of character segmentation method, device, equipment and storage medium
CN107590900A (en) * 2017-09-15 2018-01-16 深圳怡化电脑股份有限公司 A kind of crown word number image acquiring method, device, equipment and storage medium
CN107622562A (en) * 2017-09-11 2018-01-23 深圳怡化电脑股份有限公司 Extracting method, device, equipment and the storage medium of banknote image
CN107742359A (en) * 2017-09-11 2018-02-27 深圳怡化电脑股份有限公司 A kind of Paper Currency Identification, device, terminal device and readable storage medium storing program for executing
CN108389309A (en) * 2018-02-06 2018-08-10 深圳怡化电脑股份有限公司 A kind of method and system of identification forge or true or paper money
CN108734846A (en) * 2017-04-25 2018-11-02 深圳怡化电脑股份有限公司 Denoising method and device, the terminal and storage medium of banknote image

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2004122940A (en) * 2004-07-26 2006-01-20 Общество с ограниченной ответственностью Фирма "ДАТА-ЦЕНТР" (ООО Фирма "ДАТА-ЦЕНТР") (RU) METHOD FOR DETERMINING NON-PAYABLE BANKNOTES
CN102842167A (en) * 2011-06-24 2012-12-26 日立欧姆龙金融系统有限公司 Automatic transaction device with image evidence function
WO2015085815A1 (en) * 2013-12-12 2015-06-18 广州广电运通信息科技有限公司 Method and system for recognizing bill with abnormal thickness
JP2015162185A (en) * 2014-02-28 2015-09-07 グローリー株式会社 Currency processing support system and currency processing support method
CN105788064A (en) * 2014-12-26 2016-07-20 山东新北洋信息技术股份有限公司 Bill identifying method and bill identifying device
CN106296973A (en) * 2015-05-15 2017-01-04 山东新北洋信息技术股份有限公司 Paper currency detecting method and bank note treatment device
CN105551133A (en) * 2015-11-16 2016-05-04 新达通科技股份有限公司 Banknote splicing seam or crease recognition method and system
CN106296974A (en) * 2016-07-29 2017-01-04 广州广电运通金融电子股份有限公司 A kind of stickup paper money detection method and device
CN106780965A (en) * 2016-12-14 2017-05-31 深圳怡化电脑股份有限公司 A kind of Paper Currency Identification and device
CN106934921A (en) * 2017-02-22 2017-07-07 广州广电运通金融电子股份有限公司 Paper foreign matter pastes detection method and device
CN108734846A (en) * 2017-04-25 2018-11-02 深圳怡化电脑股份有限公司 Denoising method and device, the terminal and storage medium of banknote image
CN107316373A (en) * 2017-06-15 2017-11-03 深圳怡化电脑股份有限公司 A kind of Paper Currency Identification, device, terminal device and readable storage medium storing program for executing
CN107437294A (en) * 2017-08-01 2017-12-05 深圳怡化电脑股份有限公司 A kind of character segmentation method, device, equipment and storage medium
CN107622562A (en) * 2017-09-11 2018-01-23 深圳怡化电脑股份有限公司 Extracting method, device, equipment and the storage medium of banknote image
CN107742359A (en) * 2017-09-11 2018-02-27 深圳怡化电脑股份有限公司 A kind of Paper Currency Identification, device, terminal device and readable storage medium storing program for executing
CN107590900A (en) * 2017-09-15 2018-01-16 深圳怡化电脑股份有限公司 A kind of crown word number image acquiring method, device, equipment and storage medium
CN108389309A (en) * 2018-02-06 2018-08-10 深圳怡化电脑股份有限公司 A kind of method and system of identification forge or true or paper money

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
徐杜等: "《柔性制造系统原理与实践》", 30 September 2001, 机械工业出版社 *
陈绿平: ""人民币图像序列号识别及其在假币串并系统上的应用"", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》 *

Also Published As

Publication number Publication date
CN111524268B (en) 2022-08-30

Similar Documents

Publication Publication Date Title
CN107437294B (en) Character segmentation method, device, equipment and storage medium
CN108230390B (en) Training method, key point detection method, device, storage medium and electronic equipment
US9679354B2 (en) Duplicate check image resolution
CN111612757B (en) Screen crack detection method, device, equipment and storage medium
CN108156452B (en) Method, device and equipment for detecting sensor and storage medium
CN111325717B (en) Mobile phone defect position identification method and equipment
JP5718781B2 (en) Image classification apparatus and image classification method
JP2008175549A (en) Defect detection device and method
CN117115153B (en) Intelligent printed circuit board quality detection method based on visual assistance
US10679094B2 (en) Automatic ruler detection
CN114495098B (en) Diaxing algae cell statistical method and system based on microscope image
CN111444964A (en) Multi-target rapid image matching method based on self-adaptive ROI (region of interest) division
CN112419229A (en) Display screen linear defect detection method and device and storage medium
WO2022088660A1 (en) Method and apparatus for improving wafer detection sensitivity, and storage medium
US20120092362A1 (en) System and method for detecting light intensity in an electronic device
CN111524268B (en) Method, device and equipment for detecting paper money adhesive substance
CN116205918B (en) Multi-mode fusion semiconductor detection method, device and medium based on graph convolution
JP2017521011A (en) Symbol optical detection method
CN115272381B (en) Metal wire segmentation method and device, electronic equipment and storage medium
CN114549624B (en) Label identification method and device, electronic equipment, storage medium and label
CN114663899A (en) Financial bill processing method, device, equipment and medium
CN114998194A (en) Product defect detection method, system and storage medium
US6597805B1 (en) Visual inspection method for electronic device, visual inspecting apparatus for electronic device, and record medium for recording program which causes computer to perform visual inspecting method for electronic device
CN114255540A (en) Method, device, equipment and storage medium for identifying stained paper money
CN113376183A (en) Glass defect detection method, system and equipment

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