Disc double scale identification method, system and rotary table

By using a dual-scale disc recognition method, optical character recognition and clustering algorithms are employed to accurately identify turntable scales, solving the problems of complexity and insufficient accuracy in turntable calibration and achieving efficient turntable angle detection.

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

Patent Information

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

AI Technical Summary

Technical Problem

Existing turntable calibration methods are complex and time-consuming, making it difficult to accurately identify the turntable rotation angle, resulting in insufficient measurement accuracy.

Method used

The method of dual-scale recognition on a circular disc is adopted. By taking pictures of the scale, optical character recognition and clustering algorithms are used to identify the main and secondary scale lines, calculate the difference in the angle between the scale lines, and accurately identify the rotation angle of the turntable.

Benefits of technology

It simplifies the turntable calibration process, improves the accuracy and efficiency of turntable rotation angle identification, and provides a good foundation for turntable calibration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118823799B_ABST
    Figure CN118823799B_ABST
Patent Text Reader

Abstract

The present application relates to photogrammetry and image processing technical field, provide a kind of disc double scale identification method, system and turntable, method includes: shooting scale picture;Identify first scale number and detect straight line segment in scale picture;Distinguish main scale line and vice scale line;Filter out first long scale line and first short scale line;Filter out second long scale line and second short scale line;First long scale line and first scale number are matched, and the scale corresponding to first short scale line is calculated, obtain the scale corresponding to each main scale line;Vice scale line is numbered, and the number is second scale number;The angle of each vice scale line and main scale line is calculated, find the vice scale line and main scale line with the smallest difference of angle;Find the main scale line corresponding to second long scale line;Obtain current scale.The present application can accurately and efficiently identify scale on turntable, to detect turntable rotation angle, provide good calibration basis for the calibration of turntable.
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 method, system and turntable for disc dual-scale recognition. Background Technology

[0002] A turntable is a complex optoelectronic measuring device used to provide high-precision target pointing. Based on the number of rotation axes, turntables can be classified as single-axis, dual-axis, three-axis, and multi-axis turntables. Turntables are widely used in photogrammetry, industrial production, and scientific research. Tracking and measuring moving targets, and terminal defense systems for vehicles and ships all require the use of turntables.

[0003] The accuracy of the turntable directly affects the accuracy of the measurement and the success or failure of the task. In order to improve the accuracy of the turntable, the angle error is usually reduced by improving the machining accuracy, improving the structure of the turntable, and using high-precision encoders.

[0004] In actual measurement tasks, the turntable needs to be calibrated to obtain the actual orientation of the target. During calibration, cooperative markers are used to link the turntable angles with the actual orientation in space. Current turntable calibration methods require setting multiple cooperative markers at a certain distance from the turntable, and each marker needs its three-dimensional coordinates. The overall process is complex, and the time required for real-time calibration by operators is relatively long.

[0005] By installing graduations on the turntable and photographing them, a precise rotation angle can be obtained, providing a good calibration basis for the turntable. However, if a graduation line is aligned with a ruler, the distance between the graduation line and other graduation lines needs to be calculated, which can easily introduce significant errors.

[0006] Therefore, there is a need to provide a method, system, and turntable for identifying dual scales on a disc, which can accurately identify the scales on the turntable, thereby detecting the rotation angle of the turntable and providing a good calibration basis for the calibration of the turntable.

[0007] 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

[0008] The main purpose of this invention is to overcome the problem of not being able to accurately and efficiently obtain the rotation angle of a turntable, and to provide a method, system and turntable for identifying dual scales on a disc, which can accurately and efficiently identify the scales on the turntable, thereby detecting the rotation angle of the turntable and providing a good calibration basis for the calibration of the turntable.

[0009] To achieve the above objectives, the first aspect of the present invention provides a method for identifying dual scales on a disc, comprising the following steps:

[0010] S1: Take a picture of the scale, which includes a main annular scale on the outer ring and a secondary annular scale on the inner ring. The main annular scale includes multiple main scale lines and multiple first scale digits. The main scale lines include multiple first long scale lines and multiple first short scale lines. The first scale digits are marked on the first long scale lines, and multiple first short scale lines are set between every two first long scale lines. The secondary annular scale includes multiple secondary scale lines, which include one second long scale line and multiple second short scale lines. The second short scale lines are all located on the same side of the second long scale line. The main scale lines and secondary scale lines intersect at the center of the disc.

