US7311262B2 - Method of decoding a symbol with a low contrast - Google Patents

Method of decoding a symbol with a low contrast Download PDF

Info

Publication number
US7311262B2
US7311262B2 US10/914,347 US91434704A US7311262B2 US 7311262 B2 US7311262 B2 US 7311262B2 US 91434704 A US91434704 A US 91434704A US 7311262 B2 US7311262 B2 US 7311262B2
Authority
US
United States
Prior art keywords
threshold
point
edge
color
path
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
US10/914,347
Other versions
US20060027661A1 (en
Inventor
Kazukuni Hosoi
Haruo Matsuoka
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.)
Optoelectronics Co Ltd
Original Assignee
Optoelectronics 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 Optoelectronics Co Ltd filed Critical Optoelectronics Co Ltd
Priority to US10/914,347 priority Critical patent/US7311262B2/en
Assigned to OPTOELECTRONICS CO. LTD. reassignment OPTOELECTRONICS CO. LTD. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: HOSOI, KAZUKUNI, MATSUOKA, HARUO
Publication of US20060027661A1 publication Critical patent/US20060027661A1/en
Application granted granted Critical
Publication of US7311262B2 publication Critical patent/US7311262B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods 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/1404Methods for optical code recognition
    • G06K7/146Methods for optical code recognition the method including quality enhancement steps
    • G06K7/1478Methods for optical code recognition the method including quality enhancement steps adapting the threshold for pixels in a CMOS or CCD pixel sensor for black and white recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10821Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
    • G06K7/10851Circuits for pulse shaping, amplifying, eliminating noise signals, checking the function of the sensing device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/10544Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
    • G06K7/10821Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
    • G06K7/1095Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices the scanner comprising adaptations for scanning a record carrier that is displayed on a display-screen or the like

