CN107657712A - A kind of paper currency detecting method and note detection device - Google Patents

A kind of paper currency detecting method and note detection device Download PDF

Info

Publication number
CN107657712A
CN107657712A CN201710807688.8A CN201710807688A CN107657712A CN 107657712 A CN107657712 A CN 107657712A CN 201710807688 A CN201710807688 A CN 201710807688A CN 107657712 A CN107657712 A CN 107657712A
Authority
CN
China
Prior art keywords
word number
crown word
bank note
number region
detected
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710807688.8A
Other languages
Chinese (zh)
Inventor
李�杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
Original Assignee
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Yihua Computer Co Ltd, Shenzhen Yihua Time Technology Co Ltd, Shenzhen Yihua Financial Intelligent Research Institute filed Critical Shenzhen Yihua Computer Co Ltd
Priority to CN201710807688.8A priority Critical patent/CN107657712A/en
Publication of CN107657712A publication Critical patent/CN107657712A/en
Pending legal-status Critical Current

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

Landscapes

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

Abstract

The invention discloses a kind of paper currency detecting method, note detection device, electronic equipment and computer-readable recording medium, wherein, the paper currency detecting method includes:Obtain the positive infrared image of the bank note to be detected;The crown word number region of the bank note to be detected is positioned in the infrared image;The gray value in the crown word number region is detected whether in default intensity value ranges;If the gray value in the crown word number region exceeds the intensity value ranges, it is determined that the bank note to be detected is abnormal bank note.The present invention program improves the detection efficiency to abnormal bank note.

Description

