[go: up one dir, main page]

CN103824257A - Two-dimensional code image preprocessing method - Google Patents

Two-dimensional code image preprocessing method Download PDF

Info

Publication number
CN103824257A
CN103824257A CN201210465531.9A CN201210465531A CN103824257A CN 103824257 A CN103824257 A CN 103824257A CN 201210465531 A CN201210465531 A CN 201210465531A CN 103824257 A CN103824257 A CN 103824257A
Authority
CN
China
Prior art keywords
image
noise
processing
filtering
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201210465531.9A
Other languages
Chinese (zh)
Inventor
周园
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WUXI HANXING ELECTRONIC CO Ltd
Original Assignee
WUXI HANXING ELECTRONIC CO Ltd
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 WUXI HANXING ELECTRONIC CO Ltd filed Critical WUXI HANXING ELECTRONIC CO Ltd
Priority to CN201210465531.9A priority Critical patent/CN103824257A/en
Publication of CN103824257A publication Critical patent/CN103824257A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

The invention provides a two-dimensional code image preprocessing method comprising the following steps: converting a color image into a gray image, detecting image quality, identifying noise model, carrying out adaptive filtering, segmenting input image data and carrying out binaryzation on each region according to a gray level threshold. The image processing speed and efficiency can be effectively improved for image classification and selection. Filter selection is targeted, the filtering effect is good, the anti-noise-interference ability is strong, and the method is applicable to a wide range of scenes. Processing is regional, the computational complexity can be effectively reduced, the processing quality can be improved, the processing quality can be improved, and the method is applicable to real-time signal processing. Adaptive filtering can be realized by the use of a parallel pipeline structure, the processing speed is high, and the method is applicable to real-time signal processing.

Description

