Surveying method, surveying system, and program
By adjusting camera position calculations with time-difference corrections, the method addresses the accuracy issues in three-dimensional data acquisition from unsynchronized surveying systems, enhancing precision in heavy equipment surveying.
Patent Information
- Application Number
- JP2023058216
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-15
AI Technical Summary
Existing surveying technologies face challenges in accurately determining the position of a camera mounted on heavy equipment to improve the accuracy of three-dimensional data acquisition using Structure from Motion (SFM), particularly due to discrepancies between measurement and photographing times.
A method that adjusts camera position calculations by measuring a specific part fixed to the camera, accounting for time differences through adjustment calculations using a correction amount, and synchronizing the local and global coordinate systems.
This approach enhances the accuracy of three-dimensional data by minimizing errors caused by unsynchronized timing between camera photography and position measurement, resulting in improved data precision.
Smart Images

Figure 2024145734000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to the surveying arts. [Background technology]
[0002] 2. Description of the Related Art There is known a technique for measuring the position of heavy machinery using a surveying device (see, for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Japanese Patent Application Publication No. 8-43093 Summary of the Invention [Problem to be solved by the invention]
[0004] When mounting a camera on heavy machinery and obtaining three-dimensional data of the surroundings using sfm (Structure from Motion), it is necessary to determine the position of the camera. The present invention aims to improve the accuracy of three-dimensional data based on images captured by a camera mounted on a moving object. [Means for solving the problem]
[0005] The present invention is a surveying method in which image data of an image captured by a moving camera is obtained, the position of a specific part fixed relative to the camera is measured, and the position of the camera is calculated based on the measured position of the specific part, there is a discrepancy between the time the position of the specific part is measured and the time the captured image was taken, and in calculating the position of the camera, an adjustment calculation is performed with the position of the camera as an unknown, and the adjustment calculation is performed based on the position of the specific part to which a correction amount corresponding to the time discrepancy has been added.
[0006] In the present invention, a process for obtaining an initial value for the adjustment calculation is performed, and the process for obtaining the initial value includes a process for obtaining a correspondence relationship between the position of the camera in a local coordinate system calculated based on an image captured by the camera and the start and / or end of movement of the position of the specific part in a global coordinate system.
[0007] In the present invention, a process for determining an initial value for the adjustment calculation is performed, and the process for determining the initial value includes a mode in which a correspondence between a change in position of the camera in a local coordinate system calculated based on an image captured by the camera and a change in position of the specific part in a global coordinate system is determined.
[0008] In the present invention, the change in position may be evaluated based on an angle between a first line connecting the first position and the second position and a second line connecting the second position and the third position.
[0009] The present invention is a surveying system comprising a means for obtaining image data of an image captured by a moving camera, a means for measuring the position of a specific part fixed relative to the camera, and a means for calculating the position of the camera based on the measured position of the specific part, wherein there is a discrepancy between the time at which the position of the specific part is measured and the time at which the image was captured, and an adjustment calculation is made in which the position of the camera is an unknown quantity, and the adjustment calculation is performed based on the position of the specific part to which a correction amount corresponding to the time discrepancy has been added.
[0010] The present invention is a program that is read and executed by a computer, which causes the computer to acquire image data of an image captured by a moving camera, acquire measurement data of the position of a specific part fixed relative to the camera, and calculate the position of the camera based on the measured position of the specific part, wherein there is a discrepancy between the measurement time of the position of the specific part and the shooting time of the captured image, and an adjustment calculation is made in which the position of the camera is an unknown quantity, and the adjustment calculation is performed based on the position of the specific part to which a correction amount corresponding to the time discrepancy has been added. Effect of the Invention
[0011] According to the present invention, it is possible to improve the accuracy of three-dimensional data based on images captured by a camera mounted on a moving object. [Brief description of the drawings]
[0012] [Figure 1] FIG. 1 is a conceptual diagram of an embodiment. [Diagram 2] FIG. 13 is a conceptual diagram showing the relationship between the camera position and the prism position. [Diagram 3] FIG. 2 is a block diagram of a computing device. [Figure 4] FIG. 1 is a diagram illustrating the principle of initial value matching. [Diagram 5] 11 is a flowchart illustrating an example of a processing procedure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] 1. First embodiment (overview) FIG. 1 shows a heavy machine 100 performing civil engineering work and a total station 200 which is a surveying device for measuring the position of the heavy machine 100. While the heavy machine 100 is in operation, an image is captured by a camera 101 mounted thereon, and 3D data of the surroundings of the heavy machine 100 is acquired by the principle of Structure from Motion (SFM). At this time, the total station 200 repeatedly and continuously measures the position of a reflecting prism 102 mounted on the heavy machine 100 while tracking the same. Based on the measured value of the position of the reflecting prism 102, the 3D data is acquired as data in a global coordinate system. The principle of SFM is described in, for example, Japanese Patent Application Laid-Open No. 2013-186816. The global coordinate system is a coordinate system used in maps and GNSS.
[0014] (Heavy machinery) Heavy equipment 100 is a power shovel. The power shovel is one example, and the type of heavy equipment is not particularly limited as long as it is heavy equipment used for civil engineering work. Heavy equipment 100 includes a base unit 120 that travels on the ground using caterpillar tracks, and a rotating unit 110 that rotates horizontally on base unit 120. Rotating unit 110 includes a driver's seat and an arm 151, and a bucket 152 is disposed at the tip of arm 151. These structures are the same as those of a normal power shovel.
[0015] A camera 101 and a reflecting prism 102 are fixedly disposed on the upper part of the rotating unit 110. The position of the camera 101 and / or the position of the reflecting prism 102 on the rotating unit 110 may be known or unknown. Even if the position is known, it may be approximate and may include an error. When the position of the camera 101 and / or the position of the reflecting prism 102 is unknown or includes an error, the position is optimized during adjustment calculation.
[0016] The camera 101 is a digital still camera that continuously and repeatedly captures still images. During operation of the heavy equipment 100, the heavy equipment 100 travels and the rotating part 110 rotates, so that the camera 101 faces in various directions. Therefore, the camera 101 captures images of the surroundings of the heavy equipment 100 while the heavy equipment 100 is in operation. A depth camera can also be used as the camera 101. It is also possible to use a camera for capturing video as the camera 101, and use frame images that compose the video as still images. FIG. 1 shows an example in which one camera 101 is placed on the heavy equipment 100, but it is also possible to place multiple cameras facing in multiple directions. A stereo camera can also be used.
[0017] The reflecting prism 102 is an optical reflecting target used in surveying using laser light. Here, a total reflection prism is used as the reflecting prism 102. The reflecting prism 102 reflects the incident light by changing its direction by 180 degrees. As the optical reflecting target, a reflecting target having retroreflective properties can be used in addition to a reflecting prism.
[0018] The position of the heavy equipment 100 is determined by the position of the center of gravity of the heavy equipment. The position of the heavy equipment 100 can also be determined by the position of the camera 101 or the reflecting prism 102, a point on the central axis of rotation of the rotating part 110, or any other position of the heavy equipment 100.
[0019] The heavy machinery 100 is equipped with a calculation unit 300. The calculation unit 300 is a computer. The calculation unit 300 can also be provided outside the heavy machinery 100. The calculation unit 300 performs processing related to the creation of a three-dimensional model of the subject based on the image captured by the camera 101. This processing includes processing related to the calculation of the position of the camera 101. The configuration and processing of the calculation unit 300 will be described in detail later.
[0020] (Total Station) The total station 200 is an example of a surveying device capable of measuring a position. The total station 200 includes a positioning function using laser light, a camera, a clock, a storage device for surveying data, a communication interface, a user interface, a function for searching for a surveying target (reflecting prism 102), and a function for tracking the surveying target even if it moves. A commonly available model can be used as the total station 200.
[0021] Prior to the processing, the position and orientation of the total station 200 in the global coordinate system are acquired and are treated as known data. The position of the total station 200 is grasped as the position of the optical origin of the optical system for measuring distances.
[0022] The heavy equipment 100 starts work with the total station 200 collimating and locking the reflecting prism 102. While the heavy equipment 100 is working, the total station 200 repeatedly measures the position of the reflecting prism 102 while tracking it. The measurement interval is about 0.05 seconds (20 Hz) to 5 seconds (0.2 Hz).
[0023] (Basic process flow) According to the following principle, 3D data of the subject is created based on images captured by the camera 101 mounted on the heavy machinery 100. The camera 101 repeatedly captures still images. The position and attitude of the camera 101 change while the heavy machinery 100 is in operation, but the capture interval of the camera 101 is determined so that adjacent captured images overlap on the time axis. The specific capture interval is approximately several Hz to 30 Hz. Basically, a three-dimensional model of the subject is created using SFM based on images captured by the camera while the heavy machinery 101 is in operation, through the following process.
[0024] (1) Mutual orientation A relative 3D model of any scale is created based on images captured by the camera 101, and the relative relationship between the feature points identified between the multiple images and the position and orientation of the camera 101 when each image was captured is identified. Specifically, feature points common to the stereo images are extracted, and the positions and orientations of the cameras at multiple viewpoints (capture positions) and the relative relationship between the feature points are identified.
[0025] (2) Adjustment calculation The position and orientation of the camera 101 and the positions of the feature points in the global coordinate system are optimized by simultaneously performing bundle adjustment calculations and adjustment calculations that take into account the positional relationship between the reflecting prism 102 and the camera 101 and the measurement time offset. This allows for the acquisition of point cloud data that describes the positions of the feature points in the global coordinate system.
[0026] (3) Creating a 3D model A 3D model of the target is created based on the point cloud data optimized by the above adjustment calculation. Examples of the 3D model include a digitalized contour line of the target, a DEM (Digital Elevation Model), a TIN (Triangulated Irregular Network), etc. The creation of a 3D model based on point cloud data is described in, for example, WO2011 / 070927, JP2012-230594A, and JP2014-35702A.
[0027] (How to deal with time out of sync issues) In this example, the clock of the control system that controls the shooting of the camera 101 (the function of specifying the time for processing) is not synchronized with the clock of the control system that controls the operation related to the measurement of the position of the total station 200. For example, this situation may occur when costs are kept low or a simple configuration is adopted.
[0028] If the synchronization between the camera 101 and the total station 200 is not ensured, an error due to the difference in the operation timing between the two will occur during the adjustment calculation. That is, since the camera 101 takes pictures while moving, if the shooting time of the camera 101 and the measurement time of the reflecting prism 102 by the total station 200 are not synchronized, an error will occur in the calculation result.
[0029] In this embodiment, the following measures are taken to address this problem. Figure 2 shows the relationship between the position of the reflecting prism 102 and the position of the camera 101 (position at the time of shooting). i , T pi ) (i=1, 2, 3, . . . ) is the position of the reflecting prism 102 measured by the total station 200 (surveying device) and the time of measurement.
[0030] The position of the reflecting prism 102 and the dashed circle (p ti , T pti ) is the position and time of the reflecting prism 102 when the time series is taken into consideration (taking into account the time synchronization deviation). This is the position and time of the reflecting prism 102 that is expected to be measured if the time is synchronized. In other words, the solid circle (p i , T pi ) is the position and time of the reflecting prism 102 that is actually measured, and the dashed circle (p ti , T pti ) is the position and time of the reflecting prism 102 that would be expected to be measured if synchronization were achieved.
[0031] Here, in order to reduce errors due to the lack of synchronization, an adjustment calculation is performed using the constraint condition formula of the following formula 1.
[0032]
number
[0033] where -p´ tiis a function of the position of the reflecting prism 102 in the global coordinate system measured by the total station 200, the photographing time of the camera 101, and the positioning time of the reflecting prism 102, and includes a correction term proportional to the difference between the two times. i Position p of the dotted circle based on (the position of the reflecting prism 102 actually measured) ti (-p´ ti −L′) is the camera position on the local coordinate system taking into account the time series of the synchronization deviation calculated from the measurement values of the position of the reflecting prism 102 by the total station 200.
[0034] Here, the local coordinate system is a coordinate system that describes the positional relationship between the position and orientation of the camera 101 and feature points extracted from an image captured by the camera 101.
[0035] The above constraint condition equation is established in the local coordinate system, and is the camera position (-p' ti -L´) and the camera position t´, which is the final unknown i This is a formula for calculating the sum of the differences between the above at each camera position.
[0036] The following is the position -p' of the reflecting prism 102 taking into account the time series. ti Here, it is considered that the position of the i-th reflecting prism 102 measured by the total station 200 is slightly shifted from the position of the reflecting prism 102 when the corresponding image was captured by the camera 101. This shift is caused by asynchrony of the time information (clocks) used.
[0037] 2, this deviation is considered to be smaller than the difference between the i-th position and the (i+1)th position of the reflecting prism 102 measured by the total station 200. Since the difference between the i-th position and the (i+1)th position of the reflecting prism 102 is minute, this deviation is considered to correspond to the difference between the time when the position of the reflecting prism 102 is measured and the time when the camera 101 captures the image.
[0038] Specifically, it is considered that the reflecting prism 102 at the time of shooting is located at a position moved by the above-mentioned amount of deviation from the i-th position of the reflecting prism 102 measured by the total station 200 in the direction of the (i+1)th position. This amount of deviation is defined as a correction term proportional to the difference between the time of positioning the reflecting prism 102 and the time of shooting by the camera 101. In other words, it is considered that the prism position at the corresponding time of shooting is located at a position shifted from the i-th prism position measured by the total station 200 toward the (i+1)th prism position by the amount of this correction term.
[0039] In this way, the position of the camera 101 (-p') calculated from the measurement value of the position of the reflecting prism 102 by the total station 200 is ti -L') and the position t' of the camera 101 at the time of shooting of the camera 101 i This gives us a formula that allows us to quantitatively compare the above two. This is the constraint condition formula (1).
[0040] The orientation and position of the camera 101 in the global coordinate system are obtained by bundle adjustment calculation using this constraint condition formula. In the bundle adjustment calculation, based on the collinear condition that the light beams (bundles) connecting the three points of the feature points obtained from the captured image of the subject, the points on the captured image, and the projection center must be on the same straight line, an observation equation of the following formula 2 is established for each light beam of each image, and the coordinates of the feature points (Xj, Yj, Zj) and the position and orientation parameters of the camera 101 (X oi ,Y oi ,Z oi ,a 11i ~a 33i ) are adjusted simultaneously.
[0041] In the adjustment calculation in this embodiment, the constraint condition equation of the above-mentioned formula 1 and the observation equation of the following formula 2 are established, and each parameter (feature point (Xj, Yj, Zj) and the position (Xj, Yj, Zj) of the camera 101 are calculated by the least squares method. oi ,Y oi ,Z oi ) and posture (a 11i ~a 33i An optimization of (rotation matrix))) is performed.
[0042]
number
[0043] c: Screen distance (focal length) (Xj, Yj, Zj): 3D coordinates of the feature point of interest (x ij ,y ij ): The image (screen) coordinates of point j on image i (X oi ,Y oi ,Z oi ): The position of camera 101 when photograph i was taken (a 11i ~a 33i ): A rotation matrix that indicates the orientation of the camera 101 when photograph i was taken.
[0044] In the above formula 2, the initial values of (Xj, Yj, Zj) use the three-dimensional coordinates of the feature points in the local coordinate system obtained by sfm. oi ,Y oi ,Z oi ) and (a 11i ~a 33i ) is an unknown quantity that can be calculated by adjusting the equations 1 and 2. oi ,Y oi ,Z oi ) and (a 11i ~a 33i) are unknowns, but the results of the initial value adjustment described below are used as initial values. Also, because the rough relationship between the local coordinate system and the global coordinate system is determined by the initial value adjustment, the initial values of (Xj, Yj, Zj) also contain some error, but are close to the true values in the global coordinate system to a certain extent. These circumstances improve the convergence and accuracy of the adjustment calculation. (X pi ,Y pi ,Z pi ) uses the position of the reflecting prism 102 measured by the total station 200.
[0045] In the adjustment calculation in this embodiment, the constraint condition equation of the above-mentioned formula 1 and the observation equation of the following formula 2 are established, and each parameter (feature point (Xj, Yj, Zj) and the position (Xj, Yj, Zj) of the camera 101 are calculated by the least squares method. oi ,Y oi ,Z oi ) and posture (a 11i ~a 33i (Rotation matrix))) is optimized. It is also possible to perform the adjustment calculation of Equation 2 after performing the adjustment calculation of Equation 1.
[0046] In the adjustment calculation using Equation 1 and Equation 2, the feature points (Xj, Yj, Zj) and the exterior orientation elements (X oi ,Y oi ,Z oi ,a 11i ~a 33i (Rotation matrix indicating the orientation)) and (L X ,L Y ,L Z ) as a parameter to calculate the residuals of Equation 1 and Equation 2. In this case, the least squares method is used to find the (Xj, Yj, Zj), (X oi ,Y oi ,Z oi ,a 11i ~a 33i ),(L X ,L Y ,L Z ) combinations are searched for, where (L X ,L Y ,L Z ) are the offset amounts in the X, Y, and Z directions between the position of the camera 101 and the position of the reflecting prism 102.
[0047] Specifically, each parameter (Xj, Yj, Zj), (X oi ,Y oi ,Z oi ,a 11i ~a 33i ),(L X ,L Y ,L Z ) and repeat the simultaneous calculation of Equation 1 and Equation 2. Then, the unknown parameters (Xj, Yj, Zj), (X oi ,Y oi ,Z oi ,a 11i ~a 33i ),(L X ,L Y ,L Z The convergence conditions are that the residual is sufficiently small and that the variation in the residual from the previous calculation is sufficiently small (the variation in the calculation result has converged).
[0048] (Configuration of the Calculation Unit) 3 is a block diagram of the calculation unit 300. The calculation unit 300 is a computer and includes a CPU, a storage device, and various interfaces. The calculation unit 300 includes an image data acquisition unit 301, a reflecting prism position acquisition unit 302, a relative orientation unit 303, an initial value adjustment unit 304, an adjustment calculation unit 305 taking into account time series, a three-dimensional model creation unit 306, and a camera control unit 307.
[0049] These functional units are realized in the form of software by a computer constituting the calculation unit 300. Some or all of the above functional units can also be configured with dedicated hardware. A configuration in which the calculation unit 300 is provided outside the heavy equipment 100 is also possible. For example, a configuration in which the calculation unit 300 is provided on a processing server connected to the Internet and calculations are performed there is also possible.
[0050] The image data acquisition unit 301 accepts image data of an image captured by the camera 101. The image data is associated with the time of capture. The time of capture is the time of a clock provided in the camera control unit 309. The reflecting prism position acquisition unit 302 accepts data on the position of the reflecting prism 102 measured by the total station 200. The time of measurement of this data is the time of a clock provided in the total station 200. The position and orientation of the total station 200 in the global coordinate system are known, and the position data of the reflecting prism 102 is obtained on the global coordinate system.
[0051] The relative orientation unit 303 calculates the relationship between a large number of feature points extracted from an image captured by the camera 101 and the position and orientation of the camera 101 according to the principle of SFM. This relationship is specified on a local coordinate system. The principle of this process will be briefly explained below. Assume that there is a captured image 1 captured by the camera 101 at a first position, and a captured image 2 captured from a second position slightly shifted from the first position. Assume also that the captured image 1 and captured image 2 have overlapping shooting ranges. A large number of feature points extracted from this overlapping range, the positional relationship between the first position and the second position, and further the relationship between the camera postures at the first position and the second position are obtained according to the principle of three-dimensional photogrammetry (stereo photogrammetry). This is the relative orientation process.
[0052] This process determines the position and orientation of the camera 101 at each shooting viewpoint position in the local coordinate system. If no scale is given, the local coordinate system is a coordinate system that describes the relative positional relationship with an unknown scale. Although it is not essential to give a scale, if a scale is reflected in the captured image, the scale is given to the local coordinate system.
[0053] The initial value adjustment unit 304 specifies the initial values of the correspondence relationship between the position and time of the camera 101 described in the local coordinate system and the position and time of the reflecting prism 102 described in the global coordinate system. The above-mentioned adjustment calculation is performed using these initial values. This initial value adjustment can be said to be a process of determining the approximate relationship between the local coordinate system and the global coordinate system used in the above-mentioned relative orientation.
[0054] An example of the processing in the initial value adjustment unit 304 will be described below. The initial value adjustment is performed by the following three-stage processing. In the first stage processing, attention is paid to the start of the movement of the position of the camera 101 and the start of the movement of the position of the reflecting prism 102, and the correspondence between the two positions is specified. In this processing, attention is paid to the start point of the movement, and the corresponding point (position) between the two is specified. Conversely, it is also possible to specify the corresponding point by focusing on the end point of the movement (stop point).
[0055] In this process, the correspondence between the timing at which the movement starts and / or ends between the measured position of the reflecting prism 102 by the total station 200 (position in the global coordinate system) and the calculated position of the camera 101 based on the image captured by the camera 101 (position in the local coordinate system) is determined.
[0056] The second stage processing is performed after the first stage processing. In the second stage processing, processing is performed focusing on the change in position. The principle is shown in Fig. 4(A). In Fig. 4(A), the circle marks indicate the positions of the camera 101 or the reflecting prism 102. In this case, the angles between three consecutive points are calculated for all points (all camera positions and reflecting prism positions). Then, the angle on the camera side and the angle on the reflecting prism side are compared to search for a combination that minimizes the sum of the absolute values of the differences.
[0057] For example, the angle with respect to the position of the camera 101 is θ c1 , θ c2 , θ c3 , θ c4 θ cn and the angle formed with respect to the position of the reflecting prism 102 is θ p1 , θp2 , θ p3 , θ p4 θ pn In this case, while changing the combination, θ c1 , θ c2 , θ c3 , θ c4 θ cn and θ p1 , θ p2 , θ p3 , θ p4 θ pn The difference between the angles formed by the two is calculated, and the sum of the absolute values is calculated. The combination position that minimizes this sum is adopted as the corresponding combination.
[0058] For example, θ p1 -θ c1 , θ p2 -θ c2 , θ p3 -θ c3 The sum of the absolute values of θ p2 -θ c1 , θ p3 -θ c2 , θ p4 -θ c3 The sum of the absolute values of θ p3 -θ c1 , θ p4 -θ c2 , θ p5 -θ c3 Calculate the sum of the absolute values of ..., all ..., and find the combination with the smallest sum.
[0059] According to this method, the change in the position of the reflecting prism 102 in the global coordinate system is compared with the change in the position of the camera 101 in the local coordinate system, and the correspondence between the two is identified. By determining this correspondence, initial value alignment with higher accuracy than the first stage is performed.
[0060] In the second stage processing, it is desirable that the calculation interval for the position of the camera 101 and the measurement interval for the position of the reflecting prism 102 are as close as possible (ideally the same). FIG. 4(C) shows a case where the calculation interval for the position of the camera 101 is 1 second (1 Hz) and the measurement interval for the position of the reflecting prism 102 is 0.2 seconds (5 Hz). In this case, the measurement points for the position of the reflecting prism 102 are acquired at a rate of one point out of five (i.e., the sampling frequency is 1 / 5), to match the calculation interval for the position of the camera 101. Aligning the measurement intervals for this position makes it easier to make comparisons. This method is also effective in the first stage processing.
[0061] Figure 4(B) shows the case where the angle is calculated using three points spaced apart. By doing as in Figure 4(B), the difference in the angle can be made more noticeable, and the accuracy of the comparison can be improved.
[0062] The third stage processing is performed after the second stage processing. In the third stage processing, the correspondence between the camera position and the reflecting prism position is found using the least squares method. In this process, a transformation matrix from the local coordinate system to the global coordinate system is found. Using this transformation matrix, the local coordinate system (feature points, camera position and orientation) is transformed into the global coordinate system. The transformation matrix found here and the result of the transformation using this transformation matrix are used as the initial values for the next adjustment calculation.
[0063] Through the above three-stage registration process, the initial values of the relationship between the local coordinate system, which describes the relationship between the camera position and feature points of each captured image obtained by relative orientation, and the global coordinate system, are obtained.
[0064] The time-series-considered adjustment calculation unit 305 performs adjustment calculation using Equation 1 and Equation 2 described in relation to Fig. 2. This adjustment calculation is performed using the result of the above-mentioned initial value adjustment.
[0065] The three-dimensional model creation unit 306 creates a three-dimensional model of the photographed subject based on point cloud data, which is data on the positions of each feature point in the global coordinate system obtained as a result of the adjustment calculation. In this example, a three-dimensional model of the terrain around the heavy equipment 100 photographed while the heavy equipment 100 is working is created. By tracking changes in this three-dimensional model over time, the content of the work performed by the heavy equipment 100 (changes in the terrain) can be digitized.
[0066] The camera control unit 307 performs control to determine the image capturing timing of the camera 101. If the camera 101 itself has a function to perform this control, the camera control unit 307 outputs a signal to instruct the camera to start and stop capturing images.
[0067] (Example of processing) Fig. 5 is a flowchart showing an example of a procedure of processing performed in the arithmetic device 300 of Fig. 3. A program for executing the processing of Fig. 5 is stored in a storage device or an appropriate storage medium of a computer constituting the arithmetic device 300, and is executed by the computer.
[0068] First, the premise of the process will be described. Here, it is assumed that the camera 101 and the reflecting prism 102 are fixed to the heavy equipment 100, and the distance L between the camera 101 and the reflecting prism 102 is known. L does not have to be accurate. Also, L may be unknown. In this case, L can be found by an adjustment calculation.
[0069] The positions of the camera 101 and the reflecting prism 102 on the heavy equipment 100 are unknown. Furthermore, while the heavy equipment 100 is in operation, the camera 101 repeatedly captures images. The total station 200 continuously and repeatedly measures the position of the reflecting prism 102. The position and orientation of the total station 200 in the global coordinate system are known. Furthermore, the time when the camera captures images and the time when the total station measures the position of the reflecting prism 101 are not synchronized.
[0070] The processing in Fig. 5 is performed after the operation of the heavy equipment 100 has ended. The processing in Fig. 5 may be performed while the heavy equipment 100 is in operation. For example, batch processing in which the processing in Fig. 4 is performed every 5 minutes or every 10 minutes is also possible. Also, a form in which the processing in Fig. 5 is performed in real time is also possible.
[0071] First, image data captured by the camera 101 is acquired (step S101). This process is performed in the image data acquisition unit 301 in Fig. 3. Next, data on the position of the reflecting prism 102 measured by the total station 200 is acquired (step S102). This process is performed in the reflecting prism position acquisition unit 302 in Fig. 3.
[0072] Next, according to the principle of SFM, the positions of feature points in a local coordinate system based on an image captured by the camera, and the position and orientation of the camera 101 are calculated (step S103). This process is performed by the relative orientation unit 303 in FIG.
[0073] If a scale (for example, two targets with a known distance between them) is captured in the captured image, the scale is assigned to the local coordinate system, but this is not required. If the captured image contains multiple reference points whose positions are specified on the global coordinate system, the local coordinate system can be treated as a global coordinate system, but this is not required.
[0074] In step S103, the positions in the local coordinate system of the many feature points extracted from the captured image are obtained. If the scale and the reference point are not given, step S103 obtains the position and orientation of the camera (which are the same as the number of captured images obtained while the camera was moving) and the relative three-dimensional relationship between the many feature points.
[0075] Next, initial value adjustment is performed (step S104). This process is performed by the initial value adjustment unit 304 in Fig. 3. By performing this initial value adjustment, an approximate relationship between the position and time of the camera 101 on the local coordinate system and the position and time of the camera 101 on the global coordinate system is given.
[0076] Next, an adjustment calculation (adjustment calculation considering time series) is performed using Equation 1 and Equation 2 (step S105). This adjustment calculation is an adjustment calculation that considers the difference between the time on the camera 101 side and the time on the total station 200 side. This adjustment calculation specifies the position and attitude of the camera 101 in the global coordinate system, and the positions in the global coordinate system of many feature points obtained from the captured image obtained in step S103. This process is performed by adjustment calculation unit 305 considering time series in FIG. 3.
[0077] Next, a three-dimensional model is created based on the feature points obtained from the captured image (step S106). This process is performed by the three-dimensional model creation unit 306 in Fig. 3. In this way, a three-dimensional model of the object captured by the camera 101 mounted on the heavy equipment 100 is obtained on the global coordinate system.
[0078] (Summary) Image data of an image captured by a camera 101 moving while mounted on heavy machinery 100 is obtained, and the position of a reflecting prism 102, which is a specific part fixed to the camera 101, is measured by a total station 200. The position of the camera 101 is calculated based on the measured position of the reflecting prism 102. Since there is a discrepancy between the time the position of the reflecting prism 102 is measured and the time the image was captured by the camera 101, an adjustment calculation is made in which the position of the camera 101 is an unknown quantity in calculating the position of the camera 101. This adjustment calculation is performed based on the measured position of the reflecting prism 101 to which a correction amount corresponding to the time discrepancy has been added.
[0079] (Advantages) According to this embodiment, in creating a three-dimensional model of the object based on images captured by the camera 101 mounted on the heavy machinery 100, even if the image capturing time of the camera 101 and the positioning time of the reflecting prism 102 are not synchronized, it is possible to suppress errors due to this influence. This makes it possible to improve the accuracy of three-dimensional data based on images captured by the camera mounted on the moving object.
[0080] 2. Second embodiment It is also possible to mount a GNSS position measuring device on the heavy machinery 100 and use this GNSS position measuring device to identify the position of the camera 101 on the heavy machinery. In this case, the reflecting prism and total station can be eliminated (of course, they can be used together). Measurement of the position using the GNSS includes errors, but the GNSS errors can be suppressed by adjustment calculations. In the adjustment calculations, calculations are performed assuming that an antenna of the GNSS position measuring device is installed instead of the reflecting prism 102 in FIG. 1. In addition, measurement errors can be suppressed by using relative positioning such as the RTK method. The handling of feature points, various orientations, and other data processing are the same as those in the first embodiment. [Explanation of symbols]
[0081] 100...heavy machinery, 101...camera, 102...reflecting prism, 110...rotating part, 120...base part, 151...arm part, 152...bucket, 200...total station, 300...computing device.
Claims
1. Obtaining image data of an image captured by a moving camera; A position of a particular part fixed relative to the camera is measured; Calculating a position of the camera based on the measured position of the particular portion; There is a difference between the measurement time of the position of the specific portion and the photographing time of the photographed image, In the calculation of the camera position, an adjustment calculation is performed with the camera position as an unknown quantity, A surveying method in which the adjustment calculation is performed based on the position of the specific part to which a correction amount corresponding to the time difference has been added.
2. A process of calculating an initial value for the adjustment calculation is performed; In the process of obtaining the initial value, The surveying method according to claim 1, further comprising a process for determining a correspondence between the position of the camera in a local coordinate system calculated based on an image captured by the camera and the start and / or end of movement of the position of the specific part in a global coordinate system.
3. A process of calculating an initial value for the adjustment calculation is performed; In the process of obtaining the initial value, The surveying method according to claim 1 , further comprising the step of determining a correspondence relationship between a change in position of the camera in a local coordinate system calculated based on an image captured by the camera and a change in position of the specific portion in a global coordinate system.
4. 4. The surveying method according to claim 3, wherein the change in position is evaluated based on an angle between a first line connecting the first position and the second position and a second line connecting the second position and a third position.
5. A means for obtaining image data of an image captured by a moving camera; a means for measuring the position of a particular part fixed relative to said camera; means for calculating a position of the camera based on the measured position of the particular portion; having There is a difference between the measurement time of the position of the specific portion and the photographing time of the photographed image, In the calculation of the camera position, an adjustment calculation is performed with the camera position as an unknown quantity, A surveying system in which the adjustment calculation is performed based on the position of the specific part to which a correction amount corresponding to the time difference has been added.
6. A program to be read and executed by a computer, To your computer Acquiring image data of images captured by a moving camera; Obtaining measurement data of the position of a particular part fixed relative to said camera; Calculating the position of the camera based on the measured position of the particular part; and Run the command, There is a difference between the measurement time of the position of the specific portion and the photographing time of the photographed image, In the calculation of the camera position, an adjustment calculation is performed with the camera position as an unknown quantity, The adjustment calculation is performed based on the position of the specific portion to which a correction amount corresponding to the time difference has been added.
Citation Information
Patent Citations
Method for measuring position of completed part of construction and heavy machine during construction
JP1996043093A
