CN101882203A - Method for sampling sub-resolution of barcode image - Google Patents

Method for sampling sub-resolution of barcode image Download PDF

Info

Publication number
CN101882203A
CN101882203A CN2010101888375A CN201010188837A CN101882203A CN 101882203 A CN101882203 A CN 101882203A CN 2010101888375 A CN2010101888375 A CN 2010101888375A CN 201010188837 A CN201010188837 A CN 201010188837A CN 101882203 A CN101882203 A CN 101882203A
Authority
CN
China
Prior art keywords
sampling
gray
resolution
barcode image
scale value
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
CN2010101888375A
Other languages
Chinese (zh)
Other versions
CN101882203B (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.)
Newland Digital Technology Co ltd
Original Assignee
Fujian Newland Computer 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 Fujian Newland Computer Co Ltd filed Critical Fujian Newland Computer Co Ltd
Priority to CN 201010188837 priority Critical patent/CN101882203B/en
Publication of CN101882203A publication Critical patent/CN101882203A/en
Application granted granted Critical
Publication of CN101882203B publication Critical patent/CN101882203B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method for sampling the sub-resolution of a barcode image, which comprises: covering a plurality of adjacent pixel points in the barcode image by using a plurality of sampling grids respectively; extracting gray values of the plurality of adjacent pixel points covered by each sampling grid to obtain the gray values of a plurality of adjacent pixel points; determining the gray value of the center of each sampling grid by using interpolation; and mapping the gray values of the centers of the sampling grids onto a sampled image in turn. When the method is used, the barcode image processing time is reduced, error rate is lowered and the system load is reduced.

Description

