CN107680245A - A kind of banknote image processing method, banknote image processing unit and electronic equipment - Google Patents

A kind of banknote image processing method, banknote image processing unit and electronic equipment Download PDF

Info

Publication number
CN107680245A
CN107680245A CN201710891098.8A CN201710891098A CN107680245A CN 107680245 A CN107680245 A CN 107680245A CN 201710891098 A CN201710891098 A CN 201710891098A CN 107680245 A CN107680245 A CN 107680245A
Authority
CN
China
Prior art keywords
image
lines
present
mentioned
characteristic region
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710891098.8A
Other languages
Chinese (zh)
Other versions
CN107680245B (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 CN201710891098.8A priority Critical patent/CN107680245B/en
Publication of CN107680245A publication Critical patent/CN107680245A/en
Application granted granted Critical
Publication of CN107680245B publication Critical patent/CN107680245B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D7/00Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
    • G07D7/20Testing patterns thereon

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Inspection Of Paper Currency And Valuable Securities (AREA)

Abstract

The invention discloses a kind of banknote image processing method, banknote image processing unit, electronic equipment and computer-readable recording medium, wherein, the banknote image processing method includes:Before paper money discrimination is carried out to bank note, the image of the bank note is obtained;It whether there is lines in detection described image;If lines in described image be present, relax the false distinguishing condition of paper money discrimination, to carry out false distinguishing to the bank note based on the false distinguishing condition after relaxing.The present invention program can reduce the influence that lines operates to paper money discrimination, lift the accuracy rate of paper money discrimination.

Description

A kind of banknote image processing method, banknote image processing unit and electronic equipment
Technical field
The invention belongs to technical field of image processing, more particularly to a kind of banknote image processing method, banknote image to be handled Device, electronic equipment and computer-readable recording medium.
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.
Wherein, image processing techniques is widely used in the detection to bank note.Imaging sensor is obtaining bank note Image after, paper money discrimination equipment by the image according to bank note to bank note carry out false distinguishing operation.However, if imaging sensor is sent out Failure is given birth to, it will the parallel lines of a lot of occurs in the image for causing to obtain, even will influence follow-up bank note when serious The accuracy of false distinguishing.
The content of the invention
In view of this, the invention provides a kind of banknote image processing method, banknote image processing unit, electronic equipment and Computer-readable recording medium, it is intended to reduce the influence that lines operates to paper money discrimination, lift the accuracy rate of paper money discrimination.
The first aspect of the present invention provides a kind of banknote image processing method, and the banknote image processing method includes:
Before paper money discrimination is carried out to bank note, the image of the bank note is obtained;
It whether there is lines in detection described image;
If lines in described image be present, relax the false distinguishing condition of paper money discrimination, so as to based on the mirror after relaxing Pseudo- condition carries out false distinguishing to the bank note.
The second aspect of the present invention provides a kind of banknote image processing unit, and the banknote image processing unit includes:
Acquiring unit, for before paper money discrimination is carried out to bank note, obtaining the image of the bank note;
Detection unit, it whether there is lines in described image for detecting;
Processing unit, for when lines in described image be present, relaxing the false distinguishing condition of paper money discrimination, so as to based on putting The false distinguishing condition after width carries out false distinguishing to the bank note.
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, it is characterised in that the processor is held The step of as above first aspect methods described being realized during the row computer 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 embodiment of the present invention, first before paper money discrimination is carried out to bank note, obtain the bank note Image, and detect and whether there is lines in described image, if lines in described image be present, relax the false distinguishing bar of paper money discrimination Part, to carry out false distinguishing to the bank note based on the false distinguishing condition after relaxing.The present invention can be according to the bank note figure of acquisition The picture quality dynamic regulation false distinguishing condition of picture so that when lines occurs in image, reduce the shadow that lines operates to paper money discrimination Ring, lift the accuracy rate of paper money discrimination.
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 banknote image processing method provided in an embodiment of the present invention;
Fig. 2 is banknote image process method step S102 provided in an embodiment of the present invention specific implementation schematic flow sheet;
Fig. 3 (a) be exist in banknote image processing method provided in an embodiment of the present invention lines banknote image it is false proof Characteristic area and the schematic diagram in general anti-counterfeiting characteristic region;
Fig. 3 (b) is the anti-of the banknote image in the absence of lines in banknote image processing method provided in an embodiment of the present invention Pseudo-characteristic region and the schematic diagram in general anti-counterfeiting characteristic region;
Fig. 3 (c) is that the non-of banknote image that lines in banknote image processing method provided in an embodiment of the present invention be present prevents The schematic diagram in pseudo-characteristic region;
Fig. 3 (d) is the splicing for the banknote image that lines in banknote image processing method provided in an embodiment of the present invention be present The schematic diagram in non-anti-counterfeiting characteristic region afterwards;
Fig. 4 is banknote image process method step S102 provided in an embodiment of the present invention another specific implementation flow signal Figure;
Fig. 5 is the structured flowchart of banknote image processing unit 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 banknote image processing method that the embodiment of the present invention one provides, and details are as follows:
In step S101, before paper money discrimination is carried out to bank note, the image of above-mentioned bank note is obtained;
In embodiments of the present invention, can be obtained first before paper money discrimination is carried out to bank note by imaging sensor The image of above-mentioned bank note, is pre-processed to image, avoids paper money discrimination equipment from passing through to obvious light and shade diff area be present The image of bank note carries out paper money discrimination and obtains the false distinguishing result of mistake.Wherein, due to the rectangle that is shaped as of bank note, thus, institute Rectangle is also presented in the image of the bank note of acquisition.
In step s 102, detect and whether there is lines in above-mentioned image;
In embodiments of the present invention, it whether there is lines in the above-mentioned image obtained in detecting step S101.In fact, i.e. Just the more or less presence of the image for the bank note that most of imaging sensor obtains has a little lines, also generally can endure or In the negligible scope of person.Therefore, it is possible to detecting above-mentioned image first whether there is the line for influencing whether paper money discrimination operation Road, if above-mentioned image has the lines for influencing whether paper money discrimination operation, continue subsequent treatment;If above-mentioned image is not deposited The lines of paper money discrimination operation is being influenced whether, then need not carry out subsequent treatment, can be directly according to above-mentioned image to above-mentioned paper Coin carries out false distinguishing operation.
In step s 103, if lines be present in above-mentioned image, the false distinguishing condition of paper money discrimination is relaxed.
In embodiments of the present invention, if lines be present in above-mentioned image, the false distinguishing condition of paper money discrimination is relaxed, for example, It is assumed that originally after binary conversion treatment is carried out to a certain anti-counterfeiting characteristic region, the foreground point quantity and background in the anti-counterfeiting characteristic region The ratio of point quantity needs to be more than Y1, then when it is determined that above-mentioned image has lines, is relaxing the false distinguishing bar of above-mentioned paper money discrimination Part, the foreground point quantity in the anti-counterfeiting characteristic region only needs to be more than Y2 with the ratio of background dot quantity, and Y2 is less than Y1.This When, false distinguishing can be carried out to above-mentioned bank note based on the above-mentioned false distinguishing condition after relaxing.Further, if existed in above-mentioned image Lines, then it can also be sent to default email address and remind instruction, to remind maintenance personal to be instructed in time according to above-mentioned prompting Repair imaging sensor.
Specifically, Fig. 2 shows above-mentioned steps S102 specific implementation flow, and details are as follows:
In step s 201, in the default general anti-counterfeiting characteristic region of above-mentioned image, non-anti-counterfeiting characteristic region is positioned;
In embodiments of the present invention, also may be used according to the difference of Yin Chao factories batch, the anti-counterfeiting characteristic region of the bank note of each batch It can change.That is, the position in each anti-counterfeiting characteristic region is not fixed, but in a small range change.Thus, pin To a certain specific anti-counterfeiting characteristic region (such as light becomes 100 regions), a general false proof spy can be pre-set by developer Region (such as floodlight becomes 100 regions) is levied, the general anti-counterfeiting characteristic region contains the specific anti-counterfeiting characteristic region and is possible to The position of appearance, i.e., the specific anti-counterfeiting characteristic region of all bank note for treating false distinguishing are all necessarily located at the general anti-counterfeiting characteristic area In domain, it is thus evident that the area in the general anti-counterfeiting characteristic region is naturally larger than anti-counterfeiting characteristic region, and the general anti-counterfeiting characteristic region is not Be it is fixed, developer treated on different electronic equipments false distinguishing bank note carry out it is set general false proof before false distinguishing operation Characteristic area can differ, and specifically, refer to Fig. 3 (a) and Fig. 3 (b), Fig. 3 (a) is textured general anti-counterfeiting characteristic region Schematic diagram, Fig. 3 (b) be the general anti-counterfeiting characteristic region without lines schematic diagram.It should be noted that the lines in Fig. 3 (a) is only Only it is exemplary, the lines of the image of bank note will be thinner during real image sensor abnormality.Further, above-mentioned non-false proof spy It is other regions in addition to anti-counterfeiting characteristic region, specifically, referring to Fig. 3 in above-mentioned general anti-counterfeiting characteristic region to levy region (c), above-mentioned non-anti-counterfeiting characteristic region is in above-mentioned general anti-counterfeiting characteristic region, on above-mentioned anti-counterfeiting characteristic region and is located at Other regions under above-mentioned anti-counterfeiting characteristic.Thus herein, the actual up-and-down boundary for only needing positioning anti-fake characteristic area, you can fixed The non-anti-counterfeiting characteristic region in position.Specifically, non-anti-counterfeiting characteristic region can be positioned by following manner:
In above-mentioned general anti-counterfeiting characteristic region, detected successively in above-mentioned general anti-counterfeiting characteristic region according to basipetal order Row average gray per a line;
If continuous N row detects that row average gray is less than default row gray threshold, and above-mentioned M is more than default line number Threshold value, then the first row in above-mentioned M rows and last column are identified as the coboundary in above-mentioned anti-counterfeiting characteristic region and following Boundary, wherein, M is the positive integer more than 1;
Then in above-mentioned general anti-counterfeiting characteristic region, the region below region and above-mentioned lower boundary more than above-mentioned coboundary is Non- anti-counterfeiting characteristic region.
In step S202, by the image sections that above-mentioned non-anti-counterfeiting characteristic region division is predetermined number;
In embodiments of the present invention, it is predetermined number by the non-anti-counterfeiting characteristic region division for positioning to obtain in step S201 Image sections, wherein, each image sections include X row pixels, and X is the positive integer more than 1.Specifically, can be with referring to Fig. 3 (d) It is that other areas on above-mentioned anti-counterfeiting characteristic region and under above-mentioned anti-counterfeiting characteristic are spelled by general anti-counterfeiting characteristic region Pick up and form non-anti-counterfeiting characteristic region after coming, be further subdivided into the image sections of predetermined number, and the image sections that division obtains include X Row pixel.If above-mentioned spliced non-anti-counterfeiting characteristic region can not be divided evenly, final stage image sections can be by more Formed in the pixel of X rows.
In step S203, detect whether each image sections are the image sections that lines be present successively;
In embodiments of the present invention, whether each image sections that detection above-mentioned steps S202 divides to obtain successively are line be present The image sections on road, specifically, it can show as:For each image sections, being averaged for a line most dark in above-mentioned image sections is calculated Second ratio of gray value and the average gray value of most bright a line;If above-mentioned second ratio is less than default second ratio threshold Value, it is determined that above-mentioned image sections are the image sections for existing lines.Or it can also show as:For each image sections, in calculating The gray scale difference value of the average gray value and the average gray value of most dark a line of a line most bright in image sections is stated, if above-mentioned gray scale Difference is more than default gray scale difference value threshold value, it is determined that above-mentioned image sections are the image sections for existing lines.Wherein, it is above-mentioned most dark A line and most bright a line can be drawn by the following method:The average gray per a line in above-mentioned image sections is calculated, it is above-mentioned Maximum a line of average gray in the most bright above-mentioned image sections of a behavior, gray scale in the above-mentioned most dark above-mentioned image sections of a behavior The minimum a line of average value.Because image sections are to mark off to come from non-anti-counterfeiting characteristic region, and in non-anti-counterfeiting characteristic region In and anti-counterfeiting characteristic is not present, thus, if above-mentioned image is not present lines, row and the row in above-mentioned non-anti-counterfeiting characteristic region Between, its average gray should not have too big difference;Similarly, the average gray of above-mentioned most bright a line and most dark a line The difference of average gray also should be in certain scope.And if lines be present in above-mentioned image, its most bright a line The difference of average gray and the average gray of most dark a line is necessarily larger;Pass through the gray scale of the most bright a line of above-mentioned basis The second ratio or above-mentioned gray scale difference value that average value and the average gray of most dark a line are calculated can quickly determine this Section image sections whether there is lines.
In step S204, if the quantity of the above-mentioned image sections that lines be present has exceeded default amount threshold, it is determined that Lines be present in above-mentioned image.
In embodiments of the present invention, if being exceeded by the quantity of the image sections of the step S204 presence lines for detecting to obtain Default amount threshold, then it can determine that above-mentioned image has lines.Specifically, above-mentioned amount threshold can be according to above-mentioned steps Predetermined number in S202 is calculated, for example, above-mentioned amount threshold, which can be above-mentioned predetermined number, is multiplied by default second coefficient B Income value, wherein B are the decimal more than 0 and less than 1;Preferably, A could be arranged to 0.8.
Further, Fig. 4 shows above-mentioned steps S102 another specific implementation flow, and details are as follows:
In step S401, in the default general anti-counterfeiting characteristic region of above-mentioned image, non-anti-counterfeiting characteristic region is positioned, and Step S402 and step S404 is performed respectively;
In step S402, by the image sections that above-mentioned non-anti-counterfeiting characteristic region division is predetermined number;
In step S403, detect whether each image sections are the image sections that lines be present successively;
In embodiments of the present invention, above-mentioned steps S401, S402 and S403 respectively with above-mentioned steps S201, S202 and S203 It is same or similar, above-mentioned steps S201, S202 and S203 description are for details, reference can be made to, will not be repeated here.
In step s 404, the average gray value of preceding N rows most dark in above-mentioned non-anti-counterfeiting characteristic region and most bright is calculated First ratio of the average gray value of preceding N rows;
In embodiments of the present invention, although can primarily determine that in above-mentioned image lines be present by above-mentioned steps S403, But due to being the detection carried out respectively to each image sections, it is obtained preliminary when carrying out above-mentioned steps S403 detection The result of detection can not reflect the overall condition in the whole non-anti-counterfeiting characteristic region of very accurate reflection, thus the Preliminary detection As a result it is possible to making a mistake;There is the possibility of error detection result during detection lines to reduce, to non-anti-counterfeiting characteristic The integral status in region is detected, and can also further calculate the average gray of preceding N rows most dark in non-anti-counterfeiting characteristic region First ratio of the average gray value of value and most bright preceding N rows, wherein N are the positive integer more than 1.
In step S405, if the quantity of the above-mentioned image sections that lines be present has exceeded default amount threshold, and it is above-mentioned First ratio is less than default first fractional threshold, it is determined that lines be present in above-mentioned image.
In embodiments of the present invention, if above-mentioned image has not only passed through above-mentioned steps S403 detection, and step has been passed through Rapid S404 detection, then can determine lines be present in above-mentioned image.
Certainly, can also be in step S404 calculate preceding N rows most bright in non-anti-counterfeiting characteristic region average gray value and Second gray scale difference value of the average gray value of most dark preceding N rows, then step S405 can be:If the above-mentioned image sections that lines be present Quantity exceeded default amount threshold, and above-mentioned second gray scale difference value is more than default second gray scale difference value threshold value, then really Lines be present in fixed above-mentioned image.
Further, before it is determined that above-mentioned image has lines, above-mentioned banknote image processing unit also includes:
Detect whether the dark row number in the presence of each image sections is more than default dark row number threshold value respectively, wherein, Above-mentioned dark row is the row of the average gray value threshold value that average gray value is less than default row in image sections;
Then there is lines in the above-mentioned image of above-mentioned determination, including:
If the quantity of the above-mentioned image sections that lines be present has exceeded default amount threshold, and above-mentioned first ratio is less than in advance If the first fractional threshold, and the dark row number in the presence of each image sections is all higher than default dark row number threshold value, then really Lines be present in fixed above-mentioned image.
Wherein, in order to obtain more accurate testing result, the light and shade lines of each image sections can also be distributed and carried out Simple detection., can with reference to above-mentioned steps S102 specific implementation flow according to the quantity that dark row in each image sections be present It is determined more accurately in image and whether there is lines.
Therefore by the embodiment of the present invention, the bank note of acquisition is first detected before false distinguishing operation is carried out to bank note Image whether there is lines, relax the false distinguishing condition of paper money discrimination if it lines be present, so as to based on the above-mentioned false distinguishing after relaxing Condition carries out false distinguishing to above-mentioned bank note.Because the present invention can be according to the picture quality dynamic regulation false distinguishing of the banknote image of acquisition Condition so that when lines occurs in image, reduce the influence that lines operates to paper money discrimination, lift the accuracy rate of paper money discrimination.
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 of banknote image processing unit provided in an embodiment of the present invention, for the ease of saying It is bright, it illustrate only the part related to the embodiment of the present invention.The banknote image processing unit 5 includes:Acquiring unit 51, detection are single Member 52, processing unit 53.
Wherein, acquiring unit 51, for before paper money discrimination is carried out to bank note, obtaining the image of above-mentioned bank note;
Detection unit 52, it whether there is lines in above-mentioned image for detecting;
Processing unit 53, for when lines be present in above-mentioned image, relaxing the false distinguishing condition of paper money discrimination, so as to based on Above-mentioned false distinguishing condition after relaxing carries out false distinguishing to above-mentioned bank note.
Alternatively, above-mentioned detection unit 52 includes:
Locator unit, in the default general anti-counterfeiting characteristic region of above-mentioned image, positioning non-anti-counterfeiting characteristic region, Wherein, above-mentioned non-anti-counterfeiting characteristic region is other areas in addition to anti-counterfeiting characteristic region in above-mentioned general anti-counterfeiting characteristic region Domain;
Subelement is divided, for the image sections by above-mentioned non-anti-counterfeiting characteristic region division for predetermined number, wherein, Mei Getu Picture Duan Jun includes X row pixels, and X is the positive integer more than 1;
Lines detection sub-unit, for detecting whether each image sections are the image sections that lines be present successively;
Determination subelement is used for, when the quantity of the above-mentioned image sections that lines be present has exceeded default amount threshold, then Determine lines be present in above-mentioned image.
Alternatively, above-mentioned detection unit 52 also includes:
First ratio calculation subelement, for calculating the average gray of preceding N rows most dark in the non-anti-counterfeiting characteristic region First ratio of the average gray value of value and most bright preceding N rows;
The determination subelement is specifically used for, if the quantity of the image sections that lines be present has exceeded default quantity threshold Value, and first ratio is less than default first fractional threshold, it is determined that lines in described image be present.
Alternatively, above-mentioned lines detection sub-unit is specifically used for, and for each image sections, calculates most dark in above-mentioned image sections A line average gray value and the average gray value of most bright a line the second ratio, if above-mentioned second ratio be less than it is default Second fractional threshold, it is determined that above-mentioned image sections are the image sections for existing lines.
Alternatively, above-mentioned lines detection sub-unit is specifically used for, and for each image sections, calculates most bright in above-mentioned image sections A line average gray value and the average gray value of most dark a line gray scale difference value, if above-mentioned gray scale difference value be more than it is default Gray scale difference value threshold value, it is determined that above-mentioned image sections are the image sections for existing lines.
It is therefore first before false distinguishing operation is carried out to bank note by the embodiment of the present invention, banknote image processing unit Detect the image of bank note obtained and whether there is lines, relax the false distinguishing condition of paper money discrimination if it lines be present, so as to based on Above-mentioned false distinguishing condition after relaxing carries out false distinguishing to above-mentioned bank note.Because the present invention can be according to the image of the banknote image of acquisition Penetration quality dynamic adjusts false distinguishing condition so that when lines occurs in image, reduces the influence that lines operates to paper money discrimination, lifts paper The accuracy rate of coin false distinguishing.
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 S103 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 53 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, inspection Survey unit, processing unit, each unit concrete function are as follows:
Acquiring unit, for before paper money discrimination is carried out to bank note, obtaining the image of above-mentioned bank note;
Detection unit, it whether there is lines in above-mentioned image for detecting;
Processing unit, for when lines be present in above-mentioned image, relaxing the false distinguishing condition of paper money discrimination, so as to based on putting Above-mentioned false distinguishing condition after width carries out false distinguishing to above-mentioned bank note.
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, first detection obtains electronic equipment before false distinguishing operation is carried out to bank note The image of bank note whether there is lines, relax the false distinguishing condition of paper money discrimination if it lines be present, after based on relaxing Above-mentioned false distinguishing condition carries out false distinguishing to above-mentioned bank note.Because the present invention can be according to the picture quality dynamic of the banknote image of acquisition Adjust false distinguishing condition so that when lines occurs in image, reduce the influence that lines operates to paper money discrimination, lift paper money discrimination Accuracy rate.
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 banknote image processing method, it is characterised in that the banknote image processing method includes:
Before paper money discrimination is carried out to bank note, the image of the bank note is obtained;
It whether there is lines in detection described image;
If lines in described image be present, relax the false distinguishing condition of paper money discrimination, so as to based on the false distinguishing bar after relaxing Part carries out false distinguishing to the bank note.
2. banknote image processing method as claimed in claim 1, it is characterised in that whether there is in the detection described image Lines, including:
In the default general anti-counterfeiting characteristic region of described image, non-anti-counterfeiting characteristic region is positioned, wherein, the non-anti-counterfeiting characteristic Region is other regions in addition to anti-counterfeiting characteristic region in the general anti-counterfeiting characteristic region;
By the image sections that the non-anti-counterfeiting characteristic region division is predetermined number, wherein, each image sections include X row pixels Point, X are the positive integer more than 1;
Detect whether each image sections are the image sections that lines be present successively;
If the quantity of the image sections that lines be present has exceeded default amount threshold, it is determined that line in described image be present Road.
3. banknote image processing method as claimed in claim 2, it is characterised in that line be present in the determination described image Road, also include before:
Calculate the average gray value of preceding N rows most dark in the non-anti-counterfeiting characteristic region and the average gray value of most bright preceding N rows The first ratio, N is positive integer more than 1;
If the quantity of the image sections that lines be present has exceeded default amount threshold, it is determined that exists in described image Lines, including:
If the quantity of the image sections that lines be present has exceeded default amount threshold, and first ratio is less than default First fractional threshold, it is determined that lines in described image be present.
4. banknote image processing method as claimed in claim 2 or claim 3, it is characterised in that described to detect each image sections successively Whether it is the image sections that lines be present, including:
For each image sections, the average gray value of a line most dark in described image section and the average ash of most bright a line are calculated Second ratio of angle value;
If second ratio is less than default second fractional threshold, it is determined that described image section is the image sections for existing lines.
5. banknote image processing method as claimed in claim 2 or claim 3, it is characterised in that described to detect each image sections successively Whether it is the image sections that lines be present, including:
For each image sections, the average gray value of a line most bright in described image section and the average ash of most dark a line are calculated The gray scale difference value of angle value;
If the gray scale difference value is more than default gray scale difference value threshold value, it is determined that described image section is the image sections for existing lines.
6. a kind of banknote image processing unit, it is characterised in that the banknote image processing unit includes:
Acquiring unit, for before paper money discrimination is carried out to bank note, obtaining the image of the bank note;
Detection unit, it whether there is lines in described image for detecting;
Processing unit, for when lines in described image be present, relaxing the false distinguishing condition of paper money discrimination, after based on relaxing The false distinguishing condition to the bank note carry out false distinguishing.
7. banknote image processing unit as claimed in claim 6, it is characterised in that the detection unit also includes:
Locator unit, in the default general anti-counterfeiting characteristic region of described image, positioning non-anti-counterfeiting characteristic region, its In, the non-anti-counterfeiting characteristic region is other regions in addition to anti-counterfeiting characteristic region in the general anti-counterfeiting characteristic region;
Subelement is divided, for the image sections by the non-anti-counterfeiting characteristic region division for predetermined number, wherein, each image sections X row pixels are included, X is the positive integer more than 1;
Lines detection sub-unit, for detecting whether each image sections are the image sections that lines be present successively;
Determination subelement, for when the quantity of the image sections that lines be present has exceeded default amount threshold, it is determined that Lines in described image be present.
8. banknote image processing unit as claimed in claim 7, it is characterised in that the detection unit also includes:
First ratio calculation subelement, for calculate preceding N rows most dark in the non-anti-counterfeiting characteristic region average gray value and First ratio of the average gray value of most bright preceding N rows;
The determination subelement is specifically used for, if the quantity of the image sections that lines be present has exceeded default amount threshold, And first ratio is less than default first fractional threshold, it is determined that lines in described image be present.
9. a kind of electronic equipment, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, it is characterised in that realize such as claim 1 to 5 described in the computing device during computer program The step of any one methods described.
10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, and its feature exists In when the computer program is executed by processor the step of realization such as any one of claim 1 to 5 methods described.
CN201710891098.8A 2017-09-27 2017-09-27 paper money image processing method, paper money image processing device and electronic equipment Active CN107680245B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710891098.8A CN107680245B (en) 2017-09-27 2017-09-27 paper money image processing method, paper money image processing device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710891098.8A CN107680245B (en) 2017-09-27 2017-09-27 paper money image processing method, paper money image processing device and electronic equipment

Publications (2)

Publication Number Publication Date
CN107680245A true CN107680245A (en) 2018-02-09
CN107680245B CN107680245B (en) 2019-12-10

Family

ID=61138440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710891098.8A Active CN107680245B (en) 2017-09-27 2017-09-27 paper money image processing method, paper money image processing device and electronic equipment

Country Status (1)

Country Link
CN (1) CN107680245B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110599665A (en) * 2018-06-13 2019-12-20 深圳兆日科技股份有限公司 Paper pattern recognition method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0981824A (en) * 1995-09-20 1997-03-28 Fuji Electric Co Ltd Method for identifying paper money
JP2014186649A (en) * 2013-03-25 2014-10-02 Takamisawa Cybernetics Co Ltd Paper discrimination device, and paper discrimination method
CN104751559A (en) * 2015-03-25 2015-07-01 深圳怡化电脑股份有限公司 Money detector and money detecting method
CN105243731A (en) * 2015-09-17 2016-01-13 华中科技大学 Spectrum-adaptive multinational paper money image recognition device, system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0981824A (en) * 1995-09-20 1997-03-28 Fuji Electric Co Ltd Method for identifying paper money
JP2014186649A (en) * 2013-03-25 2014-10-02 Takamisawa Cybernetics Co Ltd Paper discrimination device, and paper discrimination method
CN104751559A (en) * 2015-03-25 2015-07-01 深圳怡化电脑股份有限公司 Money detector and money detecting method
CN105243731A (en) * 2015-09-17 2016-01-13 华中科技大学 Spectrum-adaptive multinational paper money image recognition device, system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘燕燕: "纸币非接触成像计数系统算法研究", 《中国优秀硕士学位论文全文数据库》 *
蒋天瑜: "基于多光谱图像的纸币防伪鉴定技术研究", 《中国优秀硕士学位论文全文数据库》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110599665A (en) * 2018-06-13 2019-12-20 深圳兆日科技股份有限公司 Paper pattern recognition method and device, computer equipment and storage medium
CN110599665B (en) * 2018-06-13 2021-08-24 深圳兆日科技股份有限公司 Paper pattern recognition method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN107680245B (en) 2019-12-10

Similar Documents

Publication Publication Date Title
CN107767541B (en) A kind of recognition methods of bank note, device, terminal device and storage medium
CN107274543B (en) A kind of recognition methods of bank note, device, terminal device and computer storage medium
CN107393118B (en) A kind of recognition methods of bank note, device, terminal device and computer storage medium
CN112102402B (en) Flash light spot position identification method and device, electronic equipment and storage medium
CN104992496A (en) Paper money face identification method and apparatus
CN107316373B (en) A kind of Paper Currency Identification, device, terminal device and readable storage medium storing program for executing
CN112966583A (en) Image processing method, image processing device, computer equipment and storage medium
CN107331026A (en) A kind of Paper Currency Identification and device
CN107610316B (en) Method and device for detecting defect of paper money and terminal equipment
CN110473333A (en) Detection method, detection device and the terminal of note number
CN107103683A (en) Paper Currency Identification and device, electronic equipment and storage medium
CN108446968A (en) A kind of method, apparatus and terminal device of accounting entry
CN107507330A (en) Detection method, detection means and the terminal device of banknote thickness abnormity
CN109800745B (en) Bill detection method, device, terminal and computer readable storage medium
CN107578526A (en) A kind of Paper Currency Identification, device, terminal device and readable storage medium storing program for executing
CN108764225B (en) Method and device for identifying transversely spliced paper money and electronic equipment
CN107464333A (en) Paper Currency Identification, device and terminal device
CN107705414B (en) A kind of recognition methods of bank note, device, terminal device and storage medium
CN107358717B (en) A kind of Paper Currency Identification, system and its terminal device
CN107730707B (en) A kind of false distinguishing method and device of valuable document
CN107680245A (en) A kind of banknote image processing method, banknote image processing unit and electronic equipment
CN107895424A (en) A kind of recognition methods of bank note, system and financial terminal
CN109543554A (en) Bill detection method, device, terminal and computer readable storage medium
CN108171865A (en) A kind of paper currency detecting method, note detection device and electronic equipment
CN107369243A (en) A kind of recognition methods of bank note, device, terminal device and computer-readable storage medium

Legal Events

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