Definitions

  • the present invention relates to symbol decoding techniques, and more particularly, to a method of decoding a symbol with a low contrast against its background, such as a barcode displayed on an LCD screen when the backlight of the screen is turned off.
  • Barcodes are universally used in many applications, such as a machine-readable symbols containing desired information.
  • a barcode can be used on a package to provide all kinds of information from the manufacturer regarding the product, or can be used as a digital movie ticket displayed on a mobile phone LCD screen.
  • a two-dimensional barcode such as a Data Matrix barcode
  • Information encoded in a barcode is usually represented by black and white data modules such as bars, squares, etc, and arranged with finders of a specific pattern. The finders need to be located when the barcode is decoded.
  • FIGS. 1 and 2 illustrate a Data Matrix barcode displayed on a mobile phone LCD screen and its characterized images.
  • a Data Matrix barcode (see FIG. 3 ) is a two-dimensional matrix symbology containing dark and light square data modules. It has a finder pattern of two intersecting solid edges 1 , 2 and two intersecting alternating dark and light edges 3 , 4 on the perimeter of the symbol.
  • a binarized image FIG. 1 b
  • the term binarize refers herein to the process by which a symbol is read and then portions of it are classified into one of two types, usually but not necessarily dark or light.
  • Another problem of prior systems is that when scanning an image to be decoded, there is usually a fixed threshold above which an area is deemed “light”, and below which an area is deemed “dark”. In other words, the decision as to whether the part of the symbol being scanned is dark or light is a simple matter of comparing reflected light level with a fixed threshold. When contrast is low however, the appropriate threshold may be only applicable locally, to a particular area of the symbol being read. Hence, the use of a particular optimized fixed threshold in one area of the symbols being scanned does not necessarily mean that the same fixed threshold for distinguishing dark from light will be applicable in another area.
  • An object of the present invention is therefore to provide a method for finding a barcode or symbol in a dark background in the gray image, e.g., displayed on a dark LCD screen without binarizing the whole image first.
  • the method comprises the steps of: picking up data on a line possibly crossing an edge of a potential finder of said symbol, and calculating a runlength on the line; determining a potential point of said edge on said line where a light level change occurs in said calculated runlength; determining a path extending from said potential point representing said edge according to said known pattern of said finder; and verifying whether said path is actually said edge.
  • the finder can be located without binarizing the whole image. The entire process of locating the finder can be accomplished in grey scale, before the image is binarized.
  • the path is verified by checking whether each point on said path is of a light level expected from the finder pattern by comparing the data at each point with a threshold. More specifically, the presence and location of a vertical line forming part of the finder pattern may be verified by repeatedly searching for a change in grey scale level along plural horizontal lines, each spaced apart vertically from each other. The presence and location of a horizontal line forming part of the finder pattern may be verified by repeatedly searching for a change in grey scale level along plural vertical lines, each spaced apart horizontally from each other.
  • the threshold is calculated at a point on the path and applied to next points along said path.
  • the threshold is reevaluated every several points along the path so as to adjust the threshold when the contrast is not consistent on the image.
  • the light level may be one or more light levels of different colors, permitting the methodology to be useful in reading color symbols.
  • FIG. 1 a illustrates a gray image of a Data Matrix barcode on a mobile phone LCD screen when the backlight of the screen is on;
  • FIG. 1 b illustrates a binaraized B&W characterized image from the gray image in FIG. 1 a;
  • FIG. 2 a illustrates a gray image similar to FIG. 1 a but the backlight of the LCD screen is off;
  • FIG. 2 b a binarized B&W characterized image from the gray image in FIG. 2 a;
  • FIG. 3 illustrates a typical Data Matrix barcode
  • FIGS. 4 a - 4 d illustrates the method of the present invention.
  • FIG. 5 illustrates a flow chat of the steps of the method of the present invention.
  • a Data Matrix barcode is taken as an example in the preferred embodiment. It shall be understood, however, that the present invention is not limited to a specific type of barcode, but can generally be applied to all the symbols, and is preferably used in a system wherein there is a known finder patter.
  • FIG. 4 a illustrates a gray image of a Data Matrix barcode 10 displayed on an LCD screen 21 of a mobile phone 20 .
  • the backlight of the LCD screen 21 is turned off, thus the contrast of the barcode 10 compared to the display background is very low and therefore the characterized whole image will be very unclear like FIG. 2 b.
  • the system locates the finder pattern without first binarizing the symbol into dark and light portions, as shown in FIG. 1 b .
  • the present invention finds the edges of the finder in the symbol, and thus, the finder pattern may be located directly from the original gray image as shown in FIG. 4 a . Gray scale levels are used prior to locate the finder without binarization.
  • the Data Matrix has two solid edges 11 , 12 forming and two teethed edges 13 , 14 with alternating dark and light square modules.
  • the two solid edges 11 , 12 form an L-shaped finder.
  • a horizontal straight line 30 is predetermined which possibly crosses the edge 11 .
  • Gray data along the line 30 is picked up.
  • the runlength (line R in FIG. 4 c ) on the line 30 is calculated from the gray level (line L in FIG. 4 b ) the threshold (line T in FIG. 4 b ) on the horizontal line 30 .
  • there are a plurality of methods by which the detection can occur such as detecting changes in level of light, in rate of change in dark/light levels, or any of a variety of other methods.
  • the particular method used to determine when the symbol is “high” or “low” is not critical to the present invention.
  • the color change between dark and light occurs along the line 30 .
  • the light color is generally the same as the background color of the display.
  • the finder edge 11 is a solid edge of the L-pattern shaped pattern of the finder, the point 31 where a first color change from light to dark (or from white to black) occurs is determined as a potential point on the finder edge 11 .
  • a path 32 a , 32 b which runs vertically in both directions from the point 31 is determined (shown as the arrows in FIG. 4 d ) to potentially represent the edge 11 .
  • the color at each of the points (square modules) along the path 32 a , 32 b is checked against the threshold whether it is black (or dark). If every point along the path 32 a , 32 b turns out to have the dark color, the path 32 a , 32 b can be verified as the edge 11 .
  • the threshold is preferably reevaluated at least every several pixel movements while tracing along the path 32 a , 32 b .
  • the threshold calculated at point 31 i.e., along the line 30
  • the threshold is recalculated at the last one of these five points. This recalculated threshold will be applied to the next five points to determine their colors.
  • the threshold may be recalculated at every point (i.e., every pixel or every few pixels movement along the path). That is, only a local threshold should be used for ascertaining where the line in the finder pattern is located along a specified scan line.
  • another solid finder edge 12 can be determined similarly.
  • the path 34 to determine the edge 12 can start from the corner point 33 which is an end point of the verified edge 11 .
  • the L-shaped finder of the Data Matrix barcode 10 in the gray image on the screen 21 is successfully found. Then a defined DataMatrix area is binarized and decoding process of the barcode 10 can be tried with the found L-shaped finder by means of well-known algorithms in the art.
  • the location of the finder pattern means that the symbol location, size and shape may be known, the system can, after location of the finder pattern, simply lift the symbol from the gray background and binarize and decode the symbol independently.
  • FIG. 5 illustrates a flow chart of the decoding process for the Data Matrix barcode according to the present invention.
  • step 100 the gray data on a line is picked up, and the runlength on the line is calculated at step 110 . If no significant light level change is found in the runlength (which may happen if the line does not run through the barcode), step 100 will be repeated at a next line until a significant light level change on the line is found.
  • the path which may be the finder edge is verified. More specifically, a threshold is calculated and the level on the path is checked by comparing the threshold and the gray image data. Preferably, the threshold is recalculated every several pixel movements along the path.
  • step 140 if no valid edge L-shaped finder pattern is found by verifying step 130 , the step 120 will be repeated at another point on the line where a light level change occurs until the L-shaped finder pattern is found.
  • the binarization of the code is performed and decoding of the Data Matrix barcode is tried at step 150 . If the decoding is successful, the result is transmitted at step 170 , otherwise it may indicate that the found L-shaped finder pattern was actually wrong and the process will return to step 120 again to start searching for the L-shaped finder from a next potential point on the line.
  • the present invention is not limited to the above exemplary embodiment.
  • the present invention is not limited to decoding a Data Matrix barcode, but can be applied in any symbols that have known finder patterns, such as QR code, PDF417 code, MaxiCode, Aztec Code, RSS code, Postal Code, OCRs, etc.
  • the path 11 may not be a straight line as in FIG. 4 a , but may be a curved line when the finder edges are curves (e.g., in a MaxiCode).
  • the method of the present invention can be applied in any symbol background, but not necessarily limited to LCD displays with low contracts.
  • An advantage with the present invention is that characterization of the whole image can be omitted until the preprocessing step of finding and identifying the symbol to be decoded is accomplished. Thus, significant processing power may be saved.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Toxicology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Image Analysis (AREA)