A kind of image in 2 D code preprocess method
Technical field
The present invention relates to image processing method, be specifically related to a kind of image in 2 D code preprocess method.
Background technology
Along with the development of planar bar code technology, its application also becomes more and more extensive, from beverage label to books and reference materials, can see the trace of Quick Response Code from ticket to webpage everywhere.Under numerous application scenarioss, pattern in 2 D code may be by oil stain and dye discoloration, and identification equipment is taken in image with camera, and the image that identification equipment is taken may be by noise pollution, and image may be subject to instrument effect of jitter and thicken.Can recognition correct rate and the recognition speed that improve Quick Response Code be that can many Quick Response Codes apply the key that promote.
Quick Response Code identification generally can be divided into pre-service, and proofread and correct and four steps of decoding, as shown in figure mono-location.Pre-service converts coloured image to bianry image, and location is to determine the position of Quick Response Code in image, and correction is that the pattern that makes to tilt returns back to normal vertical state by mapping, and decoding is that pattern in 2 D code is identified to information extraction data.Pretreated quality directly affects result and the decoding accuracy in follow-up each stage, what traditional preprocess method had directly carries out binaryzation to image, what have carries out simple filtering to image, and antagonism external interference ability is poor, and application scenarios has significant limitation.
Summary of the invention
The object of the invention is to utilize color space conversion, image quality detects, noise pattern identification, and auto adapted filtering, the modules such as subregion binaryzation are carried out real-time pre-service to Quick Response Code; By Intelligent Measurement, filtering and subarea processing improve system rejection to disturbance ability targetedly,, accuracy, processing speed.
The technical scheme addressing the above problem is: a kind of image in 2 D code preprocess method,
Comprise the steps:
Step 1: color space conversion module receives view data, and converts coloured image to gray scale image;
Step 2: the acutance of image quality detection module detected image, with the threshold value comparison of existing sample statistics gained, according to comparative result by Images Classification;
Step 3: the classification of image being done according to step 2, have for all kinds of images of processing;
Step 4: noise pattern identification module is the kind to definite noise according to the statistical property of picture noise and noise sample aspect ratio;
Step 5: auto adapted filtering module selects corresponding wave filter to carry out filtering to the noise detecting, filter coefficient is done corresponding renewal according to the statistical property of view data, output data are sent into region binarization block;
Step 6: region binarization block is cut apart input image data, chooses gray threshold to each region, by gray threshold, binaryzation is carried out in each region, output binaryzation data.
The acutance of image quality detection module detected image, the threshold value comparison with existing sample statistics gained, is divided three classes image according to comparative result: First Kind Graph picture element is poor, after filtering, also cannot decode, and need abandon; Equations of The Second Kind figure picture element is good without filtering processing; The 3rd class image has noise or disturbs and need do filtering processing.
If image is First Kind Graph picture, treating apparatus abandons original image and again reads input data; If image is Equations of The Second Kind image, view data is input to region binarization block by treating apparatus; If image is the 3rd class image, view data is input to noise pattern identification module by treating apparatus;
The invention has the advantages that Images Classification is selected effectively to improve image treatment effeciency and speed; Wave filter is selected targetedly, good wave filtering effect, and anti-noise jamming ability is strong, is suitable for scene extensive; Subarea processing, can effectively reduce computational complexity, improves processing speed, improves Disposal quality, is applicable to real time signal processing; Auto adapted filtering available parallelism pipeline organization realizes, and processing speed is fast, is applicable to real time signal processing.
Below in conjunction with accompanying drawing, the present invention is described in further detail.
Accompanying drawing explanation
Fig. 1 is that image in 2 D code is processed structural representation;
Fig. 2 is Quick Response Code pre-processing structure schematic diagram of the present invention;
The normal QR image in 2 D code of Fig. 3;
Fig. 4 is containing the QR image in 2 D code of Gaussian noise shake;
Fig. 5 uses the binaryzation QR image in 2 D code of the inventive method processing.
Embodiment
In order to deepen the understanding of the present invention, below in conjunction with specific embodiment, the invention will be further described, and this embodiment only, for explaining the present invention, does not form limiting the scope of the present invention.
A kind of image in 2 D code preprocess method provided by the present invention,
Below take the QR image in 2 D code pre-service containing Gaussian noise shake as example accompanying drawings the specific embodiment of the present invention.
As Figure 1-5,
Step 1: color space conversion module receives rgb image data shown in Fig. 4, and converts coloured image to gray scale image, changes as follows:
I=0.2989*R+0.5870*G+0.1140*B
Step 2: the variance of image quality detection module detected image is as image sharpness coefficient, and with setting threshold comparison, this routine mean variance is 0.15, between [0.12 0.18], classifies as the 3rd class image; First Kind Graph picture element is poor, after filtering, also cannot decode, and need abandon; Equations of The Second Kind figure picture element is good without filtering processing;
Step 3: if image is First Kind Graph picture, treating apparatus abandons original image and again reads input data; If image is Equations of The Second Kind image, view data is input to region binarization block by treating apparatus; If image is the 3rd class image, view data is input to noise pattern identification module by treating apparatus;
Step 4: noise pattern identification module computed image intensity profile, search for known intensity profile and comprise two peak values, respectively at gray scale 0 and 255 places, detect gray scale [0 5 10 15] and [255 250 245 240] each point, all there is the spectral line that relative peak numerical value is higher, and spectral line value reduces gradually, hence one can see that image is containing Gaussian noise; It is 256 that numerical value is greater than 100 spectral line number, known image blurring with the contrast of sample statistics result, containing shaking interference.;
Step 5: auto adapted filtering module, according to recognition result, is estimated jitter distance, and angle and noise energy, carry out Wiener filtering to image;
Step 6: region binarization block is cut apart input image data, detects intensity profile to each region, and gray areas is divided into two parts, calculates each region expectation value, and the mean value of getting two expectation values is threshold value, by threshold value, binaryzation is carried out in each region.
The present invention utilizes color space conversion, and image quality detects, noise pattern identification, and auto adapted filtering, the modules such as subregion binaryzation are carried out real-time pre-service to Quick Response Code; By Intelligent Measurement, filtering and subarea processing improve system rejection to disturbance ability, accuracy, processing speed targetedly.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (3)

