Three-dimensional position estimation device and program

By optimizing the error function of the graphic structure data in the three-dimensional position estimation device and giving greater weight to the vehicle posture change, the problem of low measurement accuracy of the position change when the vehicle turns is solved, and high-precision construction of the environmental map is achieved.

CN111508025BActive Publication Date: 2024-10-22AISIN CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010074956.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-01-31
Filing Date
2020-01-22
Publication Date
2024-10-22
Estimated Expiration
2040-01-22

AI Technical Summary

Technical Problem

In the existing technology, it is difficult to obtain the position/posture change with high accuracy when the vehicle turns, resulting in environmental map distortion. The weight setting method of the error function is not described, which affects the measurement accuracy of the vehicle position change.

Method used

A three-dimensional position estimation device and program are designed, which optimize the graphic structure data to reduce feature points through feature point detection, position and posture change calculation, feature point association, three-dimensional position acquisition, graphic structure data generation and error function setting part. The sum of the error function and the error function of the shooting edge gives a greater weight to the error function related to the shooting edge and the vehicle posture change.

Benefits of technology

Even in the case of vehicle position/posture changes with low accuracy, the three-dimensional position of the feature point can be estimated with good accuracy, reducing the distortion of the environmental map, and improving the measurement accuracy of the vehicle position change.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111508025B_ABST
    Figure CN111508025B_ABST
Patent Text Reader

Abstract

The present invention can estimate the three-dimensional position of a feature point with good accuracy. A graph structure data generating unit (390) generates graph structure data consisting of a feature point node that specifies the three-dimensional position of a feature point, a shooting node that specifies the position and posture of a shooting device, a feature point edge that specifies the position of a feature point node on a shooting node, and a shooting edge that specifies the amount of change in the position and posture of a moving body between shooting nodes. An error function setting unit (400) sets a first error function that represents a projection error when projecting feature points of feature point nodes using the shooting node, and sets a second error function that represents an error in the amount of change in the position and posture specified by the shooting edge to include a larger weight that represents a smaller amount of change in the posture of the moving body corresponding to the shooting edge. A graph structure data optimizing unit (410) optimizes the graph structure data so that the sum of the first error function and the second error function is minimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a three-dimensional position estimating device and a program. Background Art

[0002] Conventionally, there is a technology for capturing images of the surrounding environment using a camera mounted on a vehicle and creating an environment map based on the captured images (Non-Patent Document 1).

[0003] In non-patent document 1, feature points are detected from an image, and a correspondence is established between feature points in images captured at multiple locations using local feature values ​​of the feature points. The position / posture of the camera and the three-dimensional position of the feature points are calculated based on the positions on the images of the feature points for which the correspondence is established. Graph structure data is generated, which is composed of feature point nodes for specifying the three-dimensional positions of multiple feature points, camera nodes for specifying the positions / postures of cameras at multiple shooting locations, feature point edges for specifying the positions of feature points on the images of each shooting location, and shooting edges for specifying the amount of change in the position / posture of the vehicle between adjacent camera nodes. The graph structure data is optimized so that the sum of error functions calculated based on the feature point edges and the shooting edges is minimized, thereby creating an environment map.

[0004] Non-patent literature 1: Jing Wang, Zongying Shi, Yisheng Zhong, "Visual SLAMIncorporating Wheel odometer for Indoor Robots", 2017 36th Chinese Control Conference (CCC), 2017.

[0005] However, in the above-mentioned non-patent document 1, the weight of the error function of the captured edge (imformation matrix Σ in the non-patent document) is not determined. B ) is described below.

[0006] Therefore, in a case where the change in the position / posture of the vehicle cannot be obtained with high accuracy based on the mileage, such as when the vehicle turns, the graphic structure data is optimized so that the error function of the captured edge becomes smaller relative to the measured value of the change in the position of the vehicle with low accuracy when the vehicle turns, thereby causing a problem of increased distortion of the environmental map made from the image of the vehicle-mounted camera. Summary of the invention

[0007] The present invention is made to solve the above-mentioned problems, and aims to provide a three-dimensional position estimation device and program that can estimate the three-dimensional position of feature points with good accuracy even when the change in the position / posture of the vehicle cannot be obtained with high accuracy.