Abstract

A method for encoding a symbol such as a barcode with a finder of a known pattern, comprises steps of determining a potential point on the finder edge and tracing and verifying a path representing the finder edge by checking the color of each point on the path against a threshold. The threshold is preferably reevaluated at least every several pixel movements along the path. The method may decode the barcode directly from the gray image displayed on a LCD screen without a need of a whole characterized image.

Description

TECHNICAL FIELD
The present invention relates to symbol decoding techniques, and more particularly, to a method of decoding a symbol with a low contrast against its background, such as a barcode displayed on an LCD screen when the backlight of the screen is turned off.
BACKGROUND OF THE INVENTION
Barcodes are universally used in many applications, such as a machine-readable symbols containing desired information. For example, a barcode can be used on a package to provide all kinds of information from the manufacturer regarding the product, or can be used as a digital movie ticket displayed on a mobile phone LCD screen. To contain more information in a small area such as a mobile phone display, a two-dimensional barcode, such as a Data Matrix barcode, is advantageous. Information encoded in a barcode is usually represented by black and white data modules such as bars, squares, etc, and arranged with finders of a specific pattern. The finders need to be located when the barcode is decoded.
FIGS. 1 and 2 illustrate a Data Matrix barcode displayed on a mobile phone LCD screen and its characterized images. As is well-known in the art, a Data Matrix barcode (see FIG. 3) is a two-dimensional matrix symbology containing dark and light square data modules. It has a finder pattern of two intersecting solid edges 1, 2 and two intersecting alternating dark and light edges 3, 4 on the perimeter of the symbol. To decode a barcode displayed on as an image on an LCD screen (FIG. 1 a), a binarized image (FIG. 1 b) is generated from the original gray image (FIG. 1 a) by means of algorithms, which can be eventually be packaged in FPGA or ASIC. The term binarize refers herein to the process by which a symbol is read and then portions of it are classified into one of two types, usually but not necessarily dark or light.
As shown in FIGS. 1 a and 1 b, when the gray image has a high contrast compared to its background, the image is clear enough that the barcode may easily be binarized. However, when the contrast is low, such as shown in FIG. 2 a when the backlight of the LCD screen is turned off, the image may be so unclear (as shown in FIG. 2 b) that it is difficult or impossible to correctly decode the symbol if one tries to simply binarize it as in FIG. 1.
Another problem of prior systems is that when scanning an image to be decoded, there is usually a fixed threshold above which an area is deemed “light”, and below which an area is deemed “dark”. In other words, the decision as to whether the part of the symbol being scanned is dark or light is a simple matter of comparing reflected light level with a fixed threshold. When contrast is low however, the appropriate threshold may be only applicable locally, to a particular area of the symbol being read. Hence, the use of a particular optimized fixed threshold in one area of the symbols being scanned does not necessarily mean that the same fixed threshold for distinguishing dark from light will be applicable in another area.
An object of the present invention is therefore to provide a method for finding a barcode or symbol in a dark background in the gray image, e.g., displayed on a dark LCD screen without binarizing the whole image first.
SUMMARY OF THE INVENTION
The above objects are realized in accordance with the novel method of the present invention for finding an edge of a finder of the symbol. In particular, the method comprises the steps of: picking up data on a line possibly crossing an edge of a potential finder of said symbol, and calculating a runlength on the line; determining a potential point of said edge on said line where a light level change occurs in said calculated runlength; determining a path extending from said potential point representing said edge according to said known pattern of said finder; and verifying whether said path is actually said edge. Thus, the finder can be located without binarizing the whole image. The entire process of locating the finder can be accomplished in grey scale, before the image is binarized.
Preferably, the path is verified by checking whether each point on said path is of a light level expected from the finder pattern by comparing the data at each point with a threshold. More specifically, the presence and location of a vertical line forming part of the finder pattern may be verified by repeatedly searching for a change in grey scale level along plural horizontal lines, each spaced apart vertically from each other. The presence and location of a horizontal line forming part of the finder pattern may be verified by repeatedly searching for a change in grey scale level along plural vertical lines, each spaced apart horizontally from each other.
Preferably, the threshold is calculated at a point on the path and applied to next points along said path. Preferably, the threshold is reevaluated every several points along the path so as to adjust the threshold when the contrast is not consistent on the image.
In other embodiments, the light level may be one or more light levels of different colors, permitting the methodology to be useful in reading color symbols.
BRIEF EXPLANATION OF THE DRAWINGS
The above and other features and advantages of the present invention will be clearer from reading the detailed description of the preferred embodiments with reference to the accompanying drawings, in which:
FIG. 1 a illustrates a gray image of a Data Matrix barcode on a mobile phone LCD screen when the backlight of the screen is on;
FIG. 1 b illustrates a binaraized B&W characterized image from the gray image in FIG. 1 a;
FIG. 2 a illustrates a gray image similar to FIG. 1 a but the backlight of the LCD screen is off;
FIG. 2 b a binarized B&W characterized image from the gray image in FIG. 2 a;
FIG. 3 illustrates a typical Data Matrix barcode;
FIGS. 4 a-4 d illustrates the method of the present invention; and
FIG. 5 illustrates a flow chat of the steps of the method of the present invention.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
To explain the method of the present invention, a Data Matrix barcode is taken as an example in the preferred embodiment. It shall be understood, however, that the present invention is not limited to a specific type of barcode, but can generally be applied to all the symbols, and is preferably used in a system wherein there is a known finder patter.
Reference is now made to FIG. 4 a, which illustrates a gray image of a Data Matrix barcode 10 displayed on an LCD screen 21 of a mobile phone 20. Like in FIG. 2 a, the backlight of the LCD screen 21 is turned off, thus the contrast of the barcode 10 compared to the display background is very low and therefore the characterized whole image will be very unclear like FIG. 2 b.
According to the present invention, the system locates the finder pattern without first binarizing the symbol into dark and light portions, as shown in FIG. 1 b. Instead, the present invention finds the edges of the finder in the symbol, and thus, the finder pattern may be located directly from the original gray image as shown in FIG. 4 a. Gray scale levels are used prior to locate the finder without binarization.
As explained above, the Data Matrix has two solid edges 11, 12 forming and two teethed edges 13, 14 with alternating dark and light square modules. The two solid edges 11, 12 form an L-shaped finder. Now we take the vertical solid edge 11 as an example to explain how to find edges according to the teachings of the present invention.
To locate the solid edge 11, a horizontal straight line 30 is predetermined which possibly crosses the edge 11. Gray data along the line 30 is picked up. The runlength (line R in FIG. 4 c) on the line 30 is calculated from the gray level (line L in FIG. 4 b) the threshold (line T in FIG. 4 b) on the horizontal line 30. It is noted that there are a plurality of methods by which the detection can occur, such as detecting changes in level of light, in rate of change in dark/light levels, or any of a variety of other methods. The particular method used to determine when the symbol is “high” or “low” is not critical to the present invention.
As can be seen in the runlength shown in FIG. 4 c, the color change between dark and light occurs along the line 30. The light color is generally the same as the background color of the display. Because the finder edge 11 is a solid edge of the L-pattern shaped pattern of the finder, the point 31 where a first color change from light to dark (or from white to black) occurs is determined as a potential point on the finder edge 11.
Since the edge 11 of the L-shape finder extends vertically or substantially perpendicular to the horizontal straight line 30, a path 32 a, 32 b which runs vertically in both directions from the point 31 is determined (shown as the arrows in FIG. 4 d) to potentially represent the edge 11.
To verify whether said path 32 a, 32 b is actually the finder edge 11, the color at each of the points (square modules) along the path 32 a, 32 b is checked against the threshold whether it is black (or dark). If every point along the path 32 a, 32 b turns out to have the dark color, the path 32 a, 32 b can be verified as the edge 11.
It is possible, however, that the contrast is not consistent in the gray image. Therefore, the threshold is preferably reevaluated at least every several pixel movements while tracing along the path 32 a, 32 b. For example, the threshold calculated at point 31 (i.e., along the line 30) can be used to determine the color of the next five points along the path 32 a, then the threshold is recalculated at the last one of these five points. This recalculated threshold will be applied to the next five points to determine their colors.
To maximize the accuracy in determining the color or light level of the points on the path 32 a, 32 b, the threshold may be recalculated at every point (i.e., every pixel or every few pixels movement along the path). That is, only a local threshold should be used for ascertaining where the line in the finder pattern is located along a specified scan line.
As shown in FIG. 4 d, another solid finder edge 12 can be determined similarly. The path 34 to determine the edge 12, however, can start from the corner point 33 which is an end point of the verified edge 11.
If the L-shaped edges 11, 12 are determined, the L-shaped finder of the Data Matrix barcode 10 in the gray image on the screen 21 is successfully found. Then a defined DataMatrix area is binarized and decoding process of the barcode 10 can be tried with the found L-shaped finder by means of well-known algorithms in the art. Preferably, since the location of the finder pattern means that the symbol location, size and shape may be known, the system can, after location of the finder pattern, simply lift the symbol from the gray background and binarize and decode the symbol independently.
FIG. 5 illustrates a flow chart of the decoding process for the Data Matrix barcode according to the present invention. At step 100, the gray data on a line is picked up, and the runlength on the line is calculated at step 110. If no significant light level change is found in the runlength (which may happen if the line does not run through the barcode), step 100 will be repeated at a next line until a significant light level change on the line is found.
At step 130, the path which may be the finder edge is verified. More specifically, a threshold is calculated and the level on the path is checked by comparing the threshold and the gray image data. Preferably, the threshold is recalculated every several pixel movements along the path.
At step 140, if no valid edge L-shaped finder pattern is found by verifying step 130, the step 120 will be repeated at another point on the line where a light level change occurs until the L-shaped finder pattern is found.
After the L-shaped finder pattern is found, the binarization of the code is performed and decoding of the Data Matrix barcode is tried at step 150. If the decoding is successful, the result is transmitted at step 170, otherwise it may indicate that the found L-shaped finder pattern was actually wrong and the process will return to step 120 again to start searching for the L-shaped finder from a next potential point on the line.
Even though the above has explained in detail on how to find a finder in a Data Matrix barcode from a gray image displayed on a LCD screen of a mobile phone, it shall be understood that the present invention is not limited to the above exemplary embodiment. In particular, the present invention is not limited to decoding a Data Matrix barcode, but can be applied in any symbols that have known finder patterns, such as QR code, PDF417 code, MaxiCode, Aztec Code, RSS code, Postal Code, OCRs, etc. The path 11 may not be a straight line as in FIG. 4 a, but may be a curved line when the finder edges are curves (e.g., in a MaxiCode).
Moreover, the method of the present invention can be applied in any symbol background, but not necessarily limited to LCD displays with low contracts. An advantage with the present invention is that characterization of the whole image can be omitted until the preprocessing step of finding and identifying the symbol to be decoded is accomplished. Thus, significant processing power may be saved.
Therefore, it shall be understood that numerous variations, adaptations and modifications are available to a person with ordinary skilled in the art without departing from the gist of the invention. The scope of the invention is solely intended to be defined in the accompany claims.