1. an image in 2 D code preprocess method, is characterized in that:
Comprise the steps:
Step 1: color space conversion module receives view data, and converts coloured image to gray scale image;
Step 2: the acutance of image quality detection module detected image, with existing sample and threshold value comparison, according to comparative result by Images Classification;
Step 3: the classification of image being done according to step 2, have for all kinds of images of processing;
Step 4: noise pattern identification module is the kind to definite noise according to the statistical property of picture noise and noise sample aspect ratio;
Step 5: auto adapted filtering module selects corresponding wave filter to carry out filtering to the noise detecting, filter coefficient is done corresponding renewal according to the statistical property of view data, output data are sent into region binarization block;
Step 6: region binarization block is cut apart input image data, chooses gray threshold to each region, by gray threshold, binaryzation is carried out in each region, output binaryzation data.
2. image in 2 D code preprocess method according to claim 1, it is characterized in that: the acutance of image quality detection module detected image, with existing sample and threshold value comparison, is divided three classes image according to comparative result: First Kind Graph picture element is poor, after filtering, also cannot decode, need abandon; Equations of The Second Kind figure picture element is good without filtering processing; The 3rd class image has noise or disturbs and need do filtering processing.
3. image in 2 D code preprocess method according to claim 1, is characterized in that: if image is First Kind Graph picture, treating apparatus abandons original image and again reads input data; If image is Equations of The Second Kind image, view data is input to region binarization block by treating apparatus; If image is the 3rd class image, view data is input to noise pattern identification module by treating apparatus.
CN201210465531.9A 2012-11-16 2012-11-16 Two-dimensional code image preprocessing method Pending CN103824257A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210465531.9A CN103824257A (en) 2012-11-16 2012-11-16 Two-dimensional code image preprocessing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210465531.9A CN103824257A (en) 2012-11-16 2012-11-16 Two-dimensional code image preprocessing method

Publications (1)

Publication Number Publication Date
CN103824257A true CN103824257A (en) 2014-05-28

Family

ID=50759304

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210465531.9A Pending CN103824257A (en) 2012-11-16 2012-11-16 Two-dimensional code image preprocessing method

Country Status (1)

