Scale-based turntable calibration method and rotation angle measurement method
Through the scale-based turntable calibration method and image processing technology, using the scale and scale indicator lines, high-precision angle measurement is achieved, which solves the problem of complex and high-cost turntable calibration of the existing turntable, simplifies the operation and reduces the difficulty of assembly, and is suitable for Used by ordinary users.
Patent Information
- Application Number
- CN202411101507.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-08-12
AI Technical Summary
Existing high-precision turntable calibration methods are complex, error-prone, and costly, making it difficult to maintain measurement accuracy during transportation and use, and the high price is unaffordable for ordinary users.
Using a scale-based turntable calibration method, the scale and scale indicator lines are combined with image processing technology to achieve the turntable calibration and angle measurement through a single calibration point, which reduces the complexity of the mechanical structure and assembly difficulty, and reduces the steps and steps of the calibration process. time.
It achieves the output of high-precision angle measurement results, reduces production and assembly costs, simplifies the operation process, reduces uncertain factors in the calibration and measurement process, and makes the turntable smaller and lighter, suitable for transportation and use.
Smart Images

Figure CN118781618A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of photogrammetry and image processing, and in particular to a turntable calibration method and a rotation angle measurement method based on a scale. Background Art
[0002] As a passive detection system, the turntable can monitor, track and locate the target and is widely used in scientific research and production. With the development of modern technology, various tasks require the turntable to provide high-precision angle output.
[0003] Existing high-precision turntables use special and complex structures, and have very strict requirements on machining accuracy and assembly. And due to the complex mechanical structure, high-precision turntables are often large in size and not easy to transport and use. The bumps and vibrations during transportation and use will also reduce the coupling degree of the internal components of the high-precision turntable, thereby affecting the measurement accuracy. High-precision turntables use advanced coding discs and precision components, which makes them expensive and difficult for ordinary users to afford.
[0004] The existing turntable calibration method is relatively complicated and requires two, three or even more calibration points. For on-site operators, the more points are required, the longer the calibration time is and the more errors are likely to occur.
[0005] Therefore, it is necessary to provide a scale-based turntable calibration method and a rotation angle measurement method, which can calibrate the turntable using only one calibration point, and the calibration process is simple and easy to operate.
[0006] The above information disclosed in the Background section is only for enhancement of understanding of the background of the present application and therefore it may contain information that does not constitute the prior art that is already known to a person of ordinary skill in the art. Summary of the invention
[0007] The main purpose of the present 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 a 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-mentioned purpose, the first aspect of the present invention provides a calibration method for a turntable based on a scale, which adopts a turntable based on a scale and a load camera. The turntable includes a scale, a scale indicator line, a calibration camera, a fixed end and a rotating shaft rotating relative to the fixed end. The scale indicator line and the calibration camera are arranged on the fixed end, and the scale is arranged on the rotating shaft, or the scale indicator line and the calibration camera are arranged on the rotating shaft, and the scale is arranged on the fixed end. When the rotating shaft rotates, the scale indicator line and the scale move relative to each other, the calibration camera is used to photograph the scale indicator line and the scale, and the load camera is fixed on the turntable, and the method includes the following steps:
[0009] S1: Get the coordinates of the payload camera;
[0010] S2: Arrange a calibration point and obtain the coordinates of the calibration point;
[0011] S3: Control the rotation of the shaft so that the calibration point is located at the center of the image of the load camera. The calibration camera takes a scale picture. The scale picture includes a scale and scale indicator lines. The calibration angle value of the load camera is calculated based on the scale picture.
[0012] According to an example embodiment of the present invention, there is one scale indicator line in the scale ruler image, and the scale ruler includes multiple scale lines and multiple scale numbers, and 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.
[0013] According to an exemplary embodiment of the present invention, in step S3, calculating the calibration angle value of the load camera according to the scale image includes:
[0014] S31: Obtaining the length or angle of the scale indicated by the scale indicator line according to the scale image;
[0015] S31: Obtaining the angle information of the rotation of the shaft according to the length or angle of the scale.
[0016] According to an exemplary embodiment of the present invention, in step S31, obtaining the length of the scale indicated by the scale indicator line according to the scale image includes:
[0017] S311: Identify scale numbers and detect straight line segments in the scale image;
[0018] S312: Filter out long scale lines, short scale lines and scale indicator lines;
[0019] S313: Match the long scale line and the scale number, and calculate the scale corresponding to the short scale line;
[0020] S314: Select the scale lines on both sides of the scale indicator line, and calculate the scale of the scale indicator line.
[0021] According to an exemplary embodiment of the present invention, in step S311, detecting straight line segments in the ruler image includes:
[0022] Binarize the image;
[0023] Detect straight line segments using a line detection algorithm.
[0024] According to an exemplary embodiment of the present invention, in step S312, screening out long scale lines, short scale lines and scale indicator lines includes:
[0025] Get the image coordinates of both ends of each straight line segment;
[0026] Calculate the angle of each straight line segment in the image. If the angle exceeds the angle range, it is considered to be one of the long scale line, short scale line or scale indicator line. Otherwise, the straight line segment is discarded.
[0027] Calculate the length of each straight line segment in the image. If the length is less than the length threshold, it is considered to be a short scale line, otherwise it is considered to be a long scale line or a scale indicator line. The length threshold is greater than the length of the short scale line and less than the length of the scale indicator line and the long scale line.
[0028] Among the straight line segments 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 the endpoint is the scale indicator line, and the rest are long scale lines.
[0029] 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 according to the previous nearest scale line of the scale indicator line and the horizontal pixel distance or angle between the scale indicator line and two adjacent scale lines.
[0030] According to an exemplary embodiment of the present invention, the scale of the scale indicator line is calculated according to the previous nearest scale line of the scale indicator line, the horizontal pixel distance or the angle between the scale indicator line and two adjacent scale lines using Formula 5:
[0031] S=S1 j +d1÷(d1+d2)×(S2-S1)÷n Formula 5;
[0032] The first long scale line is S1, the second long scale line is S2, S1<S2, there are n-1 short scale lines between the first long scale line S1 and the second long scale line S2, S1 j Represents the jth short scale line, 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 scale indicator line to the previous nearest scale line, and d2 is the horizontal pixel distance or angle from the scale indicator line to the next nearest scale line.
[0033] According to an example embodiment of the present invention, the calibrated angle value includes a calibrated azimuth angle value and a calibrated 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 photographs the azimuth scale and the azimuth scale indicator line to obtain the calibrated azimuth angle value, and the pitch camera photographs the pitch scale and the pitch scale indicator line to obtain the calibrated pitch angle value.
[0034] As a second aspect of the present invention, a method for measuring the rotation angle of a turntable based on a scale is provided, comprising the following steps:
[0035] Using the scale-based turntable calibration method;
[0036] S4: Control the turntable to rotate so that the measurement target is located at the center of the load camera's screen, calibrate the camera to take a scale picture, and calculate the current angle value of the load camera based on the scale picture;
[0037] S5: Calculate the relative rotation angle of the turntable relative to the calibration point according to the calibration angle value and the current angle value;
[0038] S6: Calculate the pointing angle of the measurement target according to the coordinates of the calibration point and the relative rotation angle.
[0039] The present invention can output high-precision angle measurement results by adding two cameras and two sets of scales to an ordinary turntable. The image processing technology is used without the need for a complex mechanical structure, which reduces the difficulty of production and assembly. This solution does not require the use of a high-precision encoder disk, so its overall price is lower than that of the current high-precision turntable. The turntable of this solution has a smaller overall size and lighter weight, which is more conducive to the transportation and use of the equipment.
[0040] The turntable calibration and measurement method proposed in the present invention can complete the calibration of the turntable load camera using only one calibration point on the basis of leveling the turntable base, and then the actual direction of the target in space can be measured. The calibration measurement method is relatively simple and easy to operate, which reduces the uncertainty factors in the calibration and measurement process and lowers the operation threshold. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The above and other objects, features and advantages of the present application will become more apparent by describing in detail the exemplary embodiments thereof with reference to the accompanying drawings. The accompanying drawings described below are only some embodiments of the present application, and it is clear to a person skilled in the art that other accompanying drawings can be obtained from these accompanying drawings without creative effort.
[0042] Figure 1 A block diagram of a scale-based turntable is schematically shown.
[0043] Figure 2 The scale diagram of the azimuth rotation axis is schematically shown.
[0044] Figure 3 A schematic diagram of the scale of the pitch rotation axis is shown schematically.
[0045] Figure 4 A schematic diagram of a scale picture is shown schematically.
[0046] Figure 5 A schematic diagram of a picture of a pitch scale is shown schematically.
[0047] Figure 6 The diagram schematically shows the steps of a method for measuring the rotation angle of a turntable based on a scale.
[0048] Figure 7 The schematic diagram of turntable calibration and measurement under northeast celestial coordinates is shown schematically.
[0049] Among them, A—calibration point, B—measurement point, 1—load mounting platform, 2—pitch scale, 3—turntable body, 4—azimuth camera bracket, 5—azimuth camera, 6—pitch rotation axis, 7—pitch camera, 8—pitch camera bracket, 9—azimuth scale, 10—base, 11—azimuth rotation axis. DETAILED DESCRIPTION
[0050] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this application will be comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.
[0051] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0052] 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 may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0053] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0054] 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 component. Therefore, the first component discussed below can be referred to as the second component without departing from the teachings of the concepts of the present application. As used herein, the term "and / or" includes any one of the associated listed items and all combinations of one or more.
[0055] Those skilled in the art will appreciate that the drawings are merely schematic diagrams of example embodiments, and the modules or processes in the drawings are not necessarily necessary for implementing the present application, and therefore cannot be used to limit the scope of protection of the present application.
[0056] According to a first specific embodiment of the present invention, the present invention provides a photogrammetry device, including: a pointing angle solving module, a load camera and a scale-based turntable.
[0057] like Figure 1 As stated, Figure 1 It is a scale-based turntable, which includes: a scale ruler, a scale indicator line, a calibration camera, a fixed end, a rotating shaft rotating relative to the fixed end, and an image processing module (not shown in the figure).
[0058] The scale indicator line and the calibration camera are arranged on the fixed end, the scale indicator line is arranged on the rotating shaft, or the scale indicator line and the calibration camera are arranged on the rotating shaft, and the scale is arranged on the fixed end; when the rotating shaft rotates, the scale indicator line and the scale move relatively.
[0059] The calibration camera is used to capture a scale image, which includes scale indicator lines and a scale.
[0060] The image processing module is communicatively connected to the calibration camera, and is used to obtain the scale image 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 according to the scale image; and obtaining the angle information of the rotation of the shaft according to the length of the scale.
[0061] like Figure 1 As shown, the scale-based turntable is a dual-axis turntable, and the rotation axes include an azimuth rotation axis 11 and a pitch rotation axis 6. Figure 1 In the figure, the azimuth rotating shaft 11 is vertically arranged, and its lower part is fixedly connected to the base 10, and the base 10 is the fixed end of the azimuth rotating shaft 11. The upper free end of the azimuth rotating shaft 11 is fixedly connected to the turntable fuselage 3, and the upper free end of the azimuth rotating shaft 11 rotates with the vertical direction as the axis and drives the turntable fuselage 3 to rotate; the pitch rotating shaft 6 is horizontally arranged, and one end of it is fixedly connected to the turntable fuselage 3, and the turntable fuselage 3 is the fixed end of the pitch rotating shaft 6. The free end of the other end of the pitch rotating shaft 6 is fixedly connected to the load mounting platform 1, and the free end of one end of the pitch rotating shaft 6 rotates with the horizontal direction as the axis and drives the load mounting platform 1 to rotate. Figure 1 In the figure, the upper left corner of the turntable body 3 includes two circular patterns, the inner circle marks the pitch axis 6, and the outer circle is fixedly connected to the turntable body 3 for placing the pitch scale 2. The load mounting platform 1 is fixedly connected to the load camera.
[0062] The calibration angle value includes the calibration azimuth angle value and the calibration elevation angle value. The scale includes the azimuth scale 9 and the elevation scale 2. Figure 1 In the embodiment, the azimuth scale 9 is arranged on the azimuth rotation axis 11, and the pitch scale 2 is arranged on the pitch rotation axis 6. The scale indicator line includes the azimuth scale indicator line and the pitch scale indicator line. Figure 2 As shown, the azimuth scale indicator line is arranged on the base 10 and is located below the azimuth scale 9; Figure 3 As shown, the pitch scale indicator line is set on the fixed end (that is, the turntable body 3).
[0063] like Figure 2 and Figure 4 As shown, take the azimuth scale 9 as an example. The azimuth scale 9 includes a plurality of azimuth scale lines and a plurality of azimuth scale numbers. The plurality of azimuth scale lines include a plurality of azimuth long scale lines and a plurality of azimuth short scale lines. The azimuth scale numbers are marked on the azimuth long scale lines, and a plurality of azimuth short scale lines are arranged between every two azimuth long scale lines. The distance between every two adjacent azimuth scale lines is equal. As a preferred embodiment, 4 azimuth short scale lines are arranged between every two azimuth long scale lines. The azimuth scale indicator line points to the azimuth scale 9, and the azimuth scale indicator line is longer than the azimuth short scale line. One scale corresponds to one scale indicator line; that is, the azimuth scale 9 is provided with one azimuth scale indicator line, and the pitch scale 2 is provided with one pitch scale indicator line. Figure 4 S1 and S2 are the azimuth scale numbers. As 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 the azimuth scale indicator lines are parallel to the vertical axis.
[0064] like Figure 3and Figure 5 As shown, take the pitch scale 2 as an example. The pitch scale 2 is an annular structure, which is surrounded by the pitch scale indicating line to form a disc shape. The pitch scale 2 includes a plurality of pitch scale lines and a plurality of pitch scale numbers, and the plurality of pitch scale lines include a plurality of pitch long scale lines and a plurality of pitch short scale lines; the pitch scale numbers are marked on the pitch long scale lines, and a plurality of pitch short scale lines are arranged between every two pitch long scale lines. The angle between every two adjacent pitch scale lines is equal. The extension lines of the plurality of pitch scale lines and the pitch scale indicating line intersect at the center of the annular structure (disc). As a preferred embodiment, 4 pitch short scale lines are arranged between every two pitch long scale lines. The pitch scale indicating line points to the pitch scale 2, and the pitch scale indicating line is longer than the pitch short scale line. Figure 5 S1 and S2 are the pitch scale numbers. In order to display more clearly, Figure 5 When the scale is enlarged, the angle difference between each two scale lines is actually very small, so that the pitch scale lines near the pitch scale indicator line are all located on the left side of the pitch scale indicator line. As 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 line is parallel to the horizontal axis.
[0065] The calibration camera includes an azimuth camera 4 and a pitch camera 7. The azimuth camera 4 is fixed on the base 10 through the azimuth camera bracket 5, and the pitch camera 7 is fixed on the turntable body 3 through the pitch camera bracket 8. The azimuth camera 4 photographs the azimuth scale 9 and the azimuth scale indicator line to obtain the calibration azimuth angle value, and the pitch camera 7 photographs the pitch scale 6 and the pitch scale indicator line to obtain the calibration pitch angle value. Figure 1 In the figure, the pitch camera 7 is drawn on the right side of the turntable body 3 in order to more clearly show the turntable structure. In fact, the lens of the pitch camera 7 is aimed at the pitch scale 2, and the shooting direction of the pitch camera 7 is Figure 1 Extroversion Figure 1 Inside.
[0066] The load camera is fixed on the load mounting platform 1 of the scale-based turntable and is used to photograph the measuring points and also to photograph the calibration points for calibration.
[0067] 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 measuring point. As a preferred embodiment, the pointing angle calculation module is used to calculate the pointing angle of the measuring point, including: when the measuring point is located at the center of the image of the load camera, 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 according to the calibration angle value and the current angle value; and calculating the pointing angle of the measuring point according to the coordinates of the calibration point and the relative rotation angle.
[0068] According to a second specific embodiment of the present invention, the present invention provides a rotation angle measurement method of a turntable based on a scale, such as Figure 5 As shown, the following steps are included:
[0069] Steps S1 to S3 are a turntable calibration method based on scale.
[0070] S1: Get the coordinates of the payload camera.
[0071] Before obtaining the coordinates of the load camera, the turntable is first mounted on an adjustable tripod, and the base 10 of the turntable is adjusted to be horizontal by a horizontal adjustment device.
[0072] Use RTK equipment to mark the optical center of the turntable's payload camera to determine the latitude and longitude coordinates of the payload camera.
[0073] S2: Arrange a calibration point and obtain the coordinates of the calibration point.
[0074] Place a marker point at a certain distance from the payload camera as a calibration point, and use the RTK device to obtain the longitude and latitude coordinates of the center of the calibration point.
[0075] like Figure 7 As shown, with the position of the payload camera as the origin, a northeast celestial coordinate system is established, the latitude and longitude coordinates of the calibration point A are converted into northeast celestial coordinates, and the angle between the direction of the calibration point A and the horizontal plane, and the angle between the projection of the calibration point A on the horizontal plane and the due east direction are calculated.
[0076] S3: Control the rotation of the shaft so that the calibration point is located at the center of the image of the load camera. The calibration camera takes a scale picture. The scale picture includes a scale and scale indicator lines. The calibration angle value of the load camera is calculated based on the scale picture.
[0077] One calibration camera captures one rotation axis and calculates the angle value respectively.
[0078] The image processing module calculates the calibration angle value of the load camera based on the scale image.
[0079] The calibration angle values of the load camera calculated based on the scale image include:
[0080] S31: Obtaining the length or angle of the scale indicated by the scale indicator line according to the scale image.
[0081] The origin of the scale is located in the upper left corner, the horizontal axis is the x-axis, the x-axis direction is to the right, the numbers on the x-axis continue to increase, the vertical axis is the y-axis, the y-axis direction is downward, and the numbers on the y-axis continue to increase.
[0082] The length or angle of the scale indicated by the scale indicator line obtained from the scale image includes:
[0083] S311: Identify scale numbers and detect straight line segments in the scale image.
[0084] Detecting the straight line segments in the ruler image includes: binarizing the image; and detecting the straight line segments using a straight line detection algorithm.
[0085] Use the adaptive threshold algorithm (adaptiveThreshold function in opencv) to binarize the scale image.
[0086] The line detection algorithm includes but is not limited to the LSD line detection algorithm and the EDLine line detection algorithm.
[0087] The detected straight lines include scale lines, scale indicator lines, and some horizontal or vertical edge lines.
[0088] S312: Filter out long scale lines, short scale lines and scale indicator lines.
[0089] Filter out long scale lines, short scale lines and scale indicator lines including:
[0090] Get the image coordinates of both ends of each straight line segment;
[0091] The angle of each straight line segment in the image is calculated. If the angle exceeds the predetermined angle range, it is considered to be one of the long scale line, the short scale line or the scale indicator line. Otherwise, the straight line segment is discarded. The angles of the scale indicator line and the long scale line and the short scale line nearby are all within the predetermined angle range.
[0092] Calculate the length of each straight line segment in the image. If the length is less than the length threshold, it is considered to be a short scale line, otherwise it is considered to be a long scale line or a scale indicator line. The length threshold is greater than the length of the short scale line and less than the length of the scale indicator line and the long scale line.
[0093] Among the straight line segments 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 the endpoint is the scale indicator line, and the rest are long scale lines.
[0094] For example:
[0095] A total of n straight line segments are detected, and 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 ), then the angle of the straight line segment in the image is:
[0096] If it is Figure 2In the azimuth scale 9, the azimuth scale lines and azimuth scale indicator lines are set vertically, so the horizontal edge lines need to be removed, the angle threshold is π / 3, and the angle outside the predetermined angle range is less than the angle threshold; when distinguishing between the long scale lines and the scale indicator lines, since the long scale lines and the scale indicator lines are located on the upper and lower sides respectively, you only need to find the endpoint with the largest ordinate to find the scale indicator line. If it is like this Figure 3 In 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, the vertical edge line needs to be removed. The angle threshold is π / 6. If the angle exceeds the preset angle range, 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.
[0097] After filtering out the scale lines and scale indicator lines, there are a total of m straight line segments, and the short scale lines need to be filtered out.
[0098] 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 ), then the length of the straight line segment in the image is L i for:
[0099]
[0100] The average length of all tick marks, meanL, is:
[0101]
[0102] Among them, meanL is the average length of all straight line segments, and m is the total number of all straight line segments.
[0103] The length threshold is k×meanL, where k is a constant and meanL is the average length of all tick marks.
[0104] If L i <k×meanL, then the i-th straight line segment is a short scale line. If L i ≥k×meanL, then the i-th straight line segment is a long scale line or a scale indicator line. k is a constant. The value range of k is related to the actual length ratio of the long scale line and the short scale line. Generally, k can be 1.2. The scale indicator line is longer than or equal to k×meanL.
[0105] S313: Match the long scale lines and scale numbers, and calculate the scale corresponding to the short scale lines.
[0106] like Figure 3 or Figure 5As shown in the figure, the long scale line on one side of the scale indicator line corresponds to the scale S1, and the long scale line on the other side of the scale indicator line corresponds to the scale S2. There are 4 short scale lines between the S1 scale and the S2 scale. The scale S1 corresponding to the jth short scale line on the right side of S1 is j for:
[0107] S1 j =S1+j×(S2-S1) / n;
[0108] Among them, 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 is the scale corresponding to the jth short scale line, 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 that the scale indicator line is between the long scale line S1 and the short scale line S11. If j is t-1, it means that the scale indicator line is located between the long scale line S1 and the short scale line S11. t-1 and between the long scale line S2.
[0109] S10 is equal to S1.
[0110] As a preferred embodiment, n is 5.
[0111] S314: Select the scale lines on both sides of the scale indicator line, and calculate the scale of the scale indicator line.
[0112] The scale of the scale indicator line is calculated using an interpolation method. Specifically, calculating the scale of the scale indicator line includes: calculating the scale of the scale indicator line according to the previous nearest scale line of the scale indicator line, the horizontal pixel distance or the angle between the scale indicator line and two adjacent scale lines.
[0113] The scale of the scale indicator line is calculated according to the previous nearest scale line of the scale indicator line, the horizontal pixel distance or the angle between the scale indicator line and two adjacent scale lines using formula 5:
[0114] S=S1 j +d1÷(d1+d2)×(S2-S1)÷n Formula 5;
[0115] Among them, S is the scale of the scale indicator line, the scale of the first long scale line is S1, the scale of the second long scale line is S2, S1<S2, there are n-1 short scale lines between the first long scale line S1 and the second long scale line S2, S1 jRepresents the jth short scale line, 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 scale indicator line to the previous nearest scale line, and d2 is the horizontal pixel distance or angle from the scale indicator line to the next nearest scale line.
[0116] If j is 0, the 0th short scale line means there is no short scale line, and the scale indicator line is located between the first scale line S1 and the first short scale line. If j is n-1, the scale indicator line is located between the n-1th short scale line and the second scale line S2.
[0117] If the calculation is Figure 4 The azimuth shown is shown in Figure 1, where d1 is the horizontal pixel distance from the scale indicator line to the previous nearest scale line, and d2 is the horizontal pixel distance from the scale indicator line to the next nearest scale line.
[0118] If the calculation is Figure 5 The pitch angles shown are: d1 is the angle between the scale indicator line and the previous nearest scale line; d2 is the angle between the scale indicator line and the next nearest scale line.
[0119] S32: Obtaining the angle information of the rotation of the shaft according to the length or angle of the scale.
[0120] Among them, step S1 to step S3 is a turntable calibration method based on scale.
[0121] S4: Control the turntable to rotate so that the measuring point is located at the center of the image of the load camera, calibrate the camera to take a scale picture, and calculate the current angle value of the load camera based on the scale picture.
[0122] For a method of calculating the current angle value of the load camera based on the scale image, refer to step S3.
[0123] S5: According to the calibration angle value and the current angle value, the relative rotation angle of the turntable relative to the calibration point is calculated.
[0124] like Figure 7 As shown in the figure, the northeast celestial coordinate system is established with the optical center of the payload camera as the origin, the north is the y-axis, the east is the x-axis, and the sky is the z-axis. Therefore, the payload camera is point O, and its coordinates are (0, 0, 0). Assuming that the northeast celestial coordinates of the calibration point A are (x1, y1, z1), the azimuth reading of the turntable during calibration is α1, and the pitch angle reading is β1, that is, the calibration angle value; during measurement, the azimuth reading of the turntable is α2, and the pitch angle reading is β2, that is, the current angle value.
[0125] Then, in step S5, the relative rotation angle includes the rotation angle α of the turntable around the azimuth axis and the rotation angle β of the turntable around the pitch axis:
[0126] The rotation angle α of the turntable around the azimuth axis is:
[0127] α=α2-α1;
[0128] The rotation angle β of the turntable around the pitch axis is:
[0129] β=β2-β1.
[0130] S6: Calculate the direction angle of the measuring point according to the coordinates of the calibration point and the relative rotation angle.
[0131] The pointing angles are ∠BOH and ∠HOX. Knowing these two angles, we can know the direction of the measurement point B in three-dimensional space.
[0132] G is the projection of the calibration point A on the OXY plane, and the angle ∠AOG between the calibration point A and the OXY plane is:
[0133]
[0134] The angle ∠XOG between OG and the x-axis is:
[0135]
[0136] Then, the calculation method of the pointing angles ∠BOH and ∠HOX of the measuring point B is:
[0137] H is the projection of B on the OXY plane, and the angle ∠BOH between the measuring target B and the OXY plane is:
[0138]
[0139] The angle ∠HOX between OH and X-axis is:
[0140]
[0141] Finally, the angle between OH and the Y axis is calculated, and the spatial azimuth of the measurement point B is changed to the north-east or north-west angle.
[0142] The present invention can output high-precision angle measurement results by adding two cameras and two sets of scales to an ordinary turntable. The image processing technology is used without the need for a complex mechanical structure, which reduces the difficulty of production and assembly. This solution does not require the use of a high-precision encoder disk, so its overall price is lower than that of the current high-precision turntable. The turntable of this solution has a smaller overall size and lighter weight, which is more conducive to the transportation and use of the equipment.
[0143] The turntable calibration and measurement method proposed in the present invention can complete the calibration of the turntable load camera using only one calibration point on the basis of leveling the turntable base, and then the actual direction of the target in space can be measured. The calibration measurement method is relatively simple and easy to operate, which reduces the uncertainty factors in the calibration and measurement process and lowers the operation threshold.
[0144] The exemplary embodiments of the present invention are specifically shown and described above. It should be understood that the present invention is not limited to the detailed structure, configuration or implementation method described herein; on the contrary, the present invention is intended to cover various modifications and equivalent configurations included in the spirit and scope of the appended claims.
Claims
1. A turntable calibration method based on scale, characterized in that: A scale-based turntable and a load camera are used. The turntable includes a scale, a scale indicator line, a calibration camera, a fixed end, and a rotating shaft rotating relative to the fixed end. The scale indicator line and the calibration camera are arranged on the fixed end, and the scale is arranged on the rotating shaft, or the scale indicator line and the calibration camera are arranged on the rotating shaft, and the scale is arranged on the fixed end. When the rotating shaft rotates, the scale indicator line and the scale move relative to each other. The calibration camera is used to photograph the scale indicator line and the scale. The load camera is fixed on the turntable. The following steps are included: S1: Get the coordinates of the payload camera; S2: Arrange a calibration point and obtain the coordinates of the calibration point; S3: Control the rotation of the shaft so that the calibration point is located at the center of the image of the load camera. The calibration camera takes a scale picture. The scale picture includes a 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: There is one scale indicator line in the ruler picture, 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 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 according to the scale image includes: S31: Obtaining the length or angle of the scale indicated by the scale indicator line according to the scale image; S32: Obtaining the angle information of the rotation of the shaft according to the length or angle of the scale.
4. The calibration method of a turntable based on a scale according to claim 3, characterized in that: In step S31, obtaining the length of the scale indicated by the scale indicator line according to the scale picture includes: S311: Identify scale numbers and detect straight line segments in the scale 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 calibration method of a turntable based on a scale according to claim 4, characterized in that: In step S311, the detecting of straight line segments in the ruler image includes: Binarize the image; Detect straight line segments using a line detection algorithm.
6. The calibration method of a turntable based on a scale according to claim 4, characterized in that: In step S312, the filtering out of the long scale lines, the short scale lines and the scale indicator lines includes: Get the image coordinates of both ends of each straight line segment; The angle of each straight line segment in the image is calculated. 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 straight line segment is discarded. Calculate the length of each straight line segment in the image. If the length is less than the length threshold, it is considered to be a short scale line, otherwise it is considered to be a long scale line or a scale indicator line. The length threshold is greater than the length of the short scale line and less than the length of the scale indicator line and the long scale line. Among the straight line segments 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 the endpoint is the scale indicator line, and the rest are long scale lines.
7. The calibration method of a turntable based on a scale 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 according to the previous nearest scale line of the scale indicator line, the horizontal pixel distance or the angle between the scale indicator line and two adjacent scale lines.
8. The calibration method of a turntable based on a scale according to claim 7, characterized in that: The scale of the scale indicator line is calculated according to the previous scale line of the scale indicator line, the horizontal pixel distance or the angle between the scale indicator line and two adjacent scale lines using Formula 5: S=S1 j +d1÷(d1+d2)×(S2-S1)÷n Formula 5; The first long scale line is S1, the second long scale line is S2, S1<S2, there are n-1 short scale lines between the first long scale line S1 and the second long scale line S2, S1 j Represents the jth short scale line, 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 scale indicator line to the previous nearest scale line, and d2 is the horizontal pixel distance or angle from the scale indicator line to the next nearest scale line.
9. The calibration method of a turntable based on a scale according to claim 1, characterized in that: The calibrated angle value includes a calibrated azimuth angle value and a calibrated 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 photographs the azimuth scale and the azimuth scale indicator line to obtain the calibrated azimuth angle value, and the pitch camera photographs the pitch scale and the pitch scale indicator line to obtain the calibrated pitch angle value.
10. A method for measuring the rotation angle of a turntable based on a scale, characterized in that: The following steps are involved: The scale-based turntable calibration method according to any one of claims 1 to 9 is adopted; S4: Control the turntable to rotate so that the measurement target is located at the center of the load camera's screen, calibrate the camera to take a scale picture, and calculate 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 according to the calibration angle value and the current angle value; S6: Calculate the pointing angle of the measurement target according to the coordinates of the calibration point and the relative rotation angle.
Citation Information
Patent Citations
Fixed camera calibration method
CN106341956A
Three-dimensional scanning turntable adjustment method and device, computer device and storage medium
CN109407613A
Line structured light nonlinear scanning three-dimensional data measurement method based on rotary table
CN117329987A
Binocular stereoscopic vision system correction method in self-adaptive environment
CN117952870A