Claims (27)

1. A method for finding an edge of a finder of a symbol in an image, said symbol being represented by points of either a dark color or a light color and having one or more of said finders of a known pattern, said method comprising steps of:
a) picking up data on a line possibly crossing an edge of a potential finder of said symbol, and calculating a runlength on the line;
b) determining a potential point of said edge on said line where a color change occurs in said calculated runlength;
c) determining a path extending from said potential point representing said edge according to said known pattern of said finder; and
d) verifying whether said path is actually said edge said verifying comprising checking whether each point on said path is of the dark or white color by recalculating a threshold at least every predetermined amount of said point(s) and comparing each subsequent point to said recalculable threshold.
2. The method of claim 1, wherein said step d) comprising calculating said threshold at a point on said path and applying said threshold for next points along said path.
3. The method of claim 2, wherein said threshold is reevaluated every several points.
4. The method of claim 1, wherein step a) is repeated at a next line if no said potential point can be determined at step b).
5. The method of claim 1, wherein step b) is repeated at a next potential point on said line if said path is verified as not said edge at step d).
6. The method of claim 1, wherein said image is an original gray image.
7. The method of claim 6, wherein said image is displayed on a LCD screen of a device.
8. The method of claim 7, wherein said device is a mobile phone.
9. The method of claim 1, wherein said symbol is a barcode.
10. The method of claim 9, wherein said barcode is a two-dimensional barcode.
11. The method of claim 10, wherein said barcode is a Data Matrix bar code.
12. The method of claim 11, wherein said edge is one of two solid perimeter edges of the symbol.
13. The method of claim 11, wherein said edge is one of two alternative-colored perimeter edges of the symbol.
14. The method of claim 1, wherein said dark color is a black color and said light color is a white color.
15. The method of claim 14, wherein said light color is similar to background color of said image.
16. The method of claim 1, wherein said color change in said step b) is a change from a color similar to a background color of said image to a color in contrast to said background.
17. The method of claim 1, wherein said step d) comprising checking whether a color change expected from the known finder pattern occurs at each point on said path.
18. A method for decoding a symbol having one or more finders of a known-pattern, said symbol being represented by points of either a dark color or a light color, said method comprising the steps of:
a) picking up data on a line possibly crossing an edge of a potential finder of said symbol, and calculating a runlength on the line;
b) determining a potential point of said edge on said line where a color changes in said calculated runlength;
c) determining a path extending from said potential point representing said edge according to said known pattern of said finder;
d) verifying whether said path is actually said edge, comprises checking, by recalculating a threshold at least every predetermined amount of said point(s) and comparing each subsequent point with said recalculable threshold, whether each of the points on said path has an expected color determined from the pattern of the finder;
e) repeating said steps a)-d) to find all of said finders on said symbol; and
f) binarizing and decoding said symbol with said found finders only if said finders are found.
19. The method of claim 18, wherein said verifying step d) comprising calculating said threshold at a point on said path and applying said threshold for next points along said path.
20. The method of claim 19, wherein said threshold is calculated at least every several points.
21. The method of claim 20, wherein said symbol is a barcode displayed on a LCD screen.
22. The method of claim 21, wherein said steps a)-f) are carried out directly from gray data obtained from the barcode.
23. The method of claim 22, wherein said barcode is a Data Matrix barcode.
24. A method for decoding a barcode having a finder of a known pattern, comprising steps of
along a predetermined path tracing and verifying a potential edge of said finder by recalculating a threshold at least every predetermined amount of said point(s), checking a color of each subsequent point on said potential edge against said recalculable threshold, and binarizing and filtering said barcode only after said finder pattern is found.
25. The method of claim 24, wherein said threshold is calculated at a point and applied to next points along said potential edge.
26. The method of claim 25, wherein said threshold is recalculated at least every several points.
27. The method of claim 26, wherein said threshold is recalculated at each point and applied to a next point.
US10/914,347 2004-08-09 2004-08-09 Method of decoding a symbol with a low contrast Expired - Fee Related US7311262B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US10/914,347 US7311262B2 (en) 2004-08-09 2004-08-09 Method of decoding a symbol with a low contrast

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US10/914,347 US7311262B2 (en) 2004-08-09 2004-08-09 Method of decoding a symbol with a low contrast