Country Link
CN (1) CN103824257A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104408698A (en) * 2014-10-29 2015-03-11 中山大学 Compressed-sensing-based two-dimensional code image illumination equalization method
CN104463795A (en) * 2014-11-21 2015-03-25 高韬 Processing method and device for dot matrix type data matrix (DM) two-dimension code images
CN105894491A (en) * 2015-12-07 2016-08-24 乐视云计算有限公司 Image high-frequency information positioning method and device
CN105912978A (en) * 2016-03-31 2016-08-31 电子科技大学 Lane line detection and tracking method based on concurrent pipelines
CN106204563A (en) * 2016-07-04 2016-12-07 傲讯全通科技(深圳)有限公司 A kind of image conversion method
CN108537085A (en) * 2018-03-07 2018-09-14 阿里巴巴集团控股有限公司 A kind of barcode scanning image-recognizing method, device and equipment
CN111583150A (en) * 2020-05-07 2020-08-25 湖南优象科技有限公司 Two-dimensional code image processing method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007310675A (en) * 2006-05-18 2007-11-29 Sharp Corp Qr code recognition device, qr code recognition device control method, qr code recognition device control program and computer-readable recording medium having program recorded thereon
CN101504716A (en) * 2009-03-13 2009-08-12 重庆大学 QR two-dimension bar code recognition method and system based on field programmable gate array
CN101587556A (en) * 2009-04-08 2009-11-25 广东威创视讯科技股份有限公司 A kind of two-dimensional bar code and recognition methods thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007310675A (en) * 2006-05-18 2007-11-29 Sharp Corp Qr code recognition device, qr code recognition device control method, qr code recognition device control program and computer-readable recording medium having program recorded thereon
CN101504716A (en) * 2009-03-13 2009-08-12 重庆大学 QR two-dimension bar code recognition method and system based on field programmable gate array
CN101587556A (en) * 2009-04-08 2009-11-25 广东威创视讯科技股份有限公司 A kind of two-dimensional bar code and recognition methods thereof

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
张兴华: "矩阵式快速QR码的研究和应用", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
薛俊韬 等: "指纹图像的自适应预处理研究", 《计算机工程与设计》 *
黄魁东 等: "锥束CT图像的自适应滤波预处理方法", 《核电子学与探测技术》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104408698A (en) * 2014-10-29 2015-03-11 中山大学 Compressed-sensing-based two-dimensional code image illumination equalization method
CN104408698B (en) * 2014-10-29 2017-06-06 中山大学 A kind of image in 2 D code illumination equalization methods based on compressed sensing
CN104463795A (en) * 2014-11-21 2015-03-25 高韬 Processing method and device for dot matrix type data matrix (DM) two-dimension code images
CN104463795B (en) * 2014-11-21 2017-03-01 高韬 A kind of dot matrix DM image in 2 D code processing method and processing device
CN105894491A (en) * 2015-12-07 2016-08-24 乐视云计算有限公司 Image high-frequency information positioning method and device
CN105912978A (en) * 2016-03-31 2016-08-31 电子科技大学 Lane line detection and tracking method based on concurrent pipelines
CN106204563A (en) * 2016-07-04 2016-12-07 傲讯全通科技(深圳)有限公司 A kind of image conversion method
CN106204563B (en) * 2016-07-04 2019-11-15 傲讯全通科技(深圳)有限公司 A kind of image conversion method
CN108537085A (en) * 2018-03-07 2018-09-14 阿里巴巴集团控股有限公司 A kind of barcode scanning image-recognizing method, device and equipment
CN111583150A (en) * 2020-05-07 2020-08-25 湖南优象科技有限公司 Two-dimensional code image processing method and system
CN111583150B (en) * 2020-05-07 2023-06-16 湖南优象科技有限公司 Two-dimensional code image processing method and system

Similar Documents

Publication Publication Date Title
CN103824257A (en) Two-dimensional code image preprocessing method
CN108268867B (en) License plate positioning method and device
Kasaei et al. New morphology-based method for robustiranian car plate detection and recognition
CN106548111B (en) A kind of two dimensional code open defect detection method and device
KR101182173B1 (en) Method and system for recognizing vehicle plate
KR101907414B1 (en) Apparus and method for character recognition based on photograph image
CN105678213B (en) Dual-mode mask person event automatic detection method based on video feature statistics
CN114639041B (en) A flame detection method based on motion characteristics and color characteristics
CN110532825A (en) A kind of bar code identifying device and method based on artificial intelligence target detection
CN117911338A (en) Image definition evaluation method, device, computer equipment and storage medium
CN105046670A (en) Image rain removal method and system
Haider et al. A hybrid method for edge continuity based on Pixel Neighbors Pattern Analysis (PNPA) for remote sensing satellite images
CN115270841A (en) Bar code detection method and device, storage medium and computer equipment
Shi et al. Image enhancement for degraded binary document images
CN111402185B (en) Image detection method and device
CN114648738A (en) Image identification system and method based on Internet of things and edge calculation
CN110532826A (en) A kind of bar code identifying device and method based on artificial intelligence semantic segmentation
Wang et al. Machine vision-based conveyor belt tear detection in a harsh environment
CN107403192B (en) Multi-classifier-based rapid target detection method and system
Dandu et al. Vehicular number plate recognition using edge detection and characteristic analysis of national number plates
CN111753842B (en) Method and device for detecting text region of bill
CN112329572B (en) Rapid static living body detection method and device based on frame and flash point
KR20190143525A (en) A Method of Detecting Character Data through a Adaboost Learning Method
Ravipati et al. Computer vision-based system for locating and counting vacant parking lot
CN112861817A (en) Instrument noise image processing method

Legal Events

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

Application publication date: 20140528

RJ01 Rejection of invention patent application after publication