CN201927030U - Bar code image sub-resolution sampling device - Google Patents

Bar code image sub-resolution sampling device Download PDF

Info

Publication number
CN201927030U
CN201927030U CN201020212650XU CN201020212650U CN201927030U CN 201927030 U CN201927030 U CN 201927030U CN 201020212650X U CN201020212650X U CN 201020212650XU CN 201020212650 U CN201020212650 U CN 201020212650U CN 201927030 U CN201927030 U CN 201927030U
Authority
CN
China
Prior art keywords
bar code
sampling
gray
grid
resolution
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.)
Expired - Fee Related
Application number
CN201020212650XU
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.)
Fujian Newland Computer 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 CN201020212650XU priority Critical patent/CN201927030U/en
Application granted granted Critical
Publication of CN201927030U publication Critical patent/CN201927030U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

The utility model provides a bar code image sub-resolution sampling device comprising a grid pixel point acquisition module and a gray scale calculation module, wherein the grid pixel point acquisition module is used for generating a plurality of sampling grids and processing the bar code image to acquire a plurality of adjacent pixel points corresponding to all the sampling grids; and the gray scale calculation module is used for determining the gray scale value of the central point of each sampling grid through interpolation operation according to the gray scale values of the adjacent pixel points corresponding to the sampling grids, so as to form a sampling image. By adopting the device, the bar code image processing time is reduced, and both error probability and system load are lowered.

Description

A kind of sub-resolution of barcode image sampling apparatus
[technical field]
The utility model relates to barcode technology, especially, relates to a kind of sub-resolution of barcode image sampling apparatus.
[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 the above one dimension of introducing 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 gone processing such as dry, 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 sub-resolution of barcode image sampling apparatus, makes to guarantee that decode procedure carries out quickly and smoothly.
[utility model content]
Long at the decode time that prior art exists, mistake generation probability is big, system loading heavily waits deficiency, the utility model provides a kind of sub-resolution of barcode image sampling apparatus, can guarantee that the bar code decoding process carries out quickly and smoothly.
The utility model provides a kind of sub-resolution of barcode image sampling apparatus, comprising: grid image vegetarian refreshments acquisition module and gray scale computing module, wherein, grid image vegetarian refreshments acquisition module is connected with the gray scale computing module.
By above device, 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 schematic block diagram of the preferred embodiment of sub-resolution of barcode image sampling apparatus of the present utility model.
Illustrated in fig. 2 is a kind of schematic block diagram that adopts the bar-code decoder of sub-resolution of barcode image sampling apparatus of the present utility model.
Fig. 3 shows the process flow diagram of a preferred implementation of the bar code decoding method that utilizes sub-resolution of barcode image sampling apparatus of the present utility model.
Fig. 4 shows is the image transform processes that utilizes in the bar code decoding method of sub-resolution of barcode image sampling apparatus of the present utility model.
[embodiment]
Relevant feature of the present utility model 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 utility model is limited.
Illustrated in fig. 1 is the schematic block diagram of the preferred embodiment of sub-resolution of barcode image sampling apparatus of the present utility model.As shown in Figure 1, in sub-resolution of barcode image sampling apparatus of the present utility model, comprise grid image vegetarian refreshments acquisition module 11, gray scale computing module 12.Grid image vegetarian refreshments acquisition module 11 generates a plurality of sampling grides and bar code image is handled to obtain the pairing a plurality of neighbor pixels of each sampling grid.And grid image vegetarian refreshments acquisition module 11 preferably is arranged to sampling grid just cover a plurality of neighbor pixels.Afterwards, gray scale computing module 12 carries out interpolation arithmetic according to the gray-scale value of the pairing a plurality of neighbor pixels of each sampling grid, with the gray-scale value of the central point of determining each sampling grid, and then forms sampled images.So-called interpolation arithmetic is that the gray-scale value with each a plurality of neighbor pixel carries out addition, with the number of addition result divided by a plurality of pixels.
Illustrated in fig. 2 is a kind of schematic block diagram that adopts the bar-code decoder of sub-resolution of barcode image sampling apparatus of the present utility model.As shown in Figure 2, bar-code decoder promptly adds binaryzation device 13, signature search module 20, code word extraction module 24 and decoding module 25 outside sub-resolution of barcode image sampling apparatus of the present utility model.Signature search module 20 is used to carry out signature search, to determine the bar code zone.And with the information transmission in the bar code zone determined to grid image vegetarian refreshments acquisition module 11, so that grid image vegetarian refreshments acquisition module 11 is arranged to just cover a plurality of neighbor pixels with sampling grid.After 13 pairs of sampled images of binarization block carry out binary conversion treatment, sampled images is transferred to code word extraction module 24, by code word extraction module 24 it is carried out code word and extract.At last, decipher processing, draw net result by the code word that 25 pairs of code word extraction modules 24 of decoding module extract.
Wherein, binary conversion treatment is that the gray-scale value of the pixel of sampled images and a threshold value are made comparisons, if the gray-scale value of the pixel of sampled images then is judged as " deceiving " greater than this threshold value, if the gray-scale value of the pixel of sampled images then is judged as " in vain " less than this threshold value.Certainly, also the gray-scale value and a threshold value of the pixel of sampled images can be made comparisons,, less than this threshold value, then be judged as " deceiving " as if the gray-scale value of the pixel of sampled images if the gray-scale value of the pixel of sampled images then is judged as " in vain " greater than this threshold value.
Fig. 3 shows the process flow diagram of a preferred implementation of the bar code decoding method that utilizes sub-resolution of barcode image sampling apparatus of the present utility model.As shown in Figure 3,, 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.
In step 103, a plurality of pixels that a plurality of sampling grides are 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 execution in step 107, 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.
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 that utilizes the bar code decoding method of sub-resolution of barcode image sampling apparatus of the present utility model, in order to allow those skilled in the art further understand above-mentioned flow process, is described in detail hereinafter with reference to Fig. 4.
Shown in Fig. 4 is the image transform processes that utilizes in the bar code decoding method of sub-resolution of barcode image sampling apparatus of the present utility model.In Fig. 4, 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. 4 for convenience of description, sampling grid is bigger than normal a little), in Fig. 4, available sampling grid a covers the a-quadrant, obtains the a-quadrant gray values of pixel points, and utilizes 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. 4) 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 utility model; but only otherwise deviate from essence of the present utility model and scope; those skilled in the art can carry out modifications and changes on the various forms to it, all belongs to protection domain of the present utility model.

