[go: up one dir, main page]

CN201965627U - Aztec Code bar-code decoding chip - Google Patents

Aztec Code bar-code decoding chip Download PDF

Info

Publication number
CN201965627U
CN201965627U CN2010202126355U CN201020212635U CN201965627U CN 201965627 U CN201965627 U CN 201965627U CN 2010202126355 U CN2010202126355 U CN 2010202126355U CN 201020212635 U CN201020212635 U CN 201020212635U CN 201965627 U CN201965627 U CN 201965627U
Authority
CN
China
Prior art keywords
code
bar code
module
unit
bar
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
CN2010202126355U
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 CN2010202126355U priority Critical patent/CN201965627U/en
Application granted granted Critical
Publication of CN201965627U publication Critical patent/CN201965627U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

The utility model provides an Aztec Code bar-code decoding chip which is characterized in that an feature search unit searches for a position detecting pattern in a bar-code image to determine pixel coordinates of the position detecting pattern; a bar-code parameter acquisition unit generates a module width according to the pixel coordinates of the position detecting pattern and searches for a directing pattern according to the pixel coordinates of the position detecting pattern to obtain a bar-code direction; an edition/format parameter acquisition unit generates an edition parameter and/or a format parameter of a bar-code; a correction feature acquisition unit searches for a feature position on the bar-code image and generates a correction feature according to the feature position; a module information processing unit calculates a grey scale value corresponding to a module according to the edition parameter, the module width, the bar-code direction and the correction feature; a binarization unit binarizes the module; a code word extraction unit extracts a code word according to the binarization result; and a error-correcting decoding unit decodes the code word. The Aztec Code bar-code decoding chip ensures that the Aztec Code decoding process is performed rapidly and smoothly.

Description

