CN106652166B - A kind of detection method and system of stuck banknotes - Google Patents

A kind of detection method and system of stuck banknotes Download PDF

Info

Publication number
CN106652166B
CN106652166B CN201610936072.6A CN201610936072A CN106652166B CN 106652166 B CN106652166 B CN 106652166B CN 201610936072 A CN201610936072 A CN 201610936072A CN 106652166 B CN106652166 B CN 106652166B
Authority
CN
China
Prior art keywords
magnetic
region
coboundary
long side
lower boundary
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610936072.6A
Other languages
Chinese (zh)
Other versions
CN106652166A (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 CN201610936072.6A priority Critical patent/CN106652166B/en
Publication of CN106652166A publication Critical patent/CN106652166A/en
Application granted granted Critical
Publication of CN106652166B publication Critical patent/CN106652166B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/20Testing patterns thereon
    • G07D7/2016Testing patterns thereon using feature extraction, e.g. segmentation, edge detection or Hough-transformation
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D7/00Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
    • G07D7/04Testing magnetic properties of the materials thereof, e.g. by detection of magnetic imprint
    • 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/164Thickness

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Inspection Of Paper Currency And Valuable Securities (AREA)

Abstract

The invention discloses a kind of detection method of stuck banknotes and systems.This method, comprising: obtain the infrared transmission image and magnetic data of bank note;Confirm that bank note has two or more magnetic stripes according to infrared transmission image;Confirm that described two or more magnetic stripes meet magnetic stripe anti-counterfeiting characteristic according to magnetic data;Detect stuck banknotes.By the present invention in that detecting whether bank note is re-opened with the mode that infrared transmission image and magnetic data combine, false detection rate is reduced, the accuracy rate of detection is improved.

Description

A kind of detection method and system of stuck banknotes
Technical field
The present invention relates to paper currency detection technical field more particularly to the detection methods and system of a kind of stuck banknotes.
Background technique
It constantly to receive bank note in cash transaction device, especially carry out the auto-teller of banking, but by In note surface situation is different and the influence of weather conditions, it is common phenomenon that two or multiple bank note, which stick together, if not It can accurately detect whether bank note is re-opened, will lead to grave error.
It is to detect whether bank note is re-opened using the thickness of bank note that whether detection bank note, which re-opens common method, at present, such as benefit With the thickness of the methods of Hall element detection bank note, or the thickness using ultrasonic sensor detection bank note;However, merely with There are detection errors, such as note surface to be stained with the contaminated degree of dust to detect the method whether it re-opens for banknote thickness, The new and old equal behaviour in service of bank note all influences the accuracy rate for utilizing Thickness sensitivity stuck banknotes.Another kind detection paper is re-opened Method is to detect whether bank note is re-opened by the way that whether detection transmitted intensity is greater than the method for threshold value;However this method can only be examined Survey whether bank note is overlapped on medium, due to the color distinction of different bank note, the newness degree of different bank note, just with bank note Penetrating light intensity feature on medium detects whether bank note is re-opened, and the accuracy of detection is difficult to ensure.
Summary of the invention
The present invention provides a kind of detection method of stuck banknotes and systems, by using infrared transmission image and magnetic number It detects whether bank note is re-opened according to the mode combined, reduces false detection rate, improve the accuracy rate of detection.To realize above-mentioned design, The invention adopts the following technical scheme:
On the one hand, a kind of detection method of stuck banknotes, this method are provided, comprising:
Obtain the infrared transmission image and magnetic data of bank note;
Confirm that bank note has two or more magnetic stripes according to infrared transmission image;
Confirm that described two or more magnetic stripes meet magnetic stripe anti-counterfeiting characteristic according to magnetic data;
Detect stuck banknotes.
It is wherein, described to confirm that bank note has two or more magnetic stripes according to infrared transmission image, comprising:
Extract the boundary of infrared transmission image;
Interception includes the coboundary region and lower boundary region of magnetic stripe;
Binary conversion treatment is carried out to coboundary region and lower boundary region using OSTU method, obtains binary image;
Confirm that bank note has two or more magnetic stripes according to binary image.
Wherein, the interception includes the coboundary region and lower boundary region of magnetic stripe, comprising:
Using the straight line apart from the pixel of coboundary 5 and parallel coboundary as rectangular upper long side, the length of upper long side Degree, upper long side with coboundary on the left of at a distance from, upper long side on the right side of coboundary at a distance from three it is equal, rectangular width be first Preset width;The rectangular region is intercepted as coboundary region;
Using the straight line apart from 5 pixels of lower boundary and parallel lower boundary as rectangular lower long side, the length of lower long side Degree, lower long side with lower boundary on the left of at a distance from, lower long side on the right side of lower boundary at a distance from three it is equal, rectangular width be second Preset width;The rectangular region is intercepted as lower boundary region.
It is wherein, described to confirm that bank note has two or more magnetic stripes according to binary image, comprising:
According to the determining column in coboundary region and lower boundary region after binary conversion treatment and there are more than two peak values;
It determines respectively and described two magnetic stripe width is met with upward peak;
It determines respectively described two using each boundary of the corresponding magnetic stripe of upward peak as straight line;
Determine magnetic stripe regional fracture;
Determining has two or more magnetic stripes.
It is wherein, described to confirm that described two or more magnetic stripes meet magnetic stripe anti-counterfeiting characteristic according to magnetic data, comprising:
Channel position of described two or more the magnetic stripes in magnetic data is determined respectively;
Determine that the safety line magnetic dot sum on each channel position meets magnetic stripe magnetic dot number;
Determine that the magnetic data on each channel position meets magnetic stripe anti-counterfeiting characteristic.
Wherein, the channel position for determining described two or more magnetic stripes respectively in magnetic data, comprising:
The coordinate position of described two or more magnetic stripes is determined according to infrared transmission image;
It is differentiated according to the length of imaging sensor and image acquisition resolution, the length of magnetic sensor and magnetic collection The position coordinates of rate and described two or more magnetic stripe determine channel position of described two or more the magnetic stripes in magnetic data.
On the other hand a kind of detection system of stuck banknotes is provided, the system, comprising:
Module is obtained, for obtaining the infrared transmission image and magnetic data of bank note;
Image confirmation module, for confirming that bank note has two or more magnetic stripes according to infrared transmission image;
Anti-counterfeiting characteristic confirmation module, for confirming that described two or more magnetic stripes meet the anti-fake spy of magnetic stripe according to magnetic data Sign;
Detection module, for detecting stuck banknotes.
Wherein, described image confirmation module, comprising:
Boundary Extraction unit, for extracting the boundary of infrared transmission image;
Region interception unit, for intercepting coboundary region and lower boundary region comprising magnetic stripe;
Binarization unit is obtained for carrying out binary conversion treatment to coboundary region and lower boundary region using OSTU method Binary image;
Magnetic stripe confirmation unit, for confirming that bank note has two or more magnetic stripes according to binary image.
Wherein:
The region interception unit, is specifically used for:
Using the straight line apart from the pixel of coboundary 5 and parallel coboundary as rectangular upper long side, the length of upper long side Degree, upper long side with coboundary on the left of at a distance from, upper long side on the right side of coboundary at a distance from three it is equal, rectangular width be first Preset width;The rectangular region is intercepted as coboundary region;
Using the straight line apart from 5 pixels of lower boundary and parallel lower boundary as rectangular lower long side, the length of lower long side Degree, lower long side with lower boundary on the left of at a distance from, lower long side on the right side of lower boundary at a distance from three it is equal, rectangular width be second Preset width;The rectangular region is intercepted as lower boundary region;
The magnetic stripe confirmation unit, is specifically used for:
According to the determining column in coboundary region and lower boundary region after binary conversion treatment and there are more than two peak values;
It determines respectively and described two magnetic stripe width is met with upward peak;
It determines respectively described two using each boundary of the corresponding magnetic stripe of upward peak as straight line;
Determine magnetic stripe regional fracture;
Determining has two or more magnetic stripes.
Wherein:
The anti-counterfeiting characteristic confirmation module, is specifically used for:
Channel position of described two or more the magnetic stripes in magnetic data is determined respectively;
Determine that the safety line magnetic dot sum on each channel position meets magnetic stripe magnetic dot number;
Determine that the magnetic data on each channel position meets magnetic stripe anti-counterfeiting characteristic;
The channel position that described two or more magnetic stripes are determined respectively in magnetic data, comprising:
The coordinate position of described two or more magnetic stripes is determined according to infrared transmission image;
It is differentiated according to the length of imaging sensor and image acquisition resolution, the length of magnetic sensor and magnetic collection The position coordinates of rate and described two or more magnetic stripe determine channel position of described two or more the magnetic stripes in magnetic data.
Compared with prior art, the invention has the benefit that obtaining the infrared transmission image and magnetic data of bank note;Root There are two or more magnetic stripes according to infrared transmission image confirmation bank note;Confirm that described two or more magnetic stripes meet magnetic according to magnetic data Anti-counterfeiting characteristic;Detect stuck banknotes.By the present invention in that with the mode that infrared transmission image and magnetic data combine come Whether detection bank note is re-opened, and can solve the case where relying solely on thickness erroneous judgement, reduces False Rate, improve the accuracy rate of detection.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, institute in being described below to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without creative efforts, can also implement according to the present invention The content of example and these attached drawings obtain other attached drawings.
Fig. 1 is a kind of side of the first embodiment of the detection method of the stuck banknotes provided in the specific embodiment of the invention Method flow chart.
Fig. 2 is a kind of side of the second embodiment of the detection method of the stuck banknotes provided in the specific embodiment of the invention Method flow chart.
Fig. 3 is a kind of knot of the first embodiment of the detection system of the stuck banknotes provided in the specific embodiment of the invention Structure block diagram.
Fig. 4 is a kind of knot of the second embodiment of the detection system of the stuck banknotes provided in the specific embodiment of the invention Structure block diagram.
Specific embodiment
To keep the technical problems solved, the adopted technical scheme and the technical effect achieved by the invention clearer, below It will the technical scheme of the embodiment of the invention will be described in further detail in conjunction with attached drawing, it is clear that described embodiment is only It is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those skilled in the art exist Every other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
Referring to FIG. 1, it is the first of the detection method of a kind of stuck banknotes provided in the specific embodiment of the invention The method flow diagram of embodiment.As shown, this method, comprising:
Step S101: the infrared transmission image and magnetic data of bank note are obtained.
The infrared transmission image that bank note is obtained using imaging sensor obtains the magnetic number of bank note using magnetic sensor According to, in conjunction with bank note infrared transmission image and magnetic data detection bank note whether re-open.
Step S102: confirm that bank note has two or more magnetic stripes according to infrared transmission image.
Judge whether bank note has two or more magnetic stripes according to infrared transmission image, if so, illustrating that bank note is possible to weight , then step S103 is continued to execute, it is further to be confirmed, to improve the accuracy of detection.
Step S103: confirm that described two or more magnetic stripes meet magnetic stripe anti-counterfeiting characteristic according to magnetic data.
If the corresponding magnetic data of described two or more magnetic stripes all meets magnetic stripe anti-counterfeiting characteristic, such as whether be corresponding with two with Whether upper safety line, the magnetic dot sum of every safety line meet magnetic stripe magnetic dot number, and it is anti-fake whether every safety line all meets magnetic stripe Feature etc..
Step S104: stuck banknotes are detected.
If confirming that two or more magnetic stripes all meet magnetic stripe anti-counterfeiting characteristic according to magnetic data, illustrate stuck banknotes, thus Detect stuck banknotes.
It should be noted that if confirming that bank note does not have two or more magnetic stripes according to infrared transmission image, i.e., only have One magnetic stripe then detects that bank note is not re-opened;If confirming that bank note has two or more magnetic stripes, but root according to infrared transmission image Described two or more magnetic stripes are confirmed according to magnetic data and do not meet magnetic stripe anti-counterfeiting characteristic, then detect that bank note is not re-opened.
In conclusion the present embodiment detects bank note by using the mode that infrared transmission image and magnetic data combine Whether re-open, confirms that bank note has two or more magnetic stripes according to infrared transmission image, if the corresponding magnetic of described two or more magnetic stripes Property data all meet magnetic stripe anti-counterfeiting characteristic, then detect stuck banknotes, the present embodiment can solve the feelings for relying solely on thickness erroneous judgement Condition reduces False Rate, improves the accuracy rate of detection.
Referring to FIG. 2, it is the second of the detection method of a kind of stuck banknotes provided in the specific embodiment of the invention The method flow diagram of embodiment.As shown, this method, comprising:
Step S201: the infrared transmission image and magnetic data of bank note are obtained.
The infrared transmission image that bank note is obtained using imaging sensor obtains the magnetic number of bank note using magnetic sensor According to, in conjunction with bank note infrared transmission image and magnetic data detection bank note whether re-open.
Step S202: confirm that bank note has two or more magnetic stripes according to infrared transmission image.
As a preferred embodiment, step S202: confirm that bank note has two or more magnetic according to infrared transmission image Item, including step S2021~S2024, specific as follows:
Step S2021: the boundary of infrared transmission image is extracted.
The method in a kind of method and device for handling bank note disclosed in Chinese patent CN 105006059A can be used to mention Take the boundary of infrared transmission image, this method main contents are as follows: obtain the image data of bank note to be measured, described image data include With the matrix that the pixel that up-and-down boundary direction, right boundary direction are scanned forms, the matrix is i*j, and the value of the i identifies The pixel in the up-and-down boundary direction of the bank note to be detected is scanned, the value mark of the j scans a left side for the bank note to be detected The pixel in right margin direction;Described image data are divided into X*Y data respectively with up-and-down boundary direction, right boundary direction The value of group, X, Y is more than or equal to 2;In each data group after division, it is row with boundary direction to be obtained, obtains each The information of the boundary position of column, and it is spaced L step-length, the location information on the boundary of next column is obtained, the L is more than or equal to 1;It is logical The boundary of image can effectively and rapidly be detected by crossing this method, to improve the real-time and robustness of image zooming-out, Geng Duoxiang Thin content is referring to Chinese patent CN 105006059A, and which is not described herein again.
Step S2022: interception includes the coboundary region and lower boundary region of magnetic stripe.
Preferably, the interception includes the coboundary region and lower boundary region of magnetic stripe, comprising:
Using the straight line apart from the pixel of coboundary 5 and parallel coboundary as rectangular upper long side, the length of upper long side Degree, upper long side with coboundary on the left of at a distance from, upper long side on the right side of coboundary at a distance from three it is equal, rectangular width be first Preset width;The rectangular region is intercepted as coboundary region;
Using the straight line apart from 5 pixels of lower boundary and parallel lower boundary as rectangular lower long side, the length of lower long side Degree, lower long side with lower boundary on the left of at a distance from, lower long side on the right side of lower boundary at a distance from three it is equal, rectangular width be second Preset width;The rectangular region is intercepted as lower boundary region.
Coordinate interception using the boundary for the infrared transmission image extracted in step S2021 includes the coboundary region of magnetic stripe With lower boundary region, there are error, upper 5 pixels in long back gauge coboundary, by coboundary, upper long side to exclude boundary alignment And first preset width intercept the rectangular region and be used as coboundary region, the first preset width is in infrared transmission image The one third of boundary length;Lower 5 pixels of long back gauge lower boundary are cut by lower boundary, lower long side and the second preset width Take the rectangular region as lower boundary region, the second preset width be infrared transmission image lower boundary length three/ One.Other first preset width and the second preset width can also be set as needed in user, as long as ensuring that magnetic stripe is included in Coboundary region and lower boundary region.
Step S2023: binary conversion treatment is carried out to coboundary region and lower boundary region using OSTU method, obtains binaryzation Image.
Using OSTU method to coboundary region and lower boundary region progress binary conversion treatment, in the binary image made Magnetic stripe become apparent from, with according to binary image confirm bank note have how many magnetic stripes.
Step S2024: confirm that bank note has two or more magnetic stripes according to binary image.
After obtaining binary image, if stuck banknotes, bank note can be confirmed with two or more from binary image Magnetic stripe.
It is described to confirm that bank note has two or more magnetic stripes according to binary image, comprising:
According to the determining column in coboundary region and lower boundary region after binary conversion treatment and there are more than two peak values;
It determines respectively and described two magnetic stripe width is met with upward peak;
It determines respectively described two using each boundary of the corresponding magnetic stripe of upward peak as straight line;
Determine magnetic stripe regional fracture;
Determining has two or more magnetic stripes.
That is, determining whether bank note has the Rule of judgment of two or more magnetic stripes are as follows: arrange and whether have more than two peak values; Whether column and spike width meet magnetic stripe width;Whether each boundary of magnetic stripe is straight line;Whether magnetic stripe region is broken.If according to two Value treated coboundary region and lower boundary region determine column and have more than two peak values;Determine respectively it is described two with Upward peak meets magnetic stripe width;It determines respectively described two using each boundary of the corresponding magnetic stripe of upward peak as straight line;Determine magnetic stripe Regional fracture;Then determine that bank note has two or more magnetic stripes.
Step S203: confirm that described two or more magnetic stripes meet magnetic stripe anti-counterfeiting characteristic according to magnetic data.
It is described to confirm that described two or more magnetic stripes meet magnetic stripe anti-counterfeiting characteristic according to magnetic data, comprising:
Channel position of described two or more the magnetic stripes in magnetic data is determined respectively;
Determine that the safety line magnetic dot sum on each channel position meets magnetic stripe magnetic dot number;
Determine that the magnetic data on each channel position meets magnetic stripe anti-counterfeiting characteristic.
It is more preferable according to magnetic data detection robustness and in situation lesser for note of small denominations overlapping region.
Preferably, the channel position for determining described two or more magnetic stripes respectively in magnetic data, comprising:
The coordinate position of described two or more magnetic stripes is determined according to infrared transmission image;
It is differentiated according to the length of imaging sensor and image acquisition resolution, the length of magnetic sensor and magnetic collection The position coordinates of rate and described two or more magnetic stripe determine channel position of described two or more the magnetic stripes in magnetic data.
According to the length of imaging sensor and image acquisition resolution, the length of magnetic sensor and magnetic collection resolution ratio To map the corresponding relationship of the channel position of the position coordinates and magnetic stripe of magnetic stripe in magnetic data.
Step S204: stuck banknotes are detected.
But confirm that bank note has two or more magnetic stripes according to infrared transmission image, and according to described two of magnetic data confirmation The above magnetic stripe meets magnetic stripe anti-counterfeiting characteristic, then illustrates stuck banknotes, to detect stuck banknotes.
It should be noted that if confirming that bank note does not have two or more magnetic stripes according to infrared transmission image, i.e., only have One magnetic stripe then detects that bank note is not re-opened;If confirming that bank note has two or more magnetic stripes, but root according to infrared transmission image Described two or more magnetic stripes are confirmed according to magnetic data and do not meet magnetic stripe anti-counterfeiting characteristic, then detect that bank note is not re-opened.
The present embodiment detects whether bank note is re-opened by using the mode that infrared transmission image and magnetic data combine, By extracting the boundary of infrared transmission image, interception includes the up-and-down boundary region of magnetic stripe, according to the up-and-down boundary area of binaryzation Domain confirms that bank note has two or more magnetic stripes, if the corresponding magnetic data of described two or more magnetic stripes all meets the anti-fake spy of magnetic stripe Sign then detects that stuck banknotes, the present embodiment can solve the case where relying solely on thickness erroneous judgement, reduce False Rate, improves detection Accuracy rate.
It is a kind of embodiment of the detection system of the stuck banknotes provided in the specific embodiment of the invention, bank note weight below The embodiment for the detection system opened is realized based on the embodiment of the detection method of above-mentioned stuck banknotes, in the detection of stuck banknotes Not most description in system, please refers to the embodiment of the detection method of aforementioned stuck banknotes.
Referring to FIG. 3, it is the first of the detection system of a kind of stuck banknotes provided in the specific embodiment of the invention The structural block diagram of embodiment.The present embodiment is that a kind of first embodiment of the detection method based on stuck banknotes is realized, Not detailed content please refers to a kind of first embodiment of the detection method of stuck banknotes in the present embodiment.As shown, this is System, comprising:
Module 31 is obtained, for obtaining the infrared transmission image and magnetic data of bank note.
Image confirmation module 32, for confirming that bank note has two or more magnetic stripes according to infrared transmission image.
Anti-counterfeiting characteristic confirmation module 33, for confirming that described two or more magnetic stripes meet the anti-fake spy of magnetic stripe according to magnetic data Sign.
Detection module 34, for detecting stuck banknotes.
In conclusion the present embodiment detects bank note by using the mode that infrared transmission image and magnetic data combine Whether re-open, confirms that bank note has two or more magnetic stripes according to infrared transmission image, if the corresponding magnetic of described two or more magnetic stripes Property data all meet magnetic stripe anti-counterfeiting characteristic, then detect stuck banknotes, the present embodiment can solve the feelings for relying solely on thickness erroneous judgement Condition reduces False Rate, improves the accuracy rate of detection.
Referring to FIG. 4, it is the second of the detection system of a kind of stuck banknotes provided in the specific embodiment of the invention The structural block diagram of embodiment.The present embodiment is that a kind of second embodiment of the detection method based on stuck banknotes is realized, Not detailed content please refers to a kind of second embodiment of the detection method of stuck banknotes in the present embodiment.As shown, this is System, comprising:
Module 41 is obtained, for obtaining the infrared transmission image and magnetic data of bank note.
Image confirmation module 42, for confirming that bank note has two or more magnetic stripes according to infrared transmission image.
Described image confirmation module 42, comprising:
Boundary Extraction unit 421, for extracting the boundary of infrared transmission image.
Region interception unit 422, for intercepting coboundary region and lower boundary region comprising magnetic stripe.
The region interception unit 422, is specifically used for:
Using the straight line apart from the pixel of coboundary 5 and parallel coboundary as rectangular upper long side, the length of upper long side Degree, upper long side with coboundary on the left of at a distance from, upper long side on the right side of coboundary at a distance from three it is equal, rectangular width be first Preset width;The rectangular region is intercepted as coboundary region;
Using the straight line apart from 5 pixels of lower boundary and parallel lower boundary as rectangular lower long side, the length of lower long side Degree, lower long side with lower boundary on the left of at a distance from, lower long side on the right side of lower boundary at a distance from three it is equal, rectangular width be second Preset width;The rectangular region is intercepted as lower boundary region.
Binarization unit 423 is obtained for carrying out binary conversion treatment to coboundary region and lower boundary region using OSTU method To binary image.
Magnetic stripe confirmation unit 424, for confirming that bank note has two or more magnetic stripes according to binary image.
Preferably, the magnetic stripe confirmation unit 424, is specifically used for:
According to the determining column in coboundary region and lower boundary region after binary conversion treatment and there are more than two peak values;
It determines respectively and described two magnetic stripe width is met with upward peak;
It determines respectively described two using each boundary of the corresponding magnetic stripe of upward peak as straight line;
Determine magnetic stripe regional fracture;
Determining has two or more magnetic stripes.
Anti-counterfeiting characteristic confirmation module 43, for confirming that described two or more magnetic stripes meet the anti-fake spy of magnetic stripe according to magnetic data Sign.
The anti-counterfeiting characteristic confirmation module 43, is specifically used for:
Channel position of described two or more the magnetic stripes in magnetic data is determined respectively;
Determine that the safety line magnetic dot sum on each channel position meets magnetic stripe magnetic dot number;
Determine that the magnetic data on each channel position meets magnetic stripe anti-counterfeiting characteristic.
Optionally, the channel position for determining described two or more magnetic stripes respectively in magnetic data, comprising:
The coordinate position of described two or more magnetic stripes is determined according to infrared transmission image;
It is differentiated according to the length of imaging sensor and image acquisition resolution, the length of magnetic sensor and magnetic collection The position coordinates of rate and described two or more magnetic stripe determine channel position of described two or more the magnetic stripes in magnetic data.
Detection module 44, for detecting stuck banknotes.
In conclusion the present embodiment provides detection system the present embodiment of stuck banknotes by using infrared transmission image and The mode that magnetic data combines detects whether bank note is re-opened, and by extracting the boundary of infrared transmission image, interception includes magnetic The up-and-down boundary region of item confirms that bank note has two or more magnetic stripes according to the up-and-down boundary region of binaryzation, if described two The corresponding magnetic data of above magnetic stripe all meets magnetic stripe anti-counterfeiting characteristic, then detects that stuck banknotes, the present embodiment can solve individually The case where judging by accident by thickness reduces False Rate, improves the accuracy rate of detection.
The technical principle of the invention is described above in combination with a specific embodiment.These descriptions are intended merely to explain of the invention Principle, and shall not be construed in any way as a limitation of the scope of protection of the invention.Based on the explanation herein, the technology of this field Personnel can associate with other specific embodiments of the invention without creative labor, these modes are fallen within Within protection scope of the present invention.

Claims (7)

1. a kind of detection method of stuck banknotes characterized by comprising
Obtain the infrared transmission image and magnetic data of bank note;
Confirm that bank note has two or more magnetic stripes according to infrared transmission image;
Confirm that described two or more magnetic stripes meet magnetic stripe anti-counterfeiting characteristic according to magnetic data;
Detect stuck banknotes;
It is wherein, described to confirm that bank note has two or more magnetic stripes according to infrared transmission image, comprising:
Extract the boundary of infrared transmission image;
Interception includes the coboundary region and lower boundary region of magnetic stripe;
Binary conversion treatment is carried out to coboundary region and lower boundary region using OSTU method, obtains binary image;
According to the determining column in coboundary region and lower boundary region after binary conversion treatment and there are more than two peak values;
It determines respectively and described two magnetic stripe width is met with upward peak;
It determines respectively described two using each boundary of the corresponding magnetic stripe of upward peak as straight line;
Determine magnetic stripe regional fracture;
Determining has two or more magnetic stripes.
2. the method according to claim 1, wherein the coboundary region of the interception comprising magnetic stripe and lower boundary Region, comprising:
Using the straight line apart from the pixel of coboundary 5 and parallel coboundary as rectangular upper long side, the length of upper long side, on Long side on the left of coboundary at a distance from, upper long side on the right side of coboundary at a distance from three it is equal, rectangular width is first preset Width;The rectangular region is intercepted as coboundary region;
Using the straight line apart from 5 pixels of lower boundary and parallel lower boundary as rectangular lower long side, the length of lower long side, under Long side on the left of lower boundary at a distance from, lower long side on the right side of lower boundary at a distance from three it is equal, rectangular width is second preset Width;The rectangular region is intercepted as lower boundary region.
3. the method according to claim 1, wherein described confirm described two or more magnetic stripes according to magnetic data Meet magnetic stripe anti-counterfeiting characteristic, comprising:
Channel position of described two or more the magnetic stripes in magnetic data is determined respectively;
Determine that the safety line magnetic dot sum on each channel position meets magnetic stripe magnetic dot number;
Determine that the magnetic data on each channel position meets magnetic stripe anti-counterfeiting characteristic.
4. according to the method described in claim 3, it is characterized in that, described determine described two or more magnetic stripes in magnetic number respectively Channel position in, comprising:
The coordinate position of described two or more magnetic stripes is determined according to infrared transmission image;
According to the length of imaging sensor and image acquisition resolution, the length of magnetic sensor and magnetic collection resolution ratio and The position coordinates of described two or more magnetic stripes determine channel position of described two or more the magnetic stripes in magnetic data.
5. a kind of detection system of stuck banknotes characterized by comprising
Module is obtained, for obtaining the infrared transmission image and magnetic data of bank note;
Image confirmation module, for confirming that bank note has two or more magnetic stripes according to infrared transmission image;
Anti-counterfeiting characteristic confirmation module, for confirming that described two or more magnetic stripes meet magnetic stripe anti-counterfeiting characteristic according to magnetic data;
Detection module, for detecting stuck banknotes;
Wherein, described image confirmation module, comprising:
Boundary Extraction unit, for extracting the boundary of infrared transmission image;
Region interception unit, for intercepting coboundary region and lower boundary region comprising magnetic stripe;
Binarization unit obtains two-value for carrying out binary conversion treatment to coboundary region and lower boundary region using OSTU method Change image;
Magnetic stripe confirmation unit, specifically for according to after binary conversion treatment coboundary region and lower boundary region determine column and have More than two peak values;
It determines respectively and described two magnetic stripe width is met with upward peak;
It determines respectively described two using each boundary of the corresponding magnetic stripe of upward peak as straight line;
Determine magnetic stripe regional fracture;
Determining has two or more magnetic stripes.
6. system according to claim 5, it is characterised in that:
The region interception unit, is specifically used for:
Using the straight line apart from the pixel of coboundary 5 and parallel coboundary as rectangular upper long side, the length of upper long side, on Long side on the left of coboundary at a distance from, upper long side on the right side of coboundary at a distance from three it is equal, rectangular width is first preset Width;The rectangular region is intercepted as coboundary region;
Using the straight line apart from 5 pixels of lower boundary and parallel lower boundary as rectangular lower long side, the length of lower long side, under Long side on the left of lower boundary at a distance from, lower long side on the right side of lower boundary at a distance from three it is equal, rectangular width is second preset Width;The rectangular region is intercepted as lower boundary region.
7. system according to claim 5, it is characterised in that:
The anti-counterfeiting characteristic confirmation module, is specifically used for:
Channel position of described two or more the magnetic stripes in magnetic data is determined respectively;
Determine that the safety line magnetic dot sum on each channel position meets magnetic stripe magnetic dot number;
Determine that the magnetic data on each channel position meets magnetic stripe anti-counterfeiting characteristic;
The channel position that described two or more magnetic stripes are determined respectively in magnetic data, comprising:
The coordinate position of described two or more magnetic stripes is determined according to infrared transmission image;
According to the length of imaging sensor and image acquisition resolution, the length of magnetic sensor and magnetic collection resolution ratio and The position coordinates of described two or more magnetic stripes determine channel position of described two or more the magnetic stripes in magnetic data.
CN201610936072.6A 2016-11-01 2016-11-01 A kind of detection method and system of stuck banknotes Active CN106652166B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610936072.6A CN106652166B (en) 2016-11-01 2016-11-01 A kind of detection method and system of stuck banknotes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610936072.6A CN106652166B (en) 2016-11-01 2016-11-01 A kind of detection method and system of stuck banknotes

Publications (2)

Publication Number Publication Date
CN106652166A CN106652166A (en) 2017-05-10
CN106652166B true CN106652166B (en) 2019-06-07

Family

ID=58820360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610936072.6A Active CN106652166B (en) 2016-11-01 2016-11-01 A kind of detection method and system of stuck banknotes

Country Status (1)

Country Link
CN (1) CN106652166B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108765689B (en) * 2018-03-12 2020-09-15 深圳怡化电脑股份有限公司 Method and system for determining position of paper money magnetic safety line

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955988A (en) * 2014-05-06 2014-07-30 上海古鳌电子科技股份有限公司 Paper money transaction device
CN102903172B (en) * 2012-09-26 2015-04-01 深圳怡化电脑股份有限公司 Method and device for detecting overlapping and connecting of notes
CN104794803A (en) * 2015-05-13 2015-07-22 恒银金融科技有限公司 Banknote recognition module for deposit and withdrawal circulator
CN105006062A (en) * 2015-07-29 2015-10-28 深圳怡化电脑股份有限公司 Bill identification method and deposit and withdrawal device
CN105184955A (en) * 2015-08-18 2015-12-23 深圳怡化电脑股份有限公司 Method and device for identifying paper money
WO2016124085A1 (en) * 2015-02-03 2016-08-11 山东新北洋信息技术股份有限公司 Banknote processing device and banknote conveying control method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102903172B (en) * 2012-09-26 2015-04-01 深圳怡化电脑股份有限公司 Method and device for detecting overlapping and connecting of notes
CN103955988A (en) * 2014-05-06 2014-07-30 上海古鳌电子科技股份有限公司 Paper money transaction device
WO2016124085A1 (en) * 2015-02-03 2016-08-11 山东新北洋信息技术股份有限公司 Banknote processing device and banknote conveying control method
CN104794803A (en) * 2015-05-13 2015-07-22 恒银金融科技有限公司 Banknote recognition module for deposit and withdrawal circulator
CN105006062A (en) * 2015-07-29 2015-10-28 深圳怡化电脑股份有限公司 Bill identification method and deposit and withdrawal device
CN105184955A (en) * 2015-08-18 2015-12-23 深圳怡化电脑股份有限公司 Method and device for identifying paper money

Also Published As

Publication number Publication date
CN106652166A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN105006062B (en) A kind of method and deposit and withdrawal device for identifying bank note
CN103456075B (en) A kind of bill handling method and device
CN103279735B (en) Dust stratification detection method and system in a kind of financial document identification module
CN104091388A (en) Paper currency authentic identification method and device based on magnetic images
CN102542660B (en) Bill anti-counterfeiting identification method based on bill watermark distribution characteristics
CN104346858A (en) Paper currency face value identification method and device based on magnetic image
EP2905754B1 (en) Valuable document authentication method and device
JP4911317B2 (en) Fingerprint image background detection apparatus and detection method
CN105354912B (en) A kind of method and device for detecting bank note
CN100583172C (en) Finance bills detection system
CN102324132A (en) Bank-note detecting method by identifying ultraviolet-light image and system
CN102456246A (en) Stuck banknotes detection method, apparatus thereof and self-service terminal
CN105160756A (en) Paper money facing direction recognition method and device
CN106504407B (en) A kind of method and device handling banknote image
CN105551133A (en) Banknote splicing seam or crease recognition method and system
CN105719386A (en) Paper currency identification method and device based on optically-variable hollowed windowing security line
CN105184957A (en) Paper currency discrimination method and system
CN105447956A (en) Spliced banknote detection method
CN106652166B (en) A kind of detection method and system of stuck banknotes
CN107089066A (en) The security element encoded with magnetic
CN107481392A (en) The detection method of bank note edge adhesive tape
CN105069893A (en) Method and apparatus for checking bank note
CN102982308A (en) Palm print collecting and positioning method in long distance on-line authentication research
CN106683261A (en) Method and device for authentic identification of banknote
CN108711213A (en) A kind of recognition methods of bank note zebra stripes black and white block and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant