Scale-based turntable calibration method and rotation angle measurement method

By using a scale-based turntable calibration method and image processing technology, a simplified calibration and measurement of a high-precision turntable is achieved using a single calibration point. This solves the problems of complex and costly existing turntable calibration, reduces equipment price and size, and facilitates operation and transportation.

CN118781618BActive Publication Date: 2026-11-24ROCKETECH TECH CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411101507.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2026-11-24
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

Existing high-precision turntable calibration methods are complex, costly, error-prone, and difficult to transport. They also require multiple calibration points, which affects measurement accuracy and operational difficulty.

Method used

A scale-based turntable calibration method is adopted, which uses a single calibration point for calibration via a ruler and a calibration camera. Combined with image processing technology, this simplifies the operation process and reduces costs.

Benefits of technology

It simplifies the calibration and measurement of high-precision turntables, reduces production and assembly difficulties, minimizes operational uncertainties, lowers equipment price and size, and facilitates transportation and use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118781618B_ABST
    Figure CN118781618B_ABST
Patent Text Reader

Abstract

This invention relates to the field of photogrammetry and image processing technology, and provides a scale-based turntable calibration method and a rotation angle measurement method. The calibration method includes the following steps: S1: Obtain the coordinates of the load camera; S2: Set up a calibration point and obtain the coordinates of the calibration point; S3: Control the rotation of the rotating shaft so that the calibration point is located at the center of the load camera's image, the calibration camera takes a scale image, the scale image includes the scale and scale indicator lines, and the calibration angle value of the load camera is calculated based on the scale image. This solution uses only one calibration point to calibrate the turntable, and the calibration process is simple and easy to operate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of photogrammetry and image processing technology, and in particular to a scale-based turntable calibration method and a rotation angle measurement method. Background Technology

[0002] Turntables, as passive detection systems, can monitor, track, and locate targets, and are widely used in scientific research and production. With the development of modern technology, various tasks require turntables to provide high-precision angle output.

[0003] Existing high-precision rotary tables employ special and complex structures, placing extremely stringent requirements on machining accuracy and assembly. Furthermore, due to their complex mechanical structure, high-precision rotary tables are often large in size, making them difficult to transport and use. Bumps and vibrations during transportation and use can also reduce the coupling degree of the internal components, thus affecting measurement accuracy. High-precision rotary tables utilize advanced coded marker discs and precision parts, making them expensive and unaffordable for ordinary users.

[0004] Existing turntable calibration methods are relatively complex, requiring two, three, or even more calibration points. For on-site operators, the more points required, the longer the calibration time and the more prone to errors.

[0005] Therefore, there is a need to provide a scale-based turntable calibration method and a rotation angle measurement method that can calibrate the turntable using only one calibration point, and the calibration process is simple and easy to operate.

[0006] The information disclosed in the background section is only intended to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention

[0007] The main purpose of this invention is to overcome the problems of high cost, difficult operation, and easy error in turntable calibration, and to provide a scale-based turntable calibration method and rotation angle measurement method. The turntable can be calibrated using only one calibration point. The calibration process is simple, easy to operate, and low in cost.

[0008] To achieve the above objectives, the first aspect of the present invention provides a scale-based turntable calibration method, employing a scale-based turntable and a load camera. The turntable includes a scale ruler, a scale indicator line, a calibration camera, a fixed end, and a rotating shaft that rotates relative to the fixed end. The scale indicator line and the calibration camera are disposed on the fixed end, and the scale ruler is disposed on the rotating shaft, or the scale indicator line and the calibration camera are disposed on the rotating shaft, and the scale ruler is disposed on the fixed end. When the rotating shaft rotates, the scale indicator line and the scale ruler move relative to each other. The calibration camera is used to photograph the scale indicator line and the scale ruler. The load camera is fixed on the turntable. The method includes the following steps: S1: Obtain the coordinates of the load camera; S2: Set up a calibration point and obtain its coordinates; S3: Control the rotation of the shaft so that the calibration point is located in the center of the load camera's image. The calibration camera takes a picture of the scale, which includes the scale and scale indicator lines. The calibration angle value of the load camera is calculated based on the scale picture.

[0009] According to an exemplary embodiment of the present invention, the scale indicator line in the ruler image is one, and the ruler includes multiple scale lines and multiple scale numbers. The multiple scale lines include multiple long scale lines and multiple short scale lines. The scale numbers are represented on the long scale lines, and multiple short scale lines are set between every two long scale lines.

[0010] According to an exemplary embodiment of the present invention, in step S3, calculating the calibration angle value of the load camera based on the scale image includes: S31: Obtain the length or angle of the ruler indicated by the scale line based on the ruler image; S31: Obtain the rotation angle information of the shaft based on the length or angle of the ruler.

[0011] According to an exemplary embodiment of the present invention, in step S31, obtaining the length of the ruler indicated by the scale indicator line based on the ruler image includes: S311: Identify scale numbers and detect straight line segments in a ruler image; S312: Filter out long scale lines, short scale lines, and scale indicator lines; S313: Match the long scale line with the scale number and calculate the scale corresponding to the short scale line; S314: Select the scale lines on both sides of the scale indicator line and calculate the scale of the scale indicator line.

[0012] According to an exemplary embodiment of the present invention, in step S311, detecting the straight line segments in the ruler image includes: Binarize the image; Use a line detection algorithm to detect line segments.

[0013] According to an exemplary embodiment of the present invention, in step S312, the filtering of long scale lines, short scale lines, and scale indicator lines includes: Obtain the image coordinates of both ends of each line segment; Calculate the angle of each line segment in the image. If the angle is outside the range, it is considered to be one of the following: a long scale line, a short scale line, or a scale indicator line. Otherwise, the line segment is discarded. Calculate the length of each line segment in the image. If the length is less than the length threshold, it is considered a short tick mark; otherwise, it is considered a long tick mark or tick indicator line. The length threshold is greater than the length of the short tick mark but less than the length of the tick indicator line and the long tick mark. In a straight line segment whose length is greater than or equal to the length threshold, find the endpoint with the largest ordinate or abscissa. The straight line segment corresponding to this endpoint is the scale indicator line, and the rest are long scale lines.

[0014] According to an exemplary embodiment of the present invention, in step S314, calculating the scale of the scale indicator line includes: calculating the scale of the scale indicator line based on the previous nearest scale line, the horizontal pixel distance or angle between the scale indicator line and two adjacent scale lines.

[0015] According to an exemplary embodiment of the present invention, the calculation of the scale of the scale indicator line based on the nearest preceding scale line, the horizontal pixel distance or angle between the scale indicator line and two adjacent scale lines is performed using Formula 5: S=S1 j Formula 5: +d1÷(d1+d2)×(S2-S1)÷n In this system, the first long scale line is labeled S1, the second long scale line is labeled S2, and S1 < S2. There are n-1 short scale lines between the first long scale line S1 and the second long scale line S2. j d1 represents the j-th short tick mark, where j is a natural number from 0 to n-1 and n is a natural number greater than 0; d1 is the horizontal pixel distance or angle from the tick mark to the nearest previous tick mark, and d2 is the horizontal pixel distance or angle from the tick mark to the nearest next tick mark.

[0016] According to an exemplary embodiment of the present invention, the calibration angle value includes a calibration azimuth angle value and a calibration pitch angle value; the scale includes an azimuth scale and a pitch scale; the scale indicator line includes an azimuth scale indicator line and a pitch scale indicator line; the calibration camera includes an azimuth camera and a pitch camera; the azimuth camera captures images of the azimuth scale and the azimuth scale indicator line to obtain the calibration azimuth angle value; and the pitch camera captures images of the pitch scale and the pitch scale indicator line to obtain the calibration pitch angle value.

[0017] As a second aspect of the present invention, a method for measuring the rotation angle of a scale-based turntable is provided, comprising the following steps: The scale-based turntable calibration method described above is adopted; S4: Control the turntable to rotate so that the measurement target is located in the center of the load camera's image, the calibration camera takes a picture of the scale, and calculates the current angle value of the load camera based on the scale picture; S5: Calculate the relative rotation angle of the turntable relative to the calibration point based on the calibrated angle value and the current angle value; S6: Calculate the pointing angle of the target based on the coordinates of the calibration point and the relative rotation angle.

[0018] This invention achieves high-precision angle measurement results by adding two cameras and two sets of scales to a standard turntable. Image processing technology eliminates the need for complex mechanical structures, reducing production and assembly complexity. This solution eliminates the need for high-precision encoders, resulting in a lower overall price compared to current high-precision turntables. Furthermore, the turntable is smaller and lighter, facilitating easier transport and use.

