CN101840500B - Device based on confidence for code word decoding and method - Google Patents
Device based on confidence for code word decoding and method Download PDFInfo
- Publication number
- CN101840500B CN101840500B CN201010189278.XA CN201010189278A CN101840500B CN 101840500 B CN101840500 B CN 101840500B CN 201010189278 A CN201010189278 A CN 201010189278A CN 101840500 B CN101840500 B CN 101840500B
- Authority
- CN
- China
- Prior art keywords
- code word
- code
- bar code
- confidence
- statistics
- 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.)
- Active
Links
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
The invention discloses a device based on confidence for code word decoding and method. The decoding method comprises the following steps: a. obtaining a plurality of groups of code word combinations with the same bar code; and b. conducting confidence statistics to the groups of code word combinations to obtain a final code word combination. The confidence statistics includes the following steps: extracting some code word at some position once, a counter adding one, counting a plurality of groups of code word combinations, finally taking the code word with the maximum statistics as the final code word. By adopting the method, the invention has the advantages that the code words extracted during decoding are more accurate and the accuracy of the decoding is improved.
Description
[technical field]
The present invention relates to a kind of decoding device and method, particularly a kind of codeword decoding device and method based on degree of confidence.
[background technology]
Barcode technology is that of growing up on computer technology and Information Technology Foundation integrates the emerging technology of coding, printing, identification, data acquisition and processing (DAP).Barcode technology is due to its fast recognition, accurate, reliable and low cost and other advantages, be widely used in the fields such as business, taking care of books, storage, post and telecommunications, traffic and Industry Control, and certainly will in " Internet of Things " application of rising gradually, bring into play great effect.
The bar code being widely used at present comprises bar code and two-dimensional bar code.Bar code claims again linear bar code to be made up of multiple " 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, just in a direction (being generally horizontal direction) expressing information, is not expressed any information in the vertical direction, and therefore information capacity and space availability ratio are lower, and is None-identified after bar code is damaged.
Two-dimensional bar code is made up of the chequered with black and white particular geometric figure distributing on two-dimensional directional according to certain rules, its can be on two-dimensional directional expressing information, therefore 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.Stack two-dimensional bar code is that representational stack two-dimensional bar code comprises PDF417, Code 49, Code 16K etc. by stacking the forming of bar code of multirow cutting back.Matrix two-dimensional barcode is made up of black, the white module being distributed in by pre-defined rule in matrix, and representational matrix two-dimensional barcode comprises Code one, Aztec, Data Matrix, OR code etc.
In the process that above introduced one dimension or two-dimensional bar code are decoded, normally utilize photographic equipment to take bar code, to obtain bar code image, then bar code image is gone to the processing such as dry, gray scale extraction, binaryzation, code word extraction, decoding.But, in above processing procedure, there will be unavoidably reading error, as bar code insufficient light or the stained image fault that causes when taking, easily cause the situation of refusing to read to occur, therefore can affect decoding quality.
Therefore, the above deficiency existing for prior art, needs badly a kind of coding/decoding method and device is provided, and makes to ensure the accuracy of code word in decode procedure.
[summary of the invention]
In order to overcome the above problems, the invention provides a kind of decoding device and method that can improve code word and obtain the codeword decoding based on degree of confidence of accuracy.
The invention discloses a kind of codeword decoding method based on degree of confidence, comprise the following steps: a. obtains many groups code word combination of same bar code; B. to many group codes word, confidence statistics is carried out in combination, obtains one group of final code word combination.Confidence statistics is that certain position extracts certain code word once, and counter adds one, and the many groups of statistics code word combination, finally using the maximum code word of statistical number as final code word.
According to one preferred embodiment of the present invention, in step a, by the image of bar code is carried out to Multiple-Scan, then the result of Multiple-Scan is carried out to code word extraction, obtain many groups code word combination of bar code.
According to one preferred embodiment of the present invention, in step a, obtain multiple scanning results by the multiple image of bar code is scanned, then multiple scanning results are carried out to code word extraction, obtain many groups code word combination of bar code.
According to one preferred embodiment of the present invention, in step b, a threshold value is set in counter, all there is the statistical number of code word to exceed or reach described threshold value when counters count goes out each position in all positions, stop confidence statistics, using the maximum code word of statistical number as final code word.
The present invention further discloses a kind of codeword decoding device based on degree of confidence, comprising: for extracting the code word extraction module of many groups code word combination of same bar code; And for many group codes word is combined and carries out confidence statistics, obtain the processing module of one group of final code word combination.Confidence statistics is that certain position extracts certain code word once, and counter adds one, and the many groups of statistics code word combination, finally using the maximum code word of statistical number as final code word.
According to one preferred embodiment of the present invention, decoding device further comprises scan module, for the image of bar code is carried out to Multiple-Scan, then the result of Multiple-Scan is carried out to code word extraction, obtains many groups code word combination of bar code.
According to one preferred embodiment of the present invention, decoding device further comprises scan module, obtains multiple scanning results for the multiple image of bar code is scanned, and then multiple scanning results is carried out to code word extraction, obtains many groups code word combination of bar code.
According to one preferred embodiment of the present invention, a threshold value is set in counter, all has the statistical number of code word to exceed or reach described threshold value when counters count goes out each position in all positions, stop confidence statistics, using the maximum code word of statistical number as final code word.
Feature of the present invention is, this decoding device and method can make to extract in decode procedure code word more accurate, improve the accuracy of decoding.
[brief description of the drawings]
Fig. 1 is the process flow diagram of the codeword decoding method based on degree of confidence in the present invention.
Fig. 2 is the scan method schematic diagram that in the present invention, a kind of bar code is decoded.
Fig. 3 is many groups code word combination of the same bar code of acquisition after the bar code scanning in Fig. 2.
Fig. 4 is the schematic block diagram of the codeword decoding device based on degree of confidence in the present invention.
[embodiment]
Below in conjunction with drawings and Examples, the present invention is described in detail.
As shown in Figure 1, the codeword decoding method based on degree of confidence of the present invention, in step 01, is obtained the Multiple-Scan result of same bar code.Obtain the Multiple-Scan result of same bar code, can carry out Multiple-Scan to the image of bar code, can carry out repeatedly parallel sweep along the diverse location of bar code direction to the image of bar code, also can scan the multiple image of same bar code.Wherein, the image of bar code being carried out to repeatedly parallel sweep along the diverse location of bar code direction, is to be generally easier to realize at the decoding time ratio for bar code image.
In step 02, the Multiple-Scan result obtaining in step 01 is carried out to code word extraction, obtain many groups code word combination of bar code.
In step 03, many group codes word combination of the bar code of obtaining in step 02 is carried out to confidence statistics, obtain one group of final code word combination.
Enumerate the preferred embodiment of the codeword decoding method of a bar code based on degree of confidence below.As shown in Figure 2, this bar code has six five skies.First, this bar code image is scanned.The direction scanning as shown in virtual sweep trace a-i is along bar code direction, and carries out repeatedly parallel sweep at diverse location.As shown in Figure 3, after scanning, the scanning result of sweep trace a-i is carried out to code word extraction, obtain many group code word combination.Code word to sweep trace a-i is added up, the code word of bar 1: 4x6, and 3x1,5x1,6x1, the code word that obtains shaping 1 is 4.Empty 1 code word: 3x6,2x3, the code word that obtains clearancen 1 is 3.The rest may be inferred, carries out after confidence statistics, can find that the code word that statistical number is maximum is: 43233122363, think that this code word is final code word.
The present invention further provides a kind of codeword decoding device based on degree of confidence.As shown in Figure 4, this decoding device comprises the scan module 12 that bar code image 11 is scanned; Be used for the code word extraction module 13 of many groups code word combination of extracting same bar code; And for many group codes word is combined and carries out confidence statistics, obtain the processing module 14 of one group of final code word combination.In scan module 12, can carry out Multiple-Scan to the image of same bar code, can carry out repeatedly parallel sweep along the diverse location of bar code direction to the image of bar code, also can scan the multiple image of same bar code.Wherein, the image of bar code being carried out to repeatedly parallel sweep along the diverse location of bar code direction, is to be generally easier to realize at the decoding time ratio for bar code image.
In above-mentioned decoding device and method, confidence statistics be by contrast same position code word occurrence number number realize.Specifically, confidence statistics, certain position extracts certain code word once, and counter adds one, and the many groups of statistics code word combination, finally using the maximum code word of statistical number as final code word.Preferred embodiment, in order to accelerate decoding speed, a threshold value is set in counting device, all there is the statistical number of code word to exceed or reach described threshold value when counters count goes out each position in all positions, stop confidence statistics, using the maximum code word of statistical number as final code word.Taking Fig. 2 and Fig. 3 as example, it is 4 that threshold value can be set, and just can draw final code word 43233122363 at sweep trace f place, and has removed the statistics of other three groups of data from.Certainly, also can make image scanning, code word extract with confidence statistics carries out simultaneously, after being run-down, just this scanning result is carried out to code word extraction, then this group code word is carried out to confidence statistics, all there is the statistical number of code word to exceed or reach described threshold value until counters count goes out each position in all positions, just stopping scanning, can improve like this processing speed to bar code image.
The preferred embodiment of the codeword decoding method of the above-mentioned bar code of enumerating based on degree of confidence, is only to the present invention has been carried out to exemplary description, makes those skilled in the art be easier to understand the present invention.Decoding device or codeword decoding method based on degree of confidence of the present invention is also applicable to two-dimensional bar code, comprise stack two-dimensional bar code and matrix two-dimensional barcode, for example, in the decode procedure of PDF417 bar code, can adopt decoding device or the codeword decoding method based on degree of confidence of the present invention, come same code word region, the symbol fragment being formed by multiple code words, repeatedly scan, obtain code word combination, then carry out confidence statistics, obtain code word more accurately, decode more accurately.
And for matrix form bar code, can same bar code image repeatedly be scanned or the multiple image of same bar code is scanned, obtain code word combination, then carry out confidence statistics, obtain code word more accurately, decode more accurately.
And, in bar code embodiment, adopt decoding device and the codeword decoding method based on degree of confidence of the present invention to be not limited only to the above embodiments, also completely can same bar code image be carried out Multiple-Scan or the multiple image of same bar code is scanned, obtain code word combination, then carry out confidence statistics, obtain code word more accurately, decode more accurately.
By the way, make to extract in decode procedure code word more accurate, improve the accuracy of decoding.
In the above-described embodiments, only the present invention has been carried out to exemplary description, but those skilled in the art are reading after present patent application and can carry out various amendments to the present invention without departing from the spirit and scope of the present invention.
Claims (8)
1. the codeword decoding method based on degree of confidence, is characterized in that: said method comprising the steps of:
A. obtain many groups code word combination of same bar code;
B. described many group codes word combination is carried out to confidence statistics, obtain one group of final code word combination; Described confidence statistics is that certain position extracts certain code word once, and counter adds one, and the many groups of statistics code word combination, finally using the maximum code word of statistical number as final code word.
2. coding/decoding method as claimed in claim 1, is characterized in that: in step a, by the image of described bar code is carried out to Multiple-Scan, then the result of described Multiple-Scan is carried out to code word extraction, obtain many groups code word combination of described bar code.
3. coding/decoding method as claimed in claim 1, it is characterized in that: in step a, obtain multiple scanning results by the multiple image of described bar code is scanned, then described multiple scanning results are carried out to code word extraction, obtain many groups code word combination of described bar code.
4. coding/decoding method as claimed in claim 1, it is characterized in that: in step b, one threshold value is set in described counter, all there is the statistical number of code word to exceed or reach described threshold value when described counters count goes out each position in all positions, stop confidence statistics, using the maximum code word of statistical number as final code word.
5. the codeword decoding device based on degree of confidence, is characterized in that: described decoding device comprises:
Code word extraction module, for extracting many groups code word combination of same bar code;
Processing module, for described many group codes word combination is carried out to confidence statistics, obtains one group of final code word combination; Described confidence statistics is that certain position extracts certain code word once, and counter adds one, and the many groups of statistics code word combination, finally using the maximum code word of statistical number as final code word.
6. decoding device as claimed in claim 5, it is characterized in that: described decoding device further comprises scan module, for the image of described bar code is carried out to Multiple-Scan, then the result of described Multiple-Scan is carried out to code word extraction, obtain many groups code word combination of described bar code.
7. decoding device as claimed in claim 5, it is characterized in that: described decoding device further comprises scan module, for being scanned, the multiple image of described bar code obtains multiple scanning results, then described multiple scanning results are carried out to code word extraction, obtain many groups code word combination of described bar code.
8. decoding device as claimed in claim 5, it is characterized in that: a threshold value is set in described counter, all there is the statistical number of code word to exceed or reach described threshold value when described counters count goes out each position in all positions, stop confidence statistics, using the maximum code word of statistical number as final code word.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010189278.XA CN101840500B (en) | 2010-06-01 | 2010-06-01 | Device based on confidence for code word decoding and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010189278.XA CN101840500B (en) | 2010-06-01 | 2010-06-01 | Device based on confidence for code word decoding and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101840500A CN101840500A (en) | 2010-09-22 |
CN101840500B true CN101840500B (en) | 2014-11-19 |
Family
ID=42743863
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010189278.XA Active CN101840500B (en) | 2010-06-01 | 2010-06-01 | Device based on confidence for code word decoding and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101840500B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109426756B (en) * | 2017-09-04 | 2022-02-01 | 杭州海康威视数字技术股份有限公司 | Error checking method and device for bar code identification result |
CN108460311A (en) * | 2018-02-07 | 2018-08-28 | 苏州佳世达光电有限公司 | Bar code decoding method and bar code reader |
CN114298078B (en) * | 2021-12-29 | 2023-10-24 | 杭州晟元数据安全技术股份有限公司 | Decoding method of stained one-dimensional bar code |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1520576A (en) * | 2001-06-26 | 2004-08-11 | ��ŵ�йɷݹ�˾ | Method and device for data decoding |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03154985A (en) * | 1989-11-13 | 1991-07-02 | Nippon Telegr & Teleph Corp <Ntt> | Maximum likelihood word recognizing system |
-
2010
- 2010-06-01 CN CN201010189278.XA patent/CN101840500B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1520576A (en) * | 2001-06-26 | 2004-08-11 | ��ŵ�йɷݹ�˾ | Method and device for data decoding |
Non-Patent Citations (2)
Title |
---|
JP平3-154985A 1991.07.02 * |
赵乘麟等.最大概率匹配的矢量量化编码算法.《计算机工程与应用》.2000,第36卷(第6期),摘要,第74页第1段. * |
Also Published As
Publication number | Publication date |
---|---|
CN101840500A (en) | 2010-09-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103400174B (en) | The coded method of a kind of Quick Response Code, coding/decoding method and system | |
CN102129585B (en) | Method and system for transmitting information, device for displaying bar code and device for reading bar code | |
EP2309426B1 (en) | Two-dimensional bar code encoding method, decoding method and device, terminal | |
CN101908125B (en) | QR (Quick Response) bar code decoding chip and decoding method thereof | |
CN102236810A (en) | QR (Quick Response) code with hidden codes, and formation and identification methods of hidden codes | |
CN101882205A (en) | Bar code image scanning method | |
CN101840500B (en) | Device based on confidence for code word decoding and method | |
EP2482231A1 (en) | Method for encoding and decoding data on a matrix code symbol | |
CN201927028U (en) | Code word decoding device based on confidence | |
CN107944525A (en) | A kind of method and system of the expansion Quick Response Code capacity based on data segmentation | |
CN101840499A (en) | Bar code decoding method and binarization method thereof | |
CN101882202B (en) | Sign character extracting module and method | |
CN110991589A (en) | Two-dimensional code and encryption method thereof | |
CN101882201B (en) | Barcode decoding chip and method | |
CN103902951B (en) | Electronic tag and the converting system and method for Logistic Unit bar code | |
CN101833645B (en) | Bar code decoding method based on code word combination | |
CN101882204B (en) | Matrix type two-dimensional bar code searching method | |
CN101908133B (en) | Method and device for decoding bar code | |
CN104217189A (en) | Self-learning identification method of barcode used for test strip | |
CN201927035U (en) | Bar code decoding device and binaryzation device thereof | |
CN101882212B (en) | Method for acquiring barcode image | |
CN101937517B (en) | Network-based commodity anti-counterfeiting two-dimensional code redundancy design method | |
CN201927040U (en) | Bar code decoding device | |
CN201927045U (en) | Barcode decoding chip | |
CN102087698A (en) | Method and system for transmitting information and device for displaying and reading bar code |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 350015 No. 1 Rujiangxi Road, Mawei District, Fuzhou City, Fujian Province Patentee after: New Continent Digital Technology Co., Ltd. Address before: 350015 New Continental Science Park No. 1 Rujiangxi Road, Mawei District, Fuzhou City, Fujian Province Patentee before: Fujian Newland Computer Co., Ltd. |