CN101882205A - Bar code image scanning method - Google Patents

Bar code image scanning method Download PDF

Info

Publication number
CN101882205A
CN101882205A CN2010101889378A CN201010188937A CN101882205A CN 101882205 A CN101882205 A CN 101882205A CN 2010101889378 A CN2010101889378 A CN 2010101889378A CN 201010188937 A CN201010188937 A CN 201010188937A CN 101882205 A CN101882205 A CN 101882205A
Authority
CN
China
Prior art keywords
bar code
code image
stained
bar
zone
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2010101889378A
Other languages
Chinese (zh)
Other versions
CN101882205B (en
Inventor
邱有森
陈文传
孙亚力
林志龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Newland Digital Technology Co ltd
Original Assignee
Fujian Newland Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Newland Computer Co Ltd filed Critical Fujian Newland Computer Co Ltd
Priority to CN2010101889378A priority Critical patent/CN101882205B/en
Publication of CN101882205A publication Critical patent/CN101882205A/en
Application granted granted Critical
Publication of CN101882205B publication Critical patent/CN101882205B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Printers Characterized By Their Purpose (AREA)

Abstract

The invention discloses a bar code image scanning method. The bar code image scanning method comprises the following steps of: scanning a one-dimensional bar code image by using a plurality of parallel scanning lines, and determining bar empty boundary points on the scanning lines; matching the bar empty boundary points on the adjacent scanning lines to distinguish contamination areas and contamination-free areas of the one-dimensional bar code image; and combining a plurality of contamination-free areas to acquire scanning information of the one-dimensional bar code image. The method of the invention can effectively deal with the condition of contamination of the one-dimensional bar code image in the actual condition, and improves the decoding rate.

Description

Bar code image scanning method
[technical field]
The present invention relates to a kind of acquisition methods of bar code image, particularly a kind of bar code image scanning method that can fouling resistance.
[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.
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 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 Code one, Aztec, Data Matrix, OR sign indicating number etc.
With regard to bar code, in the prior art,, generally be the information of obtaining this bar code image by all bar skies that scan this bar code image along sweep trace in order to obtain the bar code information of bar code image.Yet, in actual conditions, because the bar code image tends to occur stained situation, for example, some parts of bar code image are hidden or lack by foreign matter, at this moment, any sweep trace all can not intactly scan all bar skies of this bar code image, therefore can't decode to this bar code image.
[summary of the invention]
Occur stained and situation that can't decode in order to solve bar code image in the prior art, the invention provides a kind of bar code image scanning method that can fouling resistance.
The present invention solves the problems of the technologies described above the technical scheme of being taked and provides a kind of bar code image scanning method, wherein, this bar code image scanning method may further comprise the steps: a. utilizes a plurality of parallel scan lines that the bar code image is scanned, and determines the empty frontier point of bar on each sweep trace; B. the empty frontier point of the bar on the adjacent scanning lines is mated, with the stained zone of distinguishing this bar code image and there is not stained zone; C. make up a plurality of these no stained zones, to obtain the scanning information of this bar code image.
According to one preferred embodiment of the present invention, in above-mentioned steps b, successively the empty frontier point of the corresponding bar on this adjacent scanning lines is carried out the parallel lines characteristic matching, mark meets the starting point and the terminating point of parallel lines feature, and determines not have stained zone by the bar code zone of this starting point and the definition of this terminating point for this.
According to one preferred embodiment of the present invention, in above-mentioned steps b, successively the coordinate of the empty frontier point of corresponding bar on scan-line direction on this adjacent scanning lines carried out the coordinate coupling, mark coordinate difference is less than the starting point and the terminating point of predetermined value, and definite bar code zone that is defined by this starting point and this terminating point does not have stained zone for this.
The preferred embodiment one of according to the present invention in above-mentioned steps b, mates the empty frontier point of the corresponding bar on three sweep traces.
According to one preferred embodiment of the present invention, in above-mentioned steps c, judge whether these a plurality of no stained zones exist public sky, if there are this public these a plurality of no stained zones of empty just combination.
According to one preferred embodiment of the present invention, in above-mentioned steps c, judge whether to exist this public sky according to the empty width of bar of the adjacent end portion in these a plurality of no stained zones or the coordinate of this empty frontier point.
According to one preferred embodiment of the present invention, in above-mentioned steps c, if there are at least three empty width of identical bar in the adjacent end portion in these a plurality of no stained zones or exist at least three these empty frontier points identical along the coordinate on the scan-line direction, then determine to exist this public sky.
According to one preferred embodiment of the present invention, in above-mentioned steps c, make up these a plurality of no stained zones and comprise the empty width of the bar in these a plurality of no stained zones is made up.
According to one preferred embodiment of the present invention, in above-mentioned steps c, make up these a plurality of no stained zones and comprise this bar code border point in these a plurality of no stained zones is made up along the coordinate on the scan-line direction.
Compared with prior art, method provided by the present invention can successfully manage the stained situation of bar code image appearance in the actual conditions, improves decoding rate.
[description of drawings]
Can with reference to the accompanying drawings and by example the present invention be described more specifically, in the accompanying drawings:
Fig. 1 is the schematic flow sheet of bar code image scanning method according to an embodiment of the invention;
Fig. 2 is the synoptic diagram of bar code image scanning method according to an embodiment of the invention; And
Fig. 3 is the synoptic diagram of bar code image scanning method according to another embodiment of the present invention.
[embodiment]
The present invention is described in detail below in conjunction with drawings and Examples.
The invention provides a kind of bar code image scanning method, can successfully manage the stained situation of bar code image appearance in the actual conditions, improve decoding rate.
See also Fig. 1 and Fig. 2, the invention provides a kind of bar code image scanning method that can fouling resistance.Particularly, see also Fig. 2, in bar code image shown in Figure 2, have on this bar code image up and down two stained, hide the part bar sky of this bar code image, caused to obtain by a sweep trace the empty information of all bars of this bar code image.
In bar code image scanning method of the present invention, at first, utilize a plurality of parallel lines to scan.In the present embodiment, be one group with 3 sweep traces, utilizing up and down, two groups of sweep trace along continuous straight runs scan the bar code image.In scanning process, can determine the empty frontier point of bar on each sweep trace.
Then, by the empty frontier point of the bar on the adjacent scanning lines is mated, distinguish the stained zone of this bar code image and do not have stained zone.
In one embodiment, successively the empty frontier point of the corresponding bar on the adjacent scanning lines is carried out the parallel lines characteristic matching.Specifically, vertically, determine from top to bottom or from top to bottom whether meet the parallel lines feature between two straight lines that the empty frontier point of corresponding bar on adjacent two sweep traces in these 3 sweep traces constituted.If meet the parallel lines feature, think that then the empty frontier point of corresponding bar represent the empty border of bar of bar code, if do not meet the parallel lines feature, think that then corresponding bar sky frontier point represents stained border, promptly this zone exists stained.In the present embodiment, starting point and the terminating point that meets the parallel lines feature carried out mark, and determine that the bar code zone by this starting point and the definition of this terminating point is no stained zone.
For example, shown in Fig. 2, the empty frontier point of the corresponding bar in regional a, b on each adjacent scanning lines meets the parallel lines feature, thinks that therefore regional a, b are no stained zone.
In other embodiments, also can mate and judge stained zone and do not have stained zone by successively the coordinate of the empty frontier point of the corresponding bar on this adjacent scanning lines on scan-line direction being carried out coordinate.In this case,, coordinate difference is carried out mark less than the starting point and the terminating point of predetermined value, and determine not have stained zone for this by the bar code zone of this starting point and the definition of this terminating point according to matching result.
It should be noted that in the present embodiment, the empty frontier point of the corresponding bar on three sweep traces is mated.Yet, in other embodiments, can mate the empty frontier point of the corresponding bar on the multi-strip scanning line more.
At last, make up a plurality of no stained zones, to obtain the scanning information of this bar code image.During combination, generally to whether exist public dummy cell to judge, if there are this public these a plurality of no stained zones of empty just combination to a plurality of no stained zones.
In an embodiment of the present invention, can judge whether to exist public sky according to the coordinate of empty width of the bar of the adjacent end portion in these a plurality of no stained zones or the empty frontier point of bar.For example, if there are at least three empty width of identical bar in the adjacent end portion in these a plurality of no stained zones or exist at least three these empty frontier points identical along the coordinate on the scan-line direction, then determine to exist public sky.During combination, can make up the empty width of the bar in a plurality of no stained zones.Also can each the bar code border point in a plurality of no stained zones be made up along the coordinate on the scan-line direction.
According to said method, regional a among Fig. 2 and the determined no stained zone of regional b are made up, just can obtain the scanning information of this bar code image.
Next, see also Fig. 3, Fig. 3 is the scanning synoptic diagram of bar code image scanning method according to another embodiment of the present invention.Similar with embodiment situation shown in Figure 2, in Fig. 3, there is the stained zone that intersects.Equally, according to method provided by the present invention, can get rid of sweep trace and the stained invalid frontier point that draws that intersects by a plurality of parallel line sweepings, distinguish stained zone and no stained zone, utilize no stained zone to be combined into the empty information of complete strips of bar code image again, as shown in Figure 3, be combined into the empty information of complete strips of bar code image by regional c, d, the determined no stained zone of e.
Certainly, Fig. 2 and shown in Figure 3 be a kind of fairly simple stained situation, in actual conditions, may occur various stained, yet as long as stained some bar sky that do not hide fully, then all can adopt method of the present invention that the bar code image is scanned, and obtain correct scanning information.
In sum, one of ordinary skill in the art will readily recognize that by bar code image scanning method provided by the invention to successfully manage the stained situation of bar code image appearance in the actual conditions, improve decoding rate.
In the above-described embodiments, only the present invention has been carried out exemplary description, but those skilled in the art can carry out various modifications to the present invention after reading present patent application under the situation that does not break away from the spirit and scope of the present invention.

Claims (9)

1. a bar code image scanning method is characterized in that, described bar code image scanning method may further comprise the steps:
A. utilize a plurality of parallel scan lines that the bar code image is scanned, and determine the empty frontier point of bar on each sweep trace;
B. the empty frontier point of the bar on the adjacent scanning lines is mated, with the stained zone of distinguishing described bar code image and there is not stained zone;
C. make up a plurality of described no stained zones, to obtain the scanning information of described bar code image.
2. bar code image scanning method according to claim 1, it is characterized in that, in described step b, successively the empty frontier point of the corresponding bar on the described adjacent scanning lines is carried out the parallel lines characteristic matching, mark meets the starting point and the terminating point of parallel lines feature, and determines that the bar code zone by described starting point and the definition of described terminating point is described no stained zone.
3. bar code image scanning method according to claim 1, it is characterized in that, in described step b, successively the coordinate of the empty frontier point of corresponding bar on scan-line direction on the described adjacent scanning lines carried out the coordinate coupling, mark coordinate difference is less than the starting point and the terminating point of predetermined value, and definite bar code zone that is defined by described starting point and described terminating point is described no stained zone.
4. according to claim 2 or 3 described bar code image scanning methods, it is characterized in that, in described step b, the empty frontier point of the corresponding bar on three sweep traces is mated.
5. bar code image scanning method according to claim 1 is characterized in that, in described step c, judges whether described a plurality of no stained zone exists public sky, if exist described public sky just to make up described a plurality of no stained zone.
6. bar code image scanning method according to claim 5 is characterized in that, in described step c, judges whether to exist described public sky according to the empty width of bar of the adjacent end portion in described a plurality of no stained zones or the coordinate of described empty frontier point.
7. bar code image scanning method according to claim 6, it is characterized in that, in described step c, if there are at least three empty width of identical bar in the adjacent end portion in described a plurality of no stained zones or exist at least three described empty frontier points identical along the coordinate on the scan-line direction, then determine to exist described public sky.
8. bar code image scanning method according to claim 1 is characterized in that, in described step c, makes up described a plurality of no stained zone and comprises the empty width of the bar in described a plurality of no stained zones is made up.
9. bar code image scanning method according to claim 1, it is characterized in that, in described step c, make up described a plurality of no stained zone and comprise the described bar code border point in described a plurality of no stained zones is made up along the coordinate on the scan-line direction.
CN2010101889378A 2010-06-01 2010-06-01 Bar code image scanning method Expired - Fee Related CN101882205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101889378A CN101882205B (en) 2010-06-01 2010-06-01 Bar code image scanning method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101889378A CN101882205B (en) 2010-06-01 2010-06-01 Bar code image scanning method

Publications (2)

Publication Number Publication Date
CN101882205A true CN101882205A (en) 2010-11-10
CN101882205B CN101882205B (en) 2012-03-14

Family

ID=43054217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101889378A Expired - Fee Related CN101882205B (en) 2010-06-01 2010-06-01 Bar code image scanning method

Country Status (1)

Country Link
CN (1) CN101882205B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI560620B (en) * 2016-01-20 2016-12-01 Qisda Corp Barcode decoding method
CN106295443A (en) * 2016-08-03 2017-01-04 浙江华睿科技有限公司 The localization method in a kind of bar code region and device
CN106909956A (en) * 2017-02-28 2017-06-30 浙江华睿科技有限公司 The border independent positioning method and device of a kind of one-dimension code
CN106991348A (en) * 2017-03-21 2017-07-28 浙江华睿科技有限公司 A kind of bar code decoding method and device
CN107016317A (en) * 2017-03-02 2017-08-04 浙江华睿科技有限公司 A kind of bar code decoding method and device
CN107016318A (en) * 2017-03-21 2017-08-04 浙江华睿科技有限公司 A kind of bar code decoding method and device
CN107766770A (en) * 2017-10-31 2018-03-06 广东旭龙物联科技股份有限公司 A kind of EAN13 codes coding/decoding method and device
CN108256375A (en) * 2018-01-10 2018-07-06 诺为信科技有限公司 A kind of one-dimensional bar code scan method
CN109214229A (en) * 2017-06-30 2019-01-15 杭州海康威视数字技术股份有限公司 A kind of bar code scanning method, device and electronic equipment
CN111797646A (en) * 2020-07-08 2020-10-20 北京京东振世信息技术有限公司 Bar code identification method and terminal
CN112955896A (en) * 2018-10-31 2021-06-11 三星电子株式会社 Method and electronic device for reading bar code

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5045677A (en) * 1987-09-28 1991-09-03 Sumitomo Electric Industries, Ltd. Combining bar code read data from a plurality of scanning lines formed from one-dimensional images
JPH0668294A (en) * 1992-08-20 1994-03-11 Nippon Electric Ind Co Ltd Scanning direction detecting method for bar code label
CN1536522A (en) * 2003-04-10 2004-10-13 力捷电脑股份有限公司 Test block check field detection result automatic detection method
CN101710381A (en) * 2009-12-28 2010-05-19 天津优尼莱博泰克电子科技发展有限公司 High-performance one-dimensional bar code decoding method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5045677A (en) * 1987-09-28 1991-09-03 Sumitomo Electric Industries, Ltd. Combining bar code read data from a plurality of scanning lines formed from one-dimensional images
JPH0668294A (en) * 1992-08-20 1994-03-11 Nippon Electric Ind Co Ltd Scanning direction detecting method for bar code label
CN1536522A (en) * 2003-04-10 2004-10-13 力捷电脑股份有限公司 Test block check field detection result automatic detection method
CN101710381A (en) * 2009-12-28 2010-05-19 天津优尼莱博泰克电子科技发展有限公司 High-performance one-dimensional bar code decoding method

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI560620B (en) * 2016-01-20 2016-12-01 Qisda Corp Barcode decoding method
CN106295443A (en) * 2016-08-03 2017-01-04 浙江华睿科技有限公司 The localization method in a kind of bar code region and device
CN106295443B (en) * 2016-08-03 2018-12-07 浙江华睿科技有限公司 A kind of localization method and device in bar code region
CN106909956A (en) * 2017-02-28 2017-06-30 浙江华睿科技有限公司 The border independent positioning method and device of a kind of one-dimension code
CN107016317A (en) * 2017-03-02 2017-08-04 浙江华睿科技有限公司 A kind of bar code decoding method and device
CN107016317B (en) * 2017-03-02 2019-12-24 浙江华睿科技有限公司 Bar code decoding method and device
CN106991348B (en) * 2017-03-21 2019-11-15 浙江华睿科技有限公司 A kind of bar code decoding method and device
CN106991348A (en) * 2017-03-21 2017-07-28 浙江华睿科技有限公司 A kind of bar code decoding method and device
CN107016318B (en) * 2017-03-21 2019-09-17 浙江华睿科技有限公司 A kind of bar code decoding method and device
CN107016318A (en) * 2017-03-21 2017-08-04 浙江华睿科技有限公司 A kind of bar code decoding method and device
CN109214229A (en) * 2017-06-30 2019-01-15 杭州海康威视数字技术股份有限公司 A kind of bar code scanning method, device and electronic equipment
CN109214229B (en) * 2017-06-30 2021-03-12 杭州海康威视数字技术股份有限公司 Bar code scanning method and device and electronic equipment
CN107766770A (en) * 2017-10-31 2018-03-06 广东旭龙物联科技股份有限公司 A kind of EAN13 codes coding/decoding method and device
CN108256375A (en) * 2018-01-10 2018-07-06 诺为信科技有限公司 A kind of one-dimensional bar code scan method
CN108256375B (en) * 2018-01-10 2021-04-06 钱志明 One-dimensional bar code scanning method
CN112955896A (en) * 2018-10-31 2021-06-11 三星电子株式会社 Method and electronic device for reading bar code
CN112955896B (en) * 2018-10-31 2024-08-02 三星电子株式会社 Method and electronic device for reading bar codes
CN111797646A (en) * 2020-07-08 2020-10-20 北京京东振世信息技术有限公司 Bar code identification method and terminal
CN111797646B (en) * 2020-07-08 2021-06-29 北京京东振世信息技术有限公司 Bar code identification method and terminal

Also Published As

Publication number Publication date
CN101882205B (en) 2012-03-14

Similar Documents

Publication Publication Date Title
CN101882205B (en) Bar code image scanning method
CN102521558B (en) Bar code identifying method and device
CN106875546B (en) A kind of recognition methods of VAT invoice
CN101908122B (en) Bar space margin processing module, bar code identifying device and method thereof
CN101833641B (en) Bar code decoding chip
CN101840496A (en) One-dimensional barcode decoding chip
CN106203216B (en) A kind of bar code decoding method
CN102799848A (en) Commodity information identification method and commodity information identification device
CN101833644B (en) Correction graph searching method based on dynamic template
JP2010277446A (en) Apparatus and method for processing barcode
CN101882202B (en) Sign character extracting module and method
CN107016318A (en) A kind of bar code decoding method and device
CN101908126B (en) PDF417 bar code decoding chip
CN101882212B (en) Method for acquiring barcode image
CN101833640B (en) The empty boundary pixel point computing module of bar and computing method thereof
CN109492450A (en) A kind of bar code localization method based on printed page analysis
CN104217189A (en) Self-learning identification method of barcode used for test strip
CN105138952A (en) Answer sheet grading and paper marking system based on image mode
CN201946010U (en) Scanning device for one-dimensional barcode image
CN101840500B (en) Device based on confidence for code word decoding and method
CN101908133B (en) Method and device for decoding bar code
CN201927043U (en) One-dimensional barcode decoding chip
CN101882214B (en) Method for determining directions of boundaries of bar code layers based on Hough transformation
CN201927052U (en) Bar code image correcting device based on track codes
CN101833642B (en) MicroPDF417 bar code decoding chip

Legal Events

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

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

Patentee after: NEWLAND DIGITAL TECHNOLOGY Co.,Ltd.

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

Patentee before: Fujian Newland Computer Co.,Ltd.

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

Granted publication date: 20120314