[0019] The turntable calibration and measurement method proposed in this invention allows for turntable-loaded camera calibration using only one calibration point after leveling the turntable base. This enables the measurement of the actual orientation of a target in space. The calibration and measurement method is relatively simple and easy to operate, reducing uncertainties in the calibration and measurement process and lowering the operational threshold. Attached Figure Description

[0020] The above and other objects, features, and advantages of this application will become more apparent from the detailed description of exemplary embodiments with reference to the accompanying drawings. The drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.

[0021] Figure 1 A schematic diagram of the scale-based turntable is shown.

[0022] Figure 2 The schematic diagram shows the scale of the azimuth rotation axis.

[0023] Figure 3 A schematic diagram of the scale of the pitch rotation axis is shown.

[0024] Figure 4 A schematic diagram of a ruler image is shown.

[0025] Figure 5 A schematic diagram of the pitch scale image is shown.

[0026] Figure 6 The diagram schematically illustrates the steps of a method for measuring the rotation angle of a scale-based turntable.

[0027] Figure 7 The schematic diagram illustrates the calibration and measurement of the turntable under the northeast celestial coordinate system.

[0028] Wherein, A—calibration point, B—measurement point, 1—load mounting platform, 2—pitch scale, 3—turntable body, 4—azimuth camera, 5—azimuth camera bracket, 6—pitch axis, 7—pitch camera, 8—pitch camera bracket, 9—azimuth scale, 10—base, 11—azimuth axis. Detailed Implementation

[0029] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, they are provided so that this application will be thorough and complete, and will fully convey the concept of the exemplary embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted.

[0030] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.

[0031] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.

[0032] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.

[0033] It should be understood that although the terms first, second, third, etc., may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one component from another. Therefore, the first component discussed below may be referred to as the second component without departing from the teachings of this application. As used herein, the term "and / or" includes all combinations of any one and more of the associated listed items.

[0034] Those skilled in the art will understand that the accompanying drawings are merely schematic diagrams of exemplary embodiments, and the modules or processes in the drawings are not necessarily essential for implementing this application, and therefore cannot be used to limit the scope of protection of this application.

[0035] According to a first specific embodiment of the present invention, the present invention provides a photogrammetric apparatus, comprising: a pointing angle calculation module, a load camera, and a scale-based turntable.

[0036] like Figure 1 The above, Figure 1 The rotary table is a scale-based turntable, which includes: a scale ruler, scale indicator lines, a calibration camera, a fixed end, a rotating shaft that rotates relative to the fixed end, and an image processing module (not shown in the figure).

[0037] The scale indicator line and calibration camera are set on the fixed end, and the scale indicator line is set on the rotating shaft, or the scale indicator line and calibration camera are set on the rotating shaft, and the scale ruler is set on the fixed end; when the rotating shaft rotates, the scale indicator line and the scale ruler move relative to each other.

[0038] The calibration camera is used to capture images of the ruler, which include the scale lines and the ruler itself.

[0039] The image processing module is communicatively connected to the calibration camera to acquire images of the scale taken by the calibration camera and calculate the calibration angle value of the turntable. Calculating the calibration angle value of the turntable includes: obtaining the length of the scale indicated by the scale indicator line based on the scale image; and obtaining the rotation angle information of the rotating shaft based on the length of the scale.

[0040] like Figure 1 As shown, the scale-based turntable is a dual-axis turntable. The axes include an azimuth axis 11 and a pitch axis 6. Figure 1In this configuration, the azimuth axis 11 is vertically positioned, with its lower part fixedly connected to the base 10, which serves as the fixed end of the azimuth axis 11. The upper free end of the azimuth axis 11 is fixedly connected to the turntable body 3. The upper free end of the azimuth axis 11 rotates about the vertical axis, causing the turntable body 3 to rotate. The pitch axis 6 is horizontally positioned, with one end fixedly connected to the turntable body 3, which serves as the fixed end of the pitch axis 6. The other free end of the pitch axis 6 is fixedly connected to the load mounting platform 1. The free end of the pitch axis 6 rotates about the horizontal axis, causing the load mounting platform 1 to rotate. Figure 1 In the center, the upper left corner of the turntable body 3 includes two circular patterns. The inner circle indicates the pitch axis 6, and the outer circle is fixedly connected to the turntable body 3 to hold the pitch scale 2. The load mounting platform 1 is fixedly connected to the load camera.

