Digital level bar code ruler encoding method and measuring instrument

By using pseudo-random sequence cluster coding of black and white barcodes of various widths on the digital level barcode ruler and combining it with the seventh-order M sequence coding rule, the problems of slow recognition speed and high bit error rate in the existing technology are solved, and efficient and accurate barcode recognition is achieved.

CN117073623BActive Publication Date: 2025-10-14CHANGZHOU XINRUIDE INSTR
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311069857.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-23
Publication Date
2025-10-14
Estimated Expiration
2043-08-23

AI Technical Summary

Technical Problem

The existing digital level barcode ruler has a slow recognition speed and a high bit error rate, which leads to problems of recognition difficulty and high bit error rate.

Method used

The black and white barcodes have various widths, and the information code is arranged in a pseudo-random sequence, clustered into two clusters A and B, and encoded using a seventh-order M sequence to meet specific coding rules to correct errors and wrong codes, ensuring the uniqueness and robustness of the coding sequence.

Benefits of technology

It reduces the recognition difficulty and bit error rate, improves the robustness of the encoding, and can automatically identify the positive and negative scales without the need for additional instrument settings, thus simplifying the recognition process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117073623B_ABST
    Figure CN117073623B_ABST
Patent Text Reader

Abstract

The present application relates to surveying instrument manufacturing technical field, specifically to a kind of digital level bar code ruler encoding method and measuring instrument, including black and white bar code arranged in turn, the black and white bar code respectively has multiple widths;Wherein, black bar code is information code, white bar code is interval code, the information code uses pseudo-random sequence arrangement, the combination arrangement mode of information code is unique;Multiple width information code is clustered into A, B two clusters, the information code of multiple different width of the present application is clustered into A, B two clusters, and A, B two cluster information code is encoded using one of the primitive polynomials in seven order M sequence, which reduces the recognition difficulty and error rate;At the same time, only one encoding sequence is used, but there are multiple encoding check methods, which can easily identify error code;The encoding method of the present application can be directly derived from the primitive polynomial, and the encoding method is simple;The present application encoding method can directly distinguish positive scale and reverse scale, without instrument setting resolution.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to surveying instrument manufacturing technology field, specifically relates to a kind of digital level bar code ruler coding method and measuring instrument. BACKGROUND

[0002] According to the principle of leveling, the main function of the level is to provide a horizontal line of sight, and can be aimed at water level to read.

[0003] The coding and decoding method of the digital level bar code ruler of the Chinese patent with the authorization announcement No.CN102261926B discloses a kind of coding and decoding method: black and white bar code on digital level bar code ruler is arranged in turn alternately, black and white bar code has multiple widths respectively;Wherein, with a fixed width black bar code or white bar code as reference code, the region between the same side edge or center of two adjacent reference codes constitutes a code area;The length of each code area is equal, and the combination mode of black and white bar code in each code area is unique.Decoding can reduce the amount of calculation in units of code area.

[0004] But because the type of bar code width is more, information identification still exists certain difficulty, and there is certain error rate. SUMMARY

[0005] The purpose of the present application is to provide a kind of digital level bar code ruler coding method and measuring instrument, can reduce the difficulty of identification while ensuring the identification speed, reduce error rate.

[0006] To achieve the above object, the present application provides the following technical scheme:

[0007] Firstly, the present application provides a kind of digital level bar code ruler coding method, including black and white bar code arranged in turn alternately, the black and white bar code has multiple widths respectively;

[0008] Wherein, black bar code is information code, white bar code is interval code, the information code adopts pseudo-random sequence arrangement, and the combination arrangement mode of information code is unique;

[0009] Multiple width information code is classified into A and B clusters by clustering, and in any continuous length L bar code ruler, the probability of A cluster information code and B cluster information code is 50%.

[0010] Further, A cluster information code and B cluster information code are encoded according to one primitive polynomial in seven-order M sequence, when the A and B codes classified by clustering satisfy the seven-order M sequence sorting rule, the error code, wrong code and occlusion can be perfectly corrected, and the robustness is improved.

[0011] Further, the information code width includes: 4cm, 6cm, 9cm, 11cm.

[0012] Further, the four different width information codes satisfy the four-element Huffman coding rule when meeting the clustering information code requirement, and any continuous length L is unique in the entire coding sequence, and the information code of any continuous length L can uniquely locate the level bar code ruler position.

