This application claims the priority benefit of China application serial no. 201810177870.4, filed on Mar. 5, 2018. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of this specification.
The disclosure relates to a method of generating binary positioning tags.
Nowadays, automation has become the trend for large management systems, and a positioning system assists mobile apparatuses in the large management system to obtain their locations, so that the mobile apparatuses do not lose their orientation. The positioning tag is one of the applications of the positioning system. The positioning tag is generally provided at a corresponding positioning point, and the mobile apparatus obtains location information by analyzing the positioning tag. Therefore, how to design a positioning tag that is easy to analyze has become one of the issues in the field of positioning systems.
The embodiments of the invention are directed to a method of generating binary positioning tags to provide positioning tags that are highly secure, arrangement-unique, and easy to obtain and analyze.
The method of generating binary positioning tags according to an embodiment of the invention includes the following steps. A pseudo random sequence is generated. The pseudo random sequence is circularly shifted and is sequentially filled in one of a plurality of odd rows and a plurality of even rows of a binary matrix, wherein a size of the binary matrix is MxN. A complement sequence of the pseudo random sequence is filled in the other one of the plurality of odd rows and the plurality of even rows. A binary submatrix having a size of I×J is retrieved from the binary matrix according to a relative position of a positioning point to be used as a positioning tag corresponding to the positioning point, wherein I is smaller than M, and J is smaller than N.
The accompanying drawings are included to allow further understanding of the embodiments of invention, and the drawings are incorporated into the specification and form a part of the specification. The drawings illustrate the embodiments of the invention and the drawings and the description together are used to interpret the principles of the invention.
Reference will now be made in detail to the exemplary embodiments of the invention, examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numbers are used in the drawings and the description to refer to the same or like parts.
Next, in step S120, the pseudo random sequence is circularly shifted and then is sequentially filled in one of a plurality of odd rows and a plurality of even rows of a binary matrix, wherein a size of the binary matrix is M×N, N is a positive integer larger than 1 and corresponds to the single-dimension length of the positioning tags, and M is 2 times N. In step S130, a complement sequence of the pseudo random sequence is filled in the other one of the plurality of odd rows and the plurality of even rows, wherein the complement sequence is l's complement of the pseudo random sequence.
Lastly, in step S140, a binary submatrix having a size of I×J is retrieved from the binary matrix according to a relative position of a positioning point to be used as a positioning tag corresponding to the positioning point, wherein I is a positive integer smaller than M, and J is a positive integer smaller than N.
In the foregoing embodiment, the pseudo random sequence “0010111” is sequentially circularly shifted right. However, in other embodiments, the pseudo random sequence “0010111” may be sequentially circularly shifted left, and the embodiments of the invention are not limited hereto.
Since the complement sequence “1101000” is simultaneously filled in the 1st, 3rd, 5th, 7th, 9th, 11th, 13th rows (the corresponding even rows) of the binary matrix MBX, the complement sequence “1101000” may be used to define an X position of the positioning point. Since the pseudo random sequences filled in the 2nd, 4th, 6th, 8th, 10th, 12th rows of the binary matrix MBX are sequentially circularly shifted right along the Y-axis, the circularly shifted pseudo random sequences may be used to define a Y position of the positioning point.
In the present embodiment, since the binary matrix MBX is established by using the pseudo random sequences, the positioning tags (e.g., the binary submatrix MSB1 or MSB2) is highly secure, arrangement-unique, and easy to obtain and analyze.
When the positioning tag shown as the binary submatrix MSB1 is obtained, it is rapidly known that two rows having the same content are the even rows (100) of the binary submatrix MSB1. After the two even rows (100) having the same content are compared with the complement sequence “1101000”, it is known that the X-axis position of the binary submatrix MSB1 is 3. Then, after the first row (001) of the binary submatrix MSB1 is compared with the pseudo random sequence “0010111”, it is known that the sequence “001” corresponds to the X-axis position 0. Therefore, through the foregoing comparison, it is found that the positioning tag (i.e., the binary submatrix MSB1) is moved from the X-axis position 0 to the X-axis position 3 (namely, being circularly shifted right three times). Then, by using the formula ((3-0)×2=6), it is calculated that the Y-axis position is 6. Therefore, the positioning tag (i.e., the binary submatrix MSB1) corresponds to the position (3, 6).
When the positioning tag shown as the binary submatrix MSB2 is obtained, it is rapidly known that two rows having the same content are the odd rows (110) of the binary submatrix MSB2. After the two odd rows (110) having the same content are compared with the complement sequence “1101000”, it is known that the X-axis position of the binary submatrix MSB2 is 0. Then, after the second row (001) of the binary submatrix MSB2 is compared with the pseudo random sequence “0010111”, it is known that the sequence “001” corresponds to the X-axis position 0. Therefore, it is found that the positioning tag (i.e., the binary submatrix MSB2) is moved from the X-axis position 0 to the X-axis position 0 (namely, being circularly shifted right seven times). Then, by using the formula ((7+0−0)×2−1=13), it is calculated that the Y-axis position is 13. Therefore, the positioning tag (i.e., the binary submatrix MSB2) corresponds to the position (0, 13).
Next, Xi(t+1) is Xi+1(t), Xi+1(t+1) is Xi+2(t), and Xi+2(t+1) is Xi(t) XOR wherein XOR means that the identical number (0 and 0 or 1 and 1) between Xi(t) and Xi+1(t) is 0, and the different number (0 and 1 or 1 and 0) is 1. Inferring analogously, it is derived that the pseudo random sequence is “0010111”.
Accordingly, in the method of generating binary positioning tags of the embodiments of the invention, the pseudo random sequence is established by using the primitive polynomial. Therefore, without understanding the establishment basis, the content of the binary positioning tags cannot be analyzed. In other words, the positioning tags are highly secure. Moreover, the pseudo random sequence is not only unique, but it is also possible to provide different quantities of the positioning tags according to the primitive polynomials of different orders. In other words, the positioning tags are unique and are sufficient in quantity. Since the positioning tags have binary properties (namely, consisting of 0 (black) and 1 (white)), with understanding of the establishment basis, the positioning tags are easy to obtain and analyze.
Lastly, it shall be noted that the foregoing embodiments are meant to illustrate, rather than limit, the technical solutions of the embodiments of the invention. Although the invention has been detailed with reference to the foregoing embodiments, persons ordinarily skilled in the art shall be aware that they may still make modifications to the technical solutions recited in the foregoing embodiments or make equivalent replacements of part or all of the technical features therein, and these modifications or replacements do not cause the nature of the corresponding technical solutions to depart from the scope of the technical solutions of the embodiments of the invention.
Number | Date | Country | Kind |
---|---|---|---|
201810177870.4 | Mar 2018 | CN | national |