[0008] In order to achieve the above-mentioned object, the three-dimensional position estimation device of the present invention is configured to include: a feature point detection unit, which detects a plurality of feature points from each of a plurality of images captured by a camera installed on a mobile body; a position and posture change amount calculation unit, which calculates the change amount of the position and posture of the mobile body based on sensor information related to the mobile body; a feature point association unit, which establishes a correspondence relationship between the feature points between the plurality of images using a feature amount representing the feature of the feature point detected by the feature point detection unit; a three-dimensional position acquisition unit, which acquires the three-dimensional position of each of the feature points with which the correspondence relationship is established by the feature point association unit, and the position and posture of the camera in each of the plurality of images; and a graph structure data generation unit, which generates graph structure data consisting of a feature point node of each of the feature points, a capture node of each of the plurality of images, a feature point edge connecting each of the feature point nodes and each of the capture nodes, and a capture edge connecting each of the adjacent capture nodes, wherein the feature point node specifies the three-dimensional position of the feature point, the capture node specifies the position and posture of the camera that captures the image, the feature point edge specifies the position of the feature point of the feature point node on the image of the capture node, and the graph structure data is generated by the feature point association unit. The shooting edge specifies the amount of change in the position and posture of the moving body between the images of the shooting nodes; an error function setting unit, for each of the feature point edges included in the graph structure data generated by the graph structure data generating unit, sets a first error function representing a projection error when the feature points of the feature point nodes connected by the feature point edges are projected onto the images of the shooting nodes using the positions and postures of the shooting devices specified by the shooting nodes, and for each of the shooting edges included in the graph structure data, sets a second error function representing an error between the amount of change in the position and posture specified by the shooting edge and a calculation result of the position and posture change amount calculation unit; and a graph structure data optimizing unit, optimizing the three-dimensional positions of the feature points specified by each of the feature point nodes of the graph structure data and the positions and postures of the shooting devices specified by each of the shooting nodes so that the sum of the first error function of each of the feature point edges and the second error function of each of the shooting edges is minimized, and the error function setting unit sets, for each of the shooting edges, the second error function representing a larger weight as the amount of change in the posture of the moving body corresponding to the shooting edge obtained by the position and posture change amount calculation unit is smaller.

[0009] In addition, the program of the present invention is a program for causing a computer to function as the following functional units, namely: a feature point detection unit that detects a plurality of feature points from each of a plurality of images captured by a camera installed on a mobile body; a position and posture change amount calculation unit that calculates the change amount of the position and posture of the mobile body based on sensor information related to the mobile body; a feature point association unit that establishes a correspondence relationship between the feature points between the plurality of images using a feature amount representing the feature of the feature point detected by the feature point detection unit; a three-dimensional position acquisition unit that acquires the three-dimensional position of each of the feature points with which the correspondence relationship is established by the feature point association unit, and the position and posture of the camera in each of the plurality of images; and a graph structure data generation unit that generates graph structure data consisting of a feature point node for each of the feature points, a capture node for each of the plurality of images, a feature point edge connecting each of the feature point nodes to each of the capture nodes, and a capture edge connecting each of the adjacent capture nodes, wherein the feature point node specifies the three-dimensional position of the feature point, the capture node specifies the position and posture of the camera that captures the image, and the feature point edge specifies the position of the feature point of the feature point node on the image of the capture node. The above-mentioned shooting edge specifies the amount of change in the position and posture of the above-mentioned moving body between the images of the above-mentioned shooting nodes; an error function setting unit, for each of the above-mentioned feature point edges included in the above-mentioned graph structure data generated by the above-mentioned graph structure data generating unit, sets a first error function representing a projection error when the feature points of the above-mentioned feature point nodes connected by the above-mentioned feature point edges are projected onto the image of the above-mentioned shooting nodes using the position and posture of the above-mentioned shooting device specified by the above-mentioned shooting nodes, and for each of the above-mentioned shooting edges included in the above-mentioned graph structure data, sets a second error function representing an error between the amount of change in the above-mentioned position and posture specified by the above-mentioned shooting edge and a calculation result of the position and posture change amount calculation unit; and a graph structure data optimizing unit, optimizing the three-dimensional position of the above-mentioned feature point specified by each of the above-mentioned feature point nodes of the above-mentioned graph structure data and the position and posture of the above-mentioned shooting device specified by each of the above-mentioned shooting nodes so that the sum of the above-mentioned first error function of each of the above-mentioned feature point edges and the above-mentioned second error function of each of the above-mentioned shooting edges is minimized, and the above-mentioned error function setting unit sets, for each of the above-mentioned shooting edges, the above-mentioned second error function representing that the smaller the amount of change in the posture of the above-mentioned moving body obtained by the above-mentioned position and posture change amount calculation unit corresponding to the above-mentioned shooting edge is, the larger the weight is.

[0010] According to the three-dimensional position estimation device and program of the present invention, a feature point detection unit detects a plurality of feature points from each of a plurality of images captured by a camera installed on a mobile body, a position and posture change amount calculation unit calculates the change amount of the position and posture of the mobile body based on sensor information related to the mobile body, a feature point association unit establishes a correspondence relationship between the feature points of the plurality of images using a feature amount representing the feature of the feature point detected by the feature point detection unit, a three-dimensional position acquisition unit acquires the three-dimensional position of each feature point with which the correspondence relationship is established by the feature point association unit, and the position and posture of the camera of each of the plurality of images, and a graph structure data generation unit generates graph structure data consisting of a feature point node for each feature point that specifies the three-dimensional position of the feature point, a shooting node for each of the plurality of images that specifies the position and posture of the camera that captured the image, a feature point edge connecting each feature point node and each shooting node that specifies the position of the feature point of the feature point node on the image of the shooting node, and a shooting edge connecting each adjacent shooting node that specifies the change amount of the position and posture of the mobile body between the images of the shooting node.

