Rotary table based on coded marks and photogrammetry device
By integrating the coding mark plate and observation camera on the turntable, and using the image processing module to calculate the calibration angle value, the problem of high cost and complicated operation of high-precision turntable calibration is solved, and high-precision, low-cost turntable calibration and measurement are achieved.
Patent Information
- Application Number
- CN202411101493.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-10-15
AI Technical Summary
Existing high-precision turntables have high costs, complex operations, and are easily affected by bumps during the calibration process, resulting in reduced measurement accuracy, and the high price is unaffordable for ordinary users.
Design a turntable based on coding marks, using a coding mark disk and a coding mark observation camera, and calculating the calibration angle value through the image processing module. Only one calibration point is needed to complete the turntable calibration, simplifying the operation process and reducing costs.
It realizes the output of high-precision angle measurement results, reduces the difficulty of production and assembly, reduces the size and price of equipment, improves system stability and measurement accuracy, simplifies the operating process, and reduces the possibility of operating errors.
Smart Images

Figure CN118776433A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of photogrammetry and image processing, and in particular to a turntable and a photogrammetry device based on coding marks. 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] In actual measurement tasks, in order to obtain the actual position of the target, the turntable needs to be calibrated first. During the calibration process, some cooperative marks are used to link the turntable angle with the actual position in space. The current turntable calibration method requires multiple cooperative marks, and each cooperative mark needs to obtain its three-dimensional coordinates. The overall process is relatively complicated, and the overall time for operators to calibrate in real time is also relatively long.
[0005] Therefore, it is necessary to provide a turntable and a photogrammetry device based on coded marks, 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 turntable calibration cost and difficult operation, and to provide a turntable and photogrammetry device based on coded marks. The turntable can be calibrated using only one calibration point, and the calibration process is simple, easy to operate and low in cost.
[0008] To achieve the above-mentioned purpose, the present invention provides a turntable based on coding marks in a first aspect, comprising: a turntable body, a coding mark disk, a coding mark observation camera and an image processing module;
[0009] The turntable body is used to carry a load camera, and the load camera is used to photograph calibration points and measure targets;
[0010] The coding mark disk or the coding mark observation camera is fixed on the turntable body. When the turntable body rotates, the coding mark disk and the coding mark observation camera move relative to each other.
[0011] The coding mark disk includes a disk and a plurality of coding marks arranged on the disk, the distances from the plurality of coding marks to the center of the disk are all equal, the distances between two adjacent coding marks are all equal, and each coding mark contains angle information of the coding mark;
[0012] The coding mark observation camera is used to photograph the coding mark on the coding mark disk;
[0013] The image processing module is communicatively connected to the coding mark observation camera, and is used to obtain the image taken by the coding mark observation camera and calculate the calibration angle value of the turntable.
[0014] According to an exemplary embodiment of the present invention, the plurality of coding marks are different dot-shaped coding marks, and the coding marks have a plurality of positioning points and a plurality of coding points.
[0015] According to an exemplary embodiment of the present invention, the coding mark is a rectangle, wherein one positioning point is located at the center of the coding mark, and other positions have multiple coding points, the positioning point is used to determine the position of the coding mark, and multiple coding points can solve the angle information of the coding mark.
[0016] According to an exemplary embodiment of the present invention, the coding mark disk rotates 0-360 degrees, and at least one coding mark enters the field of view of the coding mark observation camera at any angle.
[0017] According to an exemplary embodiment of the present invention, the distance from the intersection of the optical axis of the coding mark observation camera and the coding mark disk to the center of the disk is equal to the distance from the coding mark to the center of the disk.
[0018] According to an exemplary embodiment of the present invention, the image processing module calculates the calibration angle value of the turntable including:
[0019] Find the coding mark from the captured image, the coding mark contains the angle information of the coding mark, and obtain the angle information of the coding mark;
[0020] Obtaining the offset angle information of the coding mark relative to the intersection of the optical axis of the coding mark observation camera and the coding mark disk;
[0021] The calibration angle value is obtained according to the angle information and the offset angle information of the coding mark.
[0022] According to an exemplary embodiment of the present invention, the image processing module includes a coding mark recognition system and a calibration angle value recognition system.
[0023] According to an exemplary embodiment of the present invention, a coding mark recognition system is used to find a coding mark from a captured image, wherein the coding mark contains angle information of the coding mark, and obtain the angle information of the coding mark. The coding mark recognition system includes: a module for obtaining a dot coding mark, a dot recognition module, a collinear three-point recognition module, a symmetrical two-point recognition module, an affine transformation matrix generation module, a coding point fixed coordinate solution module, an index table and a code number acquisition module. The dot coding mark acquisition module is used to obtain a photo of the dot coding mark of the first specific embodiment. The dot recognition module is used to identify the dots in the dot coding mark and obtain the center point of each dot. The collinear three-point recognition module is used to find three collinear dots, obtain a central positioning point, a first collinear positioning point and a second collinear positioning point. The symmetrical two-point recognition module is used to find two collinear points whose connecting line is perpendicular to the three dots, obtain a first symmetrical positioning point and a second symmetrical positioning point. The affine transformation matrix generation module is used to obtain an affine transformation matrix according to the actual coordinates of the positioning point and the fixed coordinates of the positioning point in the dot coding mark. The coding point fixed coordinates solving module is used to obtain the affine transformation matrix according to the affine transformation matrix and the fixed coordinates of the coding point in the dot coding mark. The index table includes the coding of the coding point and the code number of the corresponding dot coding mark. The code number obtaining module is used to obtain the coding of the coding point according to the fixed coordinates of the coding point, and obtain the code number of the dot coding mark according to the index table and the coding of the coding point.
[0024] According to an exemplary embodiment of the present invention, the turntable body includes a pitch rotation axis and an azimuth rotation axis, the number of the coding mark disks is two, including an azimuth coding mark disk and a pitch coding mark disk, and the number of the coding mark observation cameras is two, including a pitch camera and an azimuth camera;
[0025] The azimuth camera and the pitch camera are fixed on the azimuth rotation axis, and the pitch coding mark disk is fixed on the pitch rotation axis, so that the azimuth coding mark disk is stationary, the azimuth camera and the pitch camera rotate with the azimuth rotation axis, and the pitch coding mark disk rotates with the pitch rotation axis.
[0026] According to an exemplary embodiment of the present invention, the azimuth coding mark disk is horizontally arranged, and the optical axis of the azimuth camera is perpendicular to the azimuth coding mark disk; the elevation coding mark disk is vertically arranged, and the optical axis of the elevation camera is perpendicular to the elevation coding mark disk.
[0027] As a second aspect of the present invention, the present invention provides a photogrammetry device, comprising: a pointing angle solving module, a load camera, and the above-mentioned turntable based on coding marks;
[0028] The load camera is fixed on the turntable based on the coding mark and is used to photograph the measurement target;
[0029] The pointing angle calculation module is communicatively connected to the image processing module of the turntable based on the coding mark, and is used to calculate the pointing angle of the measurement target.
[0030] According to an example embodiment of the present invention, a pointing angle calculation module is used to calculate the pointing angle of a measurement target, including: when the measurement target 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 based on the calibration angle value and the current angle value; and calculating the pointing angle of the measurement target based on the coordinates of the calibration point and the relative rotation angle.
[0031] The advantageous effect of the present invention is that the present invention can output high-precision angle measurement results by adding a coding mark observation camera and a coding mark disk to an ordinary turntable. Through image processing technology, there is no need to use a complex mechanical structure, thereby reducing the difficulty of production and assembly. Since this solution does not require the use of a high-precision coding mark disk, the overall price is lower and the size is smaller than the current high-precision turntable, which is more conducive to the transportation and use of the equipment.
[0032] At the same time, since the external parameters of the camera are calculated through the positioning points on the coding mark, measurement can be performed even when the camera optical axis and the coding mark disk are not perpendicular. The use of coding marks improves the stability of the entire system and also improves the measurement accuracy of the system.
[0033] The turntable and photogrammetry device proposed in this scheme can complete the calibration of the turntable load camera using only one calibration point. The overall process is simple and there is no need to arrange multiple positioning point marks, which reduces the workload of the operator and reduces the possibility of operational errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] 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 work.
[0035] Figure 1 The structure of the turntable based on the coding mark is schematically shown.
[0036] Figure 2 The schematic diagram of the coding mark disk and the angle solution is shown schematically.
[0037] Figure 3 The principle diagram of the dot-shaped coding mark is shown schematically.
[0038] Figure 4 An example diagram of a dot-shaped coding mark is schematically shown.
[0039] Figure 5 The diagram schematically shows the steps of a method for calibrating a turntable based on coded marks.
[0040] Figure 6 The diagram schematically shows the steps of obtaining the angle information of the coding mark.
[0041] Figure 7 The schematic diagram of turntable calibration and measurement under northeast celestial coordinates is shown schematically.
[0042] Figure 8 The diagram schematically shows the steps of a method for measuring the rotation angle of a turntable based on a coding mark.
[0043] Among them, A is the first collinear positioning point, B is the second collinear positioning point, C is the center positioning point, D is the first symmetrical positioning point, E is the second symmetrical positioning point, 1 to 20 are preset points; F is a calibration point, K is a measurement target, 101 is a load installation platform, 102 is a pitch coding mark disk, 103 is a turntable body, 104 is an azimuth camera bracket, 105 is an azimuth camera, 106 is a pitch rotation axis, 107 is a pitch camera, 108 is a pitch camera bracket, 109 is an azimuth coding mark disk, 110 is a coding mark, 111 is a base, and 112 is an azimuth rotation axis. DETAILED DESCRIPTION
[0044] 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.
[0045] 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.
[0046] 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.
[0047] 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.
[0048] 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.
[0049] 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.
[0050] According to a first specific embodiment of the present invention, the present invention provides a turntable based on a coding mark, comprising: a turntable body, a coding mark disk, a coding mark observation camera and an image processing module (not shown in the figure).
[0051] Specifically, Figure 1 As shown, Figure 1 It is a dual-axis turntable, including an azimuth axis and a pitch axis.
[0052] The turntable body is used to carry the payload camera, and the payload camera is used to shoot the calibration point F and measure the target K. The turntable body includes a base 111, an azimuth rotation axis 112, a pitch camera bracket 108, a pitch rotation axis 106, an azimuth camera bracket 104, a turntable body 103 and a payload mounting platform 101. The base 111 is located at the bottom of the turntable body and is used to support the turntable. The azimuth rotation axis 112 is vertically arranged, and the azimuth rotation axis 112 can rotate around the vertical direction. The bottom of the azimuth rotation axis 112 is a fixed end, which is fixedly connected to the base 111, and the top is a free end, which is fixedly connected to the turntable body 103, so that the turntable body 103 rotates around the vertical direction with the azimuth rotation axis 112, which is used to drive the payload camera to rotate. A pitch camera bracket 108 and an azimuth camera bracket 104 are fixed to the turntable body 103. The pitch camera bracket 108 is used to connect the pitch camera 107 to the turntable body 103, and the azimuth camera bracket 104 is used to connect the azimuth camera 105 to the turntable body 103, so that the azimuth camera 105 and the pitch camera 7 rotate around the vertical direction with the turntable body 103. The pitch rotation axis 106 is horizontally arranged on the upper part of the turntable body 103, and it can rotate along a horizontal straight line. The pitch rotation axis 106 includes a fixed end and a free end. The fixed end is fixedly connected to the turntable body 103, and the free end is fixedly connected to the load installation platform 101, and is used to drive the load camera to rotate.
[0053] The coding mark disk (102, 109) or the coding mark observation camera (105, 107) is fixed on the turntable body. When the turntable body rotates, the coding mark disk (102, 109) and the coding mark observation camera (105, 107) move relative to each other. Figure 2 As shown, the coding mark disk (102, 109) includes a circular disk and a plurality of coding marks 110 arranged on the circular disk. The distances from the plurality of coding marks 110 to the center of the circular disk are all equal, and the distances between two adjacent coding marks 110 are all equal. Each coding mark 110 contains the angle information of the coding mark 110. There are two coding mark disks (102, 109), including an azimuth coding mark disk 109 and an elevation coding mark disk 102. The azimuth coding mark disk 109 is fixedly connected to the fixed end of the azimuth rotation axis 112, and the center of the disk thereof is on the axis of the azimuth rotation axis 112. The elevation coding mark disk 102 is fixedly connected to the free end of the elevation rotation axis 106, and the center of the disk thereof is on the axis of the elevation rotation axis 106. As shown Figure 2As shown, the coding mark disk (102, 109) rotates 0-360 degrees, and at any angle, at least one coding mark 110 enters the field of view of the coding mark observation camera (105, 107), ensuring that no matter how much the coding mark disk rotates, each time the coding mark observation camera (105, 107) forms an image, there is at least one coding mark 110 in the image. The coding mark observation camera (105, 107) is used to photograph the coding mark 110 on the coding mark disk (102, 109). The distance from the intersection of the optical axis of the coding mark observation camera (105, 107) and the coding mark disk (102, 109) to the center of the disk is equal to the distance from the coding mark 110 to the center of the disk. There are two coding mark observation cameras (105, 107), including an azimuth camera 105 and a pitch camera 107. The azimuth camera 105 is fixedly connected to the turntable body 103 through the azimuth camera bracket 104, and the elevation camera 107 is fixedly connected to the turntable body 103 through the elevation camera bracket 108. The azimuth camera 105 is vertically arranged, and its optical axis is perpendicular to the azimuth coding mark disk 9. The distance from the intersection of its optical axis and the azimuth coding mark disk 109 to the center of the disk is equal to the distance from the coding mark 110 to the center of the disk. Its lens is aimed at the coding mark of the azimuth coding mark disk 109. The distance between two adjacent coding marks 110 is such that when the azimuth coding mark disk 109 rotates 0-360 degrees, at least one coding mark 110 enters the field of view of the azimuth camera 105 at any angle. The pitch camera 107 is horizontally arranged, and its optical axis is perpendicular to the pitch coding mark disk 102. The distance from the intersection of its optical axis and the pitch coding mark disk 102 to the center of the disk is equal to the distance from the coding mark to the center of the disk. Its lens is aimed at the coding mark of the pitch coding mark disk 102 and the distance between two adjacent coding marks. When the pitch coding mark disk 102 rotates 0-360 degrees, at least one coding mark 110 enters the field of view of the pitch camera 107 at any angle. Figure 1 This is just a schematic diagram. For the convenience of display, the pitch camera 107 is drawn on the left side of the turntable body 103. In fact, the optical axis of the pitch camera 107 should be aligned with the axial direction of the pitch rotation axis 109 (as indicated by Figure 1 Inside-out or Figure 1 As a preferred embodiment, the coding mark 110 is rectangular, the center of the coding mark 110 has a certain position, and other positions have multiple coding points. The positioning point is used to determine the position of the coding mark 110, and the multiple coding points can solve the angle information of the coding mark 110.
[0054] As a more preferred embodiment, the plurality of coding marks 110 are different dot-shaped coding marks, which have a plurality of positioning points and a plurality of coding points, and the angle information of the coding mark 110 is obtained by identifying the positioning points and coding points of the coding mark 110. Figure 3As shown, the dot-shaped coding mark includes: a mark bottom surface, multiple positioning points and multiple coding points.
[0055] The bottom surface of the logo is a rectangle, and multiple positioning points and multiple coding points are distributed on the bottom surface of the logo. As a preferred embodiment, the bottom surface of the logo is a square. Figure 3 The bottom of the center logo is painted black.
[0056] The positions of multiple positioning points on the bottom surface of the sign are fixed, and the multiple positioning points include a center positioning point C, a first collinear positioning point A, a second collinear positioning point B, a first symmetrical positioning point D, and a second symmetrical positioning point E; the center positioning point C is located at the center of the bottom surface of the sign, the first collinear positioning point A, the center positioning point C, and the second collinear positioning point B are on the same straight line, which is the axis of symmetry of the first symmetrical positioning point D and the second symmetrical positioning point E, and the intersection of the line connecting the first symmetrical positioning point D and the second symmetrical positioning point E and the straight line where the first collinear positioning point A, the center positioning point C, and the second collinear positioning point B are located is located between the first collinear positioning point A and the second collinear positioning point B and is not the center positioning point C. The straight line where the first collinear positioning point A, the center positioning point C, and the second collinear positioning point B are located is vertically arranged; the distance from the first collinear positioning point A to the center positioning point C is equal to the distance from the second collinear positioning point B to the center positioning point C. As a preferred embodiment, Figure 3 As shown, the intersection of the line connecting the first symmetrical positioning point D and the second symmetrical positioning point E and the straight line where the first collinear positioning point A, the central positioning point C and the second collinear positioning point B are located is located between the central positioning point C and the second collinear positioning point B.
[0057] Multiple code points are distributed at other locations of the anchor point and do not intersect with the anchor point. Figure 4 As shown in , there are at least 3 code points. Figure 3 As shown, multiple coding points are set at preset points, which are symmetrically arranged on both sides of the straight line (where the first collinear positioning point A, the central position point C, and the second collinear positioning point B are located), and the preset points are arranged in an array, and are encoded in sequence from left to right and from bottom to bottom on each side. As a preferred embodiment, Figure 3 There are 20 preset points, the left preset points are 5 rows and 2 columns, the right preset points are 5 rows and 2 columns, and the codes of the preset points are 1 to 20. One code point corresponds to one preset point, and the codes of multiple code points are not adjacent.
[0058] When the azimuth rotation axis 112 rotates, the azimuth camera 105 rotates, the azimuth coding mark disk 109 does not move, and the azimuth camera 105 photographs the azimuth coding mark disk 109 to determine the degree of azimuth rotation. When the pitch rotation axis 106 rotates, the pitch camera 107 does not move, the pitch coding mark disk 102 rotates, and the pitch camera 107 photographs the pitch coding mark disk 102 to determine the degree of pitch rotation.
[0059] The image processing module is communicatively connected to the coding mark observation camera (105, 107) and is used to obtain images taken by the coding mark observation camera (105, 107) and calculate the calibration angle value of the turntable.
[0060] The image processing module includes a coding mark recognition system and a calibration angle value recognition system.
[0061] The coding mark recognition system is used to find the coding mark from the captured image, and the coding mark contains the angle information of the coding mark, and obtains the angle information of the coding mark. The coding mark recognition system includes: a module for obtaining a dot coding mark, a dot recognition module, a collinear three-point recognition module, a symmetrical two-point recognition module, an affine transformation matrix generation module, a coding point fixed coordinate solution module, an index table and a code number acquisition module. The dot coding mark acquisition module is used to obtain a photo of the dot coding mark of the first specific implementation method. The dot recognition module is used to identify the dots in the dot coding mark and obtain the center point of each dot. The collinear three-point recognition module is used to find three collinear dots, obtain the center positioning point, the first collinear positioning point and the second collinear positioning point. The symmetrical two-point recognition module is used to find two collinear points whose connecting line is perpendicular to the three dots, and obtain the first symmetrical positioning point and the second symmetrical positioning point. The affine transformation matrix generation module is used to obtain the affine transformation matrix according to the actual coordinates of the positioning point and the fixed coordinates of the positioning point in the dot coding mark. The coding point fixed coordinates solving module is used to obtain the affine transformation matrix according to the affine transformation matrix and the fixed coordinates of the coding point in the dot coding mark. The index table includes the coding of the coding point and the code number of the corresponding dot coding mark. The code number obtaining module is used to obtain the coding of the coding point according to the fixed coordinates of the coding point, and obtain the code number of the dot coding mark according to the index table and the coding of the coding point.
[0062] The calibration angle value recognition system is used to obtain the offset angle information of the coding mark relative to the intersection of the optical axis of the coding mark observation camera and the coding mark disk; the calibration angle value is obtained according to the angle information of the coding mark and the offset angle information.
[0063] The image processing module calculates the calibration angle value of the turntable including:
[0064] Find the coding mark from the captured image, the coding mark contains the angle information of the coding mark, and obtain the angle information of the coding mark;
[0065] Obtaining the offset angle information of the coding mark relative to the intersection of the optical axis of the coding mark observation camera and the coding mark disk;
[0066] The calibration angle value is obtained according to the angle information and the offset angle information of the coding mark.
[0067] According to a second specific embodiment of the present invention, the present invention provides a method for calibrating a turntable based on a coding mark, and the method adopts the turntable based on a coding mark of the first specific embodiment. The load camera is fixed on the load mounting platform 101 of the turntable body, such as Figure 5 As shown, the calibration method includes the following steps:
[0068] S0: Adjust the base 111 of the turntable body to be horizontal.
[0069] By mounting the turntable on an adjustable tripod, the base 111 of the turntable body is adjusted to be level using a level adjustment device. Using single-point calibration, the turntable base 111 must be leveled.
[0070] S1: Get the coordinates of the payload camera.
[0071] Use RTK equipment to mark the optical center of the payload camera to determine its longitude and latitude coordinates.
[0072] S2: Arrange a calibration point F and obtain the coordinates of the calibration point F.
[0073] like Figure 6 As shown, the payload camera is at the origin of the coordinate axis, and a calibration point F is arranged within the field of view of the payload camera. The calibration point F is far away from the turntable. The calibration point F can be a pattern mark point or a marker. The RTK equipment is used to obtain the longitude and latitude coordinates of the center of the calibration point F.
[0074] With the optical center of the payload camera as the origin, the northeast celestial coordinate system is established, the latitude and longitude coordinates of the calibration point F are converted into northeast celestial coordinates, and the angle between the direction of the calibration point F and the horizontal plane is calculated, that is, the angle between the projection of the calibration point F on the horizontal plane and the due east direction.
[0075] S3: Control the turntable body to rotate so that the calibration point F is located at the center of the image of the load camera, and the coding mark observation camera (105, 107) photographs the coding mark 110 on the coding mark disk (102, 109), and calculates the calibration angle value of the load camera based on the photographed coding mark 110.
[0076] As a preferred embodiment, the turntable of the present scheme is a dual-axis turntable, the calibrated angle value includes a calibrated azimuth angle value and a calibrated pitch angle value, the coding mark disk (102, 109) includes an azimuth coding mark disk 109 and a pitch coding mark disk 102, the coding mark observation camera (105, 107) includes an azimuth camera 105 and a pitch camera 107, the azimuth camera 105 photographs the coding mark 110 of the azimuth coding mark disk 109 to obtain the calibrated azimuth angle value, and the pitch camera 107 photographs the coding mark 110 of the pitch coding mark disk 102 to obtain the calibrated pitch angle value.
[0077] The image processing module is used to calculate the calibration angle value of the load camera according to the photographed coding mark 110, including:
[0078] S31: Find the coding mark 110 from the captured image, the coding mark 110 contains the angle information of the coding mark, and obtain the angle information of the coding mark 110.
[0079] like Figure 2 As shown, a plurality of coding marks 110 are arranged on the coding mark disk (102, 109), and the distances from the plurality of coding marks 110 to the center of the coding mark disk (102, 109) are all equal, and the distances between two adjacent coding marks 110 are all equal. Preferably, the plurality of coding marks 110 are different dot-shaped coding marks, and the coding mark has a plurality of positioning points and a plurality of encoding points, and the angle information of the coding mark 110, such as 10 degrees and 60 degrees, is obtained by identifying the positioning points and encoding points of the coding mark 110.
[0080] like Figure 6 As shown, obtaining the angle information of the coding mark 110 includes the following steps:
[0081] S311: Acquire a photo of the dot-shaped coding mark.
[0082] The dot-shaped coding mark is the dot-shaped coding mark of the first specific implementation manner.
[0083] The photograph of the dot-coded mark is taken perpendicular to the dot-coded mark.
[0084] S312: Identify the dots in the dot-shaped coding mark and obtain the center point of each dot.
[0085] Identify the dots in the dot-coded mark including:
[0086] Perform ellipse detection on the dot-coded marks and cluster the ellipses to obtain more than 8 ellipses.
[0087] Specifically, ellipse detection is performed in the image: the ellipse detection algorithm in the ED algorithm or the ellipse detection algorithm based on the Hough transform is used to perform ellipse detection in the captured image. Two thresholds are set to screen all ellipses. If the major semi-axis of the ellipse is between the two thresholds, it is retained; if not, it is discarded.
[0088] Clustering ellipses: In an image, there may be multiple dot-coded marks. It is necessary to cluster multiple ellipses in a dot-coded mark into one category. Set the distance coefficient k, traverse all ellipses, calculate the semi-major axis of the current ellipse as a, search for other ellipses within the range of k×a of the current ellipse, and classify the searched ellipses and the current ellipse into one category. If the number of ellipses in the current category is equal to or greater than the sum of the number of positioning points and coding points in a dot-coded mark, then keep it. If the number of surrounding ellipses is less than the sum of the number, then give up. Repeat the search until all ellipses are traversed.
[0089] S313: Find three collinear points to obtain the central positioning point C, the first collinear positioning point A and the second collinear positioning point B.
[0090] For each ellipse, calculate the center of the ellipse. Assuming there are N ellipses in the set, get N center points.
[0091] Select three points in the set. If the three points are collinear, the end point is recorded as the center positioning point C, and the points at both ends are recorded as the first collinear positioning point A and the second collinear positioning point B. If the three points are not collinear, reselect the points.
[0092] S314: Find two points on the same line whose connecting line is perpendicular to the three dots, and obtain a first symmetrical positioning point and a second symmetrical positioning point.
[0093] The method of finding two points on the same line whose connecting line is perpendicular to the three points includes:
[0094] Find the points on both sides of the common line of three points;
[0095] Get the intersection of the collinear lines of two points and three points;
[0096] If the intersection ratio calculated from the three circular points and the intersection point, a total of four points, is equal to the predetermined intersection ratio, it is considered that the first symmetric positioning point and the second symmetric positioning point are found.
[0097] The predetermined cross-ratio is the cross-ratio designed in the schematic diagram.
[0098] Specifically, select any two points from the remaining N-3 points in the set and record them as the first symmetric positioning point D and the second symmetric positioning point E. If the two points are on both sides of the straight line where the first collinear positioning point A and the second collinear positioning point B are located, then calculate the intersection of the straight line where the first symmetric positioning point D and the second symmetric positioning point E are located and the straight line where the first collinear positioning point A and the second collinear positioning point B are located, and record them as P.
[0099] Calculate the intersection ratio R(A, C, P, B) composed of the four points A, C, P, and B.
[0100]
[0101] If the cross ratio in the image is equal to the cross ratio designed in the schematic diagram of the dot-shaped coding mark, it is considered that five positioning points have been found, otherwise the first symmetrical positioning point D and the second symmetrical positioning point E are reselected.
[0102] This solution determines the positional relationship by calculating the intersection ratio. The intersection ratio calculated for different intersection points is different. If the calculated intersection ratio is the same as the design, D and E are considered to have been found. The formula is as follows:
[0103] The reason why the cross ratio can be used is that the proportional relationship (cross ratio) of points on a line remains unchanged before and after the projection / affine transformation.
[0104] If the first symmetrical positioning point D and the second symmetrical positioning point E cannot be found after traversing N-3 points, return to step S313 to reselect the central positioning point C, the first collinear positioning point A and the second collinear positioning point B.
[0105] S315: Obtain an affine transformation matrix according to the actual coordinates of the positioning point and the fixed coordinates of the positioning point on the dot-shaped coding mark.
[0106] The method of obtaining an affine transformation matrix according to the actual coordinates of the positioning point and the fixed coordinates of the positioning point on the dot-shaped coding mark includes:
[0107] Establish an affine transformation equation; bring the actual coordinates and fixed coordinates of the positioning point into the affine transformation equation, and use the least squares method to solve the affine transformation matrix.
[0108] Specifically, since the points in the dot-shaped coding mark and the actual imaging points satisfy the affine transformation, the formula is as follows:
[0109]
[0110] Among them, (x, y) is the fixed coordinate of the positioning point on the dot-shaped coding mark, (x', y') is the actual coordinate of the positioning point, and a 1,1 、a 1,2 ,t x ,t y 、a 2,1 、a 2,2 All are natural numbers.
[0111] The affine transformation matrix uses the following formula:
[0112]
[0113] Among them, H affine represents the affine transformation matrix, a 1,1 、a 1,2 , t x ,t y、a 2,1 、a 2,2 All are natural numbers.
[0114] a 1,1 、a 1,2 、a 2,1 、a 2,2 is any natural number that can control the rotation, scaling, and shearing transformation of the image. x, t y is any natural number, controlling the translation, where t x Controls the horizontal translation, t y Controls the vertical translation. The horizontal direction is the horizontal direction of the image, and the vertical direction is the vertical direction of the image.
[0115] The coordinates of the five positioning points in the real image have been obtained through the above steps, and the fixed coordinates of these five points in the coding mark have been determined during the design. The coordinates of these five points are substituted into the affine transformation equation, and the least squares method is used to solve the affine transformation matrix.
[0116] S316: Obtain the fixed coordinates of the coding point in the dot coding mark according to the affine transformation matrix and the actual coordinates of the coding point.
[0117] S317: Obtain the code of the code point according to the fixed coordinates of the code point at the point-shaped code mark, and obtain the code number of the point-shaped code mark according to the index table and the code of the code point.
[0118] Determine the code value corresponding to the current set. Use affine transformation to transform the remaining points in the set back into the dot-coded mark image, compare with the coordinates of each code point, and obtain the codes of the three code points, so as to determine the code value of the dot-coded mark, and obtain the code number corresponding to the dot-coded mark according to the index table and the code value.
[0119] Figure 4 The codes of the three selected code points are 1, 6, and 14, and the corresponding code value is 2 1 +2 6 +2 14 = 16450. From the coding principle, it can be seen that the code value generated by this coding method is discontinuous and the code value is relatively large. Therefore, an index table needs to be made to correspond the code value and the code number one by one.
[0120] This solution designs a dot-coded mark with a center positioning point, and realizes the decoding of the dot-coded mark. The center positioning point of the dot-coded mark can represent the position of the entire mark, which is very convenient for the total station and RTK equipment to mark points. The decoding method in this solution has been verified many times, the algorithm is stable, the decoding is not prone to errors, and it can handle the situation where there are multiple dot-coded marks in an image.
[0121] S32: Obtaining the offset angle information of the coding mark 110 relative to the intersection of the optical axis of the coding mark observation camera (105, 107) and the coding mark disk (102, 109).
[0122] Acquiring the offset angle information of the coding mark 110 relative to the intersection of the optical axis of the coding mark observation camera (105, 107) and the coding mark disk (102, 109) includes:
[0123] S321: Obtain the coordinates of the center point of the coding mark 110.
[0124] The world coordinate system is established with the positioning point or encoding point in the coding mark 110 as the origin. Preferably, the positioning point, i.e., the center point of the coding mark 110 is used as the origin. Since the coding mark 110 is arranged in advance, the position of the positioning point or encoding point on the coding mark disk is known, so the coordinates of the positioning point or encoding point of each coding mark 110 in the world coordinate system can be calculated.
[0125] S322: Calculate the coordinates of the center point of the image based on the coordinates of the center point of the coding mark and the internal and external parameters of the coding mark observation camera (105, 107).
[0126] The spatial coordinates of the center point of the image are calculated based on the center point and a number of positioning points in the coding mark and the internal and external parameters of the coding mark observation camera (105, 107).
[0127] The coordinates of the center point of the image are calculated based on the coordinates of the center point of the coding mark, the coordinates of a number of positioning points, and the internal and external parameters of the coding mark observation camera (105, 107):
[0128] A perspective matrix is obtained based on the coordinates of the center point of the coding mark, the coordinates of several positioning points, and the internal and external parameters of the coding mark observation camera (105, 107), and the world coordinates of the center point of the image are calculated based on the inverse of the perspective matrix.
[0129] The perspective matrix is obtained according to the coordinates of the center point of the coding mark, the internal parameters and external parameters of the coding mark observation camera (105, 107), including:
[0130] A central perspective projection imaging model is obtained according to the coordinates of the center point of the coding mark, the internal parameters and the external parameters of the coding mark observation camera (105, 107), and the internal parameter matrix and the external parameter matrix are combined to obtain a perspective matrix;
[0131] The equation of the central perspective projection imaging model is as follows:
[0132]
[0133] Where Zc is the shooting distance, (X w, Y w , Z w ) is the coordinate of the center point of the coding mark and several positioning points in the world coordinate system. The internal parameters of the coding mark observation camera include f u and f v , f u f is the lateral equivalent focal length of the coding mark observation camera, v is the longitudinal equivalent focal length of the coding mark observation camera, (u, v) is the image coordinate point, (u0, v0) is the principal point coordinate, the external parameters include the rotation matrix and the translation matrix, R is the rotation matrix, and T is the translation matrix.
[0134] (u, v) is the world coordinate point (X w , Y w , Z w ) is the coordinate of the imaging point of the point on the image. (u0, v0) is the coordinate of the principal point of the camera, which is the intersection of the camera optical axis and the camera imaging plane.
[0135] The camera's intrinsic parameters are related to the camera's internal structure, and the camera's extrinsic parameters are related to the camera's position. Given the coordinates of multiple positioning points in the world coordinate system, the coordinates of the positioning points in the image, and the camera's intrinsic parameters, the PnP algorithm in photogrammetry can be used to solve the extrinsic parameters. Since the positioning points are in a plane, Z w = 0. The internal parameter matrix and the external parameter matrix are combined to obtain a 3×3 perspective matrix H.
[0136] The perspective matrix H is:
[0137]
[0138] Among them, H is the perspective matrix, Z w =0.
[0139] Explanation of inverse: For one dimension, y=k*x; then in x=1 / k*y, 1 / k is the inverse of k.
[0140] Specifically for this solution, a world coordinate can be mapped to a coordinate on the image through the perspective matrix H, which can be called a forward transformation. If a coordinate on the image is mapped to a point in space, it can be called an inverse transformation.
[0141]
[0142]
[0143] Among them, H -1 is the inverse matrix of the perspective matrix H, Zc is the shooting distance, (X w , Y w , Z w) is the coordinate of the center point of the coding mark and several positioning points in the world coordinate system, and (u, v) is the image coordinate point.
[0144] According to the inverse of the perspective matrix, the world coordinates of the center point of the image are calculated including:
[0145] The inverse matrix of the perspective matrix H is obtained
[0146] Assume that the image width is Width, the height is Height, the horizontal coordinate of the midpoint of the image is Width / 2, and the vertical coordinate is Height / 2.
[0147] Substitute (Width / 2, Height / 2) into (u, v) in the above formula, and the calculated result (X w , Y w ) is the world coordinate of the point in the image.
[0148] S323: Calculate the distance between the center point of the coding mark 110 and the center point of the image according to the coordinates of the center point of the coding mark 110 and the coordinates of the center point of the image.
[0149] S324: Calculate the offset angle information based on the distance between the center point of the coding mark 110 and the center point of the image, and the distance between the center point of the coding mark 110 and the center of the coding mark disk (102, 109).
[0150] The calculation formula for the offset angle information is:
[0151]
[0152] Wherein, θ represents the offset angle information, d represents the distance between the center point of the coding mark 110 and the center point of the image, and r represents the distance between the center point of the coding mark 110 and the center of the coding mark disk (102, 109).
[0153] S33: Obtain a calibration angle value according to the angle information and the offset angle information of the coding mark.
[0154] like Figure 4 As shown, along the rotation direction, if the coding mark 110 is downstream of the image center in the camera field of view, then θ1=θ0+θ; along the rotation direction, if the coding mark 110 is upstream of the image center in the camera field of view, then θ1=θ0-θ; wherein θ represents the offset angle information, θ0 represents the angle information of the coding mark 110, and θ1 represents the calibration angle value.
[0155] In step S3, the angle information of the coding mark 110 is first obtained through the coding mark 110, and then the accurate rotation angle of the coding mark disk (102, 109), i.e. the calibration angle value, is calculated according to the offset (offset angle information) of the coding mark 110 relative to the center of the coding mark observation camera (105, 107).
[0156] In order to ensure that the azimuth and elevation output range of the turntable is within -180 degrees to 180 degrees, and when the turntable rotates to the right (refers to the rotation around the azimuth axis, the turntable rotates clockwise when viewed from top to bottom), the azimuth angle observed by the azimuth camera 105 is positive, and when the turntable is facing upward, the elevation angle observed by the elevation camera 107 is positive, the design and installation of the encoding mark disk need to be specified as follows: when the turntable rotates clockwise around the azimuth axis, the azimuth angle observed by the azimuth camera 105 is positive;
[0157] The angle range in the coding information is from -180 degrees to 180 degrees, each coding mark 110 has a unique coding angle, and the coding marks 110 are evenly arranged on the coding mark disk;
[0158] For the azimuth coding mark disk, looking from top to bottom, the mark with a positive coding angle is in the clockwise direction of the 0-degree coding mark, and the mark with a negative coding angle is in the counterclockwise direction of the 0-degree coding mark;
[0159] For the pitch coding mark disk, viewed from the pitch camera direction, the mark with a positive coding angle is counterclockwise of the 0-degree coding mark, and the mark with a negative coding angle is clockwise of the 0-degree coding mark.
[0160] According to a third specific embodiment of the present invention, the present invention provides a photogrammetry device, including: a pointing angle solving module, a load camera, and a turntable based on a coding mark of the first specific embodiment.
[0161] The load camera is fixed on the base 111 of the turntable based on the coding mark, and is used to photograph the measurement target K.
[0162] The pointing angle calculation module is communicatively connected with the image processing module of the turntable based on the coding mark, and is used to calculate the pointing angle of the measurement target K.
[0163] The pointing angle calculation module is used to calculate the pointing angle of the measurement target K, including: when the measurement target K 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 F according to the calibration angle value and the current angle value; and calculating the pointing angle of the measurement target K according to the coordinates of the calibration point F and the relative rotation angle.
[0164] According to a fourth specific embodiment of the present invention, the present invention provides a method for measuring the rotation angle of a turntable based on a coding mark, using the photogrammetry device of the third specific embodiment, such as Figure 8 As shown, the following steps are included:
[0165] A method for calibrating a turntable based on coded marks according to a second specific embodiment is adopted.
[0166] S4: Control the turntable to rotate so that the measurement target K is located at the center of the image of the load camera, and the coding mark observation camera (105, 107) photographs the coding mark 110 on the coding mark disk (102, 109), and calculates the current angle value of the load camera based on the photographed coding mark 110.
[0167] S5: According to the calibration angle value and the current angle value, the relative rotation angle of the turntable relative to the calibration point F is calculated.
[0168] S6: Calculate the pointing angle of the measurement target according to the coordinates of the calibration point F and the relative rotation angle.
[0169] 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 F are (x1, y1, z1), the azimuth reading of the turntable during calibration is α1, and the pitch reading is β1, that is, the calibration angle value; during measurement, the azimuth reading of the turntable is α2, and the pitch reading is β2, that is, the current angle value.
[0170] 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:
[0171] The rotation angle α of the turntable around the azimuth axis is:
[0172] α=α2-α1;
[0173] The rotation angle β of the turntable around the pitch axis is:
[0174] β=β2-β1.
[0175] G is the projection of the calibration point F on the OXY plane. The angle ∠FOG between the calibration point F and the OXY plane is:
[0176]
[0177] The angle ∠XOG between OG and the x-axis is:
[0178]
[0179] Then, the calculation method of the pointing angle of the measurement target K is:
[0180] Yes, the pointing angles are ∠KOH and ∠KOX. Knowing these two angles, we can know the direction of the measurement target K in three-dimensional space.
[0181] H is the projection of K on the OXY plane, and the angle ∠KOH between the measuring target K and the OXY plane is:
[0182]
[0183] The angle ∠HOX between OH and X-axis is:
[0184]
[0185] Finally, the angle between OH and the Y axis is calculated, and the spatial azimuth of the measurement target K is changed to the north-east or north-west angle.
[0186] The advantageous effect of the present invention is that the present invention can output high-precision angle measurement results by adding a coding mark observation camera and a coding mark disk to an ordinary turntable. Through image processing technology, there is no need to use a complex mechanical structure, thereby reducing the difficulty of production and assembly. Since this solution does not require the use of a high-precision coding mark disk, the overall price is lower and the size is smaller than the current high-precision turntable, which is more conducive to the transportation and use of the equipment.
[0187] At the same time, since the external parameters of the camera are calculated through the positioning points on the coding mark, measurement can be performed even when the camera optical axis and the coding mark disk are not perpendicular. The use of coding marks improves the stability of the entire system and also improves the measurement accuracy of the system.
[0188] The turntable calibration and measurement method proposed in this scheme only needs one calibration point to complete the calibration of the turntable load camera. The overall process is simple and there is no need to arrange multiple positioning point marks, which reduces the workload of operators and reduces the possibility of operational errors.
[0189] 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 based on coded marks, It is characterized in that include: Turntable body, coding mark disk, coding mark observation camera and image processing module; The turntable body is used to carry a load camera, and the load camera is used to photograph calibration points and measure targets; The coding mark disk or the coding mark observation camera is fixed on the turntable body. When the turntable body rotates, the coding mark disk and the coding mark observation camera move relative to each other. The coding mark disk includes a disk and a plurality of coding marks arranged on the disk, the distances from the plurality of coding marks to the center of the disk are all equal, the distances between two adjacent coding marks are all equal, and each coding mark contains angle information of the coding mark; The coding mark observation camera is used to photograph the coding mark on the coding mark disk; The image processing module is communicatively connected to the coding mark observation camera, and is used to obtain the image taken by the coding mark observation camera and calculate the calibration angle value of the turntable.
2. The coded mark based turntable according to claim 1, It is characterized in that The multiple coding marks are different dot-shaped coding marks, and the coding marks have multiple positioning points and multiple coding points.
3. The coded mark based turntable according to claim 2, It is characterized in that The coding mark is a rectangle, with one positioning point located at the center of the coding mark and multiple coding points at other positions. The positioning point is used to determine the position of the coding mark, and multiple coding points can be used to calculate the angle information of the coding mark.
4. The coded mark based turntable according to claim 1, It is characterized in that The coding mark disk rotates 0-360 degrees, and at any angle at least one coding mark enters the field of view of the coding mark observation camera.
5. The coded mark based turntable according to claim 1, It is characterized in that The distance from the intersection of the optical axis of the coding mark observation camera and the coding mark disk to the center of the disk is equal to the distance from the coding mark to the center of the disk.
6. The coded mark based turntable according to claim 1, It is characterized in that The image processing module calculates the calibration angle value of the turntable including: Find the coding mark from the captured image, the coding mark contains the angle information of the coding mark, and obtain the angle information of the coding mark; Obtaining the offset angle information of the coding mark relative to the intersection of the optical axis of the coding mark observation camera and the coding mark disk; The calibration angle value is obtained according to the angle information and the offset angle information of the coding mark.
7. The coded mark based turntable according to claim 1, It is characterized in that The turntable body includes a pitch rotation axis and an azimuth rotation axis, the number of the coding mark disks is two, including an azimuth coding mark disk and a pitch coding mark disk, and the number of the coding mark observation cameras is two, including a pitch camera and an azimuth camera; The azimuth camera and the pitch camera are fixed on the azimuth rotation axis, and the pitch coding mark disk is fixed on the pitch rotation axis, so that the azimuth coding mark disk is stationary, the azimuth camera and the pitch camera rotate with the azimuth rotation axis, and the pitch coding mark disk rotates with the pitch rotation axis.
8. The coded mark based turntable according to claim 7, It is characterized in that The azimuth coding mark disk is arranged horizontally, and the optical axis of the azimuth camera is perpendicular to the azimuth coding mark disk; the elevation coding mark disk is arranged vertically, and the optical axis of the elevation camera is perpendicular to the elevation coding mark disk.
9. A photogrammetric device, It is characterized in that include: A pointing angle calculation module, a load camera, and a turntable based on a coding mark according to any one of claims 1 to 7; The load camera is fixed on the turntable based on the coding mark and is used to photograph the measurement target; The pointing angle calculation module is communicatively connected to the image processing module of the turntable based on the coding mark, and is used to calculate the pointing angle of the measurement target.
10. The photogrammetric device according to claim 9, It is characterized in that The pointing angle calculation module is used to calculate the pointing angle of the measurement target, including: when the measurement target 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 measurement target according to the coordinates of the calibration point and the relative rotation angle.