A kind of method for sampling sub-resolution of barcode image
[technical field]
The present invention relates to the barcode technology field, especially, relate to a kind of method for sampling sub-resolution of barcode image.
[background technology]
Barcode technology is an emerging technology that integrates coding, printing, identification, data acquisition and processing (DAP) that grows up on computer technology and infotech basis.Barcode technology is because its identification is quick, accurate, reliable and low cost and other advantages, be widely used in fields such as commerce, taking care of books, storage, post and telecommunications, traffic and Industry Control, and certainly will in " Internet of Things " that rise gradually used, bring into play great function.
The bar code that is widely used at present comprises bar code and two-dimensional bar code.Bar code claims linear bar code again, is made up of a plurality of " bars " that are arranged in parallel and " sky " unit, and bar code information is expressed by bar and empty different in width and position.Bar code is not then expressed any information just in a direction (generally being horizontal direction) expressing information in vertical direction, so information capacity and space availability ratio are lower, and promptly can't discern after bar code is damaged.
Two-dimensional bar code is made up of the chequered with black and white particular geometric figure that distributes on two-dimensional directional according to certain rules, its can be on two-dimensional directional expressing information, so information capacity and space availability ratio are higher, and have certain verifying function.Two-dimensional bar code can be divided into stack two-dimensional bar code and matrix two-dimensional barcode.The stack two-dimensional bar code is that the bar code by the multirow cutting back piles up and forms, and representational stack two-dimensional bar code comprises PDF417, Code 49, Code 16K etc.Matrix two-dimensional barcode is made up of black, the white module that is distributed in by pre-defined rule in the matrix, and representational matrix two-dimensional barcode comprises Codeone, Aztec, Data Matrix, OR sign indicating number etc.
In the process that above-mentioned one dimension or two-dimensional bar code are decoded, normally utilize photographic equipment that bar code is taken, to obtain bar code image, then bar code image is carried out processing such as denoising, gray scale extraction, binaryzation, code word extraction, decoding.Yet, in above binary conversion treatment process, normally carry out binary conversion treatment at each pixel, therefore the gray scale and the threshold value of each pixel to be compared, decode time can be increased thus, and wrong probability, the increasing system loading of taking place can be improved.
Therefore, at the above deficiency that prior art exists, needing badly provides a kind of method for sampling sub-resolution of barcode image, makes to guarantee that decode procedure carries out quickly and smoothly.
[summary of the invention]
Long at the decode time that prior art exists, mistake generation probability is big, system loading heavily waits deficiency, the invention provides a kind of method for sampling sub-resolution of barcode image, can guarantee that the bar code decoding process carries out quickly and smoothly.
The invention provides a kind of method for sampling sub-resolution of barcode image, may further comprise the steps: a. utilizes a plurality of neighbor pixels in a plurality of sampling grides difference blocking bar code images; B. a plurality of neighbor pixels that each sampling grid is covered carry out the gray scale extraction, to obtain the gray-scale value of a plurality of neighbor pixels; C. utilize interpolation arithmetic to determine the gray-scale value of sampling network center of a lattice; D. successively the gray-scale value of a plurality of sampling network centers of a lattice is mapped to sampled images.
According to one preferred embodiment of the present invention, in step a, sampling grid just covers a plurality of neighbor pixels.
According to one preferred embodiment of the present invention, in step c, interpolation arithmetic carries out addition with the gray-scale value of a plurality of neighbor pixels, with the number of addition result divided by a plurality of pixels.
By above method, can reduce the bar code image processing time, reduce the wrong probability that takes place, reduce system loading.
[description of drawings]
Illustrated in fig. 1 is the process flow diagram of a preferred implementation of method for sampling sub-resolution of barcode image of the present invention.
Illustrated in fig. 2 is image transform processes in the method for sampling sub-resolution of barcode image of the present invention.
[embodiment]
Relevant feature of the present invention and technology contents please refer to following detailed description and accompanying drawing, and accompanying drawing only provides reference and explanation, is not to be used for the present invention is limited.
Fig. 1 shows the process flow diagram of a preferred implementation of method for sampling sub-resolution of barcode image of the present invention.As shown in Figure 1,, on bar code image, carry out signature search, to determine the bar code zone in step 101.
In step 102, utilize a plurality of sampling grides to cover a plurality of pixels respectively.
In step 103, a plurality of pixels that each sampling grid is covered carry out the gray scale extraction, to obtain each gray values of pixel points.
In step 104, utilize interpolation arithmetic to extract the gray-scale value at sampling grid center.
In step 105, the gray-scale value at sampling grid center is mapped to sampled images according to a graded.
In step 106, judge whether all gray-scale values are mapped to sampled images, if judged result is a "Yes", then obtain final sampled images, if judged result is a "No", then execution in step 105.
In step 105, continue the gray-scale value at sampling grid center is mapped to sampled images.
In further embodiment of the present invention, after the gray-scale value that determines the sampling grid center was mapped to sampled images, meeting execution in step 107 was carried out binary conversion treatment to sampled images.
After binary conversion treatment was finished, execution in step 108 was extracted code word to decipher processing.
Above what introduce is the process flow diagram of a preferred implementation of method for sampling sub-resolution of barcode image of the present invention, in order to allow those skilled in the art further understand above-mentioned flow process, is described in detail hereinafter with reference to Fig. 2.
Shown in Fig. 2 is image transform processes in the method for sampling sub-resolution of barcode image of the present invention.In Fig. 2, suppose that z is a bar code image, each square shaped cells is a pixel among the z, by z as can be known, the resolution of this bar code image is that (real image is far longer than this to 6*6, but for convenience of description, so resolution is taken as smaller value), and each pixel all has a gray-scale value, supposes A, B, four zones of C, the D upper left 3*3 of a corresponding z pixel, a top-right 3*3 pixel, 3*3 pixel of lower left, a bottom-right 3*3 pixel respectively.
Therefore, can get a sampling grid a that just can cover 3*3 pixel size z is taken a sample processing (in Fig. 2 for convenience of description, sampling grid is bigger than normal a little), in Fig. 2, available sampling grid a covers the a-quadrant, obtain the a-quadrant gray values of pixel points, and utilize interpolation arithmetic to determine the gray-scale value of grid element center (shown in stain).
Can use sampling grid b, the c of 3*3 pixel size, d (to show in addition simultaneously for clear, do not illustrate b, c, d among Fig. 2) cover B, C, D zone, obtain the gray-scale value of B, C, D area pixel point, and utilize interpolation arithmetic to determine the gray-scale value of each grid element center (shown in stain).
Behind the gray-scale value of calculating all grid element center, can successively gray-scale value be mapped to sampled images z ', wherein the A ' of a ' zone is corresponding with the a-quadrant of a, and B ' zone is corresponding with the B zone, and C ' zone is corresponding with the C zone, and D ' zone is corresponding with the D zone.
Therefore after all gray-scale values are mapped to sampled images z ', will obtain a scaled down sampled images z ' (resolution is 2*2), only need z ' is carried out binary conversion treatment, just can extract correct code word, handle to carry out follow-up decoding.
Wherein, particularly can get each gray values of pixel points addition respectively at the employed interpolation arithmetic of above description, and with the addition gained and divided by the number of pixel, the gained result is the interpolation arithmetic result.Employed binarization method is more than described for (for example with the gray-scale value of pixel and a threshold value, but it is not limited, be 80 or 150 etc.) make comparisons, if the gray-scale value of pixel then is judged as " in vain " greater than this threshold value, if the gray-scale value of the pixel of sampled images is less than this threshold value, then be judged as " deceiving ", it should be noted that under special circumstances above judged result may be opposite.
According to above embodiment,, therefore when carrying out binary conversion treatment, can effectively reduce number of processes, and then improve processing speed, and effectively reduce system loading because the average gray value of a plurality of pixels is compressed in the smaller sampled images.
Above with reference to description of drawings various preferred embodiments of the present invention, but only otherwise deviate from the spirit and scope of the invention, those skilled in the art can carry out modifications and changes on the various forms to it, all belongs to protection scope of the present invention.