[0041] The calibrated angle values ​​include the calibrated azimuth angle value and the calibrated pitch angle value. The scale includes the azimuth scale 9 and the pitch scale 2. Figure 1 In this configuration, the azimuth scale 9 is mounted on the azimuth axis 11, and the pitch scale 2 is mounted on the pitch axis 6. The scale indicators include azimuth and pitch indicators. For example... Figure 2 As shown, the azimuth scale indicator line is set on the base 10 and located below the azimuth scale ruler 9; Figure 3 As shown, the pitch scale indicator line is set on the fixed end (that is, the turntable body 3).

[0042] like Figure 2 and Figure 4 As shown, taking the azimuth scale 9 as an example, the azimuth scale 9 includes multiple azimuth scale lines and multiple azimuth scale numbers. The multiple azimuth scale lines include multiple long azimuth scale lines and multiple short azimuth scale lines. The azimuth scale numbers are marked on the long azimuth scale lines, and multiple short azimuth scale lines are set between every two long azimuth scale lines. The distance between every two adjacent azimuth scale lines is equal. As a preferred embodiment, four short azimuth scale lines are set between every two long azimuth scale lines. The azimuth scale indicator line points to the azimuth scale 9 and is longer than the short azimuth scale lines. One scale corresponds to one scale indicator line; that is, the azimuth scale 9 has one azimuth scale indicator line, and the elevation scale 2 has one elevation scale indicator line. Figure 4 S1 and S2 are the azimuth scale numbers. In a preferred embodiment, the horizontal direction of the image is the horizontal axis, and the vertical direction is the vertical axis. The azimuth scale lines and azimuth scale indicator lines are parallel to the vertical axis.

[0043] like Figure 3 and Figure 5As shown, taking pitch scale 2 as an example, pitch scale 2 has a ring-shaped structure that surrounds the pitch scale indicator lines, forming a disk shape. Pitch scale 2 includes multiple pitch scale lines and multiple pitch scale numbers. The multiple pitch scale lines include multiple long pitch scale lines and multiple short pitch scale lines; the pitch scale numbers are marked on the long pitch scale lines, and multiple short pitch scale lines are arranged between every two long pitch scale lines. The included angle between every two adjacent pitch scale lines is equal. The extension lines of the multiple pitch scale lines and the pitch scale indicator lines intersect at the center of the ring structure (disk). As a preferred embodiment, four short pitch scale lines are arranged between every two long pitch scale lines. The pitch scale indicator lines point towards pitch scale 2, and the pitch scale indicator lines are longer than the short pitch scale lines. Figure 5 S1 and S2 are the pitch scale numbers. To make them clearer, Figure 5 Enlarging the scale reveals that the angle between any two scale lines is actually very small, ensuring that all pitch scale lines near the pitch scale indicator are located to the left of the pitch scale indicator. In a preferred embodiment, the horizontal direction of the image is the horizontal axis, the vertical direction is the vertical axis, and the pitch scale indicator is parallel to the horizontal axis.

[0044] The calibration cameras include an azimuth camera 4 and a pitch camera 7. The azimuth camera 4 is fixed to the base 10 via an azimuth camera bracket 5, and the pitch camera 7 is fixed to the turntable body 3 via a pitch camera bracket 8. The azimuth camera 4 captures images of the azimuth scale 9 and the azimuth scale indicator line to obtain the calibration azimuth angle value, and the pitch camera 7 captures images of the pitch scale 6 and the pitch scale indicator line to obtain the calibration pitch angle value. Figure 1 In the diagram, the tilt camera 7 is drawn on the right side of the turntable body 3 to more clearly demonstrate the turntable structure. In reality, the lens of the tilt camera 7 is aligned with the tilt scale 2, and the shooting direction of the tilt camera 7 is... Figure 1 extroverted Figure 1 Inside.

[0045] The load camera is fixed on the load mounting platform 1 of the scale-based turntable, and is used to photograph the measurement points and also to photograph the calibration points for calibration.

[0046] The pointing angle calculation module is communicatively connected to the image processing module of the scale-based turntable and is used to calculate the pointing angle of the measurement point. In a preferred embodiment, the pointing angle calculation module calculates the pointing angle of the measurement point by: when the measurement point is located at the center of the load camera's image frame, obtaining the current angle value of the load camera calculated by the image processing module; calculating the relative rotation angle of the turntable relative to the calibration point based on the calibration angle value and the current angle value; and calculating the pointing angle of the measurement point based on the coordinates of the calibration point and the relative rotation angle.