[0011] S2: Identify the first scale digit and detect the straight line segment in the ruler image; remove non-major and non-minor scale lines based on the angle between the straight line segment and the second longer scale line;

[0012] S3: Distinguish between main scale lines and sub-scale lines;

[0013] S4: Select the first long scale line and the first short scale line from the main scale lines; select the second long scale line and the second short scale line from the sub-scale lines;

[0014] S5: Match the first long scale line with the first scale number, and calculate the scale corresponding to the first short scale line to obtain the scale corresponding to each main scale line;

[0015] S6: Number the sub-scale lines, which will be the second scale number; calculate the angle between each sub-scale line and the main scale line, and find the sub-scale line and the main scale line with the smallest difference in angle;

[0016] S7: Locate the main tick mark corresponding to the second longest tick mark;

[0017] S8: Obtain the current scale based on the scale corresponding to the main scale line, the secondary scale line with the smallest angle difference, the main scale line, and the main scale line corresponding to the second longest scale line.

[0018] According to an exemplary embodiment of the present invention, the included angle between every two main scale lines is equal; the included angle between every two subscale lines is equal.

[0019] According to an exemplary embodiment of the present invention, the included angle between every two sub-scale lines is smaller than the included angle between every two main scale lines.

[0020] According to an exemplary embodiment of the present invention, steps S5, S6 and S7 can be performed simultaneously.

[0021] According to an exemplary embodiment of the present invention, in step S2, the first scale number is identified by the optical character recognition module.

[0022] According to an exemplary embodiment of the present invention, in step S2, detecting the straight line segments in the ruler image includes:

[0023] S221: Binarize the image;

[0024] S222: Use a line detection algorithm to detect line segments.

[0025] According to an exemplary embodiment of the present invention, the line detection algorithm includes the LSD line detection algorithm or the EDLine line detection algorithm.

[0026] According to an exemplary embodiment of the present invention, in step S2, removing non-major and non-minor scale lines based on the angle between the straight line segment and the second long scale line includes:

[0027] The second longest scale line is set horizontally in the ruler image;

[0028] Obtain the coordinates of both ends of each line segment, calculate the angle of each line segment, and if the angle of a line segment is greater than or equal to a specified angle threshold, then the line segment is considered to be neither a main tick line nor a secondary tick line.

[0029] According to an exemplary embodiment of the present invention, in step S3, distinguishing between the main scale line and the sub-scale line includes:

[0030] The k-means clustering algorithm is used to distinguish between the main tick marks and the sub-tick marks.

[0031] According to an exemplary embodiment of the present invention, the step of using the k-means clustering algorithm to distinguish between the main tick marks and the sub-tick marks includes:

[0032] In the ruler image, the horizontal direction is set as the x-coordinate and the vertical direction as the y-coordinate. The midpoints of all line segments are found. Based on the distance between the midpoint and the center of the disk or the position of the midpoint in the x-coordinate direction, the k-means clustering algorithm is used to divide the line segments into two categories.

[0033] According to an exemplary embodiment of the present invention, in step S4, a first long scale line and a first short scale line are selected from the main scale lines based on the length of the scale lines; a second long scale line and a second short scale line are selected from the sub-scale lines based on the length of the scale lines.

[0034] According to an exemplary embodiment of the present invention, in step S8, the current scale is obtained based on the scale corresponding to the main scale line, the secondary scale line with the smallest angle difference, the main scale line, and the main scale line corresponding to the second longest scale line, using formula 5:

[0035]

[0036] Where S represents the current scale, the scale of the first longest scale line is S1, the scale of the second longest scale line is S2, the scale of the third longest scale line is S3, and S1 < S2 < S3. There are n-1 shortest scale lines between the first longest scale line S1 and the second longest scale line S2. j This represents the j-th shortest scale line between the first longest scale line S1 and the second longest scale line S2. id is the number of the subscale line with the smallest angle difference. The subscale lines are numbered sequentially from the second longest scale line as 0, 1, 2, 3, ..., N, where N is a natural number greater than 1.

[0037] As a second aspect of the present invention, the present invention provides a dual-scale recognition system, comprising: a shooting module and a recognition module communicatively connected;