Claims (3)

1. a method for sampling sub-resolution of barcode image is characterized in that, may further comprise the steps:
A. utilize a plurality of neighbor pixels in a plurality of sampling grides difference blocking bar code images;
B. described a plurality of neighbor pixels that each described sampling grid is covered carry out the gray scale extraction, to obtain the gray-scale value of described a plurality of neighbor pixels;
C. utilize interpolation arithmetic to determine the gray-scale value of described sampling network center of a lattice;
D. successively the gray-scale value of described a plurality of sampling network centers of a lattice is mapped to sampled images.
2. method for sampling sub-resolution of barcode image according to claim 1 is characterized in that, in described step a, described sampling grid just covers described a plurality of neighbor pixel.
3. method for sampling sub-resolution of barcode image according to claim 1 is characterized in that, in described step c, described interpolation arithmetic carries out addition with the gray-scale value of described a plurality of neighbor pixels, with the number of addition result divided by described a plurality of pixels.
CN 201010188837 2010-06-01 2010-06-01 Method for sampling sub-resolution of barcode image Expired - Fee Related CN101882203B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010188837 CN101882203B (en) 2010-06-01 2010-06-01 Method for sampling sub-resolution of barcode image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010188837 CN101882203B (en) 2010-06-01 2010-06-01 Method for sampling sub-resolution of barcode image

Publications (2)

Publication Number Publication Date
CN101882203A true CN101882203A (en) 2010-11-10
CN101882203B CN101882203B (en) 2012-12-12

Family

ID=43054215

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010188837 Expired - Fee Related CN101882203B (en) 2010-06-01 2010-06-01 Method for sampling sub-resolution of barcode image

Country Status (1)