[0047] According to a second specific embodiment of the present invention, the present invention provides a method for measuring the rotation angle of a scale-based turntable, such as... Figure 5 As shown, it includes the following steps: Steps S1 to S3 are a scale-based turntable calibration method.

[0048] S1: Obtain the coordinates of the load camera.

[0049] Before obtaining the coordinates of the load camera, first mount the turntable on an adjustable tripod and adjust the base 10 of the turntable to be horizontal using the leveling device.

[0050] Use RTK equipment to mark the optical center of the load camera on the turntable to determine the latitude, longitude, and altitude coordinates of the load camera.

[0051] S2: Set up a calibration point and obtain the coordinates of the calibration point.

[0052] A marker point is set up at a certain distance from the load camera as a calibration point, and the latitude, longitude and altitude coordinates of the center of the calibration point are obtained using an RTK device.

[0053] like Figure 7 As shown, a northeast-sky coordinate system is established with the position of the load camera as the origin. The latitude, longitude and altitude coordinates of the calibration point A are converted into northeast-sky coordinates. The angle between the direction of the calibration point A and the horizontal plane, the angle between the projection of the calibration point A on the horizontal plane and the due east direction are calculated.

[0054] S3: Control the rotation of the shaft so that the calibration point is located in the center of the load camera's image. The calibration camera takes a picture of the scale, which includes the scale and scale indicator lines. The calibration angle value of the load camera is calculated based on the scale picture.

[0055] One calibration camera is used to photograph one rotating axis, and the angle values ​​are calculated for each axis.

[0056] The image processing module calculates the calibration angle value of the load camera based on the ruler image.

[0057] The calibration angle values ​​of the loaded camera, calculated from the scale image, include: S31: Obtain the length or angle of the ruler indicated by the scale line based on the ruler image.

[0058] The origin of the scale is located at the upper left corner, the horizontal axis is the x-axis, the x-axis points to the right and the number on the x-axis increases continuously, the vertical axis is the y-axis, the y-axis points downward and the number on the y-axis increases continuously.

[0059] The length or angle of the ruler indicated by the scale lines, obtained from the ruler image, includes: S311: Identify scale numbers and detect straight line segments in a ruler image.

[0060] Detecting straight line segments in a ruler image involves: binarizing the image; and using a line detection algorithm to detect the straight line segments.

[0061] The ruler image is binarized using an adaptive thresholding algorithm (the adaptiveThreshold function in OpenCV).

[0062] Line detection algorithms include, but are not limited to, LSD line detection algorithm and EDLine line detection algorithm.

[0063] The detected straight lines include scale lines, scale indicator lines, and some horizontal or vertical edge lines.

[0064] S312: Filter out long scale lines, short scale lines, and scale indicator lines.

[0065] The following categories were selected: long scale lines, short scale lines, and scale indicator lines: Obtain the image coordinates of both ends of each line segment; Calculate the angle of each line segment in the image. If the angle exceeds the predetermined angle range, it is considered to be one of the long scale line, short scale line, or scale indicator line; otherwise, the line segment is discarded. The angles of the scale indicator line and its nearby long and short scale lines in the image are all within the predetermined angle range. Calculate the length of each line segment in the image. If the length is less than the length threshold, it is considered a short tick mark; otherwise, it is considered a long tick mark or tick indicator line. The length threshold is greater than the length of the short tick mark but less than the length of the tick indicator line and the long tick mark. In a straight line segment whose length is greater than or equal to the length threshold, find the endpoint with the largest ordinate or abscissa. The straight line segment corresponding to this endpoint is the scale indicator line, and the rest are long scale lines.