[0013] Further, the information codes with a width of 4 cm and 6 cm are A cluster information codes, and the information codes with a width of 9 cm and 11 cm are B cluster information codes, the A cluster information code is defined as 5 cm, and the B cluster information code is defined as 10 cm.

[0014] Further, in order to facilitate the verification of the accuracy of the bar code signal, the distance between the centers of the information codes is 15 cm, which forms the relationship of A+B=15 cm, A*3=15 cm, B*2 / 3=15 cm, 4+11=15 cm, and 6+9=15 cm with the A cluster information code and the B cluster information code.

[0015] In a second aspect, the present application provides a digital level using the level bar code ruler of the coding method according to any one of the first aspect.

[0016] In a third aspect, the present application provides an electronic theodolite or a total station using the code disc of the coding method according to any one of the first aspect.

[0017] The beneficial effects of the present application are as follows: the multiple different width information codes are clustered into two A and B clusters, a primitive polynomial in a seven-order M sequence is used for coding the A and B cluster information codes, the recognition difficulty and the error rate are reduced, only one coding sequence is used, but there are multiple coding verification methods, and the error codes can be easily recognized, the coding method of the present application can be directly derived from the primitive polynomial, the coding method is simple, and the present application can directly distinguish the positive ruler and the inverted ruler without setting the resolution of the instrument. BRIEF DESCRIPTION OF DRAWINGS

[0018] The accompanying drawings are included to provide a further understanding of the present application, and constitute a part of the specification, and are used together with the embodiments of the present application to explain the present application, and do not constitute a limitation on the present application. In the drawings:

[0019] Figure 1 is a digital level bar code ruler part schematic diagram of the coding method of the present application;

[0020] Figure 2 is Figure 1 is a bar code ruler in a 10 m field of view of a level;

[0021] Figure 3 is a M sequence 2-16 order primitive polynomial coefficient schematic diagram. DETAILED DESCRIPTION

[0022] Embodiment 1

[0023] The digital level bar code scale coding method comprises black and white bar codes arranged in turn and alternately, wherein the black bar code is an information code, the white bar code is a spacing code, the information code adopts a pseudo-random sequence arrangement, and the combination arrangement mode of the information code is unique.

[0024] The black and white bar codes have multiple widths, and the multiple widths specifically include 4 cm, 6 cm, 9 cm and 11 cm; the information codes of the multiple widths are divided into two clusters A and B by clustering, the information codes with the widths of 4 cm and 6 cm are A-cluster information codes, the information codes with the widths of 9 cm and 11 cm are B-cluster information codes, the A-cluster information code is defined as 5 cm, and the B-cluster information code is defined as 10 cm.

[0025] The four information codes with different widths satisfy the four-element Huffman coding rule when meeting the clustering information code requirement, and any continuous length L is unique in the entire coding sequence, so that the information code with any continuous length L can uniquely locate the level bar code scale position.

[0026] The A-cluster information code and the B-cluster information code are encoded according to a primitive polynomial in a seven-order M sequence as shown in Figure 3 When the A code and the B code classified by clustering meet the seven-order M sequence sorting rule, the A-cluster information code and the B-cluster information code can be perfectly corrected, the error code and the shielding are improved, and the robustness is improved; the probability of the A-cluster information code and the B-cluster information code in the bar code scale with the length requirement in any continuous length L is 50%, so that the level fluctuation caused by the different proportions of the A-cluster information code and the B-cluster information code in imaging can be ensured; in actual application, the probability of the A-cluster information code and the B-cluster information code is about 50%, and part of the error is allowed, for example, when the number of information codes is odd, the probability of the A-cluster information code and the B-cluster information code is not completely equal, and when the number of information codes is even, the longer the continuous length of the information code, the closer the probability of the A-cluster information code and the B-cluster information code to 50%.

[0027] Taking the feedback coefficient C i of the seven-order M sequence as an example, the decimal coefficient is first converted into the binary coefficient, that is, C i = (010001001) 2, from which the feedback coefficients of each order are obtained as follows: C 0 = 1, C 1 = 0, C 2 = 0, C 3 = 0, C 4 = 1, C 5 = 0, C 6 = 0 and C 7 = 1, from which the corresponding M sequence generator can be easily constructed. According to the feedback coefficient, the construction principle of the M sequence of other orders is the same as the above method.

[0028] As shown in Figure 1 The digital level bar code scale part schematic diagram is shown in the table 1 from the lower to the upper direction to identify the bar code width, and the width unit is cm.