Publications (2)

Publication Number Publication Date
US20060027661A1 US20060027661A1 (en) 2006-02-09
US7311262B2 true US7311262B2 (en) 2007-12-25

Family

ID=35756473

Family Applications (1)

Application Number Title Priority Date Filing Date
US10/914,347 Expired - Fee Related US7311262B2 (en) 2004-08-09 2004-08-09 Method of decoding a symbol with a low contrast

Country Status (1)

Country Link
US (1) US7311262B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080002853A1 (en) * 2006-04-19 2008-01-03 A T Communications Co., Ltd. Two-dimensional code with a logo
US20100111540A1 (en) * 2007-03-23 2010-05-06 Massachusetts Institute Of Technology Filter-based dpsk receiver
US8629890B1 (en) * 2000-12-14 2014-01-14 Gary Odom Digital video display employing minimal visual conveyance
US20150294129A1 (en) * 2012-10-23 2015-10-15 Sicpa Holding Sa Method and device for identifying a two-dimensional barcode

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7963448B2 (en) 2004-12-22 2011-06-21 Cognex Technology And Investment Corporation Hand held machine vision method and apparatus
US9552506B1 (en) 2004-12-23 2017-01-24 Cognex Technology And Investment Llc Method and apparatus for industrial identification mark verification
US8108176B2 (en) 2006-06-29 2012-01-31 Cognex Corporation Method and apparatus for verifying two dimensional mark quality
US8169478B2 (en) * 2006-12-14 2012-05-01 Cognex Corporation Method and apparatus for calibrating a mark verifier
US9734376B2 (en) 2007-11-13 2017-08-15 Cognex Corporation System and method for reading patterns using multiple image frames
US20100057586A1 (en) * 2008-09-04 2010-03-04 China Software Venture Offer Reporting Apparatus and Method
CN104850815B (en) * 2015-05-20 2017-09-19 杭州晟元数据安全技术股份有限公司 The coding/decoding method of shown bar code on mobile phone
WO2018151759A1 (en) 2017-02-20 2018-08-23 3M Innovative Properties Company Optical articles and systems interacting with the same
KR20200061370A (en) 2017-09-27 2020-06-02 쓰리엠 이노베이티브 프로퍼티즈 캄파니 Personal protective equipment management system using optical patterns for equipment and safety monitoring
US10452885B1 (en) * 2018-04-17 2019-10-22 Zebra Technologies Corporation Optimized barcode decoding in multi-imager barcode readers and imaging engines

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6065383A (en) 1983-09-20 1985-04-15 Fujitsu Ltd Bar code reader
JPH0325585A (en) 1989-06-22 1991-02-04 Hitachi Electron Eng Co Ltd Erroneous reading prevention device in bar code reader
US5412197A (en) * 1993-01-29 1995-05-02 United Parcel Service Of America, Inc. Method and apparatus for decoding bar code symbols using gradient signals
US5545887A (en) * 1993-01-29 1996-08-13 United Parcel Service Of America, Inc. Method and apparatus for decoding bar code symbols using subpixel scan lines
US5708261A (en) * 1995-10-02 1998-01-13 Pitney Bowes Inc. Bar code decoding with speed compensation
JPH11316794A (en) 1998-05-06 1999-11-16 Aisin Aw Seimitsu Kk Method for reading and deciding segment information
US6173893B1 (en) * 1997-04-16 2001-01-16 Intermec Corporation Fast finding algorithm for two-dimensional symbologies
JP2003030577A (en) 2001-07-16 2003-01-31 Toshiba Tec Corp Bar code reader
JP2003337941A (en) 2002-05-20 2003-11-28 Matsushita Electric Ind Co Ltd Device and method for image recognition, and program
US6685093B2 (en) * 2001-09-25 2004-02-03 Ecrio, Inc. System, method and apparatus for communicating information between a mobile communications device and a bar code reader

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6065383A (en) 1983-09-20 1985-04-15 Fujitsu Ltd Bar code reader
JPH0325585A (en) 1989-06-22 1991-02-04 Hitachi Electron Eng Co Ltd Erroneous reading prevention device in bar code reader
US5412197A (en) * 1993-01-29 1995-05-02 United Parcel Service Of America, Inc. Method and apparatus for decoding bar code symbols using gradient signals
US5545887A (en) * 1993-01-29 1996-08-13 United Parcel Service Of America, Inc. Method and apparatus for decoding bar code symbols using subpixel scan lines
US5708261A (en) * 1995-10-02 1998-01-13 Pitney Bowes Inc. Bar code decoding with speed compensation
US6173893B1 (en) * 1997-04-16 2001-01-16 Intermec Corporation Fast finding algorithm for two-dimensional symbologies
JPH11316794A (en) 1998-05-06 1999-11-16 Aisin Aw Seimitsu Kk Method for reading and deciding segment information
JP2003030577A (en) 2001-07-16 2003-01-31 Toshiba Tec Corp Bar code reader
US6685093B2 (en) * 2001-09-25 2004-02-03 Ecrio, Inc. System, method and apparatus for communicating information between a mobile communications device and a bar code reader
JP2003337941A (en) 2002-05-20 2003-11-28 Matsushita Electric Ind Co Ltd Device and method for image recognition, and program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Int'l Search Report & Written Opinion Dec. 27, 2005.

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8629890B1 (en) * 2000-12-14 2014-01-14 Gary Odom Digital video display employing minimal visual conveyance
US20080002853A1 (en) * 2006-04-19 2008-01-03 A T Communications Co., Ltd. Two-dimensional code with a logo
US8144922B2 (en) * 2006-04-19 2012-03-27 A T Communications Co., Ltd. Two-dimensional code with a logo
US8526670B2 (en) 2006-04-19 2013-09-03 A T Communications Co., Ltd. Two-dimensional code with a logo
US20100111540A1 (en) * 2007-03-23 2010-05-06 Massachusetts Institute Of Technology Filter-based dpsk receiver
US8503889B2 (en) * 2007-03-23 2013-08-06 Massachusetts Institute Of Technology Filter-based DPSK receiver
US8886049B2 (en) 2007-03-23 2014-11-11 Massachusetts Institute Of Technology Filter-based DPSK communications system
US20150294129A1 (en) * 2012-10-23 2015-10-15 Sicpa Holding Sa Method and device for identifying a two-dimensional barcode
US9652652B2 (en) * 2012-10-23 2017-05-16 Sicpa Holding Sa Method and device for identifying a two-dimensional barcode

