Summary of the invention
The present invention is comparatively slow in order to solve existing bill images acquisition and processing speed, and whole system physical size is comparatively large, and the deficiency that physical construction is comparatively complicated provides a kind of high speed note image processing system and disposal route thereof.
The technical matters that will solve required for the present invention, can be achieved through the following technical solutions:
A first aspect of the present invention, a kind of high speed note image collection processing system, is characterized in that, comprising:
Bill images collecting unit, uses the first predetermined resolution gather the assorted light source image of the first predetermined resolution of bill and output to the first graphics processing unit;
First graphics processing unit, assorted for bill first predetermined resolution light source image is converted to the first two-sided predetermined resolution white light reflectance image of bill and stores, simultaneously, assorted for first predetermined resolution light source image is converted to the assorted light source image of bill second predetermined resolution and outputs to the second graphics processing unit, described second predetermined resolution is less than the first predetermined resolution;
Second graphics processing unit, identify by the positional information of the assorted light source image of bill second predetermined resolution to ticket number and feed back to the first graphics processing unit, first graphics processing unit obtains corresponding ticket number image in bill first predetermined resolution white light reflectance image by above-mentioned positional information and outputs to the second graphics processing unit, and the second graphics processing unit finally exports ticket number image corresponding in the assorted light source image of bill second predetermined resolution and bill first predetermined resolution white light reflectance image.
In the present invention, described bill collecting unit, comprising:
Scan module;
The scan control module driving scan module work is controlled by the first graphics processing unit;
The assorted light source image of the first predetermined resolution collected by scan module carries out the analog-digital conversion module that analog-digital conversion outputs to the first graphics processing unit.
In the present invention, described first graphics processing unit, comprising:
Drive the turntable driving module of scan control module work;
The assorted light source image of bill first predetermined resolution analog-digital conversion module exported is converted to the image conversion module of the first two-sided predetermined resolution white light reflectance image of bill and the assorted light source image of the second predetermined resolution;
Store the memory module of the first two-sided predetermined resolution white light reflectance image of bill and the assorted light source image of bill second predetermined resolution;
Receive the first predetermined resolution white light reflectance image that bill is two-sided, according to the ticket number positional information of the second graphics processing unit feedback, export the numbering module of ticket number image corresponding in bill first predetermined resolution white light reflectance image;
Receive the assorted light source image of bill second predetermined resolution, export the boundary coordinate detection module of bill borders coordinate measurement information;
Ticket number image corresponding in the first predetermined resolution white light reflectance image is exported, the first output interface of the assorted light source image of bill second predetermined resolution and bill borders Detection Information to the second graphics processing unit.
In the present invention, described second graphics processing unit, comprising:
Receive the assorted light source image of bill second predetermined resolution and bill borders coordinate measurement information, carry out the computing module that bill origin, inclination angle and dimension information calculate;
Receive bill origin, inclination angle and dimension information, in conjunction with the assorted light source image of bill second predetermined resolution, carry out the identification module of ticket number positional information and bill type and Information identification;
To numbering module feedback ticket number position, type and Information, export the second output interface of ticket number image corresponding in the assorted light source image of bill second predetermined resolution and bill first predetermined resolution white light reflectance image.
Described second graphics processing unit, comprises further:
Receive the assorted light source image of the second predetermined resolution carries out genuine/counterfeit discriminating genuine/counterfeit discriminating module to bill;
Receive the assorted light source image of the second predetermined resolution carries out new and old differentiation new and old discrimination module to bill;
Receive the assorted light source image of the second predetermined resolution and the incomplete incomplete discrimination module differentiated is carried out to bill;
Receive the assorted light source image of the second predetermined resolution carries out stained differentiation stained discrimination module to bill.
In the present invention, described first graphics processing unit comprises the correction module being exported ticket number image corresponding in the bill first predetermined resolution white light reflectance image of correction for direction by the obliquity information of bill further.
A second aspect of the present invention, a kind of high speed note image acquisition and processing method, is characterized in that, comprise the steps:
1, the first predetermined resolution is used to gather the assorted light source image of the first predetermined resolution of bill;
2, assorted for bill first predetermined resolution light source image be converted to the first two-sided predetermined resolution white light reflectance image of bill and store, meanwhile, assorted for the first predetermined resolution light source image being converted to the assorted light source image of bill second predetermined resolution;
3, identified by the positional information of the assorted light source image of bill second predetermined resolution to ticket number, obtain ticket number image corresponding in bill first predetermined resolution white light reflectance image by above-mentioned positional information, and finally export ticket number image corresponding in the assorted light source image of bill second predetermined resolution and bill first predetermined resolution white light reflectance image.
In step 2 of the present invention, the first predetermined resolution white light reflectance image that assorted for bill first predetermined resolution light source image is converted to bill two-sided is processed as follows:
The first row scanning white light image, second line scanning infrared image, the third line scanning white light image, fourth line scanning ultraviolet image, by that analogy, each line scanning resolution is 200DPI, White-light image longitudinal frame is 1/2nd first predetermined resolution, infrared image and ultraviolet image longitudinal frame are 1/4th first predetermined resolution, the first row and the third line originally should the second row images of scanning white light image and actual scanning infrared image by bilinear interpolation synthesis, the same, the third line and fifth line originally should the fourth line images of scanning white light image and actual scanning ultraviolet image by bilinear interpolation synthesis.
In step 2, assorted for bill first predetermined resolution light source image is converted in the process of the first two-sided predetermined resolution white light reflectance image of bill, assorted for the first predetermined resolution light source image is converted to the assorted light source image of bill second predetermined resolution simultaneously.
In step 2 of the present invention, comprise the step obtaining the boundary coordinate of bill in the assorted light source image of the second predetermined resolution further.
In step 3 of the present invention, the origin of the assorted light source image of bill second predetermined resolution, inclination angle and dimension information is calculated according to boundary coordinate, and by the type of above-mentioned information and the second predetermined resolution assorted light source image identification bill and towards, and then determine note position information.
In step 3 of the present invention, comprise the identification step of the features such as and the true and false new and old, incomplete, stained to bill further.
In step 3 of the present invention, comprise the step being exported ticket number image corresponding in the bill first predetermined resolution white light reflectance image of correction for direction by the obliquity information of bill further.
In the present invention, the first predetermined resolution is 100 ~ 200DPI, and the second predetermined resolution is 25 ~ 100DPI.
The present invention by bill false distinguishing, type, process towards identifications, sorting etc. time, low-resolution image is used to process, in ticket number identifying, use high-definition picture to process, solve the contradiction between high-resolution Number Reorganization image and low resolution paper money recognition at a high speed preferably; Bill images is in processing procedure, without the need to reprocessing after waiting for finishing image scanning, scanning limit, limit is taked to calculate feature, feature calculation required for bill is complete can be differentiated, take full advantage of the processing time of bill images scanning, shorten bill scanned after processing time, thus reduce the residence time of bill in whole system passage, reduce the requirement to passage minimum length.
Embodiment
In order to make technological means of the present invention, creation characteristic, reach object and effect is easy to understand, below in conjunction with concrete diagram, set forth the present invention further.
Purport of the present invention is, by to existing bill images acquisition processing system to the analysis of bill gatherer process, find that existing bill images acquisition process system exists larger contradiction between high-resolution Number Reorganization image and low resolution paper money recognition at a high speed, thus result in the slow problem of bill images acquisition process, the invention provides a kind of high speed note image collection processing system and acquiring and processing method to solve the problem.
See Fig. 1, high speed note image collection processing system of the present invention, comprises three elementary cells, bill images collecting unit 1, first graphics processing unit 2 and the second graphics processing unit 3.Bill images collecting unit 1 completes the acquired original to bill images, in the present embodiment, bill images collecting unit comprises scan module 11, scan module 11 has scan control module 12 to control, scan control module 12 then has the first graphics processing unit 1 to drive, like this, according to the actual needs under the control of the first graphics processing unit 1, the first predetermined resolution that scan module 11 sets according to the first graphics processing unit 1, gathers the assorted light source image of bill first predetermined resolution.The assorted light source image of the first predetermined resolution that scan module 11 collects outputs to analog-digital conversion module 13 again, carries out analog-digital conversion, then output to the first graphics processing unit 2 through analog-digital conversion module 13.The scope of the first predetermined resolution is preferably 100 ~ 200DPI.
First graphics processing unit 2 comprises turntable driving module 21, and namely scan control module 12 has turntable driving module 21 to drive, and driver module 21 completes the setting to the first predetermined resolution simultaneously.The assorted light source image of bill first predetermined resolution that analog-digital conversion module 13 exports outputs to image conversion module 22, assorted for bill first predetermined resolution light source image is converted to the image of the first two-sided predetermined resolution white light reflectance image of bill and the assorted light source image of the second predetermined resolution by image conversion module 22, second predetermined resolution is less than the first predetermined resolution, and the scope of the second predetermined resolution is preferably 25 ~ 100DPI.
The first predetermined resolution white light reflectance image that bill after image conversion module 22 is changed is two-sided and the assorted light source image of bill second predetermined resolution are stored in memory module 23, wherein, two-sided the first predetermined resolution white light reflectance image of bill will output to numbering module 24, the assorted light source image of bill second predetermined resolution will output to the first output interface 25, and then by the first output interface 25, assorted for bill second predetermined resolution light source image be outputted to the second graphics processing unit 3.
In addition, boundary coordinate detection module 26 is also provided with in the present embodiment, boundary coordinate detection module 26 receives the assorted light source image of bill second predetermined resolution from image conversion module 22, the boundary coordinate information of bill is detected, then outputs to the second graphics processing unit by the first output interface 25.
The computing module 31 of the second graphics processing unit 3 receives the second predetermined resolution colors light source image and bill borders coordinate measurement information from the first output interface 25, owing to obtaining bill borders coordinate information, as shown in Figure 2, according to boundary coordinate information, the wherein coordinate of a jiao of specifying bill is origin P, and the angle between bill limit and one of them border is defined as inclination angle a.
In the present embodiment, using the most lower left corner of bill as initial point, using the angle between the long limit in the border of level and place, the bill lower left corner as inclination angle a, in fact can using any one angle of bill as initial point, inclination angle also can adopt the angle between limit, initial point place and vertical border to define.
After obtaining bill origin P and inclination angle a, then the length of side calculating bill is to obtain the dimension information of bill.Bill origin P, inclination angle a and dimension information output to identification module 32 together with the assorted light source image of bill second predetermined resolution, identification module 32, by the identification to the assorted light source image of bill second predetermined resolution, will be easy to type and the Information of judging current bill.Information on the one hand for bill faces up or reverse side upward, on the other hand for the placement direction of bill is forward placement or swings to placement.
Complete bill type and after identification, then in conjunction with bill origin P and inclination angle a information, just can determine easily in bill second predetermined resolution colors light source image, the position at ticket number place.Due to the difference that the assorted light source image of bill second predetermined resolution and bill first predetermined resolution white light reflectance image are only resolution, the position of ticket number on bill first predetermined resolution white light reflectance image is identical with the position of ticket number on the assorted light source image of the second predetermined resolution.Again in conjunction with the Information of bill, can know ticket number is on which face of the two-sided first predetermined resolution white light reflectance image of bill.
Identification module 32 passes through the second output interface 33 by above-mentioned information feed back to numbering module 24, have in the side of ticket number the two-sided first predetermined resolution white light reflectance image of the bill that numbering module 24 can obtain from memory module 23, obtain ticket number image corresponding in bill first predetermined resolution white light reflectance image, and then directly ticket number image corresponding in the first predetermined resolution white light reflectance image is outputted to the second output interface 33 by the first output interface 25, outwards export eventually through the second output interface 33.In the present embodiment, first graphics processing unit 1 is also provided with correction module 27, after such numbering module 24 exports ticket number image corresponding in the first predetermined resolution white light reflectance image, correction module 27 can also correct according to the direction of the obliquity information of bill to the ticket number image exported, and avoids the ticket number image exported to have crooked situation to occur.
Meanwhile, identification module 32 also exports the assorted light source image of bill second predetermined resolution in the lump by the second output interface 33.Like this, the numbering image of bill adopts the white light reflectance image of the first predetermined resolution, the general image of bill adopts the assorted light source image of the second predetermined resolution, solves the contradiction between the high-resolution Number Reorganization image of bill and low resolution paper money recognition at a high speed.All right output or the memory device connecting other further of output interface 33, such as: memory card interface module, ethernet interface module, usb interface module etc., to realize the follow-up output to bill images data, expands the scope of application of the present invention.
In addition, second graphics processing unit 3 also comprises genuine/counterfeit discriminating module 34, new and old discrimination module 35, incomplete discrimination module 36 and stained discrimination module 37, like this, the second graphics processing unit 3 can also differentiate the true and false of bill, newness degree, incomplete degree and degree etc. after receiving the assorted light source image of bill second predetermined resolution.
Below will describe the course of work of the present invention and principle in detail:
Bill to be processed is needed first to enter bill images collecting unit 1, bill images collecting unit 1 uses the first predetermined resolution to gather the assorted light source image of the first predetermined resolution of bill, and the image blend that the assorted light source image of the first predetermined resolution here refers to the light source of shades of colour reaches the first predetermined resolution together.As previously mentioned, the first predetermined resolution is preferably employing 100 ~ 200DPI.The object of such process is, the characteristic of linearity sensor determines the time of scanning required for a line, in current existing civilian sensor, the time scanned often required for row image is about 45 microseconds, resolution is higher, the time scanning often row image needs is about long, and the length that can scan per second is shorter, the corresponding reduction of sweep velocity.And the image of 200DPI resolution, substantially meet the requirement of eye recognition and image size is unlikely to exceed the processing power of current hardware.Simultaneously, scan the image of each color light source, object is in the image of 100 ~ 200DPI resolution, as much as possible comprise sweep object various types of light sources irradiate under picture material, such as infrared image, ultraviolet image and RGB color image, and can sweep velocity be ensured.
After completing the collection to the assorted light source image of bill first predetermined resolution, assorted light source image is outputted to the first graphics processing unit 2, first graphics processing unit 2 and assorted for bill first predetermined resolution light source image is converted to the first two-sided predetermined resolution white light reflectance image of bill.In present embodiment, we carry out exemplary illustration using 200DPI as the first predetermined resolution to the process that assorted for bill first predetermined resolution light source image is converted to the first two-sided predetermined resolution white light reflectance image of bill.
See Fig. 3, horizontal line 41 represents white light, and horizontal line 42 represents infrared light supply, and horizontal line 43 represents ultraviolet source.Arrange from top to bottom, the first row scanning white light image, the second line scanning infrared image, the third line scanning white light image, fourth line scanning ultraviolet image, by that analogy.Line scanning resolution is 200DPI, and in scanning process, the image resolution ratio of actual white light scanning is 200x100DPI, and infrared image and ultraviolet image are 200x50DPI.When changing, the first row and the third line originally should the second row images of scanning white light image and actual scanning infrared image by bilinear interpolation synthesis, the same, the third line and fifth line originally should the fourth line images of scanning white light image and actual scanning ultraviolet image by bilinear interpolation synthesis, obtain the White-light image of 200x200DPI resolution thus, and store.
Be converted in the process of the first two-sided predetermined resolution white light reflectance image of bill carrying out the assorted light source image of bill first predetermined resolution, meanwhile, assorted for the first predetermined resolution light source image be converted to the assorted light source image of bill second predetermined resolution and output to the second graphics processing unit 3.Above-mentioned conversion coordinates bill images collecting unit 1 to scan while change, such as, when we adopt 50DPI as second predetermined differentiate time, the image that bill images collecting unit 1 often scans 4 row 200DPI just can change out the image of a line 50DPI.
After second graphics processing unit 3 receives the assorted light source image of the second predetermined resolution, the positional information of the assorted light source image of the second predetermined resolution to ticket number is adopted to identify.Be understandable that, because multiple bills enter the randomness that when bill images collecting unit 1 scans, existence is very large, bill is not identical in the position of bill images collecting unit 1, facing up and reverse side upwards two kinds of situations towards also existing of bill, so, the positional information of bill is also different, and present embodiment have employed the identification that a kind of easier method realizes the information to ticket number position.
First, after assorted for bill first predetermined resolution light source image is converted to the assorted light source image of bill second predetermined resolution by the first graphics processing unit 2, obtain the boundary coordinate of bill in the assorted light source image of the second predetermined resolution in advance.Again see Fig. 2, due to actual carry out bill images scanning time, the assorted light source image of the bill of acquisition is the size being greater than bill itself, the boundary coordinate here actual coordinate referring to bill colors light source image exterior-most limits.
If shown in Fig. 2, according to boundary coordinate information, the wherein coordinate of a jiao of specifying bill is origin P, and the angle between bill limit and one of them border is defined as inclination angle a.
In the present embodiment, using the most lower left corner of bill as initial point, using the angle between the long limit in the border of level and place, the bill lower left corner as inclination angle a, in fact can using any one angle of bill as initial point, inclination angle also can adopt the angle between limit, initial point place and vertical border to define.
After obtaining bill origin P and inclination angle a, then the length of side calculating bill is to obtain the dimension information of bill.Bill origin P, inclination angle a and dimension information export together with the assorted light source image of bill second predetermined resolution, such being easy to identifies the assorted light source image of bill second predetermined resolution, is easy to type and the Information of judging current bill.Information on the one hand for bill faces up or reverse side upward, on the other hand for the placement direction of bill is forward placement or swings to placement.
Complete bill type and after identification, then in conjunction with bill origin P and inclination angle a information, just can determine easily in bill second predetermined resolution colors light source image, the position at ticket number place.Due to the difference that the assorted light source image of bill second predetermined resolution and bill first predetermined resolution white light reflectance image are only resolution, the position of ticket number on bill first predetermined resolution white light reflectance image is identical with the position of ticket number on the assorted light source image of the second predetermined resolution.Again in conjunction with the Information of bill, can know ticket number is on which face of the two-sided first predetermined resolution white light reflectance image of bill.
Above-mentioned information is fed back, the side with ticket number is found again from the two-sided first predetermined resolution white light reflectance image of previously stored bill, thus obtain ticket number image corresponding in bill first predetermined resolution white light reflectance image, finally export ticket number image corresponding in the assorted light source image of bill second predetermined resolution and bill first predetermined resolution white light reflectance image.
In the present embodiment, first graphics processing unit 1 can also to ticket number correct image corresponding in the first predetermined resolution white light reflectance image exported, the direction of obliquity information to the ticket number image exported according to bill corrects, and avoids the ticket number image exported to have crooked situation to occur.
Meanwhile, the second graphics processing unit 3 exports the assorted light source image of bill second predetermined resolution in the lump.Like this, the numbering image of bill adopts the white light reflectance image of the first predetermined resolution, the general image of bill adopts the assorted light source image of the second predetermined resolution, solves the contradiction between the high-resolution Number Reorganization image of bill and low resolution paper money recognition at a high speed.
In addition, the second graphics processing unit 3 can also differentiate the true and false of bill, newness degree, incomplete degree and degree etc. after receiving the assorted light source image of bill second predetermined resolution.
Below only just preferred embodiment of the present invention is described, but can not be interpreted as it is limitations on claims.The present invention is not only confined to above embodiment, and its concrete structure allows to change.In a word, all various changes done in the protection domain of independent claims of the present invention are all in protection scope of the present invention.