A high-precision, anti-interference encoding and decoding method

By using RGB color coding and energy integration algorithm in the encoder, combined with the affine transformation of the color area array CCD, the problems of absolute encoder's coding bit information loss and low anti-interference ability in the case of physical damage and occlusion are solved. High-precision, anti-interference encoding and decoding methods are realized.

CN116026378BActive Publication Date: 2024-10-29CHANGZHOU XINRUIDE INSTR
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202211712061.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-29
Publication Date
2024-10-29
Estimated Expiration
2042-12-29

AI Technical Summary

Technical Problem

Existing absolute encoders are prone to losing coding bit information when physically damaged or coding bits are blocked, have low anti-interference capabilities, and have complex encoding and decoding processes.

Method used

RGB color coding is used to divide the 360-degree code disk into N equal-length partitions. Each partition is encoded in four colors: red, green, blue, and black. The RGB energy channel is used to denoise and identify the encoding, and a single element in the information encoding is used. The precise angle is calculated based on the distance between the barcode and the image center point, and the energy integration algorithm and the color area array CCD are combined to perform affine transformation to simplify the decoding process.

Benefits of technology

It improves the anti-interference ability and calculation accuracy of the encoding, reduces the impact of particulate matter and oil stains on the edge accuracy of the encoding, and is not affected by the installation process and optical edge imaging deformities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116026378B_ABST
    Figure CN116026378B_ABST
Patent Text Reader

Abstract

This invention relates to the field of precision surveying instruments, specifically to a high-precision, interference-resistant encoding and decoding method, comprising the following steps: dividing a 360-degree code disk into N partitions, each partition having a length of n and being unique; each partition using color encoding; each partition including a start code and an information code, wherein the information code contains at least one color, and the start code color is different from the information code color; locating the approximate angle to be decoded on the code disk through the information code, and then obtaining the precise angle value through the distance relationship between a single barcode in the information code and the image center point; the approximate angle plus the precise angle value is the final output result. This invention uses RGB color encoding, which has high calculation accuracy, and uses RGB channel noise reduction to filter out interference, which can directly improve the anti-interference capability. The process is simple and has high anti-interference capability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of precision surveying and mapping instruments, and in particular to a high-precision, anti-interference encoding and decoding method thereof. Background Art

[0002] At present, the encoding methods of existing encoders are mainly incremental and absolute. Since absolute encoders are significantly superior to incremental encoders in positioning, they are more widely used in industrial control positioning.

[0003] Existing absolute codes mostly use light and dark stripes of equal width or the presence or absence of stripes to distinguish codes. This method is extremely easy to lose code bit information when the code disk is physically damaged or the code bit is partially blocked, and has low anti-interference ability.

[0004] The Chinese patent single code channel absolute position encoding method and reading measurement system with authorization announcement number CN104019834B discloses recording the encoding information through the spatial distribution frequency of stripes, weakening the dependence on the integrity of single coding bit information during reading, and indirectly improving its anti-interference ability. This indirect method is more complicated in the encoding and decoding process. Summary of the invention

[0005] The purpose of the present invention is to provide a high-precision, anti-interference encoding and decoding method thereof, which adopts RGB color encoding, has high calculation accuracy, and adopts RGB channel denoising to filter out interference, which can directly improve the anti-interference ability, has a simple process and high anti-interference ability.

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] A high-precision, anti-interference encoding and decoding method, comprising the following steps:

[0008] S1. Divide the 360-degree code disk into N partitions, each partition is n in length and unique;

[0009] S2. Based on step S1, each partition is color-coded;

[0010] S3. Based on step S2, each partition includes a starting code and an information code, the information code has at least one color type, and the starting code color is different from the information code color;

[0011] S4. During the decoding process, the rough angle of the code to be decoded in the code disk is located through the information code, and then the precise angle value is obtained through the distance relationship between the single barcode in the information code and the center point of the image. The rough angle plus the precise angle value is the final output result.

