CN201946007U - Symbol and character extraction module - Google Patents
Symbol and character extraction module Download PDFInfo
- Publication number
- CN201946007U CN201946007U CN2010202126586U CN201020212658U CN201946007U CN 201946007 U CN201946007 U CN 201946007U CN 2010202126586 U CN2010202126586 U CN 2010202126586U CN 201020212658 U CN201020212658 U CN 201020212658U CN 201946007 U CN201946007 U CN 201946007U
- Authority
- CN
- China
- Prior art keywords
- bar
- empty
- border
- width
- sign character
- 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
Links
Images
Landscapes
- Character Discrimination (AREA)
Abstract
The utility model provides a symbol and character extraction module, which comprises a bar space boundary memory, a boundary counter which is connected with the bar space boundary memory, a width computing unit which is connected the bar space boundary memory, and a control logic unit which is connected with the boundary counter and the width computing unit. By using the symbol and character extraction module and an extraction method thereof, the work of eliminating interference boundaries can be completed at the same time when a bar space boundary is obtained, the decoding speed of bar codes is accelerated and the decoding time is shortened.
Description
[technical field]
The utility model relates to the Bar Code field, especially, relates to a kind of sign character extraction module that is applied in the bar code identifying device.
[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 relies on bar and empty different in width and position to express.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.Two-dimensional bar code can be divided into determinant two-dimensional bar code and matrix two-dimensional barcode.The determinant two-dimensional bar code is that the bar code by the multirow cutting back piles up and forms, and representational determinant two-dimensional bar code comprises PDF417, Code 49, Code 16K etc.Determinant two-dimensional barcode information method for expressing and bar code are similar, also are to rely on bar and empty different in width and position to express.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 sign indicating number, Aztec sign indicating number, Chinese letter co etc.
In the process that bar code image is decoded, run into the situation that has the interference border on the bar code image through regular meeting, Fig. 1 is the synoptic diagram that has the bar code image that disturbs the border in the prior art.As shown in Figure 1, may there be the different types of interference border on the bar code image, for example the interference border among Fig. 1 81,82,83.This interference border may be caused and be misread, and reduces to be decoded into power.
At problems of the prior art, needing badly provides a kind of sign character extraction module that is applied in the bar code identifying device, makes in the process that bar code image is decoded, and can exclude this type of and disturb the border, and minimizing is misread, and improves to be decoded into power.
[summary of the invention]
The bar code image that exists at prior art has the interference border, causes easily to misread and reduce the problem that is decoded into power, and the utility model provides a kind of sign character extraction module, the correct empty information of the bar of identification bar code, and raising is decoded into power.
The utility model provides a kind of sign character extraction module, comprising: the empty border of bar storer; The border counter is connected with described empty border storer; The width computing unit is connected with described empty border storer; The steering logic unit is connected with the width computing unit with described border counter.
Sign character extraction module of the present utility model is by adopting hardware decoded stream waterline, and to compare decoding speed faster with existing software decode.Sign character extraction module of the present utility model can be finished when obtaining the empty border of bar and get rid of the work of disturbing the border, get rid of the work of disturbing the border when finishing also to have finished synchronously when calculate on the empty border of bar, the decoding speed that this has accelerated bar code has greatly shortened decode time.
[description of drawings]
Fig. 1 is the synoptic diagram that has the bar code image that disturbs the border in the prior art.
Fig. 2 A is the desirable step border synoptic diagram of bar sky.
Fig. 2 B is the synoptic diagram of the pairing point spread function in desirable step border of bar sky.
Fig. 3 is the principle of work synoptic diagram of sign character extraction module of the present utility model and extracting method thereof.
Fig. 4 is the process flow diagram according to sign character extracting method of the present utility model.
Fig. 5 is the structural representation of sign character extraction module 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.
For making those skilled in the art be easier to understand the utility model, below at first the border gray scale drop of bar code-bar sky is carried out principle analysis, Fig. 2 A is the desirable step border synoptic diagram of bar sky.Fig. 2 B is the synoptic diagram of the pairing point spread function in desirable step border of bar sky.Shown in Fig. 2 A, the ideal boundary of the bar sky of bar code symbol can be with the desirable step boundary representation of gray-scale value from 0-255.But through behind the optical system imaging, the ideal boundary of bar sky can be expanded.Shown in Fig. 2 B, the pairing point spread function in desirable step border is represented with Gaussian function usually.By Fig. 2 A and Fig. 2 B as can be known, the gray scale drop width that can represent the empty border of bar with Gaussian function.Smear line when the interference border in the bar code image generally includes gridline, the bar code printing of display device itself, scraping line, hair, stain etc.These physical sizes that disturb borders are substantially all less than the physical width of the empty module of minimum bar of bar code symbol.Through above-mentioned analysis to the empty border of bar code image discal patch, under the situation of the physical size that disturbs the border less than the physical width of the empty module of minimum bar of bar code symbol, the point spread function corresponding gray scale drop width on interference border can be less than the point spread function corresponding gray scale drop width of the empty module of minimum bar in the bar code during bar code imaging.
Below the principle of work of sign character extraction module of the present utility model and extracting method thereof is described in detail, Fig. 3 is the principle of work synoptic diagram of sign character extraction module of the present utility model and extracting method thereof.As shown in Figure 3, the gray scale drop width means of the empty module of bar is d
1, the gray scale drop width means of scraping line is d
2, the gray scale drop width means of hair is d
3, the gray scale drop width means of stain is d
4D wherein
1Width obviously greater than d
2, d
3And d
4
National standard according to bar code, different barcode types is represented by different code systems, the bar code of different code systems has different sign characters and represents rule, empty quantity of the bar of the sign character of the bar code of every kind of code system and module number are determined, and the empty quantity of bar has determined the quantity on the empty border of bar, module number to determine the empty width of bar.With one sixteen bar codes is example, GB GB-T 18347-2001 has stipulated that each sign character of one sixteen bar codes is made up of 6 unit, comprise 3 bars, 3 skies, each bar (or empty) width is 1,2,3 or 4 module, and each sign character always has 11 modules.Promptly in one sixteen bar codes, each sign character comprises the empty border of 6 bars, and the empty width of the bar of each sign character is 11 module widths.
Fig. 4 is the process flow diagram according to sign character extracting method of the present utility model.As shown in Figure 4, sign character extracting method of the present utility model comprises the steps:
In step 951, obtain the bar code code system, according to pairing the empty number of boundary of sign character and the empty width of bar of bar code code system acquisition with this code system.
In step 952, bar code image is discerned, obtain the empty border of bar of the bar code symbol in the bar code image.
In step 953, the empty boundary number of the bar of the bar code symbol that obtains is added up.
In step 954, judge whether the empty boundary number of bar of the bar code symbol that has obtained satisfies pairing empty number of boundary of sign character of this code system.If the empty boundary number of bar does not reach pairing empty number of boundary of sign character of this code system, then mean and can't decode the combination on this empty border, therefore be back to step 952, continue to obtain the empty border of bar of new bar code symbol.If the empty boundary number of bar has reached pairing empty number of boundary of sign character of this code system, then enter next step.
In step 955, when the empty boundary number of bar has reached pairing empty number of boundary of sign character of this code system, the empty width of bar of the combination on the empty border of bar that obtained is calculated the empty width value of the bar of the combination on the empty border of the bar that has been obtained.Disturb the border owing to may exist in the combination on the empty border of the bar that has obtained,, comprised that therefore the empty width of bar of the combination on the empty border of bar of disturbing the border can be less than the empty width of normal bar owing to disturb the width of the physical size on border less than the empty module of minimum bar.
In step 956, compare according to the empty width value of bar of the combination on the empty border of the bar that obtained and pairing empty width of sign character of this code system.If less than pairing empty width of the sign character of this code system, this means to exist in the combination on the empty border of bar that has obtained, the empty width value of the bar of the combination on the empty border of the bar that has obtained disturbs the border.
In step 957, owing to disturb the gray scale drop width of the gray scale drop width on border less than the empty module of bar, therefore get rid of the empty border of bar of gray scale drop width minimum, just can exclude one and disturb the border, at this moment need to return step 952, continue to obtain the empty border of bar of new bar code symbol.
In step 956, if the empty width value of the bar of the combination on the empty border of the bar that has obtained with pairing empty width of the sign character of this code system about equally, satisfied Rule of judgment, meaned that then the combination on the empty border of bar that has obtained has met decode condition.
In step 958,, extract sign character according to each empty width of combination calculation on the empty border of the bar that meets decode condition.
From the above mentioned, above-mentioned sign character extracting method of the present utility model can be got rid of the processing of disturbing the border when obtaining the empty border of bar, need not by the time the empty border of the bar of bar code symbol all to be calculated to get rid of the interference border again after finishing.Because the time of calculating the empty border of bar is greater than getting rid of the time of disturbing the border, therefore sign character extracting method of the present utility model can be finished when obtaining the empty border of bar and get rid of the work of disturbing the border, get rid of the work of disturbing the border when finishing also to have finished synchronously when calculate on the empty border of bar, this sign character extracting method has been accelerated the decoding speed of bar code greatly, has shortened decode time.
Fig. 5 is the structural representation of sign character extraction module of the present utility model.As shown in Figure 5, sign character extraction module 151 1 ends connect code system identification module 160 and bar space margin processing module 140, other end connection strap null value computing module 152.The code system of 160 pairs of bar code symbols of code system identification module is discerned to obtain the sign character parameter relevant with code system, and the sign character parameter comprises empty number of boundary of the bar of sign character and the empty width of bar.The empty border of the bar of 140 pairs of bar codes of bar space margin processing module is discerned, to obtain the empty border of bar.
Sign character extraction module 151 comprises steering logic unit 1511, the empty border of bar storer 1512, border counter 1513, width computing unit 1514.The empty data boundary of bar of the empty border of bar storer 1512 memory stick space margin processing modules 140 inputs, this empty data boundary comprises the coordinate and the gray scale drop width on the empty border of bar.The quantity on the empty border of bar of the empty border of 1513 pairs of bars of border counter storer 1512 storages is added up.The overall width of the combination on the empty border of bar of the empty border of 1514 pairs of bars of width computing unit storer 1512 inputs calculates the width value with the combination on the empty border of bar that obtains to have stored.
Steering logic unit 1511 obtains the sign character parameter that code system identification module 160 provides, and carry out condition judgment according to the quantity on the empty border of bar of border counter 1513 statistics and the width value on the empty border of bar that width computing unit 1514 calculates, the duty of the empty border of bar storer 1512 is controlled the interference border in the empty border of bar of the empty border of eliminating bar storer 1512 storages.
The condition judgment flow process of steering logic unit 1511 as Fig. 4 and above-mentioned steps 954 as described in the step 958.When the empty boundary number of the bar of border counter 1513 statistics did not reach the empty number of boundary of bar in the sign character parameter, the empty border of steering logic unit 1511 control strips storer 1512 continued to obtain the empty border of bar that bar space margin processing module 140 provides.When the empty boundary number of the bar of border counter 1513 statistics reaches the empty number of boundary of bar in the sign character parameter, compare with the empty width of the bar in the sign character parameter according to the empty width value of bar that width computing unit 1514 provides in steering logic unit 1511, when the bar sky width in the empty width value in-less-than symbol of the bar character properties that width computing unit 1514 provides, the empty border of steering logic unit 1511 control strips storer 1512 is got rid of the empty border of bar of the gray scale drop width minimum of being stored, and continues to obtain the empty border of bar that bar space margin processing module 140 provides.When the empty width value of bar that width computing unit 1514 provides reaches the empty width of bar in the sign character parameter, the empty border of steering logic unit 1511 control strips storer 1512 with the array output on the empty border of bar of being stored to bar null value computing module 152.Bar null value computing module 152 obtains the coordinate and the gray scale drop width on each empty border in the combination on the empty border of bar, by relatively calculating the empty width value of the bar that is made of each empty border, and then obtains sign character.
Sign character extraction module of the present utility model is by adopting hardware decoded stream waterline shown in Figure 5, and to compare decoding speed faster with existing software decode.Sign character extraction module of the present utility model can be finished when obtaining the empty border of bar and get rid of the work of disturbing the border, get rid of the work of disturbing the border when finishing also to have finished synchronously when calculate on the empty border of bar, this sign character extraction module has been accelerated the decoding speed of bar code greatly, has shortened decode time.
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. a sign character extraction module is characterized in that, comprising:
The empty border of bar storer;
The border counter is connected with described empty border storer;
The width computing unit is connected with described empty border storer;
The steering logic unit is connected with the width computing unit with described border counter.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010202126586U CN201946007U (en) | 2010-06-01 | 2010-06-01 | Symbol and character extraction module |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010202126586U CN201946007U (en) | 2010-06-01 | 2010-06-01 | Symbol and character extraction module |
Publications (1)
Publication Number | Publication Date |
---|---|
CN201946007U true CN201946007U (en) | 2011-08-24 |
Family
ID=44473344
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010202126586U Expired - Fee Related CN201946007U (en) | 2010-06-01 | 2010-06-01 | Symbol and character extraction module |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN201946007U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111801675A (en) * | 2018-08-14 | 2020-10-20 | 深圳配天智能技术研究院有限公司 | One-dimensional code identification method, terminal, device and device with storage function |
-
2010
- 2010-06-01 CN CN2010202126586U patent/CN201946007U/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111801675A (en) * | 2018-08-14 | 2020-10-20 | 深圳配天智能技术研究院有限公司 | One-dimensional code identification method, terminal, device and device with storage function |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101882202B (en) | Sign character extracting module and method | |
CN106874909A (en) | A kind of recognition methods of image character and its device | |
CN101587556B (en) | Two-dimension bar-code recognition method | |
CN101833641B (en) | Bar code decoding chip | |
Gaur et al. | Recognition of 2D barcode images using edge detection and morphological operation | |
CN101908122B (en) | Bar space margin processing module, bar code identifying device and method thereof | |
CN103530669A (en) | Data information two-dimensional code encoding method | |
CN111311497B (en) | Bar code image angle correction method and device | |
CN113673655B (en) | Method and device for determining decoding direction of two-dimensional code, electronic equipment and medium | |
CN107220647A (en) | Crop location of the core method and system under a kind of blade crossing condition | |
CN112926379A (en) | Method and device for constructing face recognition model | |
CN101833644A (en) | Correction graph searching method based on dynamic template | |
CN113420580B (en) | Method and device for positioning auxiliary locator of two-dimensional code, two-dimensional code scanning equipment and storage medium | |
CN201946007U (en) | Symbol and character extraction module | |
CN101840499A (en) | Bar code decoding method and binarization method thereof | |
CN114399796A (en) | Fingerprint identification method, device, terminal and storage medium | |
CN110135382B (en) | Human body detection method and device | |
CN101882201A (en) | Barcode decoding chip and method | |
CN101840500B (en) | Device based on confidence for code word decoding and method | |
CN101908133B (en) | Method and device for decoding bar code | |
CN201927035U (en) | Bar code decoding device and binaryzation device thereof | |
CN109284707B (en) | Moving target detection method and device | |
CN101882204A (en) | Matrix type two-dimensional bar code searching method | |
CN201927028U (en) | Code word decoding device based on confidence | |
CN101882212A (en) | Method for acquiring barcode image |
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: 20110824 Termination date: 20170601 |
|
CF01 | Termination of patent right due to non-payment of annual fee |