Country Link
CN (1) CN101882203B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5428211A (en) * 1994-05-02 1995-06-27 United Parcel Service Of America Inc. Postnet bar code decoder
CN1670763A (en) * 2004-03-15 2005-09-21 深圳矽感科技有限公司 A two dimensional bar codes and coding-decoding method thereof
CN1963838A (en) * 2006-11-07 2007-05-16 中国物品编码中心 Method for correcting distortion of two-dimension bar figure
CN101093553A (en) * 2007-07-19 2007-12-26 成都博古天博科技有限公司 2D code system, and identification method
US7337970B2 (en) * 2004-12-03 2008-03-04 Symbol Technologies, Inc. Barcode scanner decoding
CN101197004A (en) * 2007-12-25 2008-06-11 深圳矽感科技有限公司 Two-dimension bar code and its coding and decoding method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5428211A (en) * 1994-05-02 1995-06-27 United Parcel Service Of America Inc. Postnet bar code decoder
CN1670763A (en) * 2004-03-15 2005-09-21 深圳矽感科技有限公司 A two dimensional bar codes and coding-decoding method thereof
US7337970B2 (en) * 2004-12-03 2008-03-04 Symbol Technologies, Inc. Barcode scanner decoding
CN1963838A (en) * 2006-11-07 2007-05-16 中国物品编码中心 Method for correcting distortion of two-dimension bar figure
CN101093553A (en) * 2007-07-19 2007-12-26 成都博古天博科技有限公司 2D code system, and identification method
CN101197004A (en) * 2007-12-25 2008-06-11 深圳矽感科技有限公司 Two-dimension bar code and its coding and decoding method

Also Published As

Publication number Publication date
CN101882203B (en) 2012-12-12

Similar Documents

Publication Publication Date Title
EP2393035B1 (en) QR barcode decoding chip and decoding method thereof
CN101882210B (en) Matrix two-dimensional barcode decoding chip and decoding method thereof
CN102243704B (en) Positioning system for two-dimension bar code and two-dimension bar code identification method and equipment
CN105989317B (en) Two-dimensional code identification method and device
CN101840499B (en) Bar code decoding method and binarization method thereof
CN101882207A (en) Bar code decoding chip of Data Matrix codes and decoding method thereof
CN109344820B (en) Digital ammeter reading identification method based on computer vision and deep learning
CN103632179B (en) Code And Decode method and the device of Three-Dimensional Bar Code
CN101908128B (en) Aztec Code bar code decoding chip and decoding method thereof
CN114005126A (en) Table reconstruction method and device, computer equipment and readable storage medium
CN111507119B (en) Identification code recognition method, identification code recognition device, electronic equipment and computer readable storage medium
WO2015021857A1 (en) Method and apparatus for data processing
CN201927035U (en) Bar code decoding device and binaryzation device thereof
CN113420580A (en) Method and device for positioning auxiliary locator for two-dimensional code, two-dimensional code scanning equipment and storage medium
CN101923632B (en) Maxi Code bar code decoding chip and decoding method thereof
CN202267974U (en) Positioning system used for two-dimension code and two-dimension code identification device
CN101833645B (en) Bar code decoding method based on code word combination
CN101882203B (en) Method for sampling sub-resolution of barcode image
CN101882211B (en) Chinese-sensible code barcode decoding chip and decoding method thereof
CN201927030U (en) Bar code image sub-resolution sampling device
CN117523219A (en) Image processing method and device, electronic equipment and storage medium
CN201946008U (en) Matrix two-dimensional bar code decoding chip
CN114155544A (en) Wireless form identification method and device, computer equipment and storage medium
CN113610043A (en) Industrial drawing table structured recognition method and system
CN109190735B (en) Two-dimensional code generation method, system and device for cylindrical surface

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 350015 No. 1 Rujiangxi Road, Mawei District, Fuzhou City, Fujian Province

Patentee after: NEWLAND DIGITAL TECHNOLOGY Co.,Ltd.

Address before: 350015 New Continental Science Park No. 1 Rujiangxi Road, Mawei District, Fuzhou City, Fujian Province

Patentee before: Fujian Newland Computer Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121212