[0038] The imaging module is used to capture images of the scale, which includes a main annular scale on the outer ring and a secondary annular scale on the inner ring. The main annular scale includes multiple main scale lines and multiple first scale digits. The main scale lines include multiple first long scale lines and multiple first short scale lines. The first scale digits are marked on the first long scale lines, and multiple first short scale lines are set between every two first long scale lines. The secondary annular scale includes multiple secondary scale lines, which include one second long scale line and multiple second short scale lines. All second short scale lines are located on the same side of the second long scale line. The main scale lines and secondary scale lines intersect at the center of the disc.

[0039] The recognition module is used to identify the first scale number and detect straight line segments in the ruler image; remove non-major and non-sub-scale lines based on the angle between the straight line segment and the second longest scale line; distinguish between major and sub-scale lines; filter out the first longest and first shortest scale lines from the major scale lines; filter out the second longest and second shortest scale lines from the sub-scale lines; match the first longest scale line with the first scale number and calculate the scale corresponding to the first shortest scale line; assign a number to the sub-scale lines, which becomes the second scale number; calculate the angle between each sub-scale line and the major scale line, and find the sub-scale line and major scale line with the smallest angle difference; find the major scale line corresponding to the second longest scale line; obtain the current scale based on the scale line corresponding to the major scale line, the sub-scale line and major scale line with the smallest angle difference, and the major scale line corresponding to the second longest scale line.

[0040] As a third aspect of the present invention, the present invention provides a turntable, including the aforementioned dual-scale recognition system, a rotating shaft, a fixed end, an annular main scale, and an annular secondary scale;

[0041] The main annular scale is set on the rotating shaft, and the secondary annular scale is set on the fixed end, or the main annular scale is set on the fixed end, and the secondary annular scale is set on the rotating shaft.

[0042] The imaging module of the dual-scale recognition system is fixed in position to the circular secondary scale. This ensures that the position of the second longest scale line remains unchanged in the scale image.

[0043] This solution sets two scales on the turntable, eliminating the need for a high-precision mechanical encoder. By photographing the two scales, the scales on the turntable can be accurately and efficiently identified, thereby detecting the turntable's rotation angle and providing a good calibration basis for the turntable's calibration. Attached Figure Description

[0044] 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.

[0045] Figure 1 A schematic diagram of the turntable is shown.

[0046] Figure 2 The schematic diagram illustrates the steps of the dual-scale recognition method for a disc.

[0047] Figure 3 A schematic diagram of a disc with two scales is shown.

[0048] Figure 4 The diagram illustrates a dual-scale calculation on a disc.

[0049] Among them, 1—ring main scale, 2—ring secondary scale, 3—scale recognition system, 4—fixed end, 5—load mounting platform. Detailed Implementation

[0050] 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.

[0051] 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.