[0066] For example: A total of n line segments were detected. The image coordinates of the two ends of the i-th line segment are (u i,0 v i,0 ), (u i,1 v i,1 Then, the angle of the line segment in the image is: ; If it is like this Figure 2 In the orientation scale 9, if the orientation scale lines and orientation indicator lines are set vertically, then the horizontal edge lines need to be removed. The angle threshold is π / 3; angles exceeding the predetermined angle range are considered angles less than the threshold. When distinguishing between the long scale lines and the indicator lines, since they are located on the top and bottom sides respectively, the indicator line can be found by finding the endpoint with the largest vertical coordinate. If it is as follows... Figure 3In the pitch scale 2, the pitch scale indicator line is set horizontally. If the angle of the pitch scale line to be calculated is close to the pitch scale indicator line, then the vertical edge line needs to be removed. The angle threshold is π / 6. If it exceeds the predetermined angle range, it is considered that the angle is greater than the angle threshold. When distinguishing between the long scale line and the scale indicator line, since the long scale line and the scale indicator line are located on the left and right sides respectively, you only need to find the endpoint with the largest horizontal coordinate to find the scale indicator line.

[0067] After filtering out the scale lines and scale indicator lines, there are a total of m straight line segments. We need to filter out the shortest scale lines.

[0068] The image coordinates of the two ends of the i-th straight line segment are (u i,0 v i,0 ), (u i,1 v i,1 If the line segment is L, then its length in the image is L. i for: ; The average length of all tick marks, meanL, is: ; Where meanL is the average length of all line segments, and m is the total number of all line segments.

[0069] The length threshold is k×meanL, where k is a constant and meanL is the average length of all tick marks.

[0070] If L i If L < k×meanL, then the i-th line segment is the shortest tick mark. i If k × meanL is greater than or equal to k × meanL, then the i-th line segment is either a long scale line or a scale indicator line. k is a constant, and the range of values ​​for k depends on the actual length ratio of the long and short scale lines; generally, k can be taken as 1.2. The scale indicator line is longer than or equal to k × meanL.

[0071] S313: Match the long scale line with the scale number and calculate the scale corresponding to the short scale line.

[0072] like Figure 3 or Figure 5 As shown, the long scale line on one side of the scale indicator line corresponds to scale S1, and the long scale line on the other side of the scale indicator line corresponds to scale S2. There are 4 short scale lines between scales S1 and S2. Therefore, the scale corresponding to the j-th short scale line to the right of S1 is S1. j for: S1 j =S1+j×(S2-S1) / n; The scale of the first long scale line is S1, the scale of the second long scale line is S2, S2 > S1, and there are n-1 short scale lines between the first long scale line S1 and the second long scale line S2; S1 j Let S1 be the scale corresponding to the j-th short scale line, where j is a natural number from 0 to n-1, n-1 is the number of short scale lines between two adjacent long scale lines, and n is a natural number greater than 0. If j is 0, it means the scale indicator line is located between the long scale line S1 and the short scale line S11; if j is t-1, it means the scale indicator line is located at the short scale line S1. t-1 Between and the long scale line S2.

[0073] S10 equals S1.

[0074] In the preferred implementation scheme, n is 5.

[0075] S314: Select the scale lines on both sides of the scale indicator line and calculate the scale of the scale indicator line.

[0076] The scale of the scale indicator line is calculated using interpolation. Specifically, the calculation of the scale indicator line scale includes: calculating the scale of the scale indicator line based on the previous nearest scale line, the horizontal pixel distance or angle between the scale indicator line and two adjacent scale lines.

[0077] Formula 5 is used to calculate the scale of the scale indicator line based on the nearest preceding scale line, the horizontal pixel distance between the scale indicator line and two adjacent scale lines, or the angle between them: S=S1 j Formula 5: +d1÷(d1+d2)×(S2-S1)÷n Where S represents the scale markings of the scale indicators, the scale marking of the first long scale marking is S1, the scale marking of the second long scale marking is S2, S1 < S2, and there are n-1 short scale markings between the first long scale marking S1 and the second long scale marking S2. j d1 represents the j-th short tick mark, where j is a natural number from 0 to n-1 and n is a natural number greater than 0; d1 is the horizontal pixel distance or angle from the tick mark to the nearest previous tick mark, and d2 is the horizontal pixel distance or angle from the tick mark to the nearest next tick mark.

[0078] If j is 0, the 0th short scale line is the absence of a short scale line, and the scale indicator line is located between the first scale line S1 and the 1st short scale line. If j is n-1, the scale indicator line is located between the (n-1)th short scale line and the second scale line S2.

[0079] If for calculation, such as Figure 4The azimuth angles shown are: d1 is the horizontal pixel distance from the scale indicator line to the nearest previous scale line, and d2 is the horizontal pixel distance from the scale indicator line to the nearest next scale line.

[0080] If for calculation, such as Figure 5 The pitch angles shown are: d1 is the angle between the scale indicator line and the nearest previous scale line, and d2 is the angle between the scale indicator line and the nearest next scale line.

[0081] S32: Obtain the rotation angle information of the shaft based on the length or angle of the ruler.

[0082] Steps S1 to S3 are a scale-based turntable calibration method.

[0083] S4: Control the turntable to rotate so that the measuring point is located at the center of the load camera's image. The calibration camera takes a picture of the scale and calculates the current angle value of the load camera based on the scale picture.

[0084] Refer to step S3 for the method of calculating the current angle value of the load camera based on the scale image.

[0085] S5: Calculate the relative rotation angle of the turntable relative to the calibration point based on the calibrated angle value and the current angle value.

[0086] like Figure 7 As shown, a northeast-sky coordinate system is established with the optical center of the load camera as the origin, north as the y-axis, east as the x-axis, and sky as the z-axis. Therefore, the load camera is point O, with coordinates (0, 0, 0). Assume the northeast-sky coordinates of calibration point A are (x1, y1, z1). During calibration, the azimuth reading of the turntable is α1, and the elevation reading is β1, which are the calibration angle values. During measurement, the azimuth reading of the turntable is α2, and the elevation reading is β2, which are the current angle values.

[0087] Therefore, in step S5, the relative rotation angle includes the rotation angle α of the turntable about the azimuth axis and the rotation angle β of the turntable about the pitch axis: The rotation angle α of the turntable around the azimuth axis is: α = α2 - α1; The rotation angle β of the turntable about the pitch axis is: β = β2 - β1.

[0088] S6: Calculate the pointing angle of the measuring point based on the coordinates of the calibration point and the relative rotation angle.

[0089] The pointing angles are ∠BOH and ∠HOX. Knowing these two angles, we know the pointing direction of the measurement point B in three-dimensional space.

[0090] G is the projection of calibration point A onto the OXY plane, and the angle ∠AOG between calibration point A and the OXY plane is: ; The angle ∠XOG between OG and the x-axis is: .

[0091] Therefore, the methods for calculating the pointing angles ∠BOH and ∠HOX of measurement point B are as follows: H is the projection of B onto the OXY plane. The angle ∠BOH between the target B and the OXY plane is: ; The angle ∠HOX between OH and the X-axis is: .

[0092] Finally, calculate the angle between the OH and Y axes, and change the spatial azimuth of measurement point B to an angle of north-east or north-west.

[0093] This invention achieves high-precision angle measurement results by adding two cameras and two sets of scales to a standard turntable. Image processing technology eliminates the need for complex mechanical structures, reducing production and assembly complexity. This solution eliminates the need for high-precision encoders, resulting in a lower overall price compared to current high-precision turntables. Furthermore, the turntable is smaller and lighter, facilitating easier transport and use.

[0094] The turntable calibration and measurement method proposed in this invention allows for turntable-loaded camera calibration using only one calibration point after leveling the turntable base. This enables the measurement of the actual orientation of a target in space. The calibration and measurement method is relatively simple and easy to operate, reducing uncertainties in the calibration and measurement process and lowering the operational threshold.

[0095] Exemplary embodiments of the present invention have been specifically shown and described above. It should be understood that the present invention is not limited to the detailed structures, arrangements, or implementations described herein; rather, the present invention is intended to cover various modifications and equivalent arrangements contained within the spirit and scope of the appended claims.

Claims

1. A scale-based rotary table calibration method, characterized in that, A scale-based turntable and load camera are used. The turntable includes a scale ruler, scale indicator lines, a calibration camera, a fixed end, and a rotating shaft that rotates relative to the fixed end. The scale indicator lines and calibration camera are mounted on the fixed end, and the scale ruler is mounted on the rotating shaft, or the scale indicator lines and calibration camera are mounted on the rotating shaft, and the scale ruler is mounted on the fixed end. When the rotating shaft rotates, the scale indicator lines and scale ruler move relative to each other. The calibration camera is used to photograph the scale indicator lines and scale ruler. The load camera is fixed on the turntable. The method includes the following steps: S1: Obtain the coordinates of the load camera; S2: Set up a calibration point and obtain its coordinates; S3: Control the rotation of the shaft so that the calibration point is located in the center of the load camera's image. The calibration camera takes a picture of the scale, which includes the scale and scale indicator lines. The calibration angle value of the load camera is calculated based on the scale picture.

2. The scale-based turntable calibration method according to claim 1, characterized in that, The ruler image shows a single scale indicator line. The ruler includes multiple scale lines and multiple scale numbers. The multiple scale lines include multiple long scale lines and multiple short scale lines. The scale numbers are marked on the long scale lines, and multiple short scale lines are set between every two long scale lines.

3. The scale-based turntable calibration method according to claim 2, characterized in that, In step S3, calculating the calibration angle value of the load camera based on the scale image includes: S31: Obtain the length or angle of the ruler indicated by the scale line based on the ruler image; S32: Obtain the rotation angle information of the shaft based on the length or angle of the ruler.

4. The scale-based turntable calibration method according to claim 3, characterized in that, In step S31, obtaining the length of the ruler indicated by the scale line based on the ruler image includes: S311: Identify scale numbers and detect straight line segments in a ruler image; S312: Filter out long scale lines, short scale lines, and scale indicator lines; S313: Match the long scale line with the scale number and calculate the scale corresponding to the scale line; S314: Select the scale lines on both sides of the scale indicator line and calculate the scale of the scale indicator line.

5. The scale-based turntable calibration method according to claim 4, characterized in that, In step S311, detecting the straight line segments in the ruler image includes: Binarize the image; Use a line detection algorithm to detect line segments.

6. The scale-based turntable calibration method according to claim 4, characterized in that, In step S312, the filtering of long scale lines, short scale lines, and scale indicator lines includes: Obtain the image coordinates of both ends of each line segment; Calculate the angle of each line segment in the image. If the angle exceeds the predetermined angle range, it is considered to be one of the following: a long scale line, a short scale line, or a scale indicator line. Otherwise, the line segment is discarded. Calculate the length of each line segment in the image. If the length is less than the length threshold, it is considered a short tick mark; otherwise, it is considered a long tick mark or tick indicator line. The length threshold is greater than the length of the short tick mark but less than the length of the tick indicator line and the long tick mark. In a straight line segment whose length is greater than or equal to the length threshold, find the endpoint with the largest ordinate or abscissa. The straight line segment corresponding to this endpoint is the scale indicator line, and the rest are long scale lines.

7. The scale-based turntable calibration method according to claim 4, characterized in that, In step S314, calculating the scale of the scale indicator line includes: calculating the scale of the scale indicator line based on the nearest previous scale line, the horizontal pixel distance or angle between the scale indicator line and two adjacent scale lines.

8. The scale-based turntable calibration method according to claim 7, characterized in that, Formula 5 is used to calculate the scale of the scale indicator line based on the preceding scale line, the horizontal pixel distance or angle between the scale indicator line and two adjacent scale lines: S=S1 j Formula 5: +d1÷(d1+d2)×(S2-S1)÷n In this system, the first long scale line is designated S1, the second long scale line is designated S2, and S1 < S2. There are n-1 short scale lines between the first long scale line S1 and the second long scale line S2. j d1 represents the j-th short tick mark, where j is a natural number from 0 to n-1 and n is a natural number greater than 0; d1 is the horizontal pixel distance or angle from the tick mark to the nearest previous tick mark, and d2 is the horizontal pixel distance or angle from the tick mark to the nearest next tick mark.

9. The scale-based turntable calibration method according to claim 1, characterized in that, The calibration angle values ​​include calibration azimuth angle values ​​and calibration pitch angle values. The scale includes an azimuth scale and a pitch scale. The scale indicator lines include azimuth indicator lines and pitch indicator lines. The calibration camera includes an azimuth camera and a pitch camera. The azimuth camera captures images of the azimuth scale and azimuth indicator lines to obtain the calibration azimuth angle values. The pitch camera captures images of the pitch scale and pitch indicator lines to obtain the calibration pitch angle values.

10. A method for measuring the rotation angle of a scale-based turntable, characterized in that, Includes the following steps: The rotary table calibration method based on scale as described in any one of claims 1-9 is adopted; S4: Control the turntable to rotate so that the measurement target is located in the center of the load camera's image, the calibration camera takes a picture of the scale, and calculates the current angle value of the load camera based on the scale picture; S5: Calculate the relative rotation angle of the turntable relative to the calibration point based on the calibrated angle value and the current angle value; S6: Calculate the pointing angle of the target based on the coordinates of the calibration point and the relative rotation angle.

Citation Information

Patent Citations

  • Three-dimensional scanning turntable adjustment method and device, computer device and storage medium

    CN109407613A

  • Binocular stereoscopic vision system correction method in self-adaptive environment

    CN117952870A