[0011] Moreover, the error function setting unit sets, for each of the feature point edges included in the graph structure data generated by the graph structure data generating unit, a first error function representing a projection error when the feature point of the feature point node connected by the feature point edge is projected onto the image of the shooting node using the position and posture of the shooting device specified by the shooting node, and sets, for each of the shooting edges included in the graph structure data, a second error function representing an error between the change in the position and posture specified by the shooting edge and a calculation result of the position and posture change calculation unit. The graph structure data optimization unit optimizes the three-dimensional position of the feature point specified by each of the feature point nodes of the graph structure data and the position and posture of the shooting device specified by each of the shooting nodes so that the sum of the first error function of each of the feature point edges and the second error function of each of the shooting edges is minimized. The error function setting unit sets, for each of the shooting edges, the second error function representing a larger weight as the change in the posture of the moving body corresponding to the shooting edge obtained by the position and posture change calculation unit is smaller.

[0012] In this way, graph structure data is generated, which is composed of feature point nodes that specify the three-dimensional position of feature points, shooting nodes that specify the position and posture of a shooting device, feature point edges that connect each feature point node and each shooting node and specify the position of the feature point node on the image of the shooting node, and shooting edges that connect each adjacent shooting node and specify the amount of change in the position and posture of a moving body between the images of the shooting node. A first error function is set that represents the projection error when the feature points of the feature point nodes connected by the feature point edges are projected onto the image of the shooting node using the position and posture of the shooting device specified by the shooting node, and a second error function that represents the error in the amount of change in the position and posture specified by the shooting edge is set to include a larger weight as the amount of change in the posture of the moving body corresponding to the shooting edge is smaller. The three-dimensional positions of the feature points of the graph structure data and the position and posture of the shooting device are optimized so that the sum of the first error function and the second error function is minimized, so that the three-dimensional positions of the feature points can be estimated with good accuracy even when the amount of change in the position / posture of the vehicle cannot be obtained with high accuracy.

[0013] In addition, the above-mentioned position posture change calculation unit of the three-dimensional position estimation device of the present invention is capable of calculating the yaw angle change of the above-mentioned mobile body based on the steering angle detected by the steering angle sensor installed on the above-mentioned mobile body, and the above-mentioned error function setting unit sets the above-mentioned second error function obtained based on the calculation result of the above-mentioned position posture change calculation unit, which indicates that the smaller the yaw angle change of the above-mentioned mobile body corresponding to the above-mentioned shooting edge is, the larger the weight is.

[0014] As described above, according to the three-dimensional position estimation device and program of the present invention, graph structure data consisting of feature point nodes that specify the three-dimensional position of feature points, shooting nodes that specify the position and posture of a shooting device, feature point edges that connect the positions of feature point nodes on the image of the specified shooting nodes between each feature point node and each shooting node, and shooting edges that connect the changes in the position and posture of a moving body between the images of the specified shooting nodes between each adjacent shooting node are generated, a first error function that represents the projection error when the feature points of the feature point nodes connected by the feature point edges are projected onto the image of the shooting nodes using the position and posture of the shooting device specified by the shooting nodes is set, and a second error function that represents the error in the changes in the position and posture specified by the shooting edges is set to include a larger weight that represents a smaller change in the posture of the moving body corresponding to the shooting edges, and the three-dimensional positions of the feature points of the graph structure data and the position and posture of the shooting device are optimized so that the sum of the first error function and the second error function is minimized, thereby obtaining an effect that the three-dimensional positions of the feature points can be estimated with good accuracy even when the changes in the position / posture of the vehicle cannot be obtained with high accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 It is a block diagram showing a schematic configuration in an embodiment of the present invention.

[0016] Figure 2 It is a diagram showing the amount of change in the position and yaw angle of the vehicle.

[0017] Figure 3 is a diagram showing the calculation of the three-dimensional position of a feature point.

[0018] Figure 4 It is a diagram showing the calculation of the amount of change in the camera position / orientation.

[0019] Figure 5 It is a diagram showing the composition of graph structure data.

[0020] Figure 6 Detailed description of the invention The following is a flowchart showing the contents of the environment map creation routine in the embodiment of the present invention.

[0021] Figure 7 This is a flowchart showing the contents of a three-dimensional position calculation processing routine in the embodiment of the present invention.

[0022] Description of Reference Numerals

[0023] 10…map making system, 100…photographing device, 200…wheel speed sensor, 210…steering angle sensor, 300…map making device, 310…sensor information input unit, 320…mileage calculation unit, 330…image input unit, 340…key frame selection unit, 350…feature point extraction unit, 360…feature quantity calculation unit, 370…feature point association unit, 380…three-dimensional position calculation unit, 390…graphic structure data generation unit, 400…error function setting unit, 410…graphic structure data optimization unit, 420…environmental map making unit, 430…output unit. DETAILED DESCRIPTION

[0024] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

[0025] <Map creation system configuration>