[0012] Preferably, each partition uses red, green, blue and black as codes for interval sorting, and each color code is of equal width, black: rgb (0,0,0), red: rgb (255,0,0), green: rgb (0,255,0), blue: rgb (0,0,255), and the RGB energy channel can be used to quickly denoise and identify the code, effectively eliminating interference, white: rgb (255,255,255), gray: rgb (127,127,127), and affected by the white light source, the particle imaging will be between white and gray, and the interference can be easily identified by distinguishing the component values ​​in the RGB channel.

[0013] Furthermore, the starting coding color is black, the information coding colors are red, green, and blue, there is no interval code, and the amount of information is doubled, which is conducive to improving accuracy.

[0014] Furthermore, adjacent codes are in different colors.

[0015] Furthermore, the specific method in step S4 is:

[0016] S41. The coding bits are red, green, and blue, and are coded according to D=3-ary. The coding type is: L=D*(D-1) (n-2) ;

[0017] S42. Based on step S41, the rough angle of the encoder Li positioned in the code disc is θ=Li / L*360°;

[0018] S43. Based on step S42, the precise angle value Δ is calculated by accumulating and averaging the distance from the central pixel value of a single barcode in the information encoding to the center point of the image, and the final output result is θ+Δ.

[0019] Furthermore, the decoding process uses an energy integration algorithm to reduce the impact of particulate matter, oil pollution, etc. on the edge accuracy of the code.

[0020] Preferably, a color area array CCD is used for affine transformation, which is not affected by the installation process level and the optical edge imaging deformity, and can be directly transformed into a standard rectangle through affine transformation, thereby improving calculation accuracy.

[0021] The beneficial effects of the present invention are:

[0022] 1) RGB color coding is used with high calculation accuracy. The RGB energy channel can quickly remove noise and identify the code, effectively eliminating interference.

[0023] 2) Without spacing code, the amount of information is doubled, which is conducive to improving accuracy.

[0024] 3) The energy integration algorithm can reduce the impact of particulate matter, oil stains, etc. on the edge accuracy of the code.

[0025] 4) The use of color area array CCD for affine transformation is not affected by the installation process level, nor by the optical edge imaging deformity. It can be directly transformed into a standard rectangle through affine transformation, thereby improving the calculation accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0027] Figure 1 It is a schematic diagram of color interval coding of the present invention;

[0028] Figure 2 It is the original barcode image of the present invention and the schematic diagram with dust;

[0029] Figure 3 It is a schematic diagram of imaging of each RGB channel of the present invention;

[0030] Figure 4 It is a schematic diagram of the method for calculating the precise angle value of the present invention;

[0031] Figure 5 It is a schematic diagram of the color channel energy integration of the present invention;

[0032] Figure 6 It is a schematic diagram of sampling signals of linear array CCD in the prior art;

[0033] Figure 7 It is a schematic diagram of the area array CCD sampling signal of the present invention. DETAILED DESCRIPTION

[0034] Example 1

[0035] The present invention provides a high-precision, anti-interference encoding and decoding method, comprising the following steps:

[0036] S1. Divide the 360-degree code disk into N partitions, each partition is n in length and unique.

[0037] S2. Based on step S1, each partition is color-coded.

[0038] S3. Based on step S2, each partition includes a starting code and an information code, the information code has at least one color type, and the starting code color is different from the information code color.

[0039] S4. During the decoding process, the rough angle of the code to be decoded in the code disk is located through the information code, and then the precise angle value is obtained through the distance relationship between the single barcode in the information code and the center point of the image. The rough angle plus the precise angle value is the final output result.

[0040] Example 2

[0041] Based on Example 1, the present invention provides a high-precision, anti-interference encoding and decoding method, comprising the following steps:

[0042] S1. Divide the 360-degree code disk into N partitions, each partition is n in length and unique.

[0043] S2. Based on step S1, Figure 1 As shown, each partition is color-coded, and adjacent codes are of different colors. Each partition uses red, green, blue, and black as codes for interval sorting, and each color code has the same width, as shown in Figure 2 As shown, black: rgb(0,0,0), red: rgb(255,0,0), green: rgb(0,255,0), blue: rgb(0,0,255), using RGB energy channel can quickly remove noise and identify the code, effectively eliminating interference, white: rgb(255,255,255), gray: rgb(127,127,127), and affected by the white light source, the particle imaging will be between white and gray, such as Figure 3 As shown, by distinguishing the values ​​of each component in the RGB channel, the interferers can be easily identified.