Also Published As

Publication number Publication date
US20060027661A1 (en) 2006-02-09

Similar Documents

Publication Publication Date Title
EP0887760B1 (en) Method and apparatus for decoding bar code symbols
US7311262B2 (en) Method of decoding a symbol with a low contrast
EP0582911B1 (en) Method and apparatus for detecting bar code symbols
EP0766191B1 (en) Method and apparatus for decoding two-dimensional symbols in the spatial domain
US7181066B1 (en) Method for locating bar codes and symbols in an image
EP0582858B1 (en) Method and apparatus for detecting artifact corners in two-dimensional images
US6386454B2 (en) Detecting bar code candidates
EP0825547B1 (en) Two-dimensional code reader
US6742708B2 (en) Fiducial mark patterns for graphical bar codes
EP3462372B1 (en) System and method for detecting optical codes with damaged or incomplete finder patterns
US8459556B2 (en) Prioritized virtual scan line processing
GB2446424A (en) Two dimensional bar code with locating symbols
US9286501B2 (en) Method and device for identifying a two-dimensional barcode
US20040062443A1 (en) Extracting graphical bar codes from an input image
US20150294129A1 (en) Method and device for identifying a two-dimensional barcode
US10460142B2 (en) Barcode identification method for improving decoding reliability by correcting image distortion
US20110073655A1 (en) Blur Resistant Barcode
US20110215151A1 (en) Method and Apparatus for Correcting Decoding Errors in Machine-Readable Symbols
US10303913B2 (en) Virtual wave decoder for blurred images and subpixel performance
CN112800798B (en) Aztec code positioning method
Tseng et al. Retrospective tracking for barcode reading
Liang et al. Real time recognition of 2D bar codes in complex image conditions
JP3567904B2 (en) 2D code reader
Burian et al. Camera barcode reader with automatic localization, detection of orientation and type classification