[0026] like Figure 1 As shown, a map generating system 10 according to an embodiment of the present invention is configured to include an imaging device 100 , a wheel speed sensor 200 , a steering angle sensor 210 , and a map generating device 300 .

[0027] The imaging device 100 is mounted on a moving object and captures the surrounding environment. In this embodiment, a case where the moving object is a vehicle is described as an example.

[0028] Specifically, the camera 100 is a single-lens reflex camera installed on the top of the vehicle, etc., and captures the front and rear of the vehicle, etc. The camera 100 is installed, for example, near the center of the vehicle width direction, and is configured so that the optical axis of the camera 100 is slightly downward compared to the horizontal direction.

[0029] In addition, in the present embodiment, a single-lens reflex camera is described as an example of the imaging device 100 , but the present invention is not limited to this, and another type of camera, such as a stereo camera, may be used.

[0030] Then, the imaging device 100 delivers the captured image to the map generating device 300 .

[0031] The wheel speed sensor 200 detects the wheel speeds of the four wheels of the vehicle and transmits the detected wheel speeds to the map generating device 300 .

[0032] The steering angle sensor 210 detects the steering angle of the vehicle and transmits the detected steering angle of the vehicle to the map generating device 300 .

[0033] The map generating device 300 includes a CPU, a RAM, and a ROM storing a program for executing an attitude angle correction error estimation processing routine and a self-position estimation processing routine described later, and is functionally configured as follows.

[0034] The map making device 300 is configured to include a sensor information input unit 310, a mileage calculation unit 320, an image input unit 330, a key frame selection unit 340, a feature point detection unit 350, a feature quantity calculation unit 360, a feature point association unit 370, a three-dimensional position calculation unit 380, a graph structure data generation unit 390, an error function setting unit 400, a graph structure data optimization unit 410, an environment map making unit 420, and an output unit 430.

[0035] The sensor information input unit 310 receives input of the wheel speed detected by the wheel speed sensor 200 and the steering angle detected by the steering angle sensor 210 .

[0036] Then, the sensor information input unit 310 transmits the received wheel speed and steering angle to the mileage calculation unit 320 .

[0037] The mileage calculation unit 320 calculates the vehicle position change (ΔX v , ΔY v ) and the yaw angle change Δθ v .

[0038] Specifically, the mileage calculation unit 320 first calculates the travel distance of the vehicle based on the wheel speed, and calculates the turning radius of the vehicle based on the steering angle.

[0039] Next, if Figure 2 As shown, the mileage calculation unit 320 calculates the position change (ΔX) of the vehicle on the vehicle coordinate system based on the travel distance and the turning radius of the vehicle. v , ΔY v ) and the yaw angle change Δθ v .

[0040] Then, the mileage calculation unit 320 calculates the position change amount (ΔX v , ΔY v ) and the yaw angle change Δθ v The three-dimensional position calculation unit 380 and the error function setting unit 400 are passed on. In addition, the mileage calculation unit 320 passes on the travel distance of the vehicle at each time to the key frame selection unit 340.

[0041] The image input unit 330 receives input of an image from the imaging device 100 .

[0042] Then, the image input unit 330 passes the received image to the key frame selection unit 340 .

[0043] The key frame selection unit 340 selects a plurality of key frames used for creating an environment map from the image input from the imaging device 100 .

[0044] Specifically, the key frame selection unit 340 first selects the image first received by the imaging device 100 as the first key frame.

[0045] Next, every time the travel distance of the vehicle acquired from the mileage calculation unit 320 exceeds a predetermined value (eg, 0.1 m), the key frame selection unit 340 selects the image received by the imaging device 100 at the time when the predetermined value is exceeded as the next key frame.

[0046] Then, the key frame selection unit 340 delivers the selected key frames to the feature point detection unit 350 .

[0047] The feature point detection unit 350 detects a plurality of feature points from each of a plurality of key frames captured by the imaging device 100 mounted on the vehicle.

[0048] Specifically, the feature point detection unit 350 detects a plurality of feature points from the image pyramid of each key frame using an algorithm such as FAST (reference 1).

[0049] [Reference 1] Raul Mur-Artal, JMMMontiel and Juan D.Tardos, "ORB-SLAM: AVersatile and Accurate Monocular SLAM System.", IEEE Transactions on Robotics, vol.31, no.5, 2015, pp.1147-1163.

[0050] Then, the feature point detection unit 350 sends the feature points of each of the plurality of key frames to the feature amount calculation unit 360 .

[0051] The feature amount calculation unit 360 calculates the feature amount of each of the plurality of feature points of each of the plurality of key frames.

[0052] Specifically, the feature amount calculation unit 360 calculates a local feature amount such as ORB (reference 1) based on a plurality of feature points of each of a plurality of key frames.

[0053] Then, the feature amount calculation unit 360 delivers, for each of the plurality of key frames, the plurality of feature points of the key frame and the feature amount of each of the plurality of feature points to the feature point association unit 370 .

[0054] The feature point associating unit 370 establishes a correspondence relationship between the feature points between consecutive key frames using the feature amounts indicating the features of the feature points calculated by the feature amount calculating unit 360 .

