The bill image in 2 D code acquisition method and device of a kind of multi-wavelength multiple light courcess
Technical field
The present invention relates to bill detection technique field, more particularly to a kind of bill image in 2 D code of multi-wavelength multiple light courcess to adopt
Diversity method and device.
Background technology
Bill image in 2 D code differentiates an important method in field as bill anti-counterfeit, its accurately and rapidly Quick Response Code
IMAQ plays the role of safely very important with identification to billing information.
Common image in 2 D code collection includes the collection of traditional optical formula image in 2 D code and recognition methods with recognition methods
With image in 2 D code collection and recognition methods based on Computer Image Processing.Traditional optical formula gathers and scan method such as patent
CN206236100U, CN206209749U etc., optics is carried out to image in 2 D code using the optical element such as camera and light compensating lamp
The collection and identification of form, this method is simple, direct, can realize that image in 2 D code accurately gathers under the weaker environment of light
With identification, but when in the case of the bill image in 2 D code covering redundant image information such as seal, this method is difficult to ensure that Quick Response Code
Image accurately identifies, and can not be used under some particular surroundings.Image in 2 D code collection and knowledge based on Computer Image Processing
Other method such as patent CN106682560A, CN106778717A etc., by gathering Quick Response Code original image, and carries out image two-value
Change segmentation, filter the image correction operations such as processing of making an uproar, reduce other redundant image informations on image in 2 D code and image in 2 D code is known
Other influence, image in 2 D code collection and identification available for covering seal.But this method implementation process complexity is, it is necessary to by adopting
It is poor to collect a series of processes, the real-times such as image, computer disposal and output image.
Above-mentioned specific Patent Reference and pertinent literature are:
1), " a kind of quick identification device of Quick Response Code ", patent No. CN206236100U.The utility model provides a kind of two dimension
The quick identification device of code, including at casing, wide-angle lens, camera, focus regulator, pixel conversion chip and Quick Response Code identification
Device is managed, the device can identify the Quick Response Code under various environment, and automatic amplification two-dimensional code simultaneously adjusts camera focal length, enables camera
It is enough quickly to obtain clearly Quick Response Code, so as to improve discrimination.But the utility model is not suitable for other figures such as covering seals
The collection and identification of the image in 2 D code of picture.
2), " a kind of two-dimension code recognition device ", patent No. CN206209749U.The utility model provides a kind of Quick Response Code
Identification device, including including central processing unit, optical mirror slip, camera, decoding chip, light compensating lamp, reset circuit, button mould
Block, communication interface, print module, memory module, clock circuit, voice module, indicator lamp, drive module, display module, light
Detection module and power management module etc..The device carries light filling function, can be applied to the environment of dark, but its light source
Only possess light filling function, do not possess the ability for removing redundant image information on image in 2 D code, be not suitable for covering seal etc.
The collection and identification of the image in 2 D code of other images.
3), " two-dimensional code identification method, device and system ", patent No. CN106682560A.The invention is related to a kind of two dimension
Code recognition methods, device and system, including:Obtain the images to be recognized of target Quick Response Code;Selected from correction process collection of functions
Correction process function, function is handled as current correction;Image calibration is carried out using current correction processing function pair images to be recognized
Positive processing, using result as correction chart picture to be confirmed;If correction chart picture to be confirmed is unsatisfactory for reasonable correcting condition, return
Receipt row reselects the operation for determining correction process function from correction process collection of functions;If correction chart picture to be confirmed meets
Reasonable correcting condition, then target Quick Response Code is identified in correction chart picture to be confirmed.This method is based on Computer Image Processing to two
Tie up code image and carry out image acquisition, processing and correction, realize the function of removing redundant image information on image in 2 D code.
4), the Li Xuejing of Harbin Institute of Technology was in the master thesis delivered in 2015《Based on multispectral image
Bill anti-counterfeit is studied with authentication method》, binaryzation of this article proposition to Quick Response Code progress gray proces, medium filtering and image
Processing.In Threshold segmentation, threshold value is set excessive, is difficult the background for filtering out Quick Response Code, and if threshold value sets too small compare
Easily cause the over-segmentation of image.This method is in the case where seal color depth and Quick Response Code color depth are close, threshold value
Threshold value is difficult to determine during segmentation.
The content of the invention
In order to solve the above technical problems, it is an object of the invention to provide a kind of bill image in 2 D code of multi-wavelength multiple light courcess
Acquisition method and device, methods described and device can reduce other redundant image informations pair such as seal on bill image in 2 D code
The influence of Quick Response Code identification process, improve bill image in 2 D code collection accuracy and billing information integrality.
The purpose of the present invention is realized by following technical scheme:
A kind of bill image in 2 D code acquisition method of multi-wavelength multiple light courcess, including:
A, collection covering seal bill image in 2 D code color characteristic information, it is determined that mixing light source in light source species and
Each light source frequency and wavelength parameter;
B, according to each light source frequency and wavelength feature in mixing light source, the electrical parameter for mixing light source is adjusted, with
Mixing light source needed for obtaining;
C, the mixing light source after regulation is acted on the image in 2 D code of covering seal;
D, under mixing light source effect, scanning recognition covers the image in 2 D code of seal, reads bill 2 D code information.
A kind of bill image in 2 D code harvester of multi-wavelength multiple light courcess, including::Image capture module, multiple light courcess control
Module and Quick Response Code identification module occur for molding block, multiple light courcess;It is described
Image capture module, for gathering the bill image in 2 D code color characteristic information of covering seal, determine mixed light
Light source species and each light source frequency and wavelength parameter in source;
Multiple light courcess control module, for adjusting the electrical parameter of mixing light source, to mix light source needed for acquisition;
Module occurs for multiple light courcess, and for launching the mixing light source after adjusting, mixing light source is acted on into the two of covering seal
Tie up on code image.
Compared with prior art, one or more embodiments of the invention can have the following advantages that:
Bill image in 2 D code color characteristic information of the present invention based on redundant image informations such as covering seals, it is determined that mixing
The species and specific wavelength of light source, then carry out electrical parameter regulation through multiple light courcess control module and launched by multiple light courcess transmitter module
Light source is mixed, the influence that the redundant image informations such as seal are gathered and identified to image in 2 D code is reduced, realizes the accurate of Quick Response Code
Identification and the complete collection of billing information.Bill image in 2 D code acquisition method and device based on multi-wavelength multiple light courcess, improve
Image in 2 D code gathers and recognition efficiency and accuracy rate, compared to the collection of existing traditional optical formula and recognition methods, is ensureing in fact
On the premise of when property, realize image in 2 D code collection and the interference of background image is excluded during identification, improve Quick Response Code identification
Accuracy rate;Compared to image in 2 D code collection and recognition methods based on Computer Image Processing, before recognition accuracy is ensured
Put, reduce the complex process of Computer Image Processing, improve the efficiency of detection, there is good real-time, strong adaptability, operation
The advantages of simple, be applicable to it is various in the case of image in 2 D code collection and identification.
Brief description of the drawings
Fig. 1 is the bill image in 2 D code acquisition method flow chart of multi-wavelength multiple light courcess.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with embodiment and accompanying drawing to this hair
It is bright to be described in further detail.
As shown in figure 1, the bill image in 2 D code acquisition method flow of multi-wavelength multiple light courcess, comprises the following steps:
The bill image in 2 D code color characteristic information of step 10, collection covering seal, it is determined that the light source in mixing light source
Species and each light source frequency and wavelength parameter;
Step 20, according to mixing light source in each light source frequency and wavelength feature, to mixing light source electrical parameter adjust
Section, to mix light source needed for acquisition;
Step 30, by the mixing light source after regulation act on covering seal image in 2 D code on;
Step 40, under mixing light source effect, scanning recognition covers the image in 2 D code of seal, reads bill Quick Response Code letter
Breath.
Mainly by white light source and had according to Quick Response Code and seal image color characteristic, mixing light source in above-mentioned steps 10
Specific wavelength and the light source of frequency form.Specific wavelength and the light source of frequency are used to reduce redundancy seal image information to bill two
Tieing up code identification process influences, and white light source is used to reduce image in 2 D code pixel amount lost under mixing light source effect, keeps
Image in 2 D code information integrity.
Specific wavelength and the light source of frequency are determined by bill seal image color characteristic, by the redundant images such as bill seal point
N region is cut into, its area is respectively A1、A2、A3…An;The seal under ordinary light source effect is gathered by image capture module
N region reflected light wavelength of image is divided into λ1、λ2、λ3…λn, then the specific wavelength λ of the light source with specific wavelength and frequency is:
Light source species and light source specific wavelength and frequency, pass through in the mixing light source that above-mentioned steps 20 are determined according to step 10
The multiple light courcess control module of the present apparatus adjusts the electrical parameters such as the electric current of multiple light courcess transmitter module, voltage, is joined by specific electricity
Number determines that the mixing light source of specific wavelength and frequency and regulation mix each intensity of light source ratio in light source.
Mixing light source after the completion of multiple light courcess transmitter module adjusts multiple light courcess control module in above-mentioned steps 30 is sent, and is made
For covering the bill image in 2 D code of seal image, provide light source for Quick Response Code identification process and realize reduction seal image
Function is influenceed on Quick Response Code identification process.
Above-mentioned steps 40 are under specific wavelength and the effect of frequency light source, and the redundant image information such as seal image is to Quick Response Code figure
As identification influence reduction, Quick Response Code identification module scanning recognition bill Quick Response Code quickly obtains bill complete information.
The present embodiment additionally provides a kind of bill image in 2 D code harvester of multi-wavelength multiple light courcess, including:Image is adopted
Collect module, multiple light courcess control module, multiple light courcess and module and Quick Response Code identification module occurs;It is described
Image capture module, for gathering the bill image in 2 D code color characteristic information of covering seal, determine mixed light
Light source species and each light source frequency and wavelength parameter in source;
Multiple light courcess control module, for adjusting the electrical parameter of mixing light source, to mix light source needed for acquisition;
Module occurs for multiple light courcess, and for launching the mixing light source after adjusting, mixing light source is acted on into the two of covering seal
Tie up on code image;
Quick Response Code identification module, for being scanned identification to the image in 2 D code for covering seal, and read bill two dimension
Code information.
Above-described embodiment avoids the influence that redundant image information identifies to Quick Response Code on image in 2 D code, improves two dimension
Code IMAQ and the accuracy of identification, meanwhile, by the optical image security mode of multi-wavelength mixing light source, reduction passes through meter
The complexity of calculation machine image procossing, make image in 2 D code collection more accurate, direct, reliable with identification process.
Although disclosed herein embodiment as above, described content only to facilitate understand the present invention and adopt
Embodiment, it is not limited to the present invention.Any those skilled in the art to which this invention pertains, this is not being departed from
On the premise of the disclosed spirit and scope of invention, any modification and change can be made in the implementing form and in details,
But the scope of patent protection of the present invention, still should be subject to the scope of the claims as defined in the appended claims.