CN105427448B - A kind of method and device obtaining bank note safety line boundary - Google Patents

A kind of method and device obtaining bank note safety line boundary Download PDF

Info

Publication number
CN105427448B
CN105427448B CN201510724124.9A CN201510724124A CN105427448B CN 105427448 B CN105427448 B CN 105427448B CN 201510724124 A CN201510724124 A CN 201510724124A CN 105427448 B CN105427448 B CN 105427448B
Authority
CN
China
Prior art keywords
safety line
bank note
hand edge
column
position coordinates
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.)
Expired - Fee Related
Application number
CN201510724124.9A
Other languages
Chinese (zh)
Other versions
CN105427448A (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 CN201510724124.9A priority Critical patent/CN105427448B/en
Publication of CN105427448A publication Critical patent/CN105427448A/en
Application granted granted Critical
Publication of CN105427448B publication Critical patent/CN105427448B/en
Expired - Fee Related 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

Abstract

The embodiment of the invention discloses a kind of method and devices on acquisition bank note safety line boundary, the present invention utilizes the certain minimum feature of gray value where safety line, and the features such as small according to safety line width itself, lookup amount is few, the new bank note safety line integrality detection method of design, using the method for gray value row projection, the feature of safety line is obtained;It is scheduled on this stabilization, apparent safe line position of feature Primary Location in safety line using gray value low order column one, accuracy rate can be improved, exclude noise jamming;The present invention is that small range is searched to the left and right sides from minimum value row, can't be influenced by curve smoothing part in the lookup of curve steep part, and the influences of the special circumstances to integrity detection such as safety line tilts, safety line edge blacks can be excluded.

Description

A kind of method and device obtaining bank note safety line boundary
Technical field
The present embodiments relate to the technical field of detection bank note more particularly to a kind of sides obtaining bank note safety line boundary Method and device.
Background technology
Existing safety line integrity detection generally searches gray value inflection point by column with difference, and this method is not only looked into It looks for often, and is easy to be influenced by noise etc., tend not to accurately find very much safety line edge.
Invention content
The purpose of the embodiment of the present invention is to propose a kind of method and device on acquisition bank note safety line boundary, it is intended to solve The problem of safety line edge how is accurately positioned and quickly detects safety line integrality.
For this purpose, the embodiment of the present invention uses following technical scheme:
In a first aspect, a kind of method obtaining bank note safety line boundary, the method includes:
Intercept the region of bank note safety line to be detected;
The gray value information in the region is obtained, and obtains the sum of the gray value of each row according to the gray value information;
Obtain the corresponding position coordinates of gray value minimum in the sum of described gray value;
The position that the left hand edge of the bank note safety line is obtained according to the corresponding position coordinates of gray value of the minimum is sat Mark;
The position coordinates of the right hand edge of the bank note safety line are obtained according to the position coordinates of the left hand edge.
Preferably, the region of the interception bank note safety line to be detected, including:
According to the infrared transmission figure of bank note to be detected and towards the region for intercepting safety line;
The infrared transmission figure according to bank note to be detected and the region towards interception safety line, including:
The back sides the BD reversed image for selecting bank note to be detected, the regional extent that safety line is intercepted under 100dpi resolution ratio are X[320:410], [1 Y;end].
Preferably, the left side that the bank note safety line is obtained according to the corresponding position coordinates of gray value of the minimum The position coordinates of edge, including:
From the corresponding position coordinates of gray value of the minimum, the row coordinate L of position coordinates minimum is obtained;
X [L]=column [L-1]-column [L+1] is calculated, the X [L] and pre-set threshold value T are compared, In, the column [L+1] is the sum of corresponding gray values of row coordinate L+1, and the column [L-1] is that row coordinate L-1 is corresponded to The sum of gray value;
If X [L]>T, it is determined that the position coordinates of the left hand edge of the bank note safety line are L.
Preferably, the left side that the bank note safety line is obtained according to the corresponding position coordinates of gray value of the minimum The position coordinates of edge, including:
If the position coordinates of the left hand edge of the bank note safety line are L, according to pre-set step-length m, X [L+m] is calculated =column [L+m+1]-column [L+m-1];
X [L+m] and threshold value T are compared;
If X [L+m]>T, then L+m be classified as the right hand edge of the bank note safety line;
If X [L+m]≤T, continue to move to right the X [L+m+1] for calculating next column, the right side until finding the bank note safety line Edge.
Preferably, the method further includes:
It is each to the left and right to move a row if X [L]≤T, calculate X [L-1]=column [L-2]-column [L] and X [L+1] =column [L+2]-column [L];
X [L-1] and X [L+1] are made comparisons with threshold value T respectively;
If X [L-1]>T, then L-1 be classified as safety line left hand edge row, otherwise continue to move to left detection, until find left hand edge arrange;
If X [L+1]>Then L+1 is classified as safety line right hand edge row to T, otherwise continues to move to right detection, until finding right hand edge row.
Preferably, the method further includes:
The width W=L2-L1-2, L1 of the safety line are obtained according to the position coordinates of the left and right edges of the safety line For the left hand edge of the safety line, L2 is the right hand edge of the safety line;
The width W is compared with the safety line width range of normal bank note;
If the W is within the safety line width range of the normal bank note, it is determined that the safety line is normal;
If the W is except the safety line width range of the normal bank note, it is determined that the safety line is abnormal.
Second aspect, a kind of device obtaining bank note safety line boundary, described device include:
Interception module, the region for intercepting bank note safety line to be detected;
First acquisition module, the gray value information for obtaining the region, and obtained often according to the gray value information The sum of the gray value of one row;
Second acquisition module, for obtaining the corresponding position coordinates of gray value minimum in the sum of described gray value;
Third acquisition module obtains the bank note safety line for the corresponding position coordinates of gray value according to the minimum Left hand edge position coordinates;
4th acquisition module, the right hand edge for obtaining according to the position coordinates of the left hand edge bank note safety line Position coordinates.
Preferably, the interception module, including:
Interception unit, for the infrared transmission figure according to bank note to be detected and the region towards interception safety line;
Interception unit is used for:
The back sides the BD reversed image for selecting bank note to be detected, the regional extent that safety line is intercepted under 100dpi resolution ratio are X[320:410], [1 Y;end].
Preferably, the third acquisition module, including:
First acquisition unit, for from the corresponding position coordinates of gray value of the minimum, it is minimum to obtain position coordinates Row coordinate L;
First computing unit, for calculating X [L]=column [L-1]-column [L+1], by the X [L] and in advance The threshold value T of setting compares, wherein the column [L+1] is the sum of corresponding gray values of row coordinate L+1, the column [L- 1] it is the sum of corresponding gray values of row coordinate L-1;
First determination unit, if being used for X [L]>T, it is determined that the position coordinates of the left hand edge of the bank note safety line are L.
Preferably, the third acquisition module, including:
Second computing unit, if the position coordinates of the left hand edge for the bank note safety line are L, according to pre-set Step-length m calculates X [L+m]=column [L+m+1]-column [L+m-1];
Comparing unit, for comparing X [L+m] and threshold value T;
Second determination unit, if being used for X [L+m]>T, it is determined that L+m is classified as the right hand edge of the bank note safety line;If X [L + m]≤T, then continue to move to right the X [L+m+1] for calculating next column, the right hand edge until finding the bank note safety line.
Preferably, described device further includes:
First computing module, it is each to the left and right to move a row if being used for X [L]≤T, calculate X [L-1]=column [L-2]- Column [L] and X [L+1]=column [L+2]-column [L];
First comparison module, for X [L-1] and X [L+1] to make comparisons with threshold value T respectively;
First searching module, if being used for X [L-1]>T, then L-1 be classified as safety line left hand edge row, otherwise continue to move to left detection, Until finding left hand edge row;
Second searching module, if being used for X [L+1]>Then L+1 is classified as safety line right hand edge row to T, otherwise continues to move to right detection, Until finding right hand edge row.
Preferably, described device further includes:
5th acquisition module, the width for obtaining the safety line according to the position coordinates of the left and right edges of the safety line W=L2-L1-2 is spent, L1 is the left hand edge of the safety line, and L2 is the right hand edge of the safety line;
Second comparison module, for the width W to be compared with the safety line width range of normal bank note;
First determining module, if for the W within the safety line width range of the normal bank note, it is determined that described Safety line is normal;
Second determining module, if for the W except the safety line width range of the normal bank note, it is determined that described Safety line is abnormal.
The region that the embodiment of the present invention passes through interception bank note safety line to be detected;The gray value information in the region is obtained, And the sum of the gray value of each row is obtained according to the gray value information;Obtain gray value pair minimum in the sum of described gray value The position coordinates answered;The position of the left hand edge of the bank note safety line is obtained according to the corresponding position coordinates of gray value of the minimum Set coordinate;The position coordinates of the right hand edge of the bank note safety line are obtained according to the position coordinates of the left hand edge.Profit of the invention With the certain minimum feature of the gray value where safety line, and it is small according to safety line width itself, lookup amount is few the features such as, design New bank note safety line integrality detection method, using gray value row projection method, obtain the feature of safety line;Utilize ash Angle value low order column one is scheduled on this stabilization, apparent safe line position of feature Primary Location in safety line, and it is accurate to improve Rate excludes noise jamming;The present invention be from minimum value row to the left and right sides small range search, curve steep part lookup simultaneously It will not be influenced by curve smoothing part, the special circumstances such as safety line tilts, safety line edge blacks can be excluded to complete Property detection influence.
Description of the drawings
Fig. 1 is the flow diagram for the method that the embodiment of the present invention obtains bank note safety line boundary;
Fig. 2 is the schematic diagram of bank note safety line Gray Projection of the embodiment of the present invention;
Fig. 3 is the flow diagram for the method that the embodiment of the present invention obtains bank note safety line boundary;
Fig. 4 is the flow diagram for the method that the embodiment of the present invention obtains bank note safety line boundary;
Fig. 5 is the high-level schematic functional block diagram for the device that the embodiment of the present invention obtains bank note safety line boundary;
Fig. 6 is the high-level schematic functional block diagram of interception module of the embodiment of the present invention;
Fig. 7 is the high-level schematic functional block diagram of third acquisition module of the embodiment of the present invention;
Fig. 8 is the high-level schematic functional block diagram of third acquisition module of the embodiment of the present invention;
Fig. 9 is the high-level schematic functional block diagram for the device that the embodiment of the present invention obtains bank note safety line boundary;
Figure 10 is the high-level schematic functional block diagram for the device that the embodiment of the present invention obtains bank note safety line boundary.
Specific implementation mode
The embodiment of the present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this The described specific embodiment in place is used only for explaining the embodiment of the present invention, rather than the restriction to the embodiment of the present invention.In addition also It should be noted that illustrating only for ease of description, in attached drawing and the relevant part of the embodiment of the present invention rather than entire infrastructure.
Embodiment one
With reference to figure 1, Fig. 1 is the flow diagram for the method that the embodiment of the present invention obtains bank note safety line boundary.
In embodiment one, the method for obtaining bank note safety line boundary includes:
Step 101, the region of bank note safety line to be detected is intercepted;
Preferably, the region of the interception bank note safety line to be detected, including:
According to the infrared transmission figure of bank note to be detected and towards the region for intercepting safety line;
The infrared transmission figure according to bank note to be detected and the region towards interception safety line, including:
The back sides the BD reversed image for selecting bank note to be detected, the regional extent that safety line is intercepted under 100dpi resolution ratio are X[320:410], [1 Y;end].
Step 102, the gray value information in the region is obtained, and obtains the gray scale of each row according to the gray value information The sum of value;
Specifically, with reference to figure 2, Fig. 2 is the schematic diagram of bank note safety line Gray Projection of the embodiment of the present invention.To safety line area The row of gray value are done to projection in domain, calculate the sum of the gray value of each row column [i].
Step 103, the corresponding position coordinates of gray value minimum in the sum of described gray value are obtained;
Specifically, the corresponding row number of minimum value for determining column [i] is L (multiple row is identical to take first), arranged on the basis of L, X [L]=column [L-1]-column [L+1] is calculated, compared with threshold value T.
Step 104, the left hand edge of the bank note safety line is obtained according to the corresponding position coordinates of gray value of the minimum Position coordinates;
Preferably, the left side that the bank note safety line is obtained according to the corresponding position coordinates of gray value of the minimum The position coordinates of edge, including:
From the corresponding position coordinates of gray value of the minimum, the row coordinate L of position coordinates minimum is obtained;
X [L]=column [L-1]-column [L+1] is calculated, the X [L] and pre-set threshold value T are compared, In, the column [L+1] is the sum of corresponding gray values of row coordinate L+1, and the column [L-1] is that row coordinate L-1 is corresponded to The sum of gray value;
If X [L]>T, it is determined that the position coordinates of the left hand edge of the bank note safety line are L.
Preferably, the left side that the bank note safety line is obtained according to the corresponding position coordinates of gray value of the minimum The position coordinates of edge, including:
If the position coordinates of the left hand edge of the bank note safety line are L, according to pre-set step-length m, Column is calculated [L+m+1]-column[L+m-1];
X [L+m] and threshold value T are compared;
If X [L+m]>T, then L+m be classified as the right hand edge of the bank note safety line;
If X [L+m]≤T, continue to move to right the X [L+m+1] for calculating next column, the right side until finding the bank note safety line Edge.
If specifically, X [L]>T, then L be classified as safety line edge columns, and be left hand edge.In view of the safety of 05 millboard coin Line normal width arranges left and right, therefore 5 row that can directly move right for 10, X [L+5]=column [L+4]-column [L+6] Compare with threshold value T, X [L+5]>Then L+5 is classified as right hand edge to T, which is Ws=(L+5)-L=5, is otherwise continued The X [L+i] for calculating next column is moved to right, it is wide with calculating bank note safety line according to the row number of two edge columns until finding right hand edge Spend Ws.
Step 105, the position coordinates of the right hand edge of the bank note safety line are obtained according to the position coordinates of the left hand edge.
The region that the embodiment of the present invention passes through interception bank note safety line to be detected;The gray value information in the region is obtained, And the sum of the gray value of each row is obtained according to the gray value information;Obtain gray value pair minimum in the sum of described gray value The position coordinates answered;The position of the left hand edge of the bank note safety line is obtained according to the corresponding position coordinates of gray value of the minimum Set coordinate;The position coordinates of the right hand edge of the bank note safety line are obtained according to the position coordinates of the left hand edge.Profit of the invention With the certain minimum feature of the gray value where safety line, and it is small according to safety line width itself, lookup amount is few the features such as, design New bank note safety line integrality detection method, using gray value row projection method, obtain the feature of safety line;Utilize ash Angle value low order column one is scheduled on this stabilization, apparent safe line position of feature Primary Location in safety line, and it is accurate to improve Rate excludes noise jamming;The present invention be from minimum value row to the left and right sides small range search, curve steep part lookup simultaneously It will not be influenced by curve smoothing part, the special circumstances such as safety line tilts, safety line edge blacks can be excluded to complete Property detection influence.
Embodiment two
With reference to figure 3, Fig. 3 is the flow diagram for the method that the embodiment of the present invention obtains bank note safety line boundary.
On the basis of embodiment one, the method for obtaining bank note safety line boundary further includes:
Step 106, each to the left and right to move a row if X [L]≤T, calculate X [L-1]=column [L-2]-column [L] With X [L+1]=column [L+2]-column [L];
Step 107, X [L-1] and X [L+1] are made comparisons with threshold value T respectively;
Step 108, if X [L-1]>T, then L-1 be classified as safety line left hand edge row, otherwise continue to move to left detection, until finding Left hand edge arranges;
Step 109, if X [L+1]>T, then L+1 be classified as safety line right hand edge row, otherwise continue to move to right detection, until finding Right hand edge arranges.
If specifically, X [L]<T, then it is each to the left and right to move a row, calculate X [L-1]=column [L-2]-column [L] and X [L+1]=column [L+2]-column [L].X [L-1] and X [L+1] are made comparisons with threshold value T respectively, if X [L-1]>T, Then L-1 is classified as safety line left hand edge row, otherwise continues to move to left detection, until finding left hand edge row;If X [L+1]>Then L+1 is classified as T Safety line right hand edge arranges, and otherwise continues to move to right detection, until finding right hand edge row;Finally calculated according to the row number of two edge columns Go out bank note safety line width Ws.
Embodiment three
With reference to figure 4, Fig. 4 is the flow diagram for the method that the embodiment of the present invention obtains bank note safety line boundary.
On the basis of embodiment one or embodiment two, on the basis of embodiment one, the method further includes:
Step 110, the width W=L2- of the safety line is obtained according to the position coordinates of the left and right edges of the safety line L1-2, L1 are the left hand edge of the safety line, and L2 is the right hand edge of the safety line;
Step 111, the width W is compared with the safety line width range of normal bank note;
Step 112, if the W is within the safety line width range of the normal bank note, it is determined that the safety line is Normally;
Step 113, if the W is except the safety line width range of the normal bank note, it is determined that the safety line is Abnormal.
Specifically, obtained bank note safety line width Ws is compared with the safety line width range of normal bank note, if Then illustrate that the safety line of the bank note is complete in normal range (NR), if it is less than the range, then proves the safety line of the bank note There is breakage.
Example IV
With reference to figure 5, Fig. 5 is the high-level schematic functional block diagram for the device that the embodiment of the present invention obtains bank note safety line boundary.
In example IV, the device for obtaining bank note safety line boundary includes:
Interception module 501, the region for intercepting bank note safety line to be detected;
Preferably, with reference to figure 6, Fig. 6 is the high-level schematic functional block diagram of interception module of the embodiment of the present invention 501.
Interception unit 601, for the infrared transmission figure according to bank note to be detected and the region towards interception safety line;
Interception unit 601, is used for:
The back sides the BD reversed image for selecting bank note to be detected, the regional extent that safety line is intercepted under 100dpi resolution ratio are X[320:410], [1 Y;end].
First acquisition module 502, the gray value information for obtaining the region, and obtained according to the gray value information The sum of the gray value of each row;
Specifically, with reference to figure 2, Fig. 2 is the schematic diagram of bank note safety line Gray Projection of the embodiment of the present invention.To safety line area The row of gray value are done to projection in domain, calculate the sum of the gray value of each row column [i].
Second acquisition module 503, for obtaining the corresponding position coordinates of gray value minimum in the sum of described gray value;
Specifically, the corresponding row number of minimum value for determining column [i] is L (multiple row is identical to take first), arranged on the basis of L, X [L]=column [L-1]-column [L+1] is calculated, compared with threshold value T.
Third acquisition module 504 obtains the bank note for the corresponding position coordinates of gray value according to the minimum and pacifies The position coordinates of the left hand edge of all fronts;
Preferably, with reference to figure 7, Fig. 7 is the high-level schematic functional block diagram of third of embodiment of the present invention acquisition module 504.It is described Third acquisition module 504, including:
First acquisition unit 701, for from the corresponding position coordinates of gray value of the minimum, obtaining position coordinates most Small row coordinate L;
First computing unit 702, for calculating X [L]=column [L-1]-column [L+1], by the X [L] and in advance The threshold value T being first arranged compares, wherein the column [L+1] is the sum of corresponding gray values of row coordinate L+1, the column [L-1] is the sum of corresponding gray values of row coordinate L-1;
First determination unit 703, if being used for X [L]>T, it is determined that the position coordinates of the left hand edge of the bank note safety line are L。
Preferably, with reference to figure 8, Fig. 8 is the high-level schematic functional block diagram of third of embodiment of the present invention acquisition module 504.It is described Third acquisition module 504, including:
Second computing unit 801, if the position coordinates of the left hand edge for the bank note safety line are L, according to setting in advance The step-length m set calculates X [L+m]=column [L+m+1]-column [L+m-1];
Comparing unit 802, for comparing X [L+m] and threshold value T;
Second determination unit 803, if being used for X [L+m]>T, it is determined that L+m is classified as the right hand edge of the bank note safety line;If X [L+m]≤T then continues to move to right the X [L+m+1] for calculating next column, the right hand edge until finding the bank note safety line.
If specifically, X [L]>T, then L be classified as safety line edge columns, and be left hand edge.In view of the safety of 05 millboard coin Line normal width arranges left and right, therefore 5 row that can directly move right for 10, X [L+5]=column [L+4]-column [L+6] Compare with threshold value T, X [L+5]>Then L+5 is classified as right hand edge to T, which is Ws=(L+5)-L=5, is otherwise continued The X [L+i] for calculating next column is moved to right, it is wide with calculating bank note safety line according to the row number of two edge columns until finding right hand edge Spend Ws.
4th acquisition module 505, the right for obtaining the bank note safety line according to the position coordinates of the left hand edge The position coordinates of edge.
The region that the embodiment of the present invention passes through interception bank note safety line to be detected;The gray value information in the region is obtained, And the sum of the gray value of each row is obtained according to the gray value information;Obtain gray value pair minimum in the sum of described gray value The position coordinates answered;The position of the left hand edge of the bank note safety line is obtained according to the corresponding position coordinates of gray value of the minimum Set coordinate;The position coordinates of the right hand edge of the bank note safety line are obtained according to the position coordinates of the left hand edge.Profit of the invention With the certain minimum feature of the gray value where safety line, and it is small according to safety line width itself, lookup amount is few the features such as, design New bank note safety line integrality detection method, using gray value row projection method, obtain the feature of safety line;Utilize ash Angle value low order column one is scheduled on this stabilization, apparent safe line position of feature Primary Location in safety line, and it is accurate to improve Rate excludes noise jamming;The present invention be from minimum value row to the left and right sides small range search, curve steep part lookup simultaneously It will not be influenced by curve smoothing part, the special circumstances such as safety line tilts, safety line edge blacks can be excluded to complete Property detection influence.
Embodiment five
With reference to figure 9, Fig. 9 is the high-level schematic functional block diagram for the device that the embodiment of the present invention obtains bank note safety line boundary.
On the basis of example IV, described device further includes:
First computing module 506, it is each to the left and right to move a row if being used for X [L]≤T, calculate X [L-1]=column [L- 2]-column [L] and X [L+1]=column [L+2]-column [L];
First comparison module 507, for X [L-1] and X [L+1] to make comparisons with threshold value T respectively;
First searching module 508, if being used for X [L-1]>T, then L-1 be classified as safety line left hand edge row, otherwise continue to move to left inspection It surveys, until finding left hand edge row;
Second searching module 509, if being used for X [L+1]>Then L+1 is classified as safety line right hand edge row to T, otherwise continues to move to right inspection It surveys, until finding right hand edge row.
If specifically, X [L]<T, then it is each to the left and right to move a row, calculate X [L-1]=column [L-2]-column [L] and X [L+1]=column [L+2]-column [L].X [L-1] and X [L+1] are made comparisons with threshold value T respectively, if X [L-1]>T, Then L-1 is classified as safety line left hand edge row, otherwise continues to move to left detection, until finding left hand edge row;If X [L+1]>Then L+1 is classified as T Safety line right hand edge arranges, and otherwise continues to move to right detection, until finding right hand edge row;Finally calculated according to the row number of two edge columns Go out bank note safety line width Ws.
Embodiment six
With reference to figure 10, Figure 10 is the high-level schematic functional block diagram for the device that the embodiment of the present invention obtains bank note safety line boundary.
On the basis of example IV or embodiment five, on the basis of example IV, described device further includes:
5th acquisition module 510, the position coordinates for the left and right edges according to the safety line obtain the safety line Width W=L2-L1-2, L1 is the left hand edge of the safety line, and L2 is the right hand edge of the safety line;
Second comparison module 511, for the width W to be compared with the safety line width range of normal bank note;
First determining module 512, if for the W within the safety line width range of the normal bank note, it is determined that The safety line is normal;
Second determining module 513, if for the W except the safety line width range of the normal bank note, it is determined that The safety line is abnormal.
Specifically, obtained bank note safety line width Ws is compared with the safety line width range of normal bank note, if Then illustrate that the safety line of the bank note is complete in normal range (NR), if it is less than the range, then proves the safety line of the bank note There is breakage.
The technical principle of the embodiment of the present invention is described above in association with specific embodiment.These descriptions are intended merely to explain this The principle of inventive embodiments, and it cannot be construed to the limitation to protection domain of the embodiment of the present invention in any way.Based on herein Explanation, those skilled in the art, which would not require any inventive effort, can associate the other specific of the embodiment of the present invention Embodiment, these modes are fallen within the protection domain of the embodiment of the present invention.

Claims (8)

1. a kind of method obtaining bank note safety line boundary, which is characterized in that the method includes:
Intercept the region of bank note safety line to be detected;
The gray value information in the region is obtained, and obtains the sum of the gray value of each row according to the gray value information;
Obtain the corresponding position coordinates of gray value minimum in the sum of described gray value;
The position coordinates of the left hand edge of the bank note safety line are obtained according to the corresponding position coordinates of gray value of the minimum;
The position coordinates of the right hand edge of the bank note safety line are obtained according to the position coordinates of the left hand edge;
Wherein, the corresponding position coordinates of gray value according to the minimum obtain the position of the left hand edge of the bank note safety line Coordinate is set, including:
From the corresponding position coordinates of gray value of the minimum, the row coordinate L of position coordinates minimum is obtained;
X [L]=column [L-1]-column [L+1] is calculated, the X [L] and pre-set threshold value T are compared, wherein institute It is the sum of corresponding gray values of row coordinate L+1 to state column [L+1], and the column [L-1] is the corresponding gray scales of row coordinate L-1 The sum of value;
If X [L]>T, it is determined that the position coordinates of the left hand edge of the bank note safety line are L;
Wherein, the method further includes:
If X [L]≤T, each shifting one to the left and right arranges, calculating X [L-1]=column [L-2]-column [L] and X [L+1]= column[L+2]-column[L];
X [L-1] and X [L+1] are made comparisons with threshold value T respectively;
If X [L-1]>T, then L-1 be classified as safety line left hand edge row, otherwise continue to move to left detection, until find left hand edge arrange;
If X [L+1]>Then L+1 is classified as safety line right hand edge row to T, otherwise continues to move to right detection, until finding right hand edge row.
2. according to the method described in claim 1, it is characterized in that, the region of interception bank note safety line to be detected, including:
According to the infrared transmission figure of bank note to be detected and towards the region for intercepting safety line;
The infrared transmission figure according to bank note to be detected and the region towards interception safety line, including:
The back sides the BD reversed image for selecting bank note to be detected, the regional extent that safety line is intercepted under 100dpi resolution ratio are X [320:410], [1 Y;end].
3. according to the method described in claim 1, it is characterized in that, the corresponding position of the gray value according to the minimum is sat Mark obtains the position coordinates of the left hand edge of the bank note safety line, including:
If the position coordinates of the left hand edge of the bank note safety line are L, according to pre-set step-length m, calculate X [L+m]= column[L+m+1]-column[L+m-1];
X [L+m] and threshold value T are compared;
If X [L+m]>T, then L+m be classified as the right hand edge of the bank note safety line;
If X [L+m]≤T, continue to move to right the X [L+m+1] for calculating next column, the right until finding the bank note safety line Edge.
4. according to the method described in claims 1 to 3 any one, which is characterized in that the method further includes:
It is described that the width W=L2-L1-2, L1 of the safety line are obtained according to the position coordinates of the left and right edges of the safety line The left hand edge of safety line, L2 are the right hand edge of the safety line;
The width W is compared with the safety line width range of normal bank note;
If the W is within the safety line width range of the normal bank note, it is determined that the safety line is normal;
If the W is except the safety line width range of the normal bank note, it is determined that the safety line is abnormal.
5. a kind of device obtaining bank note safety line boundary, which is characterized in that described device includes:
Interception module, the region for intercepting bank note safety line to be detected;
First acquisition module, the gray value information for obtaining the region, and each row are obtained according to the gray value information The sum of gray value;
Second acquisition module, for obtaining the corresponding position coordinates of gray value minimum in the sum of described gray value;
Third acquisition module, the left side for obtaining the bank note safety line according to the corresponding position coordinates of gray value of the minimum The position coordinates at edge;
4th acquisition module, the position of the right hand edge for obtaining the bank note safety line according to the position coordinates of the left hand edge Coordinate;
Wherein, the third acquisition module, including:
First acquisition unit, for from the corresponding position coordinates of gray value of the minimum, obtaining the row of position coordinates minimum Coordinate L;
First computing unit, for calculating X [L]=column [L-1]-column [L+1], by the X [L] and pre-set Threshold value T compares, wherein the column [L+1] is the sum of corresponding gray values of row coordinate L+1, and the column [L-1] is row The sum of corresponding gray values of coordinate L-1;
First determination unit, if being used for X [L]>T, it is determined that the position coordinates of the left hand edge of the bank note safety line are L;
Wherein, described device further includes:
First computing module, it is each to the left and right to move a row if being used for X [L]≤T, calculate X [L-1]=column [L-2]- Column [L] and X [L+1]=column [L+2]-column [L];
First comparison module, for X [L-1] and X [L+1] to make comparisons with threshold value T respectively;
First searching module, if being used for X [L-1]>T, then L-1 be classified as safety line left hand edge row, otherwise continue to move to left detection, until Find left hand edge row;
Second searching module, if being used for X [L+1]>Then L+1 is classified as safety line right hand edge row to T, otherwise continues to move to right detection, until Find right hand edge row.
6. device according to claim 5, which is characterized in that the interception module, including:
Interception unit, for the infrared transmission figure according to bank note to be detected and the region towards interception safety line;
Interception unit is used for:
The back sides the BD reversed image for selecting bank note to be detected, the regional extent that safety line is intercepted under 100dpi resolution ratio are X [320:410], [1 Y;end].
7. device according to claim 5, which is characterized in that the third acquisition module, including:
Second computing unit, if the position coordinates of the left hand edge for the bank note safety line are L, according to pre-set step-length M calculates X [L+m]=column [L+m+1]-column [L+m-1];
Comparing unit, for comparing X [L+m] and threshold value T;
Second determination unit, if being used for X [L+m]>T, it is determined that L+m is classified as the right hand edge of the bank note safety line;If X [L+m] ≤ T then continues to move to right the X [L+m+1] for calculating next column, the right hand edge until finding the bank note safety line.
8. according to the device described in claim 5 to 7 any one, which is characterized in that described device further includes:
5th acquisition module, the width W for obtaining the safety line according to the position coordinates of the left and right edges of the safety line =L2-L1-2, L1 are the left hand edge of the safety line, and L2 is the right hand edge of the safety line;
Second comparison module, for the width W to be compared with the safety line width range of normal bank note;
First determining module, if for the W within the safety line width range of the normal bank note, it is determined that the safety Line is normal;
Second determining module, if for the W except the safety line width range of the normal bank note, it is determined that the safety Line is abnormal.
CN201510724124.9A 2015-10-29 2015-10-29 A kind of method and device obtaining bank note safety line boundary Expired - Fee Related CN105427448B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510724124.9A CN105427448B (en) 2015-10-29 2015-10-29 A kind of method and device obtaining bank note safety line boundary

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510724124.9A CN105427448B (en) 2015-10-29 2015-10-29 A kind of method and device obtaining bank note safety line boundary

Publications (2)

Publication Number Publication Date
CN105427448A CN105427448A (en) 2016-03-23
CN105427448B true CN105427448B (en) 2018-07-17

Family

ID=55505627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510724124.9A Expired - Fee Related CN105427448B (en) 2015-10-29 2015-10-29 A kind of method and device obtaining bank note safety line boundary

Country Status (1)

Country Link
CN (1) CN105427448B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017168592A1 (en) * 2016-03-29 2017-10-05 グローリー株式会社 Valuable document processing apparatus and valuable document processing method
CN106127930B (en) * 2016-06-17 2019-02-01 深圳怡化电脑股份有限公司 A kind of method and system detecting banknote security line integrality
CN106373254B (en) * 2016-08-24 2019-04-26 深圳怡化电脑股份有限公司 The localization method and device of magnetic security line
CN106408746B (en) * 2016-08-25 2019-03-12 深圳怡化电脑股份有限公司 A kind of safety line recognition methods and device
CN106504409B (en) * 2016-11-16 2019-07-05 深圳怡化电脑股份有限公司 A kind of detection method and device of bank note magnetic security line
CN108074318B (en) * 2016-11-17 2020-03-27 深圳怡化电脑股份有限公司 Method and device for identifying paper money
CN106780965B (en) * 2016-12-14 2019-03-12 深圳怡化电脑股份有限公司 A kind of Paper Currency Identification and device
CN108961200A (en) * 2017-05-17 2018-12-07 深圳怡化电脑股份有限公司 A kind of dust detection method and device
CN115147977B (en) * 2021-03-30 2023-12-22 深圳怡化电脑股份有限公司 Paper money discriminating method, paper money discriminating device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102136166A (en) * 2011-01-14 2011-07-27 哈尔滨工业大学 Method and device for distinguishing false money by imaging paper money through multimodal information fusion
EP2631881A1 (en) * 2010-10-19 2013-08-28 Shandong New Beiyang Information Technology Co., Ltd. Banknote double-note detection method and device and automated terminal
CN104851184A (en) * 2015-05-27 2015-08-19 深圳怡化电脑股份有限公司 Recognition method of transversely spliced banknote and device thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2631881A1 (en) * 2010-10-19 2013-08-28 Shandong New Beiyang Information Technology Co., Ltd. Banknote double-note detection method and device and automated terminal
CN102136166A (en) * 2011-01-14 2011-07-27 哈尔滨工业大学 Method and device for distinguishing false money by imaging paper money through multimodal information fusion
CN104851184A (en) * 2015-05-27 2015-08-19 深圳怡化电脑股份有限公司 Recognition method of transversely spliced banknote and device thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《基于灰度投影的快速纸币图像几何校正》;李云峰、贾晨辉;《计算机应用与软件》;20090630;第253-255页 *
《纸币卡把计数与面值识别的算法改进及程序实现》;杨晓燕;《中国硕士学位论文全文数据库(电子期刊)信息科技辑》;20150531;第1138-1170页 *

Also Published As

Publication number Publication date
CN105427448A (en) 2016-03-23

Similar Documents

Publication Publication Date Title
CN105427448B (en) A kind of method and device obtaining bank note safety line boundary
CN105303677B (en) A kind of method and device for obtaining bank note safety line border
CN106127930B (en) A kind of method and system detecting banknote security line integrality
JP2016018538A5 (en)
CN105354912B (en) A kind of method and device for detecting bank note
WO2009102681A3 (en) Systems and methods for resolving multitouch scenarios for optical touchscreens
US20120287054A1 (en) Touch position detecting method
US9582113B2 (en) Method and apparatus for improving coordinate accuracy of a touch panel
CN105354913B (en) A kind of method and device of detection bank note
US9075476B2 (en) Touch sensing methods comprising comparison of a detected profile form of a sensing curve with predetermined profile forms and devices thereof
CN105069899B (en) The method and banknote tester of a kind of currency examination
CN105096299A (en) Polygon detection method and device
CN103530409A (en) Searching method and searching system for remote sensing images
US9001085B2 (en) Touch screen apparatus for determining accurate touch point coordinate pair
US9086769B2 (en) High resolution non-ghosted gestures
CN105139508B (en) A kind of method and device of detection bank note
CN104123737A (en) Testing method for judging inclusivity of points on inner portion, outer portion or boundary of polygonal area
CN102541356A (en) Touch point positioning method for optical touch panel and optical touch panel device
US9229593B2 (en) Single and multiple finger extraction and position calculation using a weighted mask
US20180074655A1 (en) Touch screen, touch display device and touch detection method
CN105005417A (en) Optical touch device and optical touch method
RU2586443C1 (en) Astronomical sighting method
KR102092664B1 (en) Circuit and method for selecting coordinates in differential touch sensing system
CN107357478B (en) Electromagnetic touch inclination angle detection method, coordinate correction method and application thereof
US20140267173A1 (en) Touch control apparatus and associated selection method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180717

Termination date: 20211029

CF01 Termination of patent right due to non-payment of annual fee