The invention relates to a code pattern and code patterns, and more particularly to a code pattern and code patterns having cross-shaped positioning patterns.
The prior arts related to a code pattern and code patterns have been disclosed in Japan Patent Publication No. 2007-11890, U.S. Patent Publication No. US2007/026547, Taiwan Utility Model Patent Application No. 094205159, U.S. Patent Publication No. US2003/011164, and U.S. Patent Publication No. US2006/0007255.
Conventionally, when positioning marks of a code pattern are affected by the tilting or rotating of images, it often results in difficulty in identifying the positioning marks. This is when the process of image alignment is used for aligning the tilted or rotated images, which facilitates the identification of the positioning marks. However, the calculation and processing of the image alignment process is so time-consuming that it cannot be completed without the use of hardware with high computational capability.
In light of the disadvantages of prior code pattern and positioning marks, the inventor of the present invention has proposed a code pattern having a cross-shaped positioning pattern, such that five positioning marks may be readily differentiated from numerous other marks, and the cross-shaped positioning patterns of the code pattern will not become difficult to identify when images are tilted or rotated.
A primary objective of the invention is to provide a code pattern and code patterns having cross-shaped positioning patterns, which facilitates the differentiation of positioning marks from numerous other marks.
A further objective of the invention is to provide a method for interpreting a code pattern, which allows for quickly finding a positioning pattern in a code pattern, such that information represented by the code pattern may be interpreted.
The structure, the features, and the performance of the present invention can be more clearly understood by referring to the following detailed description of the preferred embodiments and the accompanying diagrams, wherein:
Referring to
The code pattern 10 of the invention comprises: a plurality of marks 101, wherein the marks 101 at least include a central positioning mark 101a, a first positioning mark 101b, a second positioning mark 101c, a third positioning mark 101d, and a fourth positioning mark 101e. The central positioning mark 101a, the first positioning mark 101b, the second positioning mark 101c, the third positioning mark 101d, and the fourth positioning mark 101e are distributed within the region 11 along with the other marks 101. The cross-shaped positioning pattern 12 of the code pattern 10 comprises the central positioning mark 101a, the first positioning mark 101b, the second positioning mark 101c, the third positioning mark 101d, and the fourth positioning mark 101e, and is disposed in a shape of a cross. The first positioning mark 101b, the second positioning mark 101c, the third positioning mark 101d, and the fourth positioning mark 101e are four neighboring marks closest to the central positioning mark 101a in distance, and are respectively located at four corners of the central positioning mark 101a.
Referring to
Xa=(Xb+Xc+Xd+Xe)/4
Ya=(Yb+Yc+Yd+Ye)/4
Referring to
Furthermore, in order to increase the rate of successful identification in regard to the cross-shaped positioning pattern 12 of the invention, a varied correlative relationship (Formula 2) between the positional coordinates can be employed in the invention, as shown below:
(Xb+Xc+Xd+Xe)/4−□X□Xa□(Xb+Xc+Xd+Xe)/4+□X
(Yb+Yc+Yd+Ye)/4−□Y□Ya□(Yb+Yc+Yd+Ye)/4+□Y
In which □X is a predetermined tolerable error of the X-axis, and □Y is a predetermined tolerable error of the Y-axis.
In other words, the central positioning mark can be easily identified, by finding out which of the marks has a coordinate that is one-fourths of a sum resulted from adding together coordinates of four surrounding marks thereof, whereas the four surrounding marks are the positioning marks. After knowing which is the central positioning mark and which are the positioning marks, the information represented by the other marks can be easily deduced.
In the present invention, the code pattern 10 has the cross-shaped positioning pattern 12, and because the cross-shaped positioning pattern is less susceptible to image tilting and rotating, the original cross-shaped positioning pattern is prevented from serious deforming. As a result, even if a captured image is tilted or rotated at an angle in the step 41, the method 4 would not require additional image alignment process for processing the tilted or rotated images, thus skipping the time-consuming image alignment process.
The step 43 is finding out which of the marks 101 are the central positioning mark 101a, the first positioning mark 101b, the second positioning mark 101c, the third positioning mark 101d, and the fourth positioning mark 101e from the images by utilizing the aforesaid Formulas 1 or 2. The step 45 is recording the coordinates of the central positioning mark 101a, the first positioning mark 101b, the second positioning mark 101c, the third positioning mark 101d, and the fourth positioning mark 101e, and interpreting information represented by the other marks 101.
In the step 43, the correlative relationship between a coordinate of one mark 101 and coordinates of four closest marks 101 thereof is continuously calculated, and if the aforesaid Formula 1 or 2 are satisfied, then the mark 101 is identified as the central positioning mark 101a, and the other four marks 101 at four closest corners thereof are respectively identified as the first positioning mark 101b, the second positioning mark 101c, the third positioning mark 101d, and the fourth positioning mark 101e.
Subsequently, the coordinates of the identified central positioning mark 101a, the first positioning mark 101b, the second positioning mark 101c, the third positioning mark 101d, and the fourth positioning mark 101e are recorded in the step 45, and the five identified marks 101a to 101e are the marks that make up the cross-shaped positioning pattern 12. By using the identified cross-shaped positioning pattern 12, the information represented by the other marks from the images can be deduced. For instance, directional marks can be further identified by using the cross-shaped positioning pattern 12, and the directional marks are the examples of the information that may be represented by the aforesaid other marks 101.
The calculation of coordinates in the aforesaid Formula 1 or 2 is carried out by dividing a sum by four, and can be substituted by dividing the sum by two twice. The calculation of dividing the sum by two is equivalent to the right-shift operation, which indicates the calculation required in the step 43 can be readily completed.
According to the present invention, the cross-shaped positioning pattern of the code pattern is readily identifiable, and can be easily differentiated from numerous other marks 101. Once the coordinate of the cross-shaped positioning pattern is known, the information of the other marks can be obtained by making use of their correlative relationship with the cross-shaped positioning pattern 12, which speeds up the interpretation of the code pattern as described in the invention.
The aforesaid are merely preferred embodiments of the present invention and should not be used to restrict the scope of the present invention, and it is understood that those skilled in the art may carry out changes and modifications to the described embodiments without departing from the content of the invention.
Number | Date | Country | Kind |
---|---|---|---|
97137050 A | Sep 2008 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
5189292 | Batterman et al. | Feb 1993 | A |
5773806 | Longacre, Jr. | Jun 1998 | A |
5860679 | Fukuda et al. | Jan 1999 | A |
6267296 | Ooshima et al. | Jul 2001 | B1 |
20040182930 | Nojiri | Sep 2004 | A1 |
20070187508 | Takayama | Aug 2007 | A1 |
Entry |
---|
Weisstein, Eric W. “Geometric Centroid.” From MathWorld—A Wolfram Web Resource. http://mathworld.wolfram.com/GeometricCentroid.html. |
Number | Date | Country | |
---|---|---|---|
20100078478 A1 | Apr 2010 | US |