This application claims priority of Taiwanese Application No. 095107426, filed on Mar. 6, 2006.
1. Field of the Invention
The invention relates to a decoding method and an electronic device implementing the same. In particular, the invention relates to a method for decoding an encoded point matrix image and an electronic device implementing the method.
2. Description of the Related Art
Taiwanese Patent Publication No. 581970, entitled “Electronic Apparatus Utilizing a Graphical Indicator”, focuses mainly on constructing graphical indicators on a surface of an object (e.g., a book) in the form of microscopic image points, and obtaining information encoded in the graphical indicators by utilizing a suitable electronic apparatus.
As shown in
Shown in
Referring back to
However, due to the design nature of the graphical indicator 91, under the circumstance where the graphical indicator 91 to be decoded by the electronic apparatus is fragmented, e.g., the header state region group 911 is incomplete, the graphical indicator 91 cannot be identified, resulting in failure to obtain the information encoded in the content state region group 912 of the graphical indicator 91. Moreover, in order to avoid misidentification of the header state region groups 911, encoding of the content state region group 912 cannot have the same pattern as that of the header state region group 911. Thus, encoding of the content state region group 912 is subject to certain restrictions. In addition, since the graphical indicator 91 uses the presence and absence of black points to represent different encoded information, the number of black points differs as the information varies, resulting in an uneven grayscale pattern, which is easily noticeable by the naked eye.
Therefore, the object of the present invention is to provide a method for decoding an encoded point matrix image and an electronic device implementing the same that can overcome the aforesaid drawbacks associated with the prior art.
According to one aspect of the present invention, there is provided a method for decoding an encoded point matrix image including a first set of real grid points aligned along a first coordinate axis, a second set of real grid points aligned along a second coordinate axis that intersects the first coordinate axis, and a plurality of encoded data points distributed throughout the encoded point matrix image. The method includes the steps of: (A) locating the first and second coordinate axes according to a first predetermined principle; (B) finding a set of virtual grid points according to a second predetermined principle, each of the virtual grid points being located at an intersection of a corresponding first virtual line parallel to the first coordinate axis and a corresponding second virtual line parallel to the second coordinate axis; and (C) decoding each of the encoded data points based on positional relation thereof with a closest one of the virtual grid points found in step (B) so as to obtain information encoded in the encoded point matrix image.
According to another aspect of the present invention, there is provided an electronic device that includes an image sensor unit, a point detector unit, and a processor unit. The image sensor unit is operable to capture an encoded point matrix image including a first set of real grid points aligned along a first coordinate axis, a second set of real grid points aligned along a second coordinate axis that intersects the first coordinate axis, and a plurality of encoded data points distributed throughout the encoded point matrix image. The point detector unit is coupled to the image sensor unit for evaluating the image captured by the image sensor unit so as to determine spatial orientations and characteristics of the base, real grid and encoded data points. The processor unit is coupled to the point detector unit for receiving information related to the spatial orientations and characteristics of the base, real grid and encoded data points therefrom. The processor unit decodes the encoded data points based on a decoding principle so as to obtain information encoded in the encoded point matrix image. The processor unit locates the first and second coordinate axes according to a first predetermined principle, and finds a set of virtual grid points according to a second predetermined principle. Each of the virtual grid points is located at an intersection of a corresponding first virtual line parallel to the first coordinate axis and a corresponding second virtual line parallel to the second coordinate axis. The processor unit decodes each of the encoded data points based on positional relation thereof with a closest one of the virtual grid points thus found so as to obtain information encoded in the encoded point matrix image.
Since the encoded point matrix image according to the present invention uses the first and second sets of real grid points to define a coordinate plane, misidentification of the header state region group of the prior art is avoided. In addition, the number of encoded data points included in the encoded point matrix image is fixed for all varying encoded information so that it is not visually recognizable that there is encoded information present in the encoded point matrix image.
Other features and advantages of the present invention will become apparent in the following detailed description of the preferred embodiments with reference to the accompanying drawings, of which:
Before the present invention is described in greater detail, it should be noted herein that like elements are denoted by the same reference numerals throughout the disclosure.
As shown in
The electronic device 2 includes an image sensor unit 21, a point detector unit 22, a processor unit 23, and a storage unit 24. The image sensor unit 21 is operable to capture the encoded point matrix image 1, an example of which is illustrated in
The processor unit 23 is coupled to the point detector unit 22 for receiving information related to the spatial orientations and characteristics of the real grid and encoded data points 13, 14, 15 therefrom. The processor unit 23 decodes the encoded data points 15 based on a decoding principle so as to obtain information encoded in the encoded point matrix image 1. The information encoded in the encoded point matrix image 1 as obtained by the processor unit 23 is saved in the storage unit 24 that is coupled to the processor unit 23. The processor unit 23 locates the first and second coordinate axes (X), (Y) according to a first predetermined principle established internally therein, and finds a set of virtual grid points 16 according to a second predetermined principle also established internally therein. Details of the first and second predetermined principles will be described later.
Provided hereinbelow are detailed descriptions regarding the method for decoding the encoded point matrix image 1 with primary reference to
First, the point detector unit 22 obtains the spatial orientations and characteristics, such as shape, color, pattern, and size, of the base point 11, the direction indicating point 12, the real grid points of the first and second sets 13, 14, and the encoded data points 15 (step 101).
Next, the processor unit 23 locates the first and second coordinate axes (X), (Y) according to the first predetermined principle (step 102). Different ways of implementing the first predetermined principle with respect to the encoded point matrix image 1 according to the first preferred embodiment are explained hereinbelow with reference to
Referring to
The first predetermined principle can also begin by locating the base point 11, which is distinguishable from the real grid points of the first and second sets 13, 14 in at least one of shape, color, pattern, and size. Subsequently, the direction indicating point 12 is located in order to find the first coordinate axis (X), which is defined as a line of alignment (shown by arrow 31) between the base point 11 and the direction indicating point 12. Next, the second coordinate axis (Y) is located in one of two approaches: (A) by defining the second coordinate axis (Y) to be a line forming 90±30 degrees with the first coordinate axis (X) and passing through the base point 11; and (B) by finding the second set of real grid points 14 that are aligned with each other and with the base point 11, and that are misaligned with the direction indicating point 12. Ideally, the first and second coordinate axes (X), (Y) form a 90-degree angle therebetween. However, since the first and second coordinate axes (X), (Y) do not necessarily appear to be perpendicular to each other, especially when the encoded point matrix image 1 is captured by the image sensor 21 at a non-ideal angle, the 90±30 degree angle is taken in the former approach (A). For the sake of brevity, the second coordinate axis (X) is defined to be the line (shown by arrow 32) perpendicular to the first coordinate axis (Y) in this embodiment. It is noted herein that since the alignment between the second set of real grid points 14 is not distorted regardless of the image-capturing angle, the latter approach (B) is also applicable when the encoded point matrix image 1 is captured by the image sensor 21 at a non-ideal angle.
It should be noted herein that the base point 11 is located approximately at the center of the encoded point matrix image 1 so that misidentification due to blurred and indistinct points at the edges of the encoded point matrix image 1 is avoided. In addition, in this embodiment, the difference between the base point 11 and the direction indicating point 12 is that the base point 11 is aligned with the second set of real grid points 14, while the direction indicating point 12 is not.
Referring to
It should be noted herein that in the first embodiment, the direction indicating point 12 is identical in shape, color, pattern, and size with the base point 11, and is only different from the base point 11 in the misalignment/alignment with the second set of real grid points 14. However, the direction indicating point 12 can be different in shape, color, pattern, and size with the base point 11 and the real grid points 13, 14 in other embodiments of the present invention.
With reference to
To comply with this variation, after locating the base point 11, the first predetermined principle of the processor unit 23 continues to locate the second coordinate axis (Y) by finding the second set of real grid points 14 that are aligned with each other and with the base point 11, wherein distances between an adjacent pair of the real grid points in the second set 14 and between the base point 11 and an immediately adjacent one of the real grid points in the second set 14 are substantially equal to each other. In this embodiment, the distance is equal to one grid distance (D). Subsequently, the first coordinate axis (X) is located by finding the direction indicating point 12′ and by defining a line of alignment (shown by arrow 31′ between the base point 11 and the direction indicating point 12′ to be the first coordinate axis (X). In this embodiment, since the direction indicating point 12′ is identical in shape, color, pattern, and size with the real grid points of the first set 13′, the direction indicating point 12′ is found by finding a real grid point in the first set 13′ that is immediately adjacent to the base point 11 and that is spaced apart from the base point 11 at a distance that significantly differs from other real grid points 13′, 14 immediately adjacent to the base point 11.
Referring back to
In this embodiment, the second predetermined principle of the processor unit 23 includes finding the set of virtual grid points 16 using interpolation to find a set of the first virtual lines (X′) parallel to the first coordinate axis (X), and a set of the second virtual lines (Y′) parallel to the second coordinate axis (Y). Each of the first virtual lines (X′) intersects the second coordinate axis (Y) at a corresponding real grid point in the second set of real grid points 14. Each of the second virtual lines (Y′) intersects the first coordinate axis (X) at a corresponding real grid point in the first set of real grid points 13. It should be noted herein that the virtual grid points 16 can also be found by computing the vector between the base point 11 and each of the real grid points in both the first and second sets 13, 14 in other embodiments of the present invention.
The method for decoding the encoded point matrix image 1 then continues to locate the encoded data points 15 immediately adjacent to the virtual grid points 16 (step 104).
With reference to
In this embodiment, the decoding principle is defined according to the directional relation of the encoded data point 13 with respect to the closest one of the virtual grid points 16. In particular, each one of the virtual grid points 16 is taken as a coordinate center for defining four quadrants. The encoded data point 15 falling within each of the four quadrants as defined by the closest one of the virtual grid points 16, i.e., having one of four directional relations with the virtual grid point 16, has a corresponding decoded value. Referring to a decoding table 6 shown in
Therefore, through utilizing the point detector unit 22 to evaluate the encoded point matrix image 1 (1′) captured by the image sensor unit 21 so as to determine the spatial orientations and characteristics of the base, direction indicating, real grid and encoded data points 11, 12 (12′), 13 (13′), 14, 15, and through utilizing the processor unit 23 to decode the encoded data points 15 based on the decoding principle, the information encoded in the encoded point matrix image 1 (1′) can be obtained.
In sum, the method for decoding an encoded point matrix image and an electronic device implementing the same have the following advantages:
(1) In the prior art, an intact graphical indicator 91 (shown in
(2) The encoded data points 15 can only be decoded after the virtual grid points 16 are found using interpolation such that information contained in the encoded point matrix image 1 (1′) is not readily recognizable.
(3) Each state region 913 (shown in
(4) Since the encoding in the prior art is represented using the presence and absence of the black points, distribution of the black points shown in the graphical indicator 91 is uneven, resulting in a grayscale pattern that is easily detectable by the naked eye. On the contrary, since the encoding in the encoded point matrix image 1 (1′) of the present invention is represented using a positional offset of the encoded data points 15 with respect to the virtual grid points 16, the total number of points in the encoded point matrix image 1 (1′) is fixed, and the encoded point matrix image 1 (1′) is therefore not easily noticeable by the naked eye.
While the present invention has been described in connection with what are considered the most practical and preferred embodiments, it is understood that this invention is not limited to the disclosed embodiments but is intended to cover various arrangements included within the spirit and scope of the broadest interpretation and equivalent arrangements.
Number | Date | Country | Kind |
---|---|---|---|
95107426 A | Mar 2006 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
5825947 | Sasaki et al. | Oct 1998 | A |
5866895 | Fukuda et al. | Feb 1999 | A |
5886335 | Matsueda | Mar 1999 | A |
5897669 | Matsui | Apr 1999 | A |
6052813 | Nagasaki et al. | Apr 2000 | A |
6173890 | Shimizu et al. | Jan 2001 | B1 |
6279830 | Ishibashi | Aug 2001 | B1 |
6364209 | Tatsuta et al. | Apr 2002 | B1 |
6548768 | Pettersson et al. | Apr 2003 | B1 |
6560293 | Alelyunas et al. | May 2003 | B1 |
6624823 | Deering | Sep 2003 | B2 |
6950519 | Rhoads | Sep 2005 | B2 |
7090129 | Tatsuta | Aug 2006 | B2 |
7209128 | Shaked et al. | Apr 2007 | B2 |
7280699 | Kojima | Oct 2007 | B2 |
7453447 | Marggraff et al. | Nov 2008 | B2 |
7502489 | Rhoads | Mar 2009 | B2 |
7542607 | Bartolome | Jun 2009 | B2 |
7546950 | Thiyagarajah | Jun 2009 | B2 |
7952750 | Arakawa | May 2011 | B2 |
20020047870 | Carro | Apr 2002 | A1 |
20020181792 | Kojima | Dec 2002 | A1 |
20030072489 | Reichenbach et al. | Apr 2003 | A1 |
20060241893 | Van Thong et al. | Oct 2006 | A1 |
20070019808 | Gonzalez | Jan 2007 | A1 |
20070022370 | Lagardere et al. | Jan 2007 | A1 |
20070164110 | Yoshida | Jul 2007 | A1 |
20080013113 | Gonzalez et al. | Jan 2008 | A1 |
20080152224 | MacKenzie | Jun 2008 | A1 |
20080181447 | Adams et al. | Jul 2008 | A1 |
20090161957 | Chan et al. | Jun 2009 | A1 |
20100121737 | Yoshida | May 2010 | A1 |
Number | Date | Country |
---|---|---|
2 554 162 | Aug 2005 | CA |
2 396 042 | Jun 2004 | GB |
528967 | Apr 2003 | TW |
581970 | Apr 2004 | TW |
Number | Date | Country | |
---|---|---|---|
20070206029 A1 | Sep 2007 | US |