[0055] Specifically, the feature point associating unit 370 establishes a correspondence relationship between feature points between consecutive key frames using the feature amount of each feature point.

[0056] Then, the feature point associating unit 370 sends the feature points with which the correspondence is established for each of the plurality of key frames to the three-dimensional position calculating unit 380 .

[0057] The three-dimensional position calculation unit 380 calculates the three-dimensional position of each feature point associated by the feature point associating unit 370 and the position and posture of the imaging device 100 in each of the plurality of images.

[0058] Specifically, the three-dimensional position calculation unit 380 calculates the three-dimensional position of each feature point sequentially starting from the second key frame based on the correspondence relationship between the feature points and the previous key frame.

[0059] In the case of the second key frame, the three-dimensional position calculation unit 380 first calculates the change (dimensionality-free quantity) of the position and posture of the camera 100 between the shooting position of the first key frame and the shooting position of the second key frame using the eight-point algorithm and RANSAC (Random sample consensus), and uses the position change (ΔX v , ΔY v ) to make it dimensional (determine the absolute scale).

[0060] Next, if Figure 3 As shown, the three-dimensional position calculation unit 380 calculates the three-dimensional position (world coordinate system) of the feature point based on the position of the corresponding feature point on the key frame and the change in the position and posture of the camera 100 through the principle of triangulation.

[0061] like Figure 4 As shown, in the case of the third and subsequent key frames, first, the three-dimensional position calculation unit 380 extracts feature points with known three-dimensional positions from the feature points that have established a correspondence with the previous key frame, and calculates the change in the position and posture of the shooting device 100 with the smallest sum of re-projection errors.

[0062] Next, the three-dimensional position calculation unit 380 calculates the three-dimensional position of a feature point whose three-dimensional position is unknown among the feature points that have established a correspondence with the previous key frame, based on the position of the feature point on the key frame and the position and posture change of the shooting device 100, in the same way as the second key frame, by using the principle of triangulation.

[0063] Then, the three-dimensional position calculation unit 380 passes the calculated three-dimensional position of each of the multiple feature points, and the change in position and posture of the shooting device 100 between the shooting position of the previous key frame and the shooting position of the key frame for each of the multiple key frames to the graphic structure data generation unit 390.

[0064] The graph structure data generating unit 390 generates graph structure data consisting of a feature point node that specifies the three-dimensional position of each feature point, a shooting node that specifies the position and posture of the shooting device 100 that shoots the key frame for each key frame in a plurality of key frames, a feature point edge that connects each feature point node and specifies the position of the feature point of the feature point node on the key frame of the shooting node, and a shooting edge that connects each adjacent shooting node and specifies the amount of change in the position and posture of the vehicle between the key frames of the shooting node.

[0065] Specifically, if Figure 5 As shown, the graphic structure data generating unit 390 generates a graph structure data consisting of predetermined feature points P i The feature point node of the three-dimensional position and the specified key frame KF j The camera node of the camera position / pose, the key frame KF j The feature point P on i The graphic structure data is composed of feature point edges at the positions of the vehicles and captured edges that specify the position change amount and yaw angle change amount of the vehicle between adjacent key frames.

[0066] Specifically, the graph structure data generating unit 390 generates graph structure data using the three-dimensional position of each feature point obtained by the three-dimensional position calculating unit 380 .

[0067] Then, the graph structure data generating unit 390 passes the generated graph structure data to the error function setting unit 400 .

[0068] The error function setting unit 400 sets, for each feature point edge included in the graph structure data generated by the graph structure data generating unit 390, a first error function C representing a projection error when the feature points of the feature point nodes connected by the feature point edge are projected onto the image of the shooting node using the position and posture of the shooting device 100 specified by the shooting node. Pij, and for each captured edge included in the graphic structure data, a second error function C is set that represents the error between the change in position and posture specified by the captured edge and the calculation result of the mileage calculation unit 320 KFj .

[0069] Specifically, the error function setting unit 400 sets the first error function C of the feature point edge as shown in the following equations (1) and (2): Pij .

[0070] [Formula 1]

[0071] C Pij =e T Pij W Pij e Pij …(1)

[0072]

[0073] e pij It represents the key frame KF j The feature point P on i The two-row and one-column vector of the reprojection error of the (x, y) coordinates can be expressed as

[0074]

[0075] Here, (X pij ,y Pij ) are the actual coordinates of the feature point Pi, and those with “^” (hat mark) are the calculated values ​​when projected onto the image.

[0076] W Pij This is a weight for the re-projection error, and a larger value is set for feature points detected from a layer with a higher resolution in the image pyramid.

[0077] In addition, the error function setting unit 400 sets the second error function C of the image edge as shown in the following equations (3) and (4): KFj .

[0078] [Formula 2]

[0079] C KFj =e T KFj W kFj e KFj …(3)

[0080]

[0081] Here, e KFj It means that according to the key frame KF j-1 With KF jThe three-row and one-column vector of the error of the vehicle position change and yaw angle change relative to the measured value calculated from the change in camera position / posture between