[0044] S3. Based on step S2, each partition includes a start code and an information code. The start code color is black, and the information code colors are red, green, and blue. There is no interval code, and the amount of information is doubled, which is conducive to improving accuracy. The start code color is different from the information code color.

[0045] S4. In the decoding process, the coding bits are red, green, and blue, and are encoded according to D=3, so the coding type is: L=D*(D-1) (n-2) ; The rough angle of the code Li positioned in the code disk is θ = Li / L*360°; Figure 4 As shown, the precise angle value Δ is calculated by accumulating and averaging the distance from the central pixel value of a single barcode in the information encoding to the center point of the image, and the final output result is θ+Δ.

[0046] Example 3

[0047] On the basis of Embodiment 1 or Embodiment 2, the present invention provides a high-precision, anti-interference encoding and decoding method, and also adopts an energy integration algorithm, such as Figure 5 As shown, the rising and falling edges shown in the figure are basically not affected by noise after adopting the RGB channel separation + energy integration algorithm, which greatly improves the anti-interference ability and accuracy.

[0048] The other method steps of this embodiment 3 are the same as those of embodiment 1 or embodiment 2.

[0049] Example 4

[0050] On the basis of Example 1 or Example 2, the present invention provides a high-precision, anti-interference encoding and decoding method, and also uses a color array CCD for affine transformation, which is not affected by the installation process level and the optical edge imaging deformity, and can be directly transformed into a standard rectangle through affine transformation, thereby improving the calculation accuracy. Figure 6 As shown in the figure, when the traditional limiting CCD is used, when there is interference on the code disk, the sampling information is seriously interfered, such as Figure 7 As shown, when an area array CCD is used, when there is interference on the code disk, its sampling information can effectively eliminate the interference.

[0051] The other method steps of this embodiment 4 are the same as those of embodiment 1 or embodiment 2.

[0052] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention is described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A high-precision, anti-interference encoding and decoding method, characterized in that: The steps include: S1. Divide the 360-degree code disk into N partitions, each partition is n in length and unique; S2. Based on step S1, each partition is color-coded; S3. Based on step S2, each partition includes a starting code and an information code, the information code has at least one color type, and the starting code color is different from the information code color; S4. During the decoding process, the rough angle of the code to be decoded in the code disk is located by the information code, and then the precise angle value is obtained by the distance relationship between the single barcode in the information code and the center point of the image. The rough angle plus the precise angle value is the final output result; In step S2, each partition is sorted by using red, green, blue and black as codes, and each color code has the same width; In step S3, the initial coding color is black, and the information coding colors are red, green, and blue; Adjacent codes are in different colors; The specific method in step S4 is: S41. The coding bits are red, green, and blue, and are coded according to D=3-ary. The coding type is: L=D*(D-1) (n-2) ; S42. Based on step S41, the rough angle of the encoder Li positioned in the code disc is θ=Li / L*360°; S43. Based on step S42, the precise angle value Δ is calculated by accumulating and averaging the distance from the central pixel value of a single barcode in the information encoding to the center point of the image, and the final output result is θ+Δ.

2. The high-precision, anti-interference encoding and decoding method according to claim 1, characterized in that: The decoding process uses an energy integration algorithm.

3. A high-precision, anti-interference encoding and decoding method according to any one of claims 1-2, characterized in that: A color array CCD is also used for affine transformation.

Citation Information

Patent Citations

  • Coding method for single code track absolute position and reading measurement system

    CN104019834B

  • Color character encoding method and decoding method

    CN103310255A

  • Coding disc, photoelectric angle measurement encoder using same, and work method thereof

    CN106706012A

  • Color barcode, and generation method and apparatus thereof

    CN107871151A

  • Image encoding method, image decoding method, image encoding device, image decoding device, program therefor and recording medium

    JP2014204333A