WO2014191028A1 - Bar code reading device and detection method - Google Patents
Bar code reading device and detection method Download PDFInfo
- Publication number
- WO2014191028A1 WO2014191028A1 PCT/EP2013/060989 EP2013060989W WO2014191028A1 WO 2014191028 A1 WO2014191028 A1 WO 2014191028A1 EP 2013060989 W EP2013060989 W EP 2013060989W WO 2014191028 A1 WO2014191028 A1 WO 2014191028A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image data
- bar code
- barcode
- dimensional
- intermediate image
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/146—Methods for optical code recognition the method including quality enhancement steps
- G06K7/1486—Setting the threshold-width for bar codes to be decoded
Definitions
- the present invention relates to detecting a bar code in image data. More specifically, the present invention relates to a method of detecting a one- or two-dimensional bar code in image data of the bar code, an apparatus configured to detect a bar code, and corresponding computer programs and computer program products.
- one-dimensional and two-dimensional bar codes can be found on consumer products, electronic and non- electronic devices, machines, vehicles, packed food, tobacco products (e.g. cigarette packages), beverage cans, packages and bottles, and also on documents, such as tickets, papers, currency bills etc.
- a two-dimensional bar code comprises at least first and second type elements arranged in an ordered grid, and consequently allows for substantially increasing the amount of data that can be encoded.
- Figures 1A and IB show schematic views of conventional bar codes.
- a common one-dimensional bar code is shown that comprises an arrangement of, for example, black lines V and white lines 2' .
- Information is encoded in a one- dimensional bar code by concatenating pre-defined groups of black and white lines 1', 2' of varying thickness. These groups are usually associated to a specific character or meaning by some kind of industry standard.
- Figure IB shows a common two-dimensional bar code that encodes information by means of arranging, in general terms, first type elements 1" and second type elements 2 " , such as rectangles, dots, triangles and the like, along two dimensions in some sort of ordered grid.
- Figure IB follows an implementation according to the GS1 (Trademark) DataMatrix ECC 200 standard (GS1 being an international association providing standards for two- dimensional barcodes) .
- This standard employs a so-called "L finder pattern” 4 (also called L-shape solid line, L-line, solid line, etc.) and a so-called “clock track” 3 (also called clock line, L-shape clock line etc.) surrounding the data 5 that carries the actual payload data of the bar code .
- L finder pattern also called L-shape solid line, L-line, solid line, etc.
- clock track also called clock line, L-shape clock line etc.
- a white-printed square as a first type element may represent the information 0, whereas a black- printed square as a second type element represents the information 1.
- the barcodes can be well implemented also by using color and/or fluorescent dyes or inks, thermo printing on heat- sensitive paper, mechanical means, such as milling, embossing, grinding, or physical/chemical means, such as laser etching, acid etching, etc. Any type of implementation is possible as long as the elements can be distinguished into their respective type in, for example, image data that has been obtained from the two- dimensional bar code being normally attached to some kind of object (good) .
- a digital camera can obtain digital image data of the bar code that is printed on a paper document or laser- etched on a metal can.
- the encoded information can then be later retrieved by means of barcode reading devices .
- barcode reading devices Such devices usually first obtain said image data that was acquired using, for example, a digital camera.
- Other acquisition support may be provided by means of illumination devices, such as LEDs, lasers and other light sources .
- the barcode reading devices may then employ processing resources, e.g. in the form of a microprocessor
- the decoded data can then be further processed, displayed, or transmitted to other entities.
- Modulation is a measure of the consistency of reflectance of the elements of a first and second type, respectively.
- a high modulation is needed to efficiently and correctly locate, sample, and decode a bar code during the already mentioned image processing for decoding and/or authenticating.
- some of the element of a first type may be erroneously classified as element of second type and vice versa.
- a possible cause for low modulation is the irregular reflectance of the substrate on which the bar code is printed .
- FIG. 2A An example of a two-dimensional bar code printed on a packaged good (i.e. product or object) with logo is shown in Figure 2A showing an object 21 on which a logo 22 is printed. Furthermore, a two-dimensional bar code 20 is attached to object that may - at least in part - overlap logo 22.
- Figure 2B shows an enlarged view of a two-dimensional bar code 20 printed on top of the logo 22 as a schematic- representation of correspondingly obtained image data.
- the different spacing of the diagonal lines in Figure 2B represents varying properties between the logo 22 and the substrate of the object (e.g. reflectance, fluorescence, or absorbance) .
- the logo 22 may have a high reflectance whereas the object surface has a low reflectance (modulation can be related to reflectance) .
- the two-dimensional bar code 20 may have a poor modulation.
- the first type elements i.e. the black squares in this example
- the first type elements 201 have a different reflectance than the first type elements 202, although being of the same type.
- the bar code 20 may show low modulation. If the degree of modulation reaches a certain level, decoding of the bar code may fail.
- a problem of the threshold based techniques is that it may be difficult to determine a threshold that can be used globally for the complete area of bar code. Due to the fact that the modulation can vary, a threshold based technique may not be reliable and can lead to decoding errors.
- the first type elements 202 shown in Figure 2B could be erroneously determined as second type elements.
- a method of detecting a two-dimensional bar code in image data of the bar code comprises first and second type elements arranged in an ordered grid.
- the method comprising the steps of calculating intermediate image data indicative of a divergence of a gradient of pixel values of said image data; identifying at least one element of said first and second type elements based on an extremum of the intermediate image data; and determining the location of the two-dimensional bar code in said image data based on the identified element.
- a barcode reading device comprising processing resources configured to identify a one- or two-dimensional barcode in input image data, and configured to calculate intermediate image data indicative of a divergence of a gradient of pixel values of said input image data, identify at least one element of said first and second type elements based on an extremum of the intermediate image data, and to determine the location of the bar code in said image data based on the identified element.
- Figures 1A and IB show schematic views of exemplary- conventional bar codes
- Figure 2A shows a two-dimensional bar code printed on a logo
- Figure 2B shows a schematical view of image data as obtained from a two-dimensional bar code with poor modulation
- Figure 3A shows a block diagram of a method embodiment for decoding a two-dimensional bar code
- Figure 3B shows a block diagram of a method embodiment for detecting a two- dimensional bar code in image data
- Figure 4A shows a schematical view of image data of two-dimensional bar code with poor modulation
- Figure 4B shows a schematical view of image data of a gradient field of the image data according to an embodiment of the present invention.
- FIGS 5A to 5C show schematic views of apparatus and device embodiments of the present invention.
- image processing for decoding a bar code includes various sub-processes.
- image processing usually starts from a raw image (image data) of the bar code, possibly attached to an item or document.
- the image is obtained as said image data from the bar code by means of, for example, conventional digital cameras, video cameras, CCD cameras, scanners, and the like.
- FIG. 1B A possible image processing is explained for the example of the two-dimensional bar code (data matrix) shown in Figure IB.
- data matrix data matrix
- FIG. 1B A possible image processing is explained for the example of the two-dimensional bar code (data matrix) shown in Figure IB.
- the reference decode algorithm for data matrix ISO/IEC 16022:2006, Information technology - Automatic identification and data capture techniques - Data matrix bar code symbology specification
- GS1 Traffic
- GS1 being an international association providing standards for two-dimensional barcodes
- the clock track are the upper most and right most elements of alternating type and the L finder pattern consists of the elements at respective opposite locations (bottom and left) .
- the L finder pattern can be used to determine the size, orientation and distortion of the symbol.
- the clock track can be used to define the cell structure of the two-dimensional bar code.
- the ISO/IEC 15415:2011 standard (Information technology - Automatic identification and data capture techniques - Bar code symbol print quality test specification - Two-dimensional symbols) defines the methodology to test the print quality of printed data matrix symbols .
- Fig. 3A shows a block diagram of a method for decoding a two- dimensional bar code.
- the first step 312 (“DETECTING”) is detecting image data 311 ("IMAGE DATA”) obtained from a digital camera or the like.
- This step processes image data 311 which includes a two-dimensional bar code and is responsible for the detection of the pixels which are part of the two-dimensional bar code.
- the output of this step is a binary image 313 ("BINARY IMAGE") representing the two classes (i.e. background and data matrix symbol) . Due to the non-uniformity of reflectance of the dark and light modules (elements) , a global threshold may not be suitable to detect the data matrix symbol.
- the performance of the subsequent components is strongly influenced by the accuracy of the binary image, i.e. clock adjustment and sampling.
- the next step 314 (“LOCALIZATION”) is the localization of the two-dimensional bar code.
- the goal of this step is to estimate the location of the two-dimensional bar code by processing the binary image 313. More specifically, the L boundary and the clock track are localized.
- the next step 316 (“SAMPLING”) is the sampling to obtain symbol characters 317 (“SYMBOLS”) .
- This step can comprise plotting a grid, constructed by making use of the L boundary and the clock track, on the two-dimensional bar code. The intersections of the lines forming the grid should coincide with the centres of the modules. If the estimated centre of the grid is black then the sample is one otherwise zero.
- Step 318 is the decoding. This step decodes the symbol characters 317 by applying for example the Reed- Solomon error correction followed by decoding the symbol characters into data characters 319 ("DATA") .
- DATA data characters
- Embodiments of the present invention can be employed in conjunction with the detection step 312 by enhancing the decoding performance of a one- or two-dimensional bar code which suffers from low modulation. Instead of estimating a global threshold to detect the data matrix, embodiments of the present invention employ the use of differential operators. That is, different combinations of derivatives of the image data, e.g. the image intensity.
- Fig. 3B shows a block diagram of a method for detecting a two-dimensional bar code in image data according an embodiment to the present invention. The method comprises the following steps.
- the gradient operator ⁇ is applied to two-dimensional image data.
- the image data may be the image intensity I(x,y) .
- the gradient operator in Cartesian coordinates acts on the image intensity as follows:
- a divergence of the gradient of the two-dimensional vector field is calculated.
- the divergence ® iv of a vector field r ( ⁇ ⁇ ' ⁇ ⁇ ,,? is calculated as follows:
- the result of applying the divergence operator to a vector field is a scalar function. More specifically, the divergence measures the net flow at a given point in the vector field. If the divergence is negative, then a sink exists at that point. Otherwise the point corresponds to a source.
- the module corresponds to a source or a sink depending on the format of the two-dimensional bar code (dark on light, or light on dark) .
- Figure 4 ⁇ shows a schematical view of image data of two- dimensional bar code with poor modulation
- Figure 4B shows a schematical view of image data of a gradient field of the image data according to an embodiment of the present invention.
- the dots 411 and 412 in Fig. 4A exhibit different reflectance, albeit representing elements of the same type. Therefore, it may be difficult to determine that both positions correspond to a first type element (for example a black square) .
- the corresponding sinks 411' and 412' in Figure 4B clearly show that both positions correspond to elements of the same type.
- the divergence of the gradient is also known as the Laplacian operator ⁇ , which acts on a two-dimensional function as follows :
- Laplacian operator can be approximated.
- An example of a discrete approximation of the Laplacian operator is:
- steps 321 and 322 can also be performed in a singl step by using the Laplacian operator.
- step 321 and 322 calculate intermediate image data indicative of divergence of a gradient of pixel values of the image data.
- the Laplacian operator detects noise in addition to the two-dimensional bar code.
- a Gaussian smoothing can be applied to the image before employing the Laplacian operator.
- This detector is known as the Laplacian of Gaussian (LoG) .
- a fast approximation of the LoG is the Difference of Gaussians (DoG) .
- the divergence may be enhanced.
- the element which corresponds to a sink, is often surrounded by several sources.
- the following filter mask is applied to the divergence :
- a next step 324 ( "EXTREMUM IDENTIFICATION"), at least one element of the first and second type elements is identified based on an extremum of the intermediate image data. That is, minima and maxima of the divergence are determined and the position of the minima and maxima are identified with first and second type elements, respectively. The exact identification of the minima and maxima with the first and second type elements depends on the format of the two- dimensional bar code (dark on light, or light on dark) . Then the procedure may then continue with determining the location of the two-dimensional bar code in the image data based on the identified element in step 314 in Figure 3A.
- Figure 5A shows a general apparatus embodiment of the present invention (a barcode reading device) .
- an apparatus 100 comprising a processing unit 110 and a memory unit 120.
- the memory unit 120 may store code that, when executed on the processing unit 110, implements one or more method embodiments of the present invention.
- the apparatus 100 may comprise an imaging unit 131 for acquiring image data.
- the apparatus 100 may comprise a communication unit 132 for communicating a detection, decoding and/or authentication result to other entities, such as servers, controllers and the like.
- the communication may be effected over a network, such as a local area network (LAN), wireless network (WLAN) , the internet, and the like.
- LAN local area network
- WLAN wireless network
- bus systems such as CAN, can be employed for data exchange .
- Fig. 5B shows a schematic view of a handheld embodiment of an apparatus for taking an image of the bar code and detecting, decoding, and/or authenticating the same in the form of a barcode reading device.
- the apparatus 100' comprises a window 101' through which a digital image of an item can be acquired.
- a two-dimensional bar code 20 is applied to the object by means of any mentioned printing, mechanical, physical, or chemical method.
- the apparatus 100' may further comprise an integrated processing unit (not shown) for performing one or more method of embodiments of the present invention.
- An additional operation element 102' may be provided for switching on and off the apparatus 100' and/or initiating the taking of a picture, acquiring/obtaining respective image data, and/or processing of the digital image data so as to detect, decode, and/or authenticate the two- dimensional barcode 20 on the object.
- the device may, of course, take other forms and may be wire-bound or wireless.
- Fig. 5C shows a schematic view of a fixed type embodiment of an apparatus for taking an image of the bar code and detecting, decoding, and/or authenticating the same in the form of a barcode reading device.
- the apparatus 100'' comprises a window 101'' through which a digital image of an item with a two- dimensional bar code can be acquired.
- the apparatus 100'' may further comprise an integrated processing unit (not shown) for performing one or more method of embodiments of the present invention.
- An additional fixation element 102'' may be provided for mounting the apparatus 100' ' on, for example, a production line in which a plurality of items pass by the apparatus 100'' for detection.
- the device may, of course, take other forms and may be wire-bound or wireless.
- Benefits of the present disclosure and the embodiments of the present invention include that a two-dimensional bar code can be detected in image data that shows significant spatial variations in reflectance. Further, whereas conventional methods use a threshold for detecting two-dimensional bar code, embodiments of the present invention use differential operators which make thresholds obsolete.
- a further advantage of the present disclosure can be achieved in overcoming restrictive requirements as they may be set by standards (e.g. ISO/IEC 16022:2006, Information technology - Automatic identification and data capture techniques - Data matrix bar code symbology specification) .
- the data matrix can be printed on a complex background rather than the mandatory quiet zone (i.e. a light area around the symbol which must not contain any graphic element which may disrupt decoding the barcode) .
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Toxicology (AREA)
- Health & Medical Sciences (AREA)
- Electromagnetism (AREA)
- General Health & Medical Sciences (AREA)
- Quality & Reliability (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
Abstract
Description
Claims
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
BR112013013539-5A BR112013013539B1 (en) | 2013-05-28 | 2013-05-28 | METHOD OF DETECTING A TWO-DIMENSIONAL BARCODE IN BARCODE IMAGE DATA, BARCODE READING DEVICE AND NON-TRANSIENT COMPUTER READABLE MEDIA STORING CODE |
PCT/EP2013/060989 WO2014191028A1 (en) | 2013-05-28 | 2013-05-28 | Bar code reading device and detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/EP2013/060989 WO2014191028A1 (en) | 2013-05-28 | 2013-05-28 | Bar code reading device and detection method |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2014191028A1 true WO2014191028A1 (en) | 2014-12-04 |
Family
ID=48536872
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/EP2013/060989 WO2014191028A1 (en) | 2013-05-28 | 2013-05-28 | Bar code reading device and detection method |
Country Status (2)
Country | Link |
---|---|
BR (1) | BR112013013539B1 (en) |
WO (1) | WO2014191028A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105740876A (en) * | 2014-12-10 | 2016-07-06 | 阿里巴巴集团控股有限公司 | Image preprocessing method and device |
WO2019080702A1 (en) * | 2017-10-25 | 2019-05-02 | 北京京东尚科信息技术有限公司 | Image processing method and apparatus |
CN115600619A (en) * | 2022-12-13 | 2023-01-13 | 深圳思谋信息科技有限公司(Cn) | Dot matrix two-dimensional code identification method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060097062A1 (en) * | 2004-11-05 | 2006-05-11 | Colorzip Media,Inc. | Mixed code, and method and apparatus for generating the same |
US20060192011A1 (en) * | 2005-02-25 | 2006-08-31 | Symbol Technologies, Inc. | Bar code signal processing |
US20120243792A1 (en) * | 2008-12-09 | 2012-09-27 | Mikhail Kostyukov | Detecting and Correcting Blur and Defocusing |
-
2013
- 2013-05-28 BR BR112013013539-5A patent/BR112013013539B1/en active IP Right Grant
- 2013-05-28 WO PCT/EP2013/060989 patent/WO2014191028A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060097062A1 (en) * | 2004-11-05 | 2006-05-11 | Colorzip Media,Inc. | Mixed code, and method and apparatus for generating the same |
US20060192011A1 (en) * | 2005-02-25 | 2006-08-31 | Symbol Technologies, Inc. | Bar code signal processing |
US20120243792A1 (en) * | 2008-12-09 | 2012-09-27 | Mikhail Kostyukov | Detecting and Correcting Blur and Defocusing |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105740876A (en) * | 2014-12-10 | 2016-07-06 | 阿里巴巴集团控股有限公司 | Image preprocessing method and device |
CN105740876B (en) * | 2014-12-10 | 2019-11-22 | 阿里巴巴集团控股有限公司 | A kind of image pre-processing method and device |
WO2019080702A1 (en) * | 2017-10-25 | 2019-05-02 | 北京京东尚科信息技术有限公司 | Image processing method and apparatus |
CN109711508A (en) * | 2017-10-25 | 2019-05-03 | 北京京东尚科信息技术有限公司 | Image processing method and device |
CN109711508B (en) * | 2017-10-25 | 2020-06-05 | 北京京东尚科信息技术有限公司 | Image processing method and device |
CN115600619A (en) * | 2022-12-13 | 2023-01-13 | 深圳思谋信息科技有限公司(Cn) | Dot matrix two-dimensional code identification method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
BR112013013539B1 (en) | 2023-03-07 |
BR112013013539A2 (en) | 2022-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11676238B2 (en) | Detecting conflicts between multiple different signals within imagery | |
US10506128B1 (en) | Encoded signal systems and methods to ensure minimal robustness | |
US9892478B2 (en) | Digital watermarking applications | |
US10198782B1 (en) | Detecting conflicts between multiple different encoded signals within imagery | |
US20160098585A1 (en) | Identifying one- or two-dimensional bar codes via weighted image data combination | |
US9286501B2 (en) | Method and device for identifying a two-dimensional barcode | |
US10986245B2 (en) | Encoded signal systems and methods to ensure minimal robustness | |
US20200372628A1 (en) | Methods and systems to ensure correct printing plate usage for encoded signals | |
US11250226B2 (en) | Detecting conflicts between multiple different encoded signals within imagery, using only a subset of available image data | |
US9652652B2 (en) | Method and device for identifying a two-dimensional barcode | |
US11941720B2 (en) | Detecting conflicts between multiple different encoded signals within imagery, using only a subset of available image data, and robustness checks | |
WO2014191028A1 (en) | Bar code reading device and detection method | |
US9270892B2 (en) | Optoelectronic device and method for brightness correction | |
US20190138775A1 (en) | An authentication method for product packaging | |
US20220188534A1 (en) | Symbol evaluation device and evaluation method | |
JP2009123088A (en) | Data code reader and its method | |
JP6802107B2 (en) | Information processing equipment, methods and programs |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 13725667 Country of ref document: EP Kind code of ref document: A1 |
|
DPE1 | Request for preliminary examination filed after expiration of 19th month from priority date (pct application filed from 20040101) | ||
NENP | Non-entry into the national phase |
Ref country code: DE |
|
REG | Reference to national code |
Ref country code: BR Ref legal event code: B01A Ref document number: 112013013539 Country of ref document: BR |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 13725667 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 112013013539 Country of ref document: BR Kind code of ref document: A2 Effective date: 20130531 |