[0082]

[0083] Here, the values ​​with “^” are calculated values.

[0084] In addition, W Xj is the weight of the error in the vehicle's X-direction position change, w Yj is the weight of the error in the vehicle's Y-direction position change, w θj is the weight of the error in the yaw angle change of the vehicle.

[0085] Here, the error function setting unit 400 sets, for each captured edge, a value indicating the amount of change Δθ of the vehicle yaw angle obtained by the mileage calculation unit 320 corresponding to the captured edge. v The smaller the value, the larger the weight w Xj 、w Yj , and w θj The second error function C KFj .

[0086] That is, the greater the vehicle's yaw angle change Δθ v The smaller the photographic edge, the larger the weight w is set by the error function setting unit 400. Xj 、w Yj , and w θj .

[0087] Here, it can also be set to w Xj =w Yj . This can save memory capacity.

[0088] Then, the error function setting unit 400 sets the graph structure data, the first error function C Pij , and the second error function C KFj Submit it to the graph structure data optimization unit 410.

[0089] The graph structure data optimization unit 410 optimizes the three-dimensional position of each feature point specified by each feature point node of the graph structure data and the position and posture of the photographing device 100 specified by each photographing node, so that the first error function C of each feature point edge is Pij The second error function C of each captured edge KFj The sum is the smallest.

[0090] Specifically, the graph structure data optimization unit 410 optimizes the three-dimensional position of each feature point specified by each feature point node of the graph structure data and the position and posture of the imaging device 100 specified by each imaging node, so that the first error function C of each feature point edge is Pij The second error function C of each captured edge KFj The sum is the smallest.

[0091] Here, the yaw angle change Δθ of the vehicle is v The smaller the photographing edge, the larger the second error function C is set. KFj The weight w Xj 、w Yj , and w θj , and the graph structure data is optimized as the position change of the vehicle (ΔX v , ΔY v ) is obtained with relatively high accuracy. Thus, the accuracy of the three-dimensional position of the feature points and the camera position / posture constituting the graphic structure data can be improved as a whole.

[0092] Then, the graph structure data optimization unit 410 passes the optimized graph structure data to the environment map creation unit 420 .

[0093] The environment map creation unit 420 creates an environment map including three-dimensional position information of each feature point based on the graph structure data optimized by the graph structure data optimization unit 410 .

[0094] Specifically, the environment map generating unit 420 generates an environment map including three-dimensional position information of each feature point based on the graph structure data optimized by the graph structure data optimizing unit 410, similarly to the non-patent document 1. Here, since the accuracy of the three-dimensional position of the feature point is higher than that of the non-patent document 1, a map with less distortion can be generated.

[0095] Then, the environment map creating unit 420 delivers the created environment map to the output unit 430 .

[0096] The output unit 430 outputs the environment map created by the environment map creating unit 420 .

[0097] <Operation of the map generating device 300>

[0098] Next, refer to Figure 6 The map creation processing routine of the map creation device 300 according to the present embodiment will be described.

[0099] First, in step S100 , the map generating device 300 sets i = 1. Here, i is a counter that counts the number of selected key frames.

[0100] In step S110 , the sensor information input unit 310 receives input of the wheel speed detected by the wheel speed sensor 200 and the steering angle detected by the steering angle sensor 210 .

[0101] In step S120, the mileage calculation unit 320 calculates the vehicle position change (ΔX v , ΔY v ) and the yaw angle change Δθ v .

[0102] In step S130 , the image input unit 330 receives input of an image from the imaging device 100 .

[0103] In step S140 , the key frame selection unit 340 determines whether i=1.

[0104] When i=1 (YES in the above-mentioned step S140 ), the process proceeds to step S160 .

[0105] On the other hand, when i=1 is not satisfied (No in the above step S140 ), in step S150 , the key frame selection unit 340 determines whether the travel distance of the vehicle is equal to or greater than a predetermined value.

[0106] When the travel distance is equal to or greater than the predetermined value (YES in the above-mentioned step S150 ), the process proceeds to step S160 .

[0107] On the other hand, when the travel distance is not equal to or greater than the predetermined value (No in the above-mentioned step S150 ), the process returns to step S110 .

[0108] In step S160 , the key frame selection unit 340 selects the image acquired in step S130 as the i-th key frame.

[0109] In step S170 , the key frame selection unit 340 determines whether all key frames have been selected.

[0110] When all the key frames have not been selected (No in the above step S170 ), in step S180 , the key frame selection unit 340 adds 1 to i and returns to step S110 .

[0111] On the other hand, when all the key frames are selected (Yes in the above step S170 ), in step S190 , the feature point detection unit 350 detects a plurality of feature points from each of the plurality of key frames.

[0112] In step S200 , the feature amount calculation unit 360 calculates the feature amount of each of the plurality of feature points of each of the plurality of key frames.

[0113] In step S210 , the feature point associating unit 370 establishes a correspondence relationship between the feature points of a plurality of key frames using the feature amounts indicating the features of the feature points calculated in step S200 .