Legal Events

Date Code Title Description
AS Assignment

Owner name: OPTOELECTRONICS CO. LTD., JAPAN

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:HOSOI, KAZUKUNI;MATSUOKA, HARUO;REEL/FRAME:015978/0048

Effective date: 20041027

STCF Information on status: patent grant

Free format text: PATENTED CASE

FPAY Fee payment

Year of fee payment: 4

REMI Maintenance fee reminder mailed
FPAY Fee payment

Year of fee payment: 8

SULP Surcharge for late payment

Year of fee payment: 7

FEPP Fee payment procedure

Free format text: MAINTENANCE FEE REMINDER MAILED (ORIGINAL EVENT CODE: REM.); ENTITY STATUS OF PATENT OWNER: SMALL ENTITY

LAPS Lapse for failure to pay maintenance fees

Free format text: PATENT EXPIRED FOR FAILURE TO PAY MAINTENANCE FEES (ORIGINAL EVENT CODE: EXP.); ENTITY STATUS OF PATENT OWNER: SMALL ENTITY

STCH Information on status: patent discontinuation

Free format text: PATENT EXPIRED DUE TO NONPAYMENT OF MAINTENANCE FEES UNDER 37 CFR 1.362

FP Expired due to failure to pay maintenance fee

Effective date: 20191225