Aztec Code bar code decoding chip
[technical field]
The utility model relates to the Bar Code field, especially, relates to a kind of Aztec Code bar code decoding chip.
[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 to be made up of a plurality of " bars " that are arranged in parallel and " sky " unit again, 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 stained.
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 lower, 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 QR sign indicating number, Data Matrix sign indicating number, Maxi Code, Aztec Code, Chinese letter co etc.Two-dimensional bar code except that possessing the advantage that bar code also has, the characteristics that have also simultaneously that information capacity is big, density is high, have error correction, can represent various multimedia messagess and kinds of words information, security and antiforge purpose are strong, decoding reliability is high.
Prior art normally utilizes photographic equipment that bar code is taken in the process that two-dimensional bar code is decoded, and to obtain bar code image, then bar code image is gone disposal routes such as dry, gray scale extraction, binaryzation, code word extraction, decoding.
Yet, above-mentioned prior art is when carrying out adaption brightness equalization and binary conversion treatment process to bar code image, be to carry out adaption brightness equalization and binary conversion treatment at each pixel, therefore to regulate the gray scale of each pixel, and compare with the threshold value gray scale, the data computation amount is very big, has reduced the processing speed of system.And because this system is (to be the correlation parameter of bar code not knowing the bar code characteristic information, comprise bar code direction, bar code area size and information such as bar code version, bar code distortion factor) situation under carry out binary conversion treatment, can cause module error, promptly in the binaryzation process, because the influence of factors such as noise, distortion, inverted situation takes place in depth state and design point that module occurs, and the recognition capability that this reduces bar code has greatly increased the bit error rate of bar-code identification.Especially higher at the bar code version, under the more situation of contained module number, or bar code image resolution is low, and under the not good situation of exposure quality, this method is difficult to be discerned two-dimensional bar code.
In addition, the Aztec Code recognition system of prior art normally adopts the decoding program in the processor calling program storer, bar code image is handled realized the identification decoding.The problem of this system is: one, processing speed is slow, this system need write a series of programs that realize decoding algorithm in microprocessor, single processor can only be simultaneously carries out decoding processing at a kind of barcode standard of particular type, processor can only be handled an operation a clock period, software processes has also determined the single process characteristic of decoding process, difficult pipelining and the parallel processing that realizes bar code image, processing speed is slower; Two, use cost height because decoding algorithm is comparatively complicated, therefore needs to use high-end processor (as 32 bit processors) to realize above algorithm, needs processor and hardware-accelerated circuit to match, and can cause system cost high like this; Three, system complex, integrated difficulty is big, and the power consumption height is not easy to portable application.
Therefore, at the above deficiency that prior art exists, needing badly provides a kind of Aztec Code bar code decoding chip, makes to guarantee that decode procedure carries out quickly and smoothly.
[summary of the invention]
Deficiencies such as the processing speed at the prior art existence is slow, mistake generation probability is bigger, the utility model provides a kind of Aztec Code bar code decoding chip, can guarantee that Aztec Code decode procedure carries out quickly and smoothly.
The utility model provides a kind of Aztec Code bar code decoding chip, comprising: feature searching unit, bar code parameter acquiring unit, version/format parameter acquiring unit, correction feature acquiring unit, module information processing unit, binarization unit, code word extraction unit and error-correcting decoding unit.Bar code parameter acquiring unit connection features search unit version/format parameter acquiring unit connection features search unit and bar code parameter acquiring unit.The correction feature acquiring unit connects bar code parameter acquiring unit.The module information processing unit connects bar code parameter acquiring unit, version/format parameter acquiring unit and correction feature acquiring unit.Binarization unit link block information process unit.The code word extraction unit connects binarization unit.The error-correcting decoding unit connects version/format parameter acquiring unit and code word extraction unit.
Aztec Code bar code decoding chip of the present utility model, by the search correction feature, obtain the pixel grey scale coordinate and the module coordinate of correction feature, calculate the pixel coordinate of bar code image and the mapping relations between the module coordinate, then according to this mapping relations computing module gray-scale value, the module gray-scale value is carried out binaryzation, and then the pairing bar code symbol figure of reduction Aztec Code.Compared with prior art, Aztec Code bar code decoding chip of the present utility model is to know the bar code characteristic information, and the binary conversion treatment of carrying out after according to the bar code characteristic information bar code image being proofreaied and correct, therefore reduced of the influence of factors such as noise, distortion to the binaryzation process, reduced the appearance of module error, increase the recognition capability of bar code greatly, promoted the power that is decoded into of bar-code identification.
Aztec Code bar code decoding chip of the present utility model adopts the hardware pipeline structure, realize the identification of bar code image is decoded by hardware logic, because the hardware pipeline structure is suitable for bar code image is carried out pipelining and parallel processing, so processing speed is very fast.
For the processor decodes technology of prior art, Aztec Code bar code decoding chip of the present utility model adopts the devices at full hardware structure, need not processor and participate in decoding, chip structure structure for processor is more simplified, area is littler, power consumption is lower, cost is lower, it is integrated to be easy to, and realizes portable application easily.Can combine with technology of Internet of things easily, for the application of barcode technology provides more wide development space.
Fig. 1 is the bar code symbol pictorial diagram of Aztec Code.
[description of drawings]
Fig. 2 is the functional schematic of the bar code symbol figure of Aztec Code.
Fig. 3 is the functional schematic of central area of the bar code symbol figure of compact Aztec Code.
Fig. 4 is the functional schematic of central area of the bar code symbol figure of the complete type Aztec Code of complete type Aztec Code.
Fig. 5 is the processing flow chart according to the coding/decoding method of Aztec Code bar code decoding chip of the present utility model.
Fig. 6 is the structural representation according to first embodiment of Aztec Code bar code decoding chip of the present utility model.
Fig. 7 is the synoptic diagram that obtains structure according to first kind of check point of correction feature acquiring unit in first embodiment of Aztec Code bar code decoding chip of the present utility model.
Fig. 8 is the structural representation according to module information processing unit in first embodiment of Aztec Code bar code decoding chip of the present utility model.
Fig. 9 is the transfer principle synoptic diagram according to module information processing unit in first embodiment of Aztec Code bar code decoding chip of the present utility model.
Figure 10 is the structural representation according to second embodiment of Aztec Code bar code decoding chip of the present utility model.
Figure 11 is the synoptic diagram that obtains structure according to second kind of check point of correction feature acquiring unit in second embodiment of Aztec Code bar code decoding chip of the present utility model.
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.
[embodiment]
For making those skilled in the art be easier to understand technology contents of the present utility model, the reference and explanation of following bar code term are provided, wherein part bar code term is to come according to State Standard of the People's Republic of China GB/T 12905-2000, is not to be used for the utility model is limited.
Bar code symbol: the array configuration of bar, idle pattern form or the module of the expression information of certain bar code definition.
Code word: code word is represented the intermediate value of source data to the bar code symbol conversion.A kind of code word number of symbol has determined the quantity of all symbols of this bar code symbol.
Code word data: code word data is represented the value of data symbol.
The error correction code word: the error correcting code word table shows the value of error correction symbol.
Module: a smallest standalone unit in the matrix two-dimensional barcode, represent a bit binary data.
Functional graphic: the special pattern that is used for symbol location and feature identification in the matrix two-dimensional barcode symbol.Functional graphic comprises surveys figure, positioning pattern, correction graph etc.
Survey figure: in the matrix two-dimensional barcode symbol figure, be used for carrying out the special graph of symbol location, also claim the position sensing figure at bar code image.
Positioning pattern: in the matrix two-dimensional barcode symbol figure, be used for the figure of the pixel coordinate of definite symbol module.
Correction graph: in the matrix two-dimensional barcode symbol figure, be used for determining of character position fixing with reference to figure.Have to a certain degree under distortion or the stained situation at bar code image, can proofread and correct the pixel coordinate of module in the bar code image by correction graph.
Coding region: in the matrix two-dimensional barcode symbol figure, do not occupied, be used for data and error correction code word are encoded, the zone of expression data symbol and error correction symbol by functional graphic.
Version: be used for the sequence of representing matrix formula two dimensional bar code symbol specification, reflected the module number in symbol dimension, the symbol and the arrangement mode of the module in the symbol.
Version information: in the matrix two-dimensional barcode symbol figure, be used for determining the functional graphic of matrix two-dimensional barcode symbol version number.
Form: be used for employed error-correction level of representing matrix formula two dimensional bar code symbol and mask graph.
Format information: in the matrix two-dimensional barcode symbol figure, be used for determining the functional graphic of employed error-correction level of matrix two-dimensional barcode symbol and mask graph information.
Mask graph: in coding region, bitmap is carried out XOR and handle, its objective is the balanced proportion that makes dark and light module in the symbol, and reduce and influence the figure appearance that bar code image is handled with mask graph.
The binaryzation bar code image: with global threshold or local threshold the gray scale bar code image is handled, thus the bar code image of the two dark-and-light colour that obtains.
Threshold value: cut apart the boundary value of two inspection levels, its value itself is the lower limit of top grade.
Module error: in the binaryzation bar code image, inverted module takes place in depth state and design point.
Pixel: the single photosensitive unit pairing unit on bar code image on the light-sensitive array (as CCD or cmos device), a pixel is regarded as the complete unit of the minimum of bar code image usually.The storing mode of digital bar code image is a unit with pixel (Pixel) generally, and each pixel is the long-pending minimum unit in digital bar code image the inside.
Fig. 1 is the symbol figure synoptic diagram of Aztec Code, and Fig. 2 is the symbol figure function declaration figure of Aztec Code.For making those skilled in the art be easier to understand technology contents of the present utility model, Aztec Code is carried out simple declaration below in conjunction with Fig. 1, Fig. 2.
As shown in Figure 1, the symbol figure of Aztec Code is to be based upon on the square net basis, and the symbol figure center is square buphthalmos (Bulls-eye) the position sensing figure that is used to locate bar code.AztecCode belongs to a kind of of matrix two-dimensional barcode, and it has similar feature to algebra matrix on structural feature and arrangement of elements.The symbolic construction of Aztec Code is to be made of specific mark function figure and the square-shaped patterns module that is distributed on the matrix element position expression data message.It represents binary " 1 " with dark modular unit, represents binary " 0 " (certainly, as a kind of agreement, also available dark modular unit is represented binary " 0 ", represents binary " 1 " with light modular unit) with light modular unit.Code word data stream is represented by the various combination that is distributed in the locational unit module of matrix element.
Fig. 2 is the functional schematic of the symbol figure of Aztec Code.As shown in Figure 2, the functional graphic of Aztec Code comprises position sensing figure, order directional pattern, correction graph (grid square).The code area comprises module information and the data field of representing symbolic information.The position sensing figure is positioned at the center of Aztec Code, is the buphthalmos pattern of multilayer square depth module.Aztec Code comprises compact Aztec Code and complete type Aztec Code two classes of larger-size complete type Aztec Code that size is less.There is not correction graph among the compact Aztec Code.Correction graph among the complete type Aztec Code of complete type Aztec Code adopts the railway line form of depth single module width at interval, is used to that the coordinate setting of module provides coordinate reference in the symbol figure.
Functional graphic at Aztec Code describes in detail below, so that those skilled in the art understand the decode procedure of follow-up Aztec Code.Fig. 3 is the functional schematic of central area of the bar code symbol figure of compact Aztec Code.Fig. 4 is the functional schematic of central area of the bar code symbol figure of the complete type Aztec Code of complete type Aztec Code.As shown in Figure 3 and Figure 4, the position sensing centre of figure is the dark module of a module width, and outwards successively around the foursquare inverse module of multilayer, every layer is a module width.The directed figure of the module of foursquare each drift angle of position sensing figure covers, order directional pattern is made of 4 different square modules of the depth, in the direction of the clock, upper left corner order directional pattern is 4 dark, the order directional pattern of upper right corner order directional pattern is 1 shallow 3 dark, lower right corner order directional pattern is 2 shallow 2 dark, and lower left corner order directional pattern is 3 shallow 1 dark.Module according to order directional pattern is arranged, and can determine the direction of the symbol figure of Aztec Code.
Between the order directional pattern version and the format information district of Aztec Code, compact Aztec Code amounts to 28 modules on four limits of position sensing figure and is used for version of code and format information, and complete type Aztec Code amounts to 40 modules on four limits of position sensing figure and is used for version of code and format information.Version and format information have comprised the module number of plies, module figure place and the error-correction level of whole bar code.
Outside version and the format information district is the code area, and around constituting, every layer of code area is 2 module widths by the foursquare code area of multilayer in the code area.
Below Aztec Code coding/decoding method of the present utility model is described in detail, Fig. 5 is the processing flow chart according to Aztec Code coding/decoding method of the present utility model.
As shown in Figure 5, in step 901, carry out signature search on bar code image, determining the pixel coordinate of position sensing figure, obtain bar code parameter according to the pixel coordinate of position sensing figure, bar code parameter comprises module width and bar code direction etc.Module width can the pixel coordinate by the position sensing figure calculates and obtains, and the bar code direction can be determined according to the module arrangement mode of the order directional pattern of four drift angles of position sensing figure.In a kind of embodiment of the present utility model, this step can realize by the mode of template matches detection position detection figure.In another kind of embodiment of the present utility model, the mode that the search of position sensing figure also can passing ratio detects realizes, this mode comprises by the depth module frontier point in the scan mode detection bar code image, spacing between depth module frontier point relation is compared with the module size ratio of position sensing figure or correction graph, determine the pixel coordinate of feature pattern on bar code image according to comparative result.In addition, the utility model also provides a kind of and detects the embodiment of realizing the identification of AztecCode by the ranks line, and this method may further comprise the steps: at first in the presumptive area of bar code image, extract a plurality of black-white boundary sections that meet predetermined length; Make up a plurality of straight lines based on a plurality of black-white boundary sections of extracting then; According to the parallel lines characteristic a plurality of straight lines are divided into groups again and form row sets of parallel and row sets of parallel; Last characteristic according to Aztec Code, by the grid of row sets of parallel and row sets of parallel structure is judged to confirm whether there is Aztec Code, and obtain the pixel coordinate of position sensing figure according to the grid that row sets of parallel and row sets of parallel make up, obtain bar code parameter according to the pixel coordinate of position sensing figure.
In step 902, pixel coordinate and bar code parameter (comprising module width and bar code direction) according to detected position sensing figure, on bar code image, extract version information and format information, version information and format information are decoded to obtain version/format parameter, for example comprise the Release parameter of information such as the module number of plies, module figure place and error-correction level etc.In some cases, version information and format information zone can be by stained and cause can estimating form, the version of bar code according to barcode types can't reading of data the time on the bar code image.For example, by the permutation and combination of may carrying out of each version, form is come version and form are estimated.According to the form of estimating, version bar code image is carried out subsequent treatment.
In step 903, search characteristics figure on bar code image, for example comprise intersecting point, correction graph, behavioral characteristics template, the feature templates etc. of ruling of position sensing figure, obtain correction feature, for example comprise the pixel coordinate and the gray-scale value of check point according to feature pattern.
In step 904, according to Release parameter determination module parameter, according to correction feature, module parameter and the pairing module coordinate of bar code parameter calculation correction feature, pixel coordinate and module coordinate calculation correction parameter according to correction feature, this correction parameter has reflected the pixel of bar code image and the mapping relations between the bar code module, calculate the pairing pixel of each module according to module parameter and correction parameter, coordinate and gray-scale value according to the pairing pixel of each module calculate each module corresponding gray scale value, constructing module figure.
In step 905, module map is carried out binary conversion treatment to extract bitmap.
In step 906, carry out bit stream according to the queueing discipline of Aztec Code and extract and be converted to code word data and error correction code word.
In step 907, the version number and the error-correction level that obtain according to step 902, again code word data and error correction code word are pressed the piece arrangement, carry out error-detecting and error correction calculations, correct deletion error and unknown error, up to the maximum error correction capability of version number and error-correction level defined, assembly sequence of blocks of data again then, the data bit stream of reduction expression Aztec Code information.
In step 908, decipher according to the data bit stream of reduction, to obtain Aztec Code information.
Below Aztec Code bar code decoding chip of the present utility model is described in detail, Fig. 6 is the structural representation according to first embodiment of Aztec Code bar code decoding chip of the present utility model.
As shown in Figure 6, data-carrier store 11 storage bar code images, 10 pairs of data storeies of Aztec Code bar code decoding chip, 11 storage bar code images are discerned decoding.Aztec Code bar code decoding chip 10 comprises steering logic unit 100, feature searching unit 101, bar code parameter acquiring unit 102, version/format parameter acquiring unit 103, correction feature acquiring unit 104, module information processing unit 105, binarization unit 106, code word extraction unit 107 and error-correcting decoding unit 108.
Steering logic unit 100 is used for the duty and the treatment scheme of controlling features search unit 101, bar code parameter acquiring unit 102, version/format parameter acquiring unit 103, correction feature acquiring unit 104, module information processing unit 105, binarization unit 106, code word extraction unit 107 and error-correcting decoding unit 108.Steering logic unit 100 adopts finite state machine (Finite State Machine) form to control.Finite state machine claims finite-state automata again or is called for short state machine, is the state logic of limited state of expression and behaviors such as transfer between these states and action.Steering logic unit 100 can be constructed with programmable logic device, programmable logic controller (PLC), logic gate and trigger.Preferred embodiment, steering logic unit 100 comprises register, determines the combinational logic of state transitions and the combinational logic of definite status control module output.Register is used for the store status variable.
Feature searching unit 101 is determined the pixel coordinate of feature pattern on bar code image by search characteristics figure in bar code image.Feature pattern includes but not limited to the functional graphic of bar code, for example position sensing figure, correction graph etc.Preferred embodiment, position feature search unit 101 adopts the mode searching position of template matches to survey figure, its module width ratio according to the position sensing figure generates position sensing test pattern template, the relative bar code image of position sensing test pattern template is carried out translation and carry out the gray scale coupling, determining the best match position of position sensing test pattern template and bar code image, and determine the central point of position sensing figure in the bar code image and four jiaos pixel coordinate according to best match position.In another kind of embodiment of the present utility model, the mode that feature searching unit 101 also can passing ratio detects is determined position sensing figure or the correction graph pixel coordinate on bar code image, this mode comprises by the depth module frontier point in the scan mode detection bar code image, spacing between depth module frontier point relation is compared with the module size ratio of position sensing figure or correction graph, determine position sensing figure or the correction graph pixel coordinate on bar code image according to comparative result.In addition, the utility model also provides a kind of embodiment of realizing the identification of Aztec Code that detects by the ranks line, in this implementation method, feature searching unit 101 is at first in the presumptive area of bar code image, extraction meets a plurality of black-white boundary sections of predetermined length, make up a plurality of straight lines based on a plurality of black-white boundary sections of extracting then, according to the parallel lines characteristic a plurality of straight lines are divided into groups again and form row sets of parallel and row sets of parallel, last characteristic according to Aztec Code, judge to confirm whether there is Aztec Code by the grid that row sets of parallel and row sets of parallel are made up, and obtain the pixel coordinate of position sensing figure according to the grid that row sets of parallel and row sets of parallel make up.
Bar code parameter acquiring unit 102 is calculated bar code parameter according to the pixel coordinate of the position sensing figure that feature searching unit 101 is detected, the wide computing module width of layer by the position sensing figure, module according to four jiaos order directional pattern of position sensing figure is arranged, and determines the bar code direction of the symbol figure of Aztec Code.
The pixel coordinate and the bar code parameter of the position sensing figure that version/format parameter acquiring unit 103 is detected according to feature searching unit 101, on bar code image, extract version information and format information, version information and format information are decoded to obtain version/format parameter.Because version information, the format information of code area are the settings of adjacent locations test pattern, version/format parameter acquiring unit 103 is according to the pixel coordinate of position probing figure and bar code direction, bar code module width, can search for and obtain version information, format information zone, carry out to obtain version/format parameter behind binaryzation calculating and the error-correcting decoding, for example version number, error-correction level etc.
In some cases, version information and format information zone can be by stained and cause can't reading of data on the bar code image.Version/format parameter acquiring unit 103 can be estimated form, the version of bar code according to barcode types.For example, by the permutation and combination of may carrying out of each version and error-correction level is come version and form are estimated.According to the form of estimating, version bar code image is carried out subsequent treatment.
Correction feature acquiring unit 104 is by search characteristics position on bar code image, for example comprise intersecting point, correction graph, order directional pattern, dynamic template, marking-off plate of position sensing figure etc., obtain correction feature according to feature locations, for example comprise pixel coordinate and/or the module coordinate and the gray-scale value of check point.The correction feature acquiring unit comprises numerous embodiments, is not to be defined in according to correction graph to obtain correction feature.
Fig. 7 is the synoptic diagram that obtains structure according to first kind of check point of correction feature acquiring unit in first embodiment of Aztec Code bar code decoding chip of the present utility model.As shown in Figure 7, correction feature acquiring unit 104 comprises correction graph search unit 1041 and check point acquiring unit 1042.Similar with feature searching unit 101, correction graph search unit 1041 is according to the module width ratio and the bar code parameter of correction graph, for example be module width ratio generation correction graph detection template, will proofread and correct the relative bar code image of test pattern template and carry out translation and carry out the gray scale coupling according to railway line.1042 pairs of matching results of check point acquiring unit carry out the similarity computing, to determine that correction graph detects the best match position of template and bar code image, determines the pixel coordinate and the gray-scale value of the central point of correction graph in the bar code image according to best match position.
Module information processing unit 105 is according to Release parameter determination module parameter, according to correction feature, module parameter and the pairing module coordinate of bar code parameter calculation correction feature, pixel coordinate and module coordinate calculation correction parameter according to correction feature, this correction parameter has reflected the pixel of bar code image and the mapping relations between the bar code module, calculate the pairing pixel of each module according to module parameter and correction parameter, coordinate and gray-scale value according to the pairing pixel of each module calculate each module corresponding gray scale value, constructing module figure.
Fig. 8 is the structural representation according to module information processing unit in first embodiment of Aztec Code bar code decoding chip of the present utility model.Module information processing unit 105 comprises module parameter computing unit 1051, correction feature module coordinate computing unit 1052, correction parameter computing unit 1053, module pixel point computing unit 1054 and module gray-scale value computing unit 1055.Module parameter computing unit 1051 obtains and the corresponding module number of plies of Release parameter, module figure place and module number according to Release parameter.The pixel coordinate of the correction feature that correction feature module coordinate computing unit 1052 provides according to correction feature acquiring unit 104 calculates the module coordinate that obtains correction feature in conjunction with bar code parameter and module parameter.Correction parameter computing unit 1053 calculates the acquisition correction parameter according to the pixel coordinate and the module coordinate of correction feature, and this correction parameter has reflected the pixel of bar code image and the mapping relations between the bar code module.Module pixel point computing unit 1054 calculates the pairing pixel of each module according to module parameter and correction parameter.Mapping between module and the pixel is calculated and can be accomplished in several ways, and comprises the combination of perspective transform, quadratic polynomial, cubic polynomial, triangle gridding, wavelet transformation or aforementioned calculation mode etc.Module pixel point computing unit 1054 can calculate the coordinate of corresponding pixel by module coordinate, also can calculate the coordinate of corresponding module by pixel coordinate.The utility model is not limited aforementioned calculation process and the calculating means taked thereof.Module gray-scale value computing unit 1055 calculates each module corresponding gray scale value according to the coordinate and the gray-scale value of the pairing pixel of each module, with constructing module figure.The gray-scale value of module calculates and can be accomplished in several ways, comprise the combination of statistical computation, interpolation calculation, mean value computation, weighted calculation or aforementioned calculation mode etc., the utility model is not limited aforementioned calculation process and the calculating means taked thereof.
Understand the processing procedure of module information processing unit of the present utility model for ease of those skilled in the art, the utility model a kind of computing method of giving an example describe the transfer principle of module information processing unit of the present utility model, but these computing method should not be construed as the restriction to module information processing unit of the present utility model.
Fig. 9 is the transfer principle synoptic diagram according to module information processing unit in first embodiment of Aztec Code bar code decoding chip of the present utility model.Have mapping relations between module 81 and the pixel region 82, deformed region 821 is corresponding to the mapping scope of module 81 on pixel region 82.The central point W of module 81 is W ' at pixel region 82 pairing mapping points.As shown in Figure 9, module 81 pairing pixels comprise 16 pixels of A-P, and the pixel that centers on mapping point W ' is A, B, 4 pixels of C, D.Center deformed region 822 is corresponding to the mapping scope of central area on pixel region 82 of module 81.For the matrix bar code, the module value that the central area of module is reflected is the most accurate.Preferred embodiment, can calculate gray-scale value with the corresponding module centers point W of mapping point W ' by A, B, 4 gray values of pixel points of C, D.Certainly, also can come the gray-scale value of computing module 81 by pixel region 82 pairing all pixels.That is, the gray-scale value of module 81 can calculate by the gray-scale value of the plurality of pixels point corresponding with it.
Binarization unit 106 receiver module information process units 105 calculate the module gray-scale value that obtains, and according to threshold value module map are carried out binary conversion treatment to extract bitmap.The obtain manner of threshold value comprises multiple modes such as predetermined threshold value, global threshold obtain, local threshold obtains.
Code word extraction unit 107 carries out bit stream according to the queueing discipline of Aztec Code and extracts and be converted to code word data and error correction code word.
Error-correcting decoding unit 108 is according to version number and error-correction level that version/format parameter acquiring unit 103 obtains, again code word data and error correction code word are pressed the piece arrangement, carry out error-detecting and error correction calculations, correct deletion error and unknown error, up to the maximum error correction capability of version number and error-correction level defined, assembly sequence of blocks of data again then, the data bit stream of reduction expression Aztec Code information, data bit stream according to reduction is deciphered, to obtain Aztec Code information.
Figure 10 is the structural representation according to second embodiment of Aztec Code bar code decoding chip of the present utility model.Be with the difference of first embodiment of Aztec Code bar code decoding chip of the present utility model, the structure of Aztec Code bar code decoding chip 20 has been done following improvement, it has cancelled the correction feature acquiring unit by the search that feature searching unit 201 realizes functional graphic and/or correction feature.
Similar with first embodiment of the present utility model, feature searching unit 201 is determined the pixel coordinate of feature pattern on bar code image by search characteristics figure in bar code image.Feature pattern for example is the position sensing figure.By adjusting the module width ratio and/or the module coordinate of template matches, feature searching unit 101 can also be searched for other feature patterns, for example correction graph.Feature searching unit 201 detects template according to the module width of railway line than generating correction graph, will proofread and correct the relative bar code image of test pattern template and carry out translation and carry out the gray scale coupling.1042 pairs of matching results of check point acquiring unit carry out the similarity computing, to determine that correction graph detects the best match position of template and bar code image, determines the pixel coordinate and the gray-scale value of the central point of correction graph in the bar code image according to best match position.
Feature pattern includes but not limited to the functional graphic of bar code, for example position sensing figure, correction graph, order directional pattern etc.For making those skilled in the art's easy to understand the utility model, the form of expression to the feature pattern outside the functional graphic illustrates below.Aztec Code belongs to a kind of of square matrix code, and its bar code symbol figure has the algebra matrix feature of square matrix code, and bar code symbol can be considered as being made up of the different rectangular module of several depths.By choosing in the bar code image zone, can form the behavioral characteristics template with respect to of the set of adjacent block figure than the significant figure of rectangular module preferably that is easier to distinguish.Can also form the line feature templates by being positioned at two homochromy modules (dark module or light module) of the space on the same row or column on the search bar code image in addition.
Feature searching unit 201, is carried out the relative bar code image of detection template of behavioral characteristics template or line feature templates translation and is carried out the gray scale coupling than the detection template that generates behavioral characteristics template or line feature templates according to the pairing module width of module coordinate of behavioral characteristics template or line feature templates.Matching result is carried out the similarity computing, to determine behavioral characteristics template or the detection template of line feature templates and the best match position of bar code image, determine behavioral characteristics template or the central point of line feature templates and/or four jiaos pixel coordinate and gray-scale value in the bar code image according to best match position.
The pixel coordinate of the feature pattern that module information processing unit 205 direct reception feature searching unit 201 are provided is handled as correction feature, correction feature for example is the central point of position sensing figure in the bar code image and four jiaos pixel coordinate, the pixel coordinate of the central point of correction graph, the pixel coordinate of order directional pattern, or the pixel coordinate of the central point of behavioral characteristics template or line feature templates etc.Figure 11 is the structural representation according to module information processing unit in second embodiment of Aztec Code bar code decoding chip of the present utility model.Be with the difference of first embodiment of Aztec Code bar code decoding chip of the present utility model, correction feature module coordinate computing unit 2052 connection features search units 201, and calculate the module coordinate that obtains feature pattern according to the module parameter that bar code parameter and module parameter computing unit 2051 provide.Correction parameter computing unit 2053 calculates the acquisition correction parameter according to the pixel coordinate and the module coordinate of feature pattern, and this correction parameter has reflected the pixel of bar code image and the mapping relations between the bar code module.Module pixel point computing unit 2054 calculates the pairing pixel of each module according to module parameter and correction parameter.Mapping between module and the pixel is calculated and can be accomplished in several ways, and comprises the combination of perspective transform, quadratic polynomial, cubic polynomial, triangle gridding, wavelet transformation or aforementioned calculation mode etc.Module gray-scale value computing unit 2055 calculates each module corresponding gray scale value according to the coordinate and the gray-scale value of the pairing pixel of each module, with constructing module figure.
Aztec Code coding/decoding method of the present utility model, by the search correction feature, obtain the pixel grey scale coordinate and the module coordinate of correction feature, calculate the pixel coordinate of bar code image and the mapping relations between the module coordinate, then according to this mapping relations computing module gray-scale value, the module gray-scale value is carried out binaryzation, and then the pairing bar code symbol figure of reduction Aztec Code.Compared with prior art, Aztec Code coding/decoding method of the present utility model is to know the bar code characteristic information, and the binary conversion treatment of carrying out after according to the bar code characteristic information bar code image being proofreaied and correct, therefore reduced of the influence of factors such as noise, distortion to the binaryzation process, reduced the appearance of module error, increase the recognition capability of bar code greatly, promoted the power that is decoded into of bar-code identification.
Aztec Code bar code decoding chip of the present utility model adopts the hardware pipeline structure, realize the identification of bar code image is decoded by hardware logic, because the hardware pipeline structure is suitable for bar code image is carried out pipelining and parallel processing, so processing speed is very fast.
For the processor decodes technology of prior art, Aztec Code bar code decoding chip of the present utility model adopts the devices at full hardware structure, need not processor and participate in decoding, chip structure structure for processor is more simplified, area is littler, power consumption is lower, cost is lower, it is integrated to be easy to, and realizes portable application easily.Can combine with technology of Internet of things easily, for the application of barcode technology provides more wide development space.
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. an Aztec Code bar code decoding chip is characterized in that, described Aztec Code bar code decoding chip comprises:
Feature searching unit;
Bar code parameter acquiring unit connects described feature searching unit;
Version/format parameter acquiring unit connects described feature searching unit and described bar code parameter acquiring unit;
The correction feature acquiring unit connects described bar code parameter acquiring unit;
The module information processing unit connects described bar code parameter acquiring unit, described version/format parameter acquiring unit and described correction feature acquiring unit;
Binarization unit connects described module information processing unit;
The code word extraction unit connects described binarization unit;
The error-correcting decoding unit connects described version/format parameter acquiring unit and described code word extraction unit.
CN2010202126355U 2010-06-01 2010-06-01 Aztec Code bar-code decoding chip Expired - Fee Related CN201965627U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010202126355U CN201965627U (en) 2010-06-01 2010-06-01 Aztec Code bar-code decoding chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010202126355U CN201965627U (en) 2010-06-01 2010-06-01 Aztec Code bar-code decoding chip

Publications (1)

Publication Number Publication Date
CN201965627U true CN201965627U (en) 2011-09-07

Family

ID=44528175

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010202126355U Expired - Fee Related CN201965627U (en) 2010-06-01 2010-06-01 Aztec Code bar-code decoding chip

Country Status (1)

Country Link
CN (1) CN201965627U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114997206A (en) * 2022-08-02 2022-09-02 北京紫光青藤微系统有限公司 Aztec code graph boundary positioning method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114997206A (en) * 2022-08-02 2022-09-02 北京紫光青藤微系统有限公司 Aztec code graph boundary positioning method and device
CN114997206B (en) * 2022-08-02 2022-09-30 北京紫光青藤微系统有限公司 Aztec code graph boundary positioning method and device

Similar Documents

Publication Publication Date Title
CN101882207B (en) Bar code decoding chip of Data Matrix codes and decoding method thereof
CN101908125A (en) QR code barcode decoding chip and its decoding method
CN101908128B (en) Aztec Code bar code decoding chip and decoding method thereof
CN101882210A (en) Matrix two-dimensional barcode decoding chip and its decoding method
CN101840496B (en) One-dimensional barcode decoding chip
CN104951726B (en) Method and device for QR Quick Response Code position sensings
CN101833641B (en) Bar code decoding chip
CN114005126B (en) Table reconstruction method, device, computer equipment and readable storage medium
CN102254144A (en) Robust method for extracting two-dimensional code area in image
CN105787897A (en) Processing method and device of fuzzy two-dimensional code image
Jia et al. EMBDN: An efficient multiclass barcode detection network for complicated environments
CN101882211B (en) Chinese-sensible code barcode decoding chip and decoding method thereof
CN101923632B (en) Maxi Code bar code decoding chip and decoding method thereof
CN115880682A (en) Image text recognition method, device, equipment, medium and product
CN201946008U (en) Matrix two-dimensional bar code decoding chip
CN201965627U (en) Aztec Code bar-code decoding chip
CN101833640B (en) The empty boundary pixel point computing module of bar and computing method thereof
CN201927035U (en) Bar code decoding device and binaryzation device thereof
CN201946009U (en) Decoding chip for barcode of Chinese sensible code
CN201936319U (en) Decoding chip of quick response (QR) code bar code
CN201936317U (en) Decoding chip of Data Matrix code bar code
CN201927029U (en) Maxi Code bar-code decoding chip
CN101833643B (en) Decoding chip for compound-code barcode
CN101833642B (en) MicroPDF417 bar code decoding chip
CN115034245A (en) System and method for locating and decoding unreadable data matrices

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

Granted publication date: 20110907

Termination date: 20180601

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