A kind of paper currency detecting method and note detection device
Technical field
The invention belongs to paper money recognition technical field, more particularly to a kind of paper currency detecting method and note detection device.
Background technology
Bank note is by country hair style and forces the symbol of value used, however, criminal manufactures to make profit Go out the bank note (being referred to as abnormal bank note) forged or altered used and circulated on the market, these abnormal bank note destroy Social credibility principle, disturb the normal order of money flow.If abnormal bank note spreads unchecked, it can also cause national economy unstable It is fixed, or even lead to economic social crisis of society.Thus in order to safeguard the financial order of society, prevent abnormal bank note from commercially flowing Logical, various countries' guiding against false of paper currency feature is being updated, and the authentication detection technology of bank note is also improving constantly.
And 99 editions, 05 edition and the 15 millboard coin to circulate on the market now, its anti-counterfeiting characteristic is not fully identical, criminal If producing abnormal bank note by splicing using normal bank note, the difficulty to paper money discrimination can be increased.
The content of the invention
In view of this, can the invention provides a kind of paper currency detecting method, note detection device, electronic equipment and computer Read storage medium, it is desirable to provide a kind of new paper currency detecting method, improve the detection efficiency to abnormal bank note.
The first aspect of the present invention provides a kind of paper currency detecting method, and the paper currency detecting method includes:
Obtain the positive infrared image of the bank note to be detected;
The crown word number region of the bank note to be detected is positioned in the infrared image;
The gray value in the crown word number region is detected whether in default intensity value ranges;
If the gray value in the crown word number region exceeds the intensity value ranges, it is determined that the bank note to be detected is abnormal Bank note.
The second aspect of the present invention provides a kind of note detection device, and the note detection device includes:
Acquiring unit, for obtaining the positive infrared image of the bank note to be detected;
Positioning unit, for positioning the hat of the bank note to be detected in the infrared image that is obtained in the acquiring unit Font size region;
Detection unit, whether the gray value in the crown word number region positioned for detecting the positioning unit is default In intensity value ranges;
Determining unit, for detecting that the gray value in the crown word number region exceeds the gray value when the detection unit During scope, it is abnormal bank note to determine the bank note to be detected.
The third aspect of the present invention provides a kind of electronic equipment, the electronic equipment include memory, processor and It is stored in the computer program that can be run in the memory and on the processor, computer described in the computing device The step of as above first aspect methods described is realized during program.
The fourth aspect of the present invention provides a kind of computer-readable recording medium, and the computer-readable recording medium is deposited Contain computer program, when the computer program is executed by processor realize as above first aspect methods described the step of.
Therefore by the present invention program, the positive infrared image of bank note to be detected is obtained first, and described red The crown word number region of the bank note to be detected is positioned in outer image, whether then detects the gray value in the crown word number region pre- If in intensity value ranges, if the gray value in the crown word number region exceeds the intensity value ranges, it is determined that the paper to be detected Coin is abnormal bank note.The present invention utilizes crown word number area according to detection of the crown word number region realization to bank note by detecting bank note The characteristic in domain quickly identifies abnormal bank note, improves the detection efficiency to abnormal bank note.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art In the required accompanying drawing used be briefly described, it should be apparent that, drawings in the following description be only the present invention some Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Accompanying drawing obtains other accompanying drawings.
Fig. 1 is the implementation process schematic diagram of paper currency detecting method provided in an embodiment of the present invention;
Fig. 2 is paper currency detecting method step S102 provided in an embodiment of the present invention specific implementation schematic flow sheet;
Fig. 3 is paper currency detecting method step S103 provided in an embodiment of the present invention specific implementation schematic flow sheet;
Fig. 4 is the schematic diagram of the infrared image in crown word number region provided in an embodiment of the present invention;
Fig. 5 is the structured flowchart of note detection device provided in an embodiment of the present invention;
Fig. 6 is the schematic diagram of electronic equipment provided in an embodiment of the present invention.
Embodiment
In describing below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc Body details, thoroughly to understand the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention can also be realized in the other embodiments of details.In other situations, omit to well-known system, device, electricity Road and the detailed description of method, in case unnecessary details hinders description of the invention.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Embodiment one
Fig. 1 shows the implementation process for the paper currency detecting method that the embodiment of the present invention one provides, and details are as follows:
In step S101, the positive infrared image of above-mentioned bank note to be detected is obtained;
In embodiments of the present invention, the positive infrared image of above-mentioned bank note to be detected is obtained first, wherein, it is above-mentioned infrared Image can be infrared external reflection image or infrared transmission image, and above-mentioned bank note to be detected is refered in particular to by People's Bank of China The RMB issued and circulated within Chinese territory.The front of bank note to be detected, refer to being printed on head portrait, state in bank note to be detected The one side of emblem, row name and denomination.
In step s 102, the crown word number region of above-mentioned bank note to be detected is positioned in above-mentioned infrared image;
In embodiments of the present invention, the crown word number area of bank note to be detected is positioned in the infrared image that step S101 is obtained Domain, above-mentioned crown word number region contain the crown word number of bank note to be detected, wherein, above-mentioned crown word number is the coding on bank note, also known as Serial number, " prefix " are to be imprinted on two or three English alphabets for being used for label print batch on bank note, and one is pressed by Yin Chao factories Set pattern rule layout and printing;" number " is then to be imprinted on the Arabic numerals serial number behind prefix, for indicating that every banknote exists With putting in order in prefix batch.As a rule, crown word number region is located at lower section, its particular location in the positive left side of bank note It may be changed according to the difference of Yin Chao factories batch, therefore, the position in the crown word number region in bank note is not fixation, In order to be detected by the anti-counterfeiting characteristic in crown word number region (i.e. crown word number) to bank note to be detected, bank note to be detected is being got , it is necessary to be positioned to the crown word number region of bank note to be detected after positive infrared image.
In step s 103, the gray value in above-mentioned crown word number region is detected whether in default intensity value ranges;
In embodiments of the present invention, after having oriented crown word number region in step s 102, above-mentioned crown word number region is detected Gray value whether in default intensity value ranges.The crown word number of normal bank note still can clearly show under Infrared irradiation Show, and the crown word number of abnormal bank note is under the irradiation of infrared light, what is generally do not shown or show is very fuzzy, i.e. crown word number Color is very light.Thus, by detecting the gray value in crown word number region whether in default intensity value ranges, it is possible to achieve Detection to bank note to be detected.
In step S104, if the gray value in above-mentioned crown word number region exceeds above-mentioned intensity value ranges, it is determined that above-mentioned to treat Detection bank note is abnormal bank note.
In embodiments of the present invention, by step S103 detection, if the gray value in above-mentioned crown word number region is not above-mentioned In default intensity value ranges, then mean that this anti-counterfeiting characteristic of the crown word number of above-mentioned bank note to be detected fails by detection, can To determine above-mentioned bank note to be detected as abnormal bank note, i.e., bank note to be detected is forgery or the bank note to alter.
Specifically, Fig. 2 shows above-mentioned steps S102 specific implementation flow, and details are as follows:
In step s 201, in the default general crown word number region of above-mentioned infrared image, above-mentioned crown word number region is determined The first border and the second boundary;
In embodiments of the present invention, although particular location of the above-mentioned crown word number region in bank note is not fixed, Because its meeting changes in less scope, i.e., no matter how how position of the above-mentioned crown word number region in bank note changes, It also can only change in the positive left side middle and lower part of bank note.Therefore, a general prefix can be pre-set by developer Number region, the general crown word number region contains all positions being likely to occur in crown word number region, i.e., all bank note to be detected Crown word number region be all necessarily located in the general crown word number region, it is thus evident that the area in the general crown word number region is naturally larger than hat Font size region, and the general crown word number region is not fixed, developer is on different electronic equipments to bank note to be detected Set general crown word number region can differ when being detected.Further, although the position in crown word number region can be small In the range of change, still, as a rule, crown word number region can't left and right change, can only change up and down, i.e. crown word number region What right boundary was usually fixed, thus, it is determined that when first border in crown word number region and the second boundary, first is borderline The abscissa of point is default first abscissa value, and the abscissa of the point on the second boundary is default second abscissa Value.It should be noted that if the abscissa of the point on the abscissa and the second boundary of the first borderline point is relatively general prefix The coordinate in number region, then above-mentioned default first abscissa value and default second abscissa value are according to above-mentioned general crown word number region And set, i.e., above-mentioned default first abscissa value and default second abscissa value are according to set general crown word number region It is different and change;If the abscissa of the point on the abscissa and the second boundary of the first borderline point is relatively above-mentioned infrared The coordinate of image, then above-mentioned default first abscissa value and default second abscissa value are default fixed value, i.e., above-mentioned Default first abscissa value and default second abscissa value will not be sent out according to the difference in set general crown word number region It is raw to change.
In step S202, in above-mentioned general crown word number region, above-mentioned general hat is detected successively according to basipetal order Row average gray in font size region per a line;
In embodiments of the present invention, for any row in above-mentioned general crown word number region, each pixel of the row is obtained Gray value after sum, by gained and divided by the row pixel quantity, you can obtain the row average gray of the row.In order to The up-and-down boundary in crown word number region is detected, is detected successively in above-mentioned general crown word number region per a line according to basipetal order Row average gray.
In step S203, if continuous X rows detect that row average gray is less than default row gray threshold, and above-mentioned X More than default line number threshold value, then the first row in above-mentioned X rows and last column are identified as above-mentioned crown word number region 3rd border and the 4th border;
In embodiments of the present invention, it is usually fixed due to the size of crown word number, thus, above-mentioned default line number threshold value It can be fixed value.When continuous X rows detect that row average gray is less than default row gray threshold, then show in above-mentioned X It there are in row and write the word that can show in infrared radiation, thus can be by the first row in above-mentioned X rows and last column point It is not defined as the 3rd border and the 4th border in above-mentioned crown word number region, i.e. up-and-down boundary.
Specifically, Fig. 3 shows above-mentioned steps S103 specific implementation flow, and details are as follows:
By above-mentioned crown word number region division it is left rectangular area and right rectangle region according to preset ratio in step S301 Domain;
In embodiments of the present invention, ten crown word numbers of the bank note of 99 editions are visible under infrared radiation, and 05 edition and 15 The bank note of version is changed to crown word number, and first four (i.e. four, the left sides) of crown word number can not be shown under infrared radiation again, After only six it is visible under infrared radiation, and preceding four crown word numbers of the bank note of 05 edition and 15 editions are under visible light illumination Color is also changed, and is kermesinus.In actual life, bank note generally only enters pedestrian in interpersonal circulated Work false distinguishing;And because the accuracy rate of artificial false distinguishing is relatively low, many criminals are by a part for normal bank note in many cases Part splicing with abnormal bank note obtains abnormal bank note, and this will cause so that artificial false distinguishing is difficult to obtain correct result.Cause And for the above-mentioned abnormal bank note being spliced to form of significantly more efficient identification, can be according to preset ratio by above-mentioned crown word number region Left rectangular area and right rectangular area are divided into, as shown in figure 4, Fig. 4 (a) shows the crown word number region of the normal bank note of 99 editions Infrared image schematic diagram;Fig. 4 (b) shows showing for the infrared image in the crown word number region of the normal bank note of 05 edition and 15 editions It is intended to.It should be noted that what above-mentioned Fig. 4 was merely exemplary, the crown word number region of resulting normal bank note in real life Infrared image, its white space, i.e., non-anti-counterfeiting characteristic region, present white, but present grey.
In step s 302, the first average gray of top n point most bright in above-mentioned general crown word number region is calculated, its In, N is positive integer;
In step S303, the second average gray of top n point most dark in above-mentioned right rectangular area is calculated;
In step s 304, if the ratio of above-mentioned second average gray and above-mentioned first average gray is more than default Gray threshold, it is determined that the gray value in above-mentioned crown word number region exceeds above-mentioned intensity value ranges.
In embodiments of the present invention, step S301 has been described above the abnormal bank note by being spliced to form.Due to whether 99 Version, the bank note of 05 edition or 99 editions, the right rectangular area part in crown word number region all can necessarily show under infrared radiation, because And can be tentatively to judge bank note with the presence or absence of the crown word number that can be shown in infrared radiation bottom right rectangular area by detecting No exception.Fig. 4 (c) shows the infrared image schematic diagram in the crown word number region of the abnormal bank note of 09 edition, it should be noted that figure The abnormal bank note that 4 (c) is shown is only a kind of possible connecting method.It can be seen that shown in left rectangular area in scheming (c) Crown word number, and crown word number can not be shown in right rectangular area, i.e., the left side in the crown word number region of the bank note to be detected is just Normal bank note, the right are abnormal bank note, and the hat that can be shown under infrared radiation is not present in right rectangular area after the two splicing Font size.Due to the part that crown word number is clearly shown, its gray value is 0 or close to 0;There is no crown word number or crown word number to show not Clearly part, its gray value are 255 or close to 255.It is consequently possible to calculate top n point most bright in general crown word number region The first average gray, i.e., the first average gray of the maximum top n pixel of gray value in general crown word number region;Together When, the second average gray of top n point most dark in above-mentioned right rectangular area can be calculated, i.e., gray value in right rectangular area Second average gray of minimum top n pixel.Or or calculate in above-mentioned general crown word number region it is most bright before First average gray of N1 point, the second average gray of preceding N2 point most dark in above-mentioned right rectangular area is calculated, its Middle N1 for general crown word number region quantity a little be multiplied by predetermined coefficient A income values, N2 for right rectangular area a little Quantity is multiplied by predetermined coefficient A income values, wherein, A is the decimal more than 0 and less than 1;Preferably, A could be arranged to 0.1.
It can see according to Fig. 4 (a) or Fig. 4 (b), when bank note is normal bank note, because right rectangular area shows hat Font size, i.e., the first average gray of the top n point of right rectangular area should be close to 0, thus the second gray scale of normal bank note The ratio of average value and the first average gray also should be close to 0;Therefore set herein and gray threshold is first set, such as 0.1, if The ratio of above-mentioned second average gray and above-mentioned first average gray is more than default gray threshold, then can determine above-mentioned The gray value in crown word number region exceeds above-mentioned intensity value ranges, such as when above-mentioned second average gray and above-mentioned the is calculated When the ratio of one average gray is 0.9, then it is assumed that right rectangular area can not show clearly crown word number under infrared radiation, can To determine the bank note to be detected as abnormal bank note, without further being detected.
Alternatively, after step s 103, if the ratio of above-mentioned second average gray and above-mentioned first average gray No more than default gray threshold, then above-mentioned paper currency detecting method also includes:
Binary conversion treatment is made to above-mentioned crown word number region;
Obtain the version information of above-mentioned bank note to be detected;
If the version information of above-mentioned bank note to be detected is 99 editions, the quantity of the foreground point of above-mentioned left rectangular area is obtained;
If the quantity of the foreground point of above-mentioned left rectangular area is less than default foreground point amount threshold, it is determined that above-mentioned to be checked Survey bank note is abnormal bank note.
Wherein, after binary conversion treatment has been carried out to above-mentioned crown word number region, in infrared radiation in above-mentioned crown word number region Using as the background of the image after binaryzation, the gray value after its binaryzation is 255, is shown as the part that can not clearly show down White;The part that can be clearly shown under infrared radiation in above-mentioned crown word number region is using before as the image after binaryzation Scape, the gray value after its binaryzation is 0, is shown as black;That is, the non-crown word number part in above-mentioned crown word number region will be used as two The background of image after value, crown word number part is using as the prospect after binaryzation in above-mentioned crown word number region.For 99 editions For bank note, there is also the crown word number part that can be clearly shown under infrared radiation in its left rectangular area, due to step 304 Only confirm to whether there is effective crown word number in right rectangular area, in order to further detect bank note, improve the standard of paper currency detection True rate, in this step, the bank note to be detected of 99 editions is further detected by detecting the quantity of foreground point of left rectangular area Whether there is also effective crown word number in left rectangular area after binarization, if the quantity of the foreground point of left rectangular area is no less than Default foreground point amount threshold, then it is assumed that effective crown word number in left rectangular area be present, the bank note to be detected is normal bank note; If the quantity of the foreground point of left rectangular area is less than default foreground point amount threshold, then it is assumed that being not present in left rectangular area has Crown word number is imitated, the bank note to be detected is abnormal bank note.
Alternatively, after step s 103, if the ratio of above-mentioned second average gray and above-mentioned first average gray No more than default gray threshold, then above-mentioned paper currency detecting method also includes:
Binary conversion treatment is made to above-mentioned crown word number region;
Obtain the version information of above-mentioned bank note to be detected;
If the version information of above-mentioned bank note to be detected is 05 edition or 15 editions, the foreground point of above-mentioned right rectangular area is obtained The quantity of the foreground point in quantity and above-mentioned crown word number region;
Calculate the prospect of the quantity of the foreground point of above-mentioned right rectangular area and the quantity of the foreground point in above-mentioned crown word number region Point ratio;
If above-mentioned foreground point ratio is less than default foreground point fractional threshold, it is determined that above-mentioned bank note to be detected is abnormal paper Coin.
Wherein, after binary conversion treatment has been carried out to above-mentioned crown word number region, in infrared radiation in above-mentioned crown word number region Using as the background of the image after binaryzation, the gray value after its binaryzation is 255, is shown as the part that can not clearly show down White;The part that can be clearly shown under infrared radiation in above-mentioned crown word number region is using before as the image after binaryzation Scape, the gray value after its binaryzation is 0, is shown as black;That is, the non-crown word number part in above-mentioned crown word number region will be used as two The background of image after value, crown word number part is using as the prospect after binaryzation in above-mentioned crown word number region.For 05 edition or For the bank note of 15 editions, in its left rectangular area and the crown word number part that can be clearly shown under infrared radiation is not present, i.e., Left rectangular area after binaryzation will all be changed into background;Clearly for 05 edition or the bank note of 15 editions, in the ideal situation, hat Prospect after the binaryzation of font size region will be entirely located in right rectangular area, i.e., the quantity of the foreground point in right rectangular area is The quantity of the foreground point in crown word number region, because step 304 only confirms to whether there is effective crown word number in right rectangular area, In order to further detect bank note, the accuracy rate of paper currency detection is improved, in this step, by the foreground point for detecting right rectangular area The quantity of the quantity foreground point that whether is approximately equal to crown word number region be come the bank note to be detected for further detecting 05 edition or 15 editions No is normal bank note, if the foreground point ratio of the quantity of the foreground point of right rectangular area and the foreground point quantity in crown word number region is not Less than default foreground point fractional threshold, then it is assumed that effective crown word number in right rectangular area only be present, the bank note to be detected is Normal bank note;If the foreground point ratio of the quantity of the foreground point of right rectangular area and the quantity of the foreground point in crown word number region is less than Default foreground point fractional threshold, then it is assumed that it is not effective crown word number in right rectangular area only be present, the bank note to be detected For abnormal bank note.
Alternatively, step S102 can also be:
It is each in the general crown word number region according to being detected successively by order from left to right in the general crown word number region Capable row average gray;
If continuous Y row detect that row average gray is less than default row gray threshold, and the Y is more than default columns Threshold value, then first row and last row during the Y is arranged are identified as first border and second in the crown word number region Border;
First border is detected whether in default bounds;
If first border is not in default bounds, it is determined that the bank note to be detected is abnormal bank note;
If first border is in default bounds, in the general crown word number region, according to from top to bottom Order detect successively in the general crown word number region per a line row average gray;
If continuous X rows detect that row average gray is less than default row gray threshold, and the X is more than default line number Threshold value, then the first row in the X rows and last column are identified as to the 3rd border and the 4th in the crown word number region Border.
Wherein, although crown word number region can't left and right change, only can up and down change, i.e., the crown word number region of normal bank note Right boundary be usually fixed, but because bank note to be detected may be abnormal bank note, thus, it is determined that crown word number region When the first border and the second boundary, the situation of obvious abnormal bank note can be gone out by the position preliminary screening on the first border.Its Implementation is, for either rank in above-mentioned general crown word number region, is summed after the gray value for each pixel for obtaining the row, By gained and divided by the row pixel quantity, you can obtain the row average gray of the row.In order to detect crown word number area The right boundary in domain, it is averaged according to the row gray scale for detecting each row in above-mentioned general crown word number region successively by order from left to right Value.It is usually fixed due to the size of crown word number, thus, above-mentioned default columns threshold value can be fixed value.When continuous Y is arranged When detecting that row average gray is less than default row gray threshold, then show to there are in above-mentioned Y is arranged and write in infrared radiation The word that can be shown, thus the first row in above-mentioned Y row and last row can be identified as above-mentioned crown word number region The first border and the second boundary, i.e. right boundary.Further, the first border due to 99 editions is in general crown word number region The relative position that keeps left, and first border of 05 edition and 15 editions is in the relative intermediate position in general crown word number region, therefore, it is possible to logical Cross and detect first border whether in default bounds, whether to judge the crown word number region of the bank note to be detected Match with version information.Above-mentioned default bounds according to the version information of above-mentioned bank note to be detected determine, thus, examining First border is surveyed whether before the step in default bounds, can also first obtain the version letter of bank note to be detected Breath.
Therefore by the embodiment of the present invention, using the crown word number of bank note, this anti-counterfeiting characteristic is realized to the fast of bank note Fast Preliminary detection, and also subsequently further detected the difference according to bank note version to the bank note of different editions, Significantly improve the detection efficiency and Detection accuracy to abnormal bank note.
It should be understood that the size of the sequence number of each step is not meant to the priority of execution sequence, each process in above-described embodiment Execution sequence should determine that the implementation process without tackling the embodiment of the present invention forms any limit with its function and internal logic It is fixed.
Embodiment two
Fig. 5 shows the concrete structure block diagram for the note detection device that the embodiment of the present invention two provides, for convenience of description, It illustrate only the part related to the embodiment of the present invention.This includes using note detection device 5:Acquiring unit 51, positioning unit 52, detection unit 53, determining unit 54.
Wherein, acquiring unit 51, for obtaining the positive infrared image of above-mentioned bank note to be detected;
Positioning unit 52, for positioning above-mentioned bank note to be detected in the above-mentioned infrared image that is obtained in above-mentioned acquiring unit 51 Crown word number region;
Detection unit 53, whether the gray value in the above-mentioned crown word number region positioned for detecting above-mentioned positioning unit 52 is pre- If intensity value ranges in;
Determining unit 54, for detecting that the gray value in above-mentioned crown word number region exceeds above-mentioned ash when above-mentioned detection unit 53 During angle value scope, it is abnormal bank note to determine above-mentioned bank note to be detected.
Specifically, above-mentioned positioning unit 52 includes:
The determination subelement of border first, in the default general crown word number region of above-mentioned infrared image, determining above-mentioned First border in crown word number region and the second boundary, wherein, the abscissa of above-mentioned first borderline point is default first Abscissa value, the abscissa of the point on above-mentioned the second boundary is default second abscissa value;
Row average gray detection sub-unit, in above-mentioned general crown word number region, according to basipetal order according to Row average gray in the secondary above-mentioned general crown word number region of detection per a line;
The determination subelement of border second, if detecting that row average gray is less than default row gray scale threshold for continuous X rows Value, and above-mentioned X is more than default line number threshold value, then the first row in above-mentioned X rows and last column is identified as into above-mentioned hat 3rd border in font size region and the 4th border.
Specifically, above-mentioned detection unit 53 includes:
Region division subelement, for by above-mentioned crown word number region division being left rectangular area and right square according to preset ratio Shape region;
First average gray computation subunit, for calculating the of top n point most bright in above-mentioned general crown word number region One average gray, wherein, N is positive integer;
Second average gray computation subunit, for calculating the second of top n point most dark in above-mentioned right rectangular area Average gray;
Testing result determination subelement, for when the ratio of above-mentioned second average gray and above-mentioned first average gray During more than default gray threshold, determine that the gray value in above-mentioned crown word number region exceeds above-mentioned intensity value ranges.
Alternatively, above-mentioned note detection device 5 also includes:
Binary conversion treatment subelement, for when above-mentioned second average gray and above-mentioned first average gray ratio not During more than default gray threshold, binary conversion treatment is made to above-mentioned crown word number region;
Version information obtains subelement, for obtaining the version information of above-mentioned bank note to be detected;
First foreground point quantity obtains subelement, for when the version information of above-mentioned bank note to be detected is 99 editions, obtaining The quantity of the foreground point of above-mentioned left rectangular area;
Above-mentioned determining unit, it is additionally operable to when the quantity of the foreground point of above-mentioned left rectangular area is less than default foreground point quantity During threshold value, it is abnormal bank note to determine above-mentioned bank note to be detected.
Alternatively, above-mentioned note detection device 5 also includes:
Binary conversion treatment subelement, for when above-mentioned second average gray and above-mentioned first average gray ratio not During more than default gray threshold, binary conversion treatment is made to above-mentioned crown word number region;
Version information obtains subelement, for obtaining the version information of above-mentioned bank note to be detected;
Second foreground point quantity obtains subelement, for being 05 edition or 15 editions when the version information of above-mentioned bank note to be detected When, obtain the quantity of the foreground point of above-mentioned right rectangular area and the quantity of the foreground point in above-mentioned crown word number region;
Foreground point ratio calculation unit, quantity and the above-mentioned crown word number area of the foreground point for calculating above-mentioned right rectangular area The foreground point ratio of the quantity of the foreground point in domain;
Above-mentioned determining unit, it is additionally operable to when above-mentioned foreground point ratio is less than default foreground point fractional threshold, it is determined that on It is abnormal bank note to state bank note to be detected.
Alternatively, above-mentioned infrared image is infrared external reflection image or infrared transmission image.
Therefore by the embodiment of the present invention, this anti-counterfeiting characteristic is real using the crown word number of bank note for note detection device Now the rapid preliminary of bank note is detected, and also subsequently carried out the difference according to bank note version to the bank note of different editions Further detect, improve detection efficiency and Detection accuracy to abnormal bank note.
Embodiment three
Fig. 6 is the schematic diagram for the electronic equipment that the embodiment of the present invention three provides.As shown in fig. 6, the electronics of the embodiment is set Standby 6 include:Processor 60, memory 61 and it is stored in the meter that can be run in above-mentioned memory 61 and on above-mentioned processor 60 Calculation machine program 62, such as application program manager.Above-mentioned processor 60 is realized above-mentioned each when performing above computer program 62 Step in individual application management method embodiment, such as the step S101 to S104 shown in Fig. 1.Or above-mentioned processor The function of each unit in above-mentioned each device embodiment, such as unit 51 shown in Fig. 5 are realized during 60 execution above computer program 62 To 54 function.
Exemplary, above computer program 62 can be divided into one or more units, said one or multiple Unit is stored in above-mentioned memory 61, and is performed by above-mentioned processor 60, to complete the present invention.Said one or multiple lists Member can complete the series of computation machine programmed instruction section of specific function, and the instruction segment is used to describe above computer journey Implementation procedure of the sequence 62 in above-mentioned electronic equipment 6.For example, above computer program 62 can be divided into acquiring unit, it is fixed Bit location, detection unit, determining unit, each unit concrete function are as follows:
Acquiring unit, for obtaining the positive infrared image of above-mentioned bank note to be detected;
Positioning unit, for positioning the hat of above-mentioned bank note to be detected in the above-mentioned infrared image that is obtained in above-mentioned acquiring unit Font size region;
Detection unit, whether the gray value in the above-mentioned crown word number region positioned for detecting above-mentioned positioning unit is default In intensity value ranges;
Determining unit, for detecting that the gray value in above-mentioned crown word number region exceeds above-mentioned gray value when above-mentioned detection unit During scope, it is abnormal bank note to determine above-mentioned bank note to be detected.
Above-mentioned electronic equipment 6 can be that the calculating such as desktop PC, notebook, palm PC and cloud server are set It is standby.Above-mentioned electronic equipment may include, but be not limited only to, processor 60, memory 61.It will be understood by those skilled in the art that Fig. 6 The only example of electronic equipment 6, the restriction to electronic equipment 6 is not formed, can included than illustrating more or less portions Part, some parts or different parts are either combined, such as above-mentioned electronic equipment can also include input-output equipment, net Network access device, bus etc..
Alleged processor 60 can be CPU (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
Above-mentioned memory 61 can be the internal storage unit of above-mentioned electronic equipment 6, such as the hard disk of electronic equipment 6 or interior Deposit.Above-mentioned memory 61 can also be the External memory equipment of above-mentioned electronic equipment 6, such as be equipped with above-mentioned electronic equipment 6 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, dodge Deposit card (Flash Card) etc..Further, above-mentioned memory 61 can also both include the storage inside list of above-mentioned electronic equipment 6 Member also includes External memory equipment.Above-mentioned memory 61 is used to store needed for above computer program and above-mentioned electronic equipment Other programs and data.Above-mentioned memory 61 can be also used for temporarily storing the data that has exported or will export.
Therefore by the embodiment of the present invention, electronic equipment can utilize this anti-counterfeiting characteristic of the crown word number of bank note real Now the rapid preliminary of bank note is detected, and also subsequently carried out the difference according to bank note version to the bank note of different editions Further detect, improve detection efficiency and Detection accuracy to abnormal bank note.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work( Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of said apparatus are divided into different functional units or module, more than completion The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used To be that unit is individually physically present, can also two or more units it is integrated in a unit, it is above-mentioned integrated Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.In addition, each function list Member, the specific name of module are not limited to the protection domain of the application also only to facilitate mutually distinguish.Said system The specific work process of middle unit, module, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in detail or remembers in some embodiment The part of load, it may refer to the associated description of other embodiments.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, can be with Realize by another way.For example, device described above/terminal device embodiment is only schematical, for example, on The division of module or unit is stated, only a kind of division of logic function, there can be other dividing mode when actually realizing, such as Multiple units or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device Or INDIRECT COUPLING or the communication connection of unit, can be electrical, mechanical or other forms.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If above-mentioned integrated module/unit realized in the form of SFU software functional unit and as independent production marketing or In use, it can be stored in a computer read/write memory medium.Based on such understanding, the present invention realizes above-mentioned implementation All or part of flow in example method, by computer program the hardware of correlation can also be instructed to complete, above-mentioned meter Calculation machine program can be stored in a computer-readable recording medium, and the computer program can be achieved when being executed by processor The step of stating each embodiment of the method..Wherein, above computer program includes computer program code, above computer program Code can be source code form, object identification code form, executable file or some intermediate forms etc..Readable Jie of above computer Matter can include:Can carry any entity or device of above computer program code, recording medium, USB flash disk, mobile hard disk, Magnetic disc, CD, computer storage, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It is it should be noted that above-mentioned The content that computer-readable medium includes can carry out appropriate increasing according to legislation in jurisdiction and the requirement of patent practice Subtract, such as in some jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and Telecommunication signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to foregoing reality Example is applied the present invention is described in detail, it will be understood by those within the art that:It still can be to foregoing each Technical scheme described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed Or replace, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme, all should Within protection scope of the present invention.

Claims (10)

1. a kind of paper currency detecting method, it is characterised in that the paper currency detecting method includes:
Obtain the positive infrared image of the bank note to be detected;
The crown word number region of the bank note to be detected is positioned in the infrared image;
The gray value in the crown word number region is detected whether in default intensity value ranges;
If the gray value in the crown word number region exceeds the intensity value ranges, it is determined that the bank note to be detected is abnormal paper Coin.
2. paper currency detecting method as claimed in claim 1, it is characterised in that described to be treated in the infrared image described in positioning The crown word number region of bank note is detected, including:
In the default general crown word number region of the infrared image, first border and the second side in the crown word number region are determined Boundary, wherein, the abscissa of the first borderline point is default first abscissa value, the point on the second boundary Abscissa is default second abscissa value;
In the general crown word number region, every a line in the general crown word number region is detected successively according to basipetal order Row average gray;
If continuous X rows detect that row average gray is less than default row gray threshold, and the X is more than default line number threshold Value, then the first row in the X rows and last column are identified as to the 3rd border and the 4th side in the crown word number region Boundary.
3. paper currency detecting method as claimed in claim 2, it is characterised in that the gray value in the detection crown word number region Whether in default tonal range, including:
By the crown word number region division it is left rectangular area and right rectangular area according to preset ratio;
The first average gray of top n point most bright in the general crown word number region is calculated, wherein, N is positive integer;
Calculate the second average gray of top n point most dark in the right rectangular area;
If the ratio of second average gray and first average gray is more than default gray threshold, it is determined that institute The gray value for stating crown word number region exceeds the intensity value ranges.
4. paper currency detecting method as claimed in claim 3, it is characterised in that if second average gray and described first The ratio of average gray is not more than default gray threshold, then whether the gray value in the detection crown word number region is pre- If intensity value ranges in after, in addition to:
Binary conversion treatment is made to the crown word number region;
Obtain the version information of the bank note to be detected;
If the version information of the bank note to be detected is 99 editions, the quantity of the foreground point of the left rectangular area is obtained;
If the quantity of the foreground point of the left rectangular area is less than default foreground point amount threshold, it is determined that the paper to be detected Coin is abnormal bank note.
5. paper currency detecting method as claimed in claim 3, it is characterised in that if second average gray and described first The ratio of average gray is not more than default gray threshold, then whether the gray value in the detection crown word number region is pre- If intensity value ranges in after, in addition to:
Binary conversion treatment is made to the crown word number region;
Obtain the version information of the bank note to be detected;
If the version information of the bank note to be detected is 05 edition or 15 editions, the quantity of the foreground point of the right rectangular area is obtained And the quantity of the foreground point in the crown word number region;
Calculate the foreground point ratio of the quantity of the foreground point of the right rectangular area and the quantity of the foreground point in the crown word number region Value;
If the foreground point ratio is less than default foreground point fractional threshold, it is determined that the bank note to be detected is abnormal bank note.
6. a kind of note detection device, it is characterised in that the note detection device includes:
Acquiring unit, for obtaining the positive infrared image of the bank note to be detected;
Positioning unit, for positioning the crown word number of the bank note to be detected in the infrared image that is obtained in the acquiring unit Region;
Detection unit, whether the gray value in the crown word number region positioned for detecting the positioning unit is in default gray scale In the range of value;
Determining unit, for detecting that the gray value in the crown word number region exceeds the intensity value ranges when the detection unit When, it is abnormal bank note to determine the bank note to be detected.
7. note detection device as claimed in claim 6, it is characterised in that the positioning unit includes:
The determination subelement of border first, in the default general crown word number region of the infrared image, determining crown word number area First border in domain and the second boundary, wherein, the abscissa of the first borderline point is default first abscissa value, The abscissa of point on the second boundary is default second abscissa value;
Row average gray detection sub-unit, in the general crown word number region, being examined successively according to basipetal order Survey the row average gray per a line in the general crown word number region;
The determination subelement of border second, if detect that row average gray is less than default row gray threshold for continuous X rows, and The X is more than default line number threshold value, then the first row in the X rows and last column is identified as into the crown word number area 3rd border in domain and the 4th border.
8. note detection device as claimed in claim 7, it is characterised in that the detection unit includes:
Region division subelement, for by the crown word number region division being left rectangular area and right rectangle region according to preset ratio Domain;
First average gray computation subunit, for calculating the first ash of top n point most bright in the general crown word number region Average value is spent, wherein, N is positive integer;
Second average gray computation subunit, for calculating the second gray scale of top n point most dark in the right rectangular area Average value;
Testing result determination subelement, for being more than when the ratio of second average gray and first average gray During default gray threshold, determine that the gray value in the crown word number region exceeds the intensity value ranges.
9. note detection device as claimed in claim 8, it is characterised in that the note detection device also includes:
Binary conversion treatment subelement, for being not more than when the ratio of second average gray and first average gray During default gray threshold, binary conversion treatment is made to the crown word number region;
Version information obtains subelement, for obtaining the version information of the bank note to be detected;
First foreground point quantity obtains subelement, for when the version information of the bank note to be detected is 99 editions, described in acquisition The quantity of the foreground point of left rectangular area;
The determining unit, it is additionally operable to when the quantity of the foreground point of the left rectangular area is less than default foreground point amount threshold When, it is abnormal bank note to determine the bank note to be detected.
10. note detection device as claimed in claim 8, it is characterised in that the note detection device also includes:
Binary conversion treatment subelement, for being not more than when the ratio of second average gray and first average gray During default gray threshold, binary conversion treatment is made to the crown word number region;
Version information obtains subelement, for obtaining the version information of the bank note to be detected;
Second foreground point quantity obtains subelement, for when the version information of the bank note to be detected is 05 edition or 15 editions, obtaining Take the quantity of the foreground point of the right rectangular area and the quantity of the foreground point in the crown word number region;
Foreground point ratio calculation unit, quantity and the crown word number region of the foreground point for calculating the right rectangular area The foreground point ratio of the quantity of foreground point;
The determining unit, it is additionally operable to when the foreground point ratio is less than default foreground point fractional threshold, it is determined that described treat Detection bank note is abnormal bank note.
CN201710807688.8A 2017-09-08 2017-09-08 A kind of paper currency detecting method and note detection device Pending CN107657712A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710807688.8A CN107657712A (en) 2017-09-08 2017-09-08 A kind of paper currency detecting method and note detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710807688.8A CN107657712A (en) 2017-09-08 2017-09-08 A kind of paper currency detecting method and note detection device

Publications (1)

Publication Number Publication Date
CN107657712A true CN107657712A (en) 2018-02-02

Family

ID=61129372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710807688.8A Pending CN107657712A (en) 2017-09-08 2017-09-08 A kind of paper currency detecting method and note detection device

Country Status (1)

Country Link
CN (1) CN107657712A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102890840A (en) * 2012-08-22 2013-01-23 山东新北洋信息技术股份有限公司 Method and device for identifying paper money
CN106683259A (en) * 2017-03-06 2017-05-17 深圳怡化电脑股份有限公司 Method and device for identifying paper money
CN106683257A (en) * 2016-12-30 2017-05-17 深圳怡化电脑股份有限公司 Serial number location method and device
CN106846610A (en) * 2017-01-20 2017-06-13 深圳怡化电脑股份有限公司 A kind of recognition methods of bank note version and device
CN106934914A (en) * 2017-03-17 2017-07-07 深圳怡化电脑股份有限公司 The method and device of guiding against false of paper currency detection
CN107067533A (en) * 2017-04-14 2017-08-18 深圳怡化电脑股份有限公司 The method and device that a kind of bank note differentiates

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102890840A (en) * 2012-08-22 2013-01-23 山东新北洋信息技术股份有限公司 Method and device for identifying paper money
CN106683257A (en) * 2016-12-30 2017-05-17 深圳怡化电脑股份有限公司 Serial number location method and device
CN106846610A (en) * 2017-01-20 2017-06-13 深圳怡化电脑股份有限公司 A kind of recognition methods of bank note version and device
CN106683259A (en) * 2017-03-06 2017-05-17 深圳怡化电脑股份有限公司 Method and device for identifying paper money
CN106934914A (en) * 2017-03-17 2017-07-07 深圳怡化电脑股份有限公司 The method and device of guiding against false of paper currency detection
CN107067533A (en) * 2017-04-14 2017-08-18 深圳怡化电脑股份有限公司 The method and device that a kind of bank note differentiates

Similar Documents

Publication Publication Date Title
CN107180479B (en) Bill identification method, device, equipment and storage medium
CN101226655B (en) Validation template for valuable media of multiple classes
CN107316373B (en) A kind of Paper Currency Identification, device, terminal device and readable storage medium storing program for executing
CN107393118B (en) A kind of recognition methods of bank note, device, terminal device and computer storage medium
CN107274543B (en) A kind of recognition methods of bank note, device, terminal device and computer storage medium
CN107767541B (en) A kind of recognition methods of bank note, device, terminal device and storage medium
CN107331026A (en) A kind of Paper Currency Identification and device
CN104992496A (en) Paper money face identification method and apparatus
CN110458998B (en) Bill detection method, bill detection device and terminal
CN112102402B (en) Flash light spot position identification method and device, electronic equipment and storage medium
CN108830275B (en) Method and device for identifying dot matrix characters and dot matrix numbers
CN110473333A (en) Detection method, detection device and the terminal of note number
CN107578526B (en) Banknote identification method and device, terminal equipment and readable storage medium
CN109800745B (en) Bill detection method, device, terminal and computer readable storage medium
CN107705414B (en) A kind of recognition methods of bank note, device, terminal device and storage medium
CN107657712A (en) A kind of paper currency detecting method and note detection device
CN107358717B (en) A kind of Paper Currency Identification, system and its terminal device
CN109543554A (en) Bill detection method, device, terminal and computer readable storage medium
CN107680245A (en) A kind of banknote image processing method, banknote image processing unit and electronic equipment
CN107464334A (en) Recognition methods, identification device and the terminal device of bank note
CN205644755U (en) Be used for currency identification to gather location and high in clouds discernment early warning network system
CN111292464B (en) Online evaluation system for cash machines and gold labels
CN109410420B (en) Image detection method and device and bill discriminator
CN108074323B (en) Paper money facing identification method and device thereof
CN108171865A (en) A kind of paper currency detecting method, note detection device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180202

RJ01 Rejection of invention patent application after publication