Claims (1)

1. sub-resolution of barcode image sampling apparatus, it is characterized in that, described sub-resolution of barcode image sampling apparatus comprises: grid image vegetarian refreshments acquisition module and gray scale computing module, wherein, described grid image vegetarian refreshments acquisition module is connected with described gray scale computing module.
CN201020212650XU 2010-06-01 2010-06-01 Bar code image sub-resolution sampling device Expired - Fee Related CN201927030U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201020212650XU CN201927030U (en) 2010-06-01 2010-06-01 Bar code image sub-resolution sampling device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201020212650XU CN201927030U (en) 2010-06-01 2010-06-01 Bar code image sub-resolution sampling device

Publications (1)

Publication Number Publication Date
CN201927030U true CN201927030U (en) 2011-08-10

Family

ID=44430870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201020212650XU Expired - Fee Related CN201927030U (en) 2010-06-01 2010-06-01 Bar code image sub-resolution sampling device

Country Status (1)

Country Link
CN (1) CN201927030U (en)

Similar Documents

Publication Publication Date Title
CN101882210B (en) Matrix two-dimensional barcode decoding chip and decoding method thereof
CN101882207B (en) Bar code decoding chip of Data Matrix codes and decoding method thereof
CN101908125B (en) QR (Quick Response) bar code decoding chip and decoding method thereof
CN101840499B (en) Bar code decoding method and binarization method thereof
CN101908128B (en) Aztec Code bar code decoding chip and decoding method thereof
CN103632179B (en) Code And Decode method and the device of Three-Dimensional Bar Code
CN105787897A (en) Processing method and device of fuzzy two-dimensional code image
CN101833644A (en) Correction graph searching method based on dynamic template
CN114581646A (en) Text recognition method and device, electronic equipment and storage medium
CN116152611A (en) Multistage multi-scale point cloud completion method, system, equipment and storage medium
CN201927035U (en) Bar code decoding device and binaryzation device thereof
CN111507119B (en) Identification code recognition method, identification code recognition device, electronic equipment and computer readable storage medium
CN113420580A (en) Method and device for positioning auxiliary locator for two-dimensional code, two-dimensional code scanning equipment and storage medium
CN101923632A (en) Maxi Code bar code decoding chip and decoding method thereof
CN117152823A (en) Multi-task age estimation method based on dynamic cavity convolution pyramid attention
CN201927030U (en) Bar code image sub-resolution sampling device
CN101882211B (en) Chinese-sensible code barcode decoding chip and decoding method thereof
CN116704324A (en) Target detection method, system, equipment and storage medium based on underwater image
CN201946008U (en) Matrix two-dimensional bar code decoding chip
CN114511861B (en) Form line positioning method and system
CN101882203B (en) Method for sampling sub-resolution of barcode image
Xu et al. Application of Neural Network in Handwriting Recognition
CN117523219A (en) Image processing method and device, electronic equipment and storage medium
CN101908133A (en) Method and device for decoding bar code
CN201965627U (en) Aztec Code bar-code decoding chip

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
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: 20110810

Termination date: 20180601