[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 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.

[0053] 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.

[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. 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.

[0055] 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.

[0056] According to a first specific embodiment of the present invention, the present invention provides a turntable, including a dual-scale recognition system 3, a rotating shaft, a fixed end 4, an annular main scale 1, an annular secondary scale 2, and a load mounting platform 5.

[0057] The main annular scale 1 is mounted on the rotating shaft, and the secondary annular scale 2 is mounted on the fixed end 5, or the main annular scale 1 is mounted on the fixed end 4, and the secondary annular scale 2 is mounted on the rotating shaft. When the rotating shaft rotates, the main annular scale 1 and the secondary annular scale 2 move relative to each other.

[0058] like Figure 1 As shown, Figure 1The central ring main scale 1 is fixedly connected to the rotating shaft and the load mounting platform 5. The rotating shaft drives the central ring main scale 1 and the load mounting platform 5 to rotate. The load mounting platform 5 is used to place the imaging device for imaging distant targets. When the rotating shaft of the turntable rotates, the central ring main scale 1 rotates accordingly, and the position of the central ring main scale 1 indicated by the central ring secondary scale 2 changes. By photographing the position of the central ring main scale 1 indicated by the central ring secondary scale 2, the scale is identified, and thus the rotation angle of the turntable is obtained for calibration.

[0059] The dual-scale recognition system 3 includes a shooting module and a recognition module connected in communication, wherein the shooting module is fixedly connected to the fixed end 4. Figure 1 In the image, the shooting module should be oriented from the outside in and perpendicular to the disk. However, it is misaligned to the left of the image to better see the contents of the disk.

[0060] The camera module is used to capture images of the ruler, which include a circular main scale 1 and a circular secondary scale 2, such as... Figure 3 As shown, the circular main scale 1 includes multiple main scale lines and multiple first scale digits. The multiple main scale lines include multiple first long scale lines and multiple first short scale lines. The circular secondary scale 2 includes multiple secondary scale lines, including one second long scale line and multiple second short scale lines. All second short scale lines are located on the same side of the second long scale line. The main scale lines and secondary scale lines intersect at the center of the disk. The included angle between any two main scale lines is equal, the included angle between any two secondary scale lines is equal, and the included angle between any two secondary scale lines is smaller than the included angle between any two main scale lines.

[0061] The recognition module is used to identify the first scale number and detect straight line segments in the ruler image; remove non-major and non-sub-scale lines based on the angle between the straight line segment and the second longest scale line; distinguish between major and sub-scale lines; filter out the first longest and first shortest scale lines from the major scale lines; filter out the second longest and second shortest scale lines from the sub-scale lines; match the first longest scale line with the first scale number and calculate the scale corresponding to the first shortest scale line; assign a number to the sub-scale lines, which becomes the second scale number; calculate the angle between each sub-scale line and the major scale line, and find the sub-scale line and major scale line with the smallest angle difference; find the major scale line corresponding to the second longest scale line; obtain the current scale based on the scale line corresponding to the major scale line, the sub-scale line and major scale line with the smallest angle difference, and the major scale line corresponding to the second longest scale line.

[0062] According to a second specific embodiment of the present invention, the present invention provides a dual-scale recognition method, which employs the turntable of the first specific embodiment, such as... Figure 2 As shown, it includes the following steps:

[0063] S1: Take a picture of the ruler.

[0064] like Figure 1 , Figure 3 and Figure 4 As shown, the ruler image includes a circular main scale 1 and a circular secondary scale 2.

[0065] The circular main scale 1 includes multiple main scale lines and multiple first scale numbers. The multiple main scale lines include multiple first long scale lines and multiple first short scale lines. The first scale numbers are marked on the first long scale lines, and multiple first short scale lines are set between every two first long scale lines.

[0066] The ring-shaped sub-scale ruler 2 includes multiple sub-scale lines, which include one second long scale line and multiple second short scale lines. All the second short scale lines are located on the same side of the second long scale line.

[0067] The included angle between any two major scale lines is equal; the included angle between any two minor scale lines is equal. The included angle between any two minor scale lines is smaller than the included angle between any two major scale lines.

[0068] The angle between secondary scale lines is smaller than the angle between primary scale lines. If there are 10 secondary scale lines (excluding the scale indicator lines), the angle between them is 9 / 10 of the angle between the primary scale lines. If there are N secondary scale lines (excluding the scale indicator lines), the angle between them is (N-1) / N of the angle between the primary scale lines, where N is a natural number greater than 1.

[0069] like Figure 3 and Figure 4 As shown, in a preferred embodiment, four short scale lines are arranged between every two main scale lines. In the scale image, both the main and secondary scale lines are set along the small circle where the main and secondary scale lines intersect. The main scale lines extend outward, and the secondary scale lines extend inward, intersecting at the center of the disc. When the rotation axis rotates counterclockwise, the second short scale lines are all located below the second long scale lines; when the rotation axis rotates clockwise, the second short scale lines are all located above the second long scale lines. The first long scale line is marked with first scale numbers, namely S1, S2, S3, etc. The first scale number is the angle corresponding to the main scale line, ranging from [-90, 90]. S1, S2, and S3 are angle codes, and each is a number engraved on the scale.

[0070] S2: Identify the first scale number and detect the straight line segment in the scale image; remove non-major scale lines and non-secondary scale lines based on the angle between the straight line segment and the second longer scale line.

[0071] The first scale number is identified using the Optical Character Recognition (OCR) module.

[0072] At least three first-gradient digits must be identified.

[0073] The straight line segments detected in the ruler image include:

[0074] S221: Binarize the image.

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

[0076] S222: Use a line detection algorithm to detect line segments.

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

[0078] The step of removing non-major and non-minor scale lines based on the angle between the straight line segment and the second longer scale line includes:

[0079] The second longest scale line is set horizontally in the ruler image;

[0080] Obtain the coordinates of both ends of each line segment, calculate the angle of each line segment, and if the angle of a line segment is greater than or equal to a specified angle threshold, then the line segment is considered to be neither a main tick line nor a secondary tick line.

[0081] Since the detected straight line segments include scale lines and some edge lines, the edge lines need to be removed. Therefore, the removal is required, specifically as follows: A total of t straight line segments were 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 If the angle of the line segment in the image is given by Formula 1:

[0082]

[0083] Where, θ i Let be the angle of the i-th line segment in the image, and let the image coordinates of the two ends of the i-th line segment be (u, u). i,0 v i,0 ), (u i,1 v i,1 ), where i is a natural number greater than 0.

[0084] The angle threshold is π / 6.

[0085] If θ iIf the absolute value is less than or equal to the angle threshold, the straight line segment is considered to be a scale line (main scale line or secondary scale line) and is retained; otherwise, the straight line segment is considered to be an edge line on the circumference of the scale and is discarded.

[0086] S3: Distinguish between the main scale line and the sub-scale line.

[0087] Distinguishing between major and minor scale lines includes:

[0088] The k-means clustering algorithm is used to distinguish between the main tick marks and the sub-tick marks.

[0089] The k-means clustering algorithm is used to distinguish between major and minor tick marks, including:

[0090] In the ruler image, the horizontal direction is set as the x-coordinate and the vertical direction as the y-coordinate. The midpoints of all line segments are found. Based on the distance between the midpoint and the center of the disk or the position of the midpoint in the horizontal direction, the k-means clustering algorithm is used to divide the scale lines into two categories.

[0091] Specifically, for example, using the distance from the center of the circle: Figure 3 and Figure 4 As shown, the clustering categories are first determined to be two types: one is the main scale line, and the other is the secondary scale line. Figure 3 The main tick mark is located outside the intersecting arc of the main and secondary tick marks, while the secondary tick mark is inside. As shown in the image, the horizontal direction is the x-axis, and the vertical direction is the y-axis. Classification is based on the distance between the midpoint of the tick mark and the circular disk. The initial cluster centers are selected from the two tick mark centers with the largest and smallest distances to the center of the disk. The k-means clustering algorithm is then used to cluster the main and secondary tick marks.

[0092] For example, classification can be performed using the horizontal axis: Figure 3 and Figure 4 As shown, the clustering categories are first determined to be two types: one is the primary scale line, and the other is the secondary scale line. Figure 4 It was drawn in an exaggerated way to make it easier to identify, but in reality... Figure 1 As shown, the distinction between the left and right sides of the scale lines is very clear. Figure 3 The main tick mark is located to the left of the secondary tick mark. As can be seen from the image, the horizontal direction is the x-axis and the vertical direction is the y-axis. The x-axis of the midpoint of the tick mark is used for classification. The initial cluster centers are selected as the center points of the two tick marks with the largest and smallest x-axis coordinates. The k-means clustering algorithm is used to cluster the main tick mark and the secondary tick mark.

[0093] S4: Select the first long scale line and the first short scale line from the main scale lines; select the second long scale line and the second short scale line from the secondary scale lines.

[0094] The first long and first short scale lines are selected from the main scale lines based on their length; the second long and second short scale lines are selected from the secondary scale lines based on their length.

[0095] Specifically, taking the main scale line as an example, the calculation method for the secondary scale line is the same as that for the main scale line.

[0096] Calculate the length of each main tick mark in the image. If the length is less than the length threshold, it is considered the first shortest tick mark; otherwise, it is considered the first longest tick mark. The length threshold is greater than the length of the first shortest tick mark but less than the length of the first longest tick mark.

[0097] The length of each major tick mark in the image is calculated using Formula 2:

[0098]

[0099] Among them, L i This represents the length of the i-th principal tick mark in the image; the image coordinates of the two ends of the i-th principal tick mark are (u... i,0 vi ,0 ), (u i,1 v i,1 ), where i is a natural number greater than 0.

[0100] The length threshold is k×meanL.

[0101] The average length (meanL) of all major tick marks satisfies Formula 3:

[0102]

[0103] Where meanL is the average length of all major tick marks, and m is the total number of major tick marks.

[0104] If L i If the length is less than the threshold, the i-th main tick mark is the shortest tick mark; otherwise, the i-th main tick mark is the longest tick mark. k is a constant, and the value of k is related to the actual length ratio of the first longest tick mark to the first shortest tick mark. Generally, k is taken as 1.2.

[0105] S5: Match the first long scale line with the first scale number, and calculate the scale corresponding to the first short scale line to obtain the scale corresponding to each main scale line.

[0106] Steps S5, S6 and S7 can be performed simultaneously.

[0107] Formula 4 is used to calculate the scale corresponding to the first shortest scale line:

[0108] S1 j=S1+j×(S2-S1)÷n Formula 4;

[0109] In this system, the first longest scale line is designated S1, the second longest scale line is designated S2, and S1 < S2. There are n-1 short scale lines between the first longest scale line S1 and the second longest scale line S2. j Let j represent the j-th shortest tick mark, where j is a natural number from 0 to n-1 and n is a natural number greater than 0.

[0110] S10 equals S1.

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

[0112] S6: Number the sub-scale lines, which will be the second scale number; calculate the angle between each sub-scale line and the main scale line, and find the sub-scale line and the main scale line with the smallest difference in angle.

[0113] Assume there are N+1 sub-scale lines, one of which is the second longest scale line, numbered 0. The other N sub-scale lines are numbered sequentially from top to bottom as 1, 2, ..., N. Sub-scale line 0 is the second longest scale line at the top. Find the sub-scale line that best aligns with the main scale line among all sub-scale lines. The specific method is as follows:

[0114] Assuming there are M+1 main tick marks and N+1 sub-tick marks, calculate the angles θ′ of all main tick marks and θ″ of all sub-tick marks using the angle calculation method for straight lines.

[0115] Then calculate the minimum angle between each sub-scale line and the main scale line. The minimum angle between sub-scale line 0 and all main scale lines is Δθ0, the minimum angle between sub-scale line 1 and all main scale lines is Δθ1, and so on down to the minimum angle between sub-scale line N and all main scale lines.

[0116] Δθ0=min(|θ′0-θ0″|,|θ1-θ0″|,|θ′2-θ0″|,...|θ′ M -θ0|″);

[0117] Δθ1=min(|θ0′-θ1″|,|θ1′-θ1″|,|θ2′-θ1″|,...|θ′ M -θ1″);

[0118] Where θ0″ represents the angle of sub-scale line 0 (the second longest scale line), and θ1″ represents the angle of sub-scale line 1 (the first second shortest scale line). θ0′, θ1′, θ2′, θ′ M These are the angles of main scale line 0, main scale line 1, main scale line 2, and main scale line M, respectively.

[0119] like Figure 3 As shown, Figure 3 The angle difference between the second secondary scale line (i.e., the second short scale line) and the first short scale line S14 of the main scale line is the smallest.

[0120] After the short scale lines are identified, they are numbered in sequence. This number is the second scale number. The second scale numbers are identified sequentially from the second long scale line to the second short scale line, which are 0, 1, 2, 3, etc.

[0121] S7: Find the main tick mark corresponding to the second longest tick mark.

[0122] Find the main scale lines on both sides of the second longest scale line.

[0123] Based on the main scale lines on both sides of the second longest scale line, the main scale corresponding to the secondary scale line can be obtained.

[0124] Figure 3 In the middle, the second longest scale line is located between the third first short scale line and the fourth first short scale line, which is between the first first longest scale line S1 and the second first longest scale line S2. Figure 3 The secondary scale line in the text corresponds to the primary scale line:

[0125] S13 = S1 + 3 × (S2 - S1) / 5.

[0126] S8: Obtain the current scale based on the scale corresponding to the main scale line, the secondary scale line with the smallest angle difference, the main scale line, and the main scale line corresponding to the second longest scale line.

[0127] The position indicated by the second longest scale line is the current scale. The current scale consists of two parts: the first part is the scale of the second shortest scale line with the smaller scale on either side of the second longest scale line, and the second part is the angle between the second longest scale line and the second shortest scale line with the smaller scale on either side of the second longest scale line. This second part can be calculated by the distance relationship between the secondary scale line and the primary scale line.

[0128] The current scale is obtained based on the scale corresponding to the main scale line, the secondary scale line with the smallest angle difference, the main scale line, and the main scale line corresponding to the second longest scale line, using formula 5:

[0129]

[0130] Where S represents the current scale, the scale of the first longest scale line is S1, the scale of the second longest scale line is S2, the scale of the third longest scale line is S3, and S1 < S2 < S3. There are n-1 shortest scale lines between the first longest scale line S1 and the second longest scale line S2. jThis represents the j-th shortest scale line between the first longest scale line S1 and the second longest scale line S2. id is the number of the subscale line with the smallest angle difference. The subscale lines are numbered sequentially from the second longest scale line as 0, 1, 2, 3, ..., N, where N is a natural number greater than 1.

[0131] n represents dividing S1 and S2 into n parts, preferably n is 5 and N is 10. S1 j This refers to the major scale corresponding to the scale indicator line. An id of 0 indicates a major scale within the minor scale. An id of 0 and an id of N are the same case. If line 0 is aligned, line N will also be aligned.

[0132] like Figure 3 As shown, referring to the reading principle of vernier calipers, formula 5 is derived:

[0133] Given: The distance between the major tick marks is d, and the distance between the minor tick marks is N, where (N-1) / N*d. Figure 3 N is 10.

[0134] Assume the current scale reading is: S1 j +x;

[0135] Since the line numbered id in the secondary scale is most aligned with the primary scale, we can conclude that:

[0136] S1 j +x+id*(N-1) / N*d=S1 j +id*d;

[0137] We can obtain: x = 1 / N * d * id;

[0138] Formula 5 It refers to the width d of the main tick mark.

[0139] use It can represent the smallest scale difference between the main scale lines; similarly, it can be used... Using `for` instead yields the same result; both represent the minimum scale difference between the main scale lines. This value is fixed after design and can also be a preset value.

[0140] This solution sets up dual scales on the turntable, eliminating the need for a high-precision mechanical encoder. By photographing the scales, the markings on the turntable can be accurately and efficiently identified, thereby detecting the turntable's rotation angle and providing a good calibration basis for the turntable's calibration.

[0141] 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 method for recognizing dual scales on a circular disk, characterized in that, Includes the following steps: S1: Take a picture of the scale, which includes a main annular scale on the outer ring and a secondary annular scale on the inner ring. The main annular scale includes multiple main scale lines and multiple first scale digits. The main scale lines include multiple first long scale lines and multiple first short scale lines. The first scale digits are marked on the first long scale lines, and multiple first short scale lines are set between every two first long scale lines. The secondary annular scale includes multiple secondary scale lines, which include one second long scale line and multiple second short scale lines. The second short scale lines are all located on the same side of the second long scale line. The main scale lines and secondary scale lines intersect at the center of the disc. S2: Identify the first scale digit and detect the straight line segment in the ruler image; remove non-major and non-minor scale lines based on the angle between the straight line segment and the second longer scale line; S3: Distinguish between main scale lines and sub-scale lines; S4: Select the first long tick mark and the first short tick mark from the main tick marks; Select the second longest and second shortest scale lines from the secondary scale lines; S5: Match the first long scale line with the first scale number, and calculate the scale corresponding to the first short scale line to obtain the scale corresponding to each main scale line; S6: Number the sub-scale line; this number is the second scale number. Calculate the angle between each sub-scale line and the main scale line, and find the sub-scale line and the main scale line with the smallest angle difference; S7: Locate the main tick mark corresponding to the second longest tick mark; S8: Obtain the current scale based on the scale corresponding to the main scale line, the secondary scale line with the smallest angle difference, the main scale line, and the main scale line corresponding to the second longest scale line.

2. The disc dual-scale recognition method according to claim 1, characterized in that, The included angle between any two major scale lines is equal; the included angle between any two minor scale lines is equal.

3. The disc dual-scale recognition method according to claim 2, characterized in that, The angle between any two secondary scale lines is smaller than the angle between any two primary scale lines.

4. The disc dual-scale recognition method according to claim 1, characterized in that, In step S2, removing non-major and non-minor scale lines based on the angle between the straight line segment and the second long scale line includes: The second longest scale line is set horizontally in the ruler image; Obtain the coordinates of both ends of each line segment, calculate the angle of each line segment, and if the angle of a line segment is greater than or equal to a specified angle threshold, then the line segment is considered to be a non-principal tick line and a non-tick line.

5. The disc dual-scale recognition method according to claim 4, characterized in that, In step S3, distinguishing between the main scale line and the sub-scale line includes: The k-means clustering algorithm is used to distinguish between the main tick marks and the sub-tick marks.

6. The disc dual-scale recognition method according to claim 5, characterized in that, The method of using k-means clustering to distinguish between major and minor tick marks includes: In the ruler image, the horizontal direction is set as the x-axis and the vertical direction as the y-axis. Find the midpoint of all line segments. Based on the distance between the midpoint and the center of the disk or the position of the midpoint in the x-axis direction, the line segments are divided into two categories using the k-means clustering algorithm.

7. The method for recognizing dual scale lines on a disc according to claim 1, characterized in that, In step S4, the first long scale line and the first short scale line are selected from the main scale lines based on their length; the second long scale line and the second short scale line are selected from the secondary scale lines based on their length. The first longer scale line is longer than the first shorter scale line, and the second longer scale line is longer than the second shorter scale line.

8. The method for recognizing dual graduation lines on a disc according to claim 1, characterized in that, In step S8, the current scale is obtained based on the scale corresponding to the main scale line, the secondary scale line with the smallest angle difference, the main scale line, and the main scale line corresponding to the second longest scale line, using formula 5: Where S represents the current scale, the scale of the first longest scale line is S1, the scale of the second longest scale line is S2, the scale of the third longest scale line is S3, and S1 < S2 < S3. There are n-1 shortest scale lines between the first longest scale line S1 and the second longest scale line S2. j This represents the j-th shortest scale line between the first longest scale line S1 and the second longest scale line S2. id is the number of the subscale line with the smallest angle difference. The subscale lines are numbered sequentially from the second longest scale line as 0, 1, 2, 3, ..., N, where N is a natural number greater than 1.

9. A circular dual-scale recognition system, characterized in that, include: The camera module and recognition module are connected via communication. The imaging module is used to capture images of the scale, which includes a main annular scale on the outer ring and a secondary annular scale on the inner ring. The main annular scale includes multiple main scale lines and multiple first scale digits. The main scale lines include multiple first long scale lines and multiple first short scale lines. The first scale digits are marked on the first long scale lines, and multiple first short scale lines are set between every two first long scale lines. The secondary annular scale includes multiple secondary scale lines, which include one second long scale line and multiple second short scale lines. All second short scale lines are located on the same side of the second long scale line. The main scale lines and secondary scale lines intersect at the center of the disc. The recognition module is used to identify the first scale number and detect the straight line segment in the scale image; remove non-major scale lines and non-sub-scale lines based on the angle between the straight line segment and the second longer scale line; and distinguish between major scale lines and sub-scale lines. Select the first long scale line and the first short scale line from the main scale lines; Select the second longest and second shortest scale lines from the secondary scale lines; Match the first long scale line with the first scale number, and calculate the scale corresponding to the first short scale line to obtain the scale corresponding to each main scale line; Number the sub-scale line; this number is the second scale number. Calculate the angle between each sub-scale line and the main scale line, find the sub-scale line and the main scale line with the smallest difference in angle; find the main scale line corresponding to the second longest scale line; The current scale is obtained based on the scale corresponding to the main scale line, the secondary scale line with the smallest angle difference, the main scale line, and the main scale line corresponding to the second longest scale line.

10. A turntable, characterized in that, include: The disc dual-scale recognition system, rotating shaft, fixed end, annular main scale, and annular secondary scale as described in claim 9; The main annular scale is set on the rotating shaft, and the secondary annular scale is set on the fixed end, or the main annular scale is set on the fixed end, and the secondary annular scale is set on the rotating shaft. Position of the imaging module and the ring-shaped secondary scale of the dual-scale recognition system.

Citation Information

Patent Citations

  • High-precision rotating angle error calibration graduated disk with recognition graduated lines and calibration system

    CN107830819A

  • Disc buckle type scaffold connecting structure

    CN114856163A