[0029]

[0030]

[0031] Table I: Figure 1 List of barcode width in the direction from bottom to top

[0032] As Figure 1 shown in the schematic diagram of the digital level bar code ruler part, the cluster barcode width in the direction from bottom to top is shown in Table II:

[0033]

[0034] Table II: Figure 1 List of barcode width in the direction from bottom to top

[0035] In order to facilitate the verification of the accuracy of the identified barcode signal, the distance between the information code centers is 15 cm, and the A cluster information code and the B cluster information code form the relationship of A+B=15 cm, A*3=15 cm, B*2 / 3=15 cm, 4+11=15 cm, and 6+9=15 cm.

[0036] The length of the seven-order M sequence is 2 7 =128, 128*0.15=19.2 m, the length of the bar code ruler is up to 5 meters, and a required segment is selected; the coding rule satisfies the uniqueness of the information code in any continuous length L in the order and the reverse order, so that the instrument does not need to be set in the actual application scene, and the reverse ruler and the normal ruler can be automatically identified, and the height and the vertical height can be measured.

[0037] The decoding method of the present application is the same as the coding and decoding method of the digital level bar code ruler of the Chinese patent with the authorization announcement number CN102261926B, and specifically: based on the measured barcode image positioning the position of the barcode in the image, according to the position of the cross hair in the barcode image in the level, the position of the cross hair is found, that is, the target code segment, then the target code segment is matched according to the arrangement mode of the black and white barcodes in the target code segment, to find the position of the target code segment in the barcode ruler, then the height value of the information code closest to the cross hair is obtained, which is the rough height value of the target point measured by the digital level; finally, the precise height value of the target point is obtained according to the distance between the cross hair and all the information codes in the target code segment.

[0038] Embodiment 2

[0039] On the basis of embodiment 1, the present application provides a digital level, which uses the level bar code ruler of the coding method as described in embodiment 1.

[0040] The other method steps of embodiment 2 are the same as those of embodiment 1.

[0041] Embodiment 3

[0042] On the basis of Embodiment 1, the present application provides an electronic theodolite or a total station, which uses a code disc of the encoding method as described in the embodiment.

[0043] Other method steps of this embodiment 3 are the same as those of Embodiment 1.

[0044] The above only describes the preferred embodiments of the present application and is not intended to limit the present application. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or equivalently replace some technical features thereof. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A digital level barcode encoding method, characterized by: The black and white barcodes are arranged alternately in sequence, and the black and white barcodes have different widths respectively; The black barcode is the information code, and the white barcode is the interval code. The information code is arranged in a pseudo-random sequence, and the combination and arrangement of the information code is unique. Information codes of various widths are clustered into two clusters, A and B. After clustering, the information code width of the cluster center of cluster A is 5 cm, and cluster A includes information codes with widths of 4 cm and 6 cm. The information code width of the cluster center of cluster B is 10 cm, and cluster B includes information codes with widths of 9 cm and 11 cm. In any barcode size with a continuous length of L, the probability of cluster A information codes and cluster B information codes is 50%.

2. The digital level barcode encoding method according to claim 1, characterized in that: The A cluster information code and the B cluster information code are encoded according to a primitive polynomial in a seventh-order M sequence, and any continuous length L is unique in the entire encoding sequence.

3. The digital level barcode encoding method according to claim 1, characterized in that: The information code widths include: 4cm, 6cm, 9cm, and 11cm.

4. A digital level barcode encoding method according to claim 2 or 3, characterized in that: The four different width information codes, through the selected primitive polynomials, meet the requirements of cluster information codes while also meeting the quaternary Huffman coding rule, and any continuous length L is unique in the entire coding sequence.

5. The digital level barcode encoding method according to claim 1, characterized in that: The distance between the centers of the information codes is 15 cm, which forms the relationship of A+B=15 cm, A*3=15 cm, B*2 / 3=15 cm, 4+11=15 cm, and 6+9=15 cm with the A cluster information codes and the B cluster information codes.

6. A digital level, characterized in that A level barcode ruler using the encoding method according to any one of claims 1 to 5.

7. An electronic theodolite or a total station, characterized in that A code wheel using the encoding method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Coding and decoding methods of digital level bar code ruler

    CN102261926B

  • Pseudorandom bar code applied to digital level bar code ruler

    CN102654400A

  • Barcode and barcode preparation system

    JP2002245399A