CN101882205B - Bar code image scanning method - Google Patents

Bar code image scanning method Download PDF

Info

Publication number
CN101882205B
CN101882205B CN2010101889378A CN201010188937A CN101882205B CN 101882205 B CN101882205 B CN 101882205B CN 2010101889378 A CN2010101889378 A CN 2010101889378A CN 201010188937 A CN201010188937 A CN 201010188937A CN 101882205 B CN101882205 B CN 101882205B
Authority
CN
China
Prior art keywords
bar code
code image
stained
bar
empty
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
CN2010101889378A
Other languages
Chinese (zh)
Other versions
CN101882205A (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 on computer technology and infotech basis, grows up.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 that again linear bar code is made up of a plurality of " bars " that are arranged in parallel and " sky " unit, and bar code information leans 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 on two-dimensional directional, distributes 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 through all bar skies along this bar code image of sweep trace scanning 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 disappearance by foreign matter; At this moment, any sweep trace all can not intactly scan all bars 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 confirms 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; Wherein, 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 characteristic, and confirms not have stained zone by the bar code zone of this starting point and the definition of this terminating point for this; Perhaps; 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; Wherein, in above-mentioned steps c, judge 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 whether these a plurality of no stained zones exist public sky, if there are this public empty these a plurality of no stained zones of just making up.
The preferred embodiment one of according to the present invention in above-mentioned steps b, matees 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; 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 confirm to exist this public sky.
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 the present invention more specifically be described with reference to accompanying drawing and through instance, 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]
Below in conjunction with accompanying drawing and embodiment the present invention is elaborated.
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; The part bar that has hidden this bar code image is empty, causes obtaining through 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, through 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, confirm from top to bottom or from top to bottom whether meet the parallel lines characteristic 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 characteristic, 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 characteristic, 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 characteristic carried out mark, and confirm 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 characteristic, 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 through 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 confirm 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 confirm 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 through 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, possibly occur various stained, yet as long as stained not hide some bar fully empty; 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 through 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 (3)

1. a bar code image scanning method is characterized in that, said 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 confirm 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 said bar code image and there is not stained zone;
C. make up a plurality of said no stained zones, to obtain the scanning information of said bar code image;
Wherein, In said step b; Successively the empty frontier point of the corresponding bar on the said adjacent scanning lines is carried out the parallel lines characteristic matching, mark meets the starting point and the terminating point of parallel lines characteristic, and confirms that the bar code zone by said starting point and the definition of said terminating point is said no stained zone; Perhaps; Successively the coordinate of the empty frontier point of corresponding bar on scan-line direction on the said 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 said starting point and said terminating point is said no stained zone;
Wherein, In said step c; Judge according to the empty width of bar of the adjacent end portion in said a plurality of no stained zones or the coordinate of said empty frontier point whether said a plurality of no stained zone exists public sky, if exist said public emptyly just to make up said a plurality of no stained zone.
2. bar code image scanning method according to claim 1 is characterized in that, in said step b, the empty frontier point of the corresponding bar on three sweep traces is mated.
3. bar code image scanning method according to claim 1; It is characterized in that; In said step c; If there are at least three empty width of identical bar in the adjacent end portion in said a plurality of no stained zones or exist at least three said empty frontier points identical along the coordinate on the scan-line direction, then confirm to exist said public sky.
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 CN101882205A (en) 2010-11-10
CN101882205B true 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)

Families Citing this family (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
CN106295443B (en) * 2016-08-03 2018-12-07 浙江华睿科技有限公司 A kind of localization method and device in bar code region
CN106909956B (en) * 2017-02-28 2019-11-19 浙江华睿科技有限公司 A kind of the boundary independent positioning method and device of one-dimension code
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
CN107016318B (en) * 2017-03-21 2019-09-17 浙江华睿科技有限公司 A kind of bar code decoding method and device
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
CN108256375B (en) * 2018-01-10 2021-04-06 钱志明 One-dimensional bar code scanning method
KR102638707B1 (en) * 2018-10-31 2024-02-21 삼성전자주식회사 Method and Electronic device for reading a barcode
CN111797646B (en) * 2020-07-08 2021-06-29 北京京东振世信息技术有限公司 Bar code identification method and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA1310417C (en) * 1987-09-28 1992-11-17 Hideki Okamura Combining bar code read data
JPH0668294A (en) * 1992-08-20 1994-03-11 Nippon Electric Ind Co Ltd Scanning direction detecting method for bar code label
CN1251127C (en) * 2003-04-10 2006-04-12 力捷电脑股份有限公司 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

Also Published As

Publication number Publication date
CN101882205A (en) 2010-11-10

Similar Documents

Publication Publication Date Title
CN101882205B (en) Bar code image scanning method
CN102521558B (en) Bar code identifying method and device
CN101908122B (en) Bar space margin processing module, bar code identifying device and method thereof
CN102129585B (en) Method and system for transmitting information, device for displaying bar code and device for reading bar code
CN101840496A (en) One-dimensional barcode decoding chip
CN101833641A (en) Bar code decoding chip
CN101833644B (en) Correction graph searching method based on dynamic template
CN106203216B (en) A kind of bar code decoding method
JP2010277446A (en) Apparatus and method for processing barcode
CN105095937A (en) Visual identification method based on linear clustering circular array graphic code
CN101882202B (en) Sign character extracting module and method
CN113673655A (en) Method and device for determining decoding direction of two-dimensional code, electronic equipment and medium
CN101908126B (en) PDF417 bar code decoding chip
CN107016318A (en) A kind of bar code decoding method and device
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
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
CN201927028U (en) Code word decoding device based on confidence
CN201946007U (en) Symbol and character extraction module
CN201927052U (en) Bar code image correcting device based on track codes
CN107016317A (en) A kind of bar code decoding method and device

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

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.

CP03 Change of name, title or address
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120314

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