[0114] In step S220 , the three-dimensional position calculation unit 380 calculates the three-dimensional position of each feature point associated with each other in step S210 and the position and posture of the imaging device 100 in each of the plurality of key frames.

[0115] In step S230, the graph structure data generating unit 390 generates graph structure data consisting of a feature point node that specifies the three-dimensional position of each feature point, a shooting node that specifies the position and posture of the shooting device 100 that shoots the key frame for each key frame in a plurality of key frames, a feature point edge that connects each feature point node and specifies the position of the feature point of the feature point node on the key frame of the shooting node, and a shooting edge that connects each adjacent shooting node and specifies the amount of change in the position and posture of the vehicle between the key frames of the shooting node.

[0116] In step S240, the error function setting unit 400 sets, for each feature point edge included in the graph structure data generated in step S230, a first error function C1 representing a projection error when the feature point of the feature point node connected by the feature point edge is projected onto the key frame of the shooting node using the position and posture of the shooting device 100 specified by the shooting node. Pij , and for each captured edge included in the graphic structure data, a second error function C is set that represents the error between the change amount of the position and posture specified by the captured edge and the calculation result of the mileage calculation unit 320 KFj .

[0117] In step S250, the graph structure data optimization unit 410 optimizes the three-dimensional position of each feature point specified by each feature point node of the graph structure data and the position and posture of the photographing device 100 specified by each photographing node, so that the first error function C of each feature point edge is Pij The second error function C of each captured edge KFj The sum is the smallest.

[0118] In step S260 , the environment map generating unit 420 generates an environment map including three-dimensional position information of each feature point based on the graph structure data optimized in step S250 .

[0119] In step S270 , the output unit 430 outputs the environment map created in step S260 .

[0120] In addition, through Figure 7 The three-dimensional position calculation processing routine shown implements the above-mentioned step S220.

[0121] In step S221 , the three-dimensional position calculation unit 380 sets i = 2. Here, i is a counter indicating the number of the imaging key frame.

[0122] In step S222 , the three-dimensional position calculation unit 380 selects the i-th key frame.

[0123] In step S223 , the three-dimensional position calculation unit 380 determines whether i=2.

[0124] In the case of i=2 (the above step S227), in step S224, the three-dimensional position calculation unit 380 uses the eight-point algorithm and RANSAC (Random sample consensus) between the first key frame and the second key frame to calculate the change in position and posture (dimensionality-free quantity) of the camera 100 between the shooting position of the first key frame and the shooting position of the second key frame, and uses the position change (ΔX v , ΔY v ) makes it dimensional and enters step S226.

[0125] On the other hand, when i is not 2 (No in the above step S227), in step S225, the three-dimensional position calculation unit 380 extracts feature points with known three-dimensional positions from feature points that have established a correspondence with the i-1th key frame, calculates the changes in the position and posture of the shooting device 100 with the smallest sum of re-projection errors, and proceeds to step S226.

[0126] In step S226, the three-dimensional position calculation unit 380 calculates the three-dimensional position of a feature point whose three-dimensional position is unknown among the feature points that have established a correspondence with the i-1th key frame based on the position of the feature point on the i-th key frame and the position and posture change of the shooting device 100 through the principle of triangulation.

[0127] In step S227 , the three-dimensional position calculation unit 380 determines whether all key frames have been processed.

[0128] When all the key frames have not been processed (No in the above step S227 ), in step S228 , the three-dimensional position calculation unit 380 adds 1 to i and returns to step S222 .

[0129] On the other hand, when all key frames have been processed (Yes in the above step S227), the process returns.

[0130] As described above, according to the map making device involved in the embodiment of the present invention, a graph structure data consisting of feature point nodes that specify the three-dimensional position of feature points, shooting nodes that specify the position and posture of a shooting device, feature point edges that connect the positions of feature point nodes on the image of the specified shooting nodes between each feature point node and each shooting node, and shooting edges that connect the changes in the position and posture of a moving body between the images of the specified shooting nodes between each adjacent shooting node are generated, a first error function that represents the projection error when the feature points of the feature point nodes connected by the feature point edges are projected onto the image of the shooting nodes using the position and posture of the shooting device specified by the shooting nodes is set, and a second error function that represents the error in the change in the position and posture specified by the shooting edges is set to include a larger weight that represents the smaller the change in the posture of the moving body corresponding to the shooting edges is, and the three-dimensional positions of the feature points of the graph structure data and the position and posture of the shooting device are optimized so that the sum of the first error function and the second error function is minimized, so that the three-dimensional positions of the feature points can be estimated with good accuracy even when the change in the position / posture of the vehicle cannot be obtained with high accuracy.

[0131] In addition, the present invention is not limited to the above-mentioned embodiment, and various modifications and applications are possible without departing from the gist of the present invention.

[0132] For example, in the above embodiment, the map generating device 300 is described as being mounted on a vehicle, but the map generating device 300 may be configured as a server on a network.

[0133] In this case, the imaging device 100, the wheel speed sensor 200, and the steering angle sensor 210 may be configured to transmit images, wheel speeds, and steering angles, respectively, to the map generating device 300 via the Internet by wireless communication or the like.

[0134] In addition, although the present specification describes an embodiment in which a program is pre-installed, the program may be stored in a computer-readable recording medium and provided.

Claims

1. A three-dimensional position estimation device, comprising: a feature point detection unit that detects a plurality of feature points from each of a plurality of images captured by a camera mounted on the mobile body; a position and posture change amount calculation unit, which calculates the change amount of the position and posture of the moving body based on the sensor information related to the moving body; a feature point associating unit that establishes a correspondence relationship between the feature points of the plurality of images using a feature quantity representing a feature of the feature point detected by the feature point detecting unit; a three-dimensional position acquisition unit that acquires the three-dimensional position of each of the feature points with which the feature point association unit has established a correspondence relationship, and the position and posture of the camera in each of the plurality of images; A graph structure data generating unit generates graph structure data consisting of feature point nodes of each of the feature points, shooting nodes of each of the multiple images, feature point edges connecting each of the feature point nodes and each of the shooting nodes, and shooting edges connecting each of the adjacent shooting nodes, wherein the feature point nodes specify the three-dimensional position of the feature points, the shooting nodes specify the position and posture of the shooting device that shoots the images, the feature point edges specify the position of the feature point of the feature point nodes on the images of the shooting nodes, and the shooting edges specify the amount of change in the position and posture of the moving body between the images of the shooting nodes; an error function setting unit that sets, for each of the feature point edges included in the graph structure data generated by the graph structure data generating unit, a first error function that represents a projection error when a feature point of the feature point nodes connected by the feature point edges is projected onto an image of the shooting node using the position and posture of the shooting device specified by the shooting node, and sets, for each of the shooting edges included in the graph structure data, a second error function that represents an error between an amount of change in the position and posture specified by the shooting edge and a calculation result of a position and posture change amount calculating unit; and A graph structure data optimization unit optimizes the three-dimensional position of the feature point specified by each of the feature point nodes of the graph structure data, and the position and posture of the shooting device specified by each of the shooting nodes, so as to minimize the sum of the first error function of each of the feature point edges and the second error function of each of the shooting edges. The error function setting unit sets, for each of the captured edges, the second error function including a larger weight as a change amount of the posture of the moving object obtained by the position and posture change amount calculation unit corresponding to the captured edge is smaller.

2. The three-dimensional position estimation device according to claim 1, wherein: The position and posture change amount calculation unit calculates a yaw angle change amount of the mobile body based on a steering angle detected by a steering angle sensor mounted on the mobile body. The error function setting unit sets the second error function obtained based on the calculation result of the position and posture change amount calculation unit, and includes a larger weight indicating that the smaller the change amount of the yaw angle of the mobile body corresponding to the imaging edge is, the larger the weight is.

3. A three-dimensional position estimation method, comprising: a feature point detection step of detecting a plurality of feature points from each of a plurality of images captured by a camera mounted on the mobile body; a position and posture change amount calculation step, calculating the change amount of the position and posture of the moving body based on the sensor information related to the moving body; a feature point associating step of establishing a correspondence between the feature points of the plurality of images using a feature quantity representing a feature of the feature point detected by the feature point detecting unit; A three-dimensional position acquisition step of acquiring the three-dimensional position of each of the feature points with which the feature point association unit has established a corresponding relationship, and the position and posture of the camera of each of the plurality of images; A step of generating graph structure data, generating graph structure data consisting of feature point nodes of each of the feature points, a shooting node of each of the multiple images, feature point edges connecting each of the feature point nodes and each of the shooting nodes, and shooting edges connecting each of the adjacent shooting nodes, wherein the feature point nodes specify the three-dimensional position of the feature points, the shooting nodes specify the position and posture of the shooting device that shoots the images, the feature point edges specify the position of the feature point of the feature point nodes on the images of the shooting nodes, and the shooting edges specify the amount of change in the position and posture of the moving body between the images of the shooting nodes; an error function setting step of setting, for each of the feature point edges included in the graph structure data generated by the graph structure data generating unit, a first error function representing a projection error when the feature points of the feature point nodes connected by the feature point edges are projected onto the image of the shooting node using the position and posture of the shooting device specified by the shooting node, and setting, for each of the shooting edges included in the graph structure data, a second error function representing an error between a change in the position and posture specified by the shooting edge and a calculation result of the position and posture change amount calculation step; and a step of optimizing the graph structure data, optimizing the three-dimensional position of the feature point specified by each of the feature point nodes of the graph structure data, and the position and posture of the shooting device specified by each of the shooting nodes, so as to minimize the sum of the first error function of each of the feature point edges and the second error function of each of the shooting edges, In the error function setting step, the second error function is set for each of the captured edges, the second error function including a larger weight as the amount of change in the posture of the moving object corresponding to the captured edge obtained in the position and posture change amount calculation step is smaller.