Correction device and correction method
The correction device and method for train sensors address integration errors by determining calibration possibility and correcting sensor information based on rail point detection, enhancing accuracy and safety in train monitoring systems.
Patent Information
- Application Number
- PCT/JP2023/042836
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-22
- Filing Date
- 2023-11-30
- Publication Date
- 2024-09-26
AI Technical Summary
Existing sensor systems on trains face challenges in accurately integrating sensor information due to errors in external parameters such as position and orientation caused by vehicle vibrations, leading to difficulties in object detection and monitoring, especially in forward monitoring systems.
A correction device and method that detects rail points using sensor information, determines calibration possibility based on straightness and linearity, and corrects sensor information using three-axis rotation and translation, without the need for calibration equipment, allowing for more accurate calibration and detection of sensor abnormalities.
Enables more accurate calibration and object detection by correcting sensor information and detecting sensor abnormalities, improving the reliability and safety of train monitoring systems without the cost and maintenance of calibration equipment.
Smart Images

Figure JP2023042836_26092024_PF_FP
Abstract
Description
Correction device and correction method
[0001] The present invention relates to a correction device and a correction method, and more particularly to a correction device and a correction method suitable for correcting sensor information output from a sensor mounted on a train.
[0002] For example, a train forward monitoring system is expected to expand the forward monitoring area and improve object detection rates by equipping it with multiple sensors with different monitoring areas and frequency characteristics. In such systems, information from multiple sensors is integrated using the external parameters (mounting position, angle information) of each sensor. The external parameters of each sensor vary from vehicle to vehicle and change over time due to factors such as car body vibration. Therefore, the actual external parameters have errors relative to their design values. As these errors increase, the position errors of objects contained in each sensor increase, making it difficult to integrate sensor information. Therefore, to prevent failures due to external parameter errors when integrating information from multiple sensors, it is necessary to calculate and correct external parameters such as the position and orientation of each sensor. This requires a calibration device or other device to perform calibration and correct the sensor information.
[0003] Patent Literature 1 describes a camera calibration device that includes a measurement area having at least two reference lines arranged within the imaging range of a camera, the reference lines including lines intersecting two points corresponding to the shape of the vehicle, and a calibration pattern having a predetermined pattern shape between the reference lines, and an image processing unit.The device includes an imaging process in which the image processing unit generates a measurement image by imaging the measurement area in which the calibration pattern and the reference lines are arranged with the camera, a stopping error calculation process that calculates the coordinate relationship between the stopping position of the vehicle and the pattern shape as a stopping error based on the two reference lines, and an external parameter calculation process that calculates external parameters corresponding to the mounting posture of the camera based on the pattern shape with the stopping error canceled.
[0004] Patent Document 2 describes a vehicle body tilt estimation device that is provided with a rail detection unit that determines the position of the rail from the images taken by the cameras, a three-dimensional shape calculation unit that calculates the three-dimensional shape of the rail based on the rail positions determined from the images taken by the cameras, and a tilt estimation unit that uses M-estimation or RANSAC to suppress the influence of noise when aligning the three-dimensional shape of the rail with a pre-prepared rail shape model using an ICP algorithm.
[0005] JP 2013-2820 A JP 2019-23017 A
[0006] However, installing a measurement area is expected to require not only installation costs but also maintenance to prevent deterioration such as dirt and damage, so it is preferable not to install such a measurement area.The present invention aims to provide a correction device and correction method that can perform more accurate calibration without providing calibration equipment.
[0007] To solve the above problem, the present invention provides a correction device including: a rail detection unit that detects a first rail point cloud representing the position of a rail based on first sensor information acquired by a first sensor; a calibration feasibility determination unit that determines whether calibration of the first sensor is possible based on a first straightness that represents the degree of straightness with respect to the first rail point cloud; and a sensor information correction unit that corrects the first sensor information based on the first rail point cloud and a reference rail point cloud that represents the three-dimensional position of the rail and is different from the first rail point cloud if the calibration feasibility determination unit determines that calibration is possible. In this case, a correction device that can perform more accurate calibration without providing a calibration facility can be provided.
[0008] Here, the first straightness can represent not only the degree of straightness but also the degree of variation relative to the first rail point cloud. In this case, the accuracy of straightness evaluation can be improved. Furthermore, the calibration feasibility determination unit can calculate the first straightness based on the average value of distances between a rail straightness model estimated by extracting straight lines from the first rail point cloud and points included in the first rail point cloud. In this case, the straightness can be calculated more easily. Furthermore, the calibration feasibility determination unit can calculate a first distance average value and a second distance average value as average values for each of the pair of rails, and determine the first straightness as the reciprocal of the average value of the first distance average value and the second distance average value. In this case, a more intuitive value can be calculated as the straightness.
[0009] Furthermore, the calibration feasibility determination unit can determine the presence or absence of a branch from the first rail point cloud, and determine that calibration is impossible if a branch is present. In this case, the estimation of external parameters becomes more accurate. The calibration feasibility determination unit can then determine the presence or absence of a branch by comparing the distance in the vehicle width direction with the rail gauge for the first rail point cloud. In this case, branch determination can be made more easily.
[0010] The reference rail point cloud can also be a second rail point cloud that is detected based on second sensor information acquired by a second sensor and represents the position of the rail. In this case, the sensor information from the first sensor and the second sensor can be integrated. Furthermore, the calibration feasibility determination unit can determine whether calibration is possible based on the difference between the first straightness and the second straightness that represents the degree of straightness relative to the second rail point cloud. In this case, the determination of whether calibration is possible becomes more accurate.
[0011] The system further includes a calibration unit that calculates the triaxial rotation and translation of the first sensor using the first rail point cloud and the reference rail point cloud when the calibration feasibility determination unit determines that calibration is possible. The sensor information correction unit can correct the first sensor information using the triaxial rotation and translation calculated by the calibration unit. In this case, the accuracy of the correction of the first sensor information is improved. The calibration unit also records the triaxial rotation and translation of the first sensor at multiple times and outputs medians of the triaxial rotation and translation of the first sensor at the multiple times. The sensor information correction unit can correct the first sensor information using the output median. In this case, more accurate estimation of extrinsic parameters is possible. Furthermore, the first rail point cloud represents a two-dimensional position of the rail. The calibration unit can convert the reference rail point cloud into an image coordinate system including the first rail point cloud to obtain a two-dimensional reference rail point cloud and calculate the triaxial rotation and translation to match the first rail point cloud with the two-dimensional reference rail point cloud. In this case, angular errors in the rail point cloud, which occur when converting a point cloud on a two-dimensional image into a three-dimensional image, are not generated, making it easier to obtain more accurate estimation results for the external parameters. Furthermore, the system may further include a sensor mounting abnormality detection unit that determines that a sensor mounting angle is abnormal when the triaxial rotation and translation calculated by the calibration unit exceed predetermined thresholds. In this case, a sensor mounting abnormality can be detected. The sensor mounting abnormality detection unit may determine that a sensor mounting angle is abnormal when the triaxial rotation and translation calculated from the first rail point cloud and the reference rail point cloud, which is detected based on second sensor information acquired by the second sensor and represents the position of the rail, and the triaxial rotation and translation calculated from the first rail point cloud and the third rail point cloud, which is detected based on third sensor information acquired by the third sensor and represents the position of the rail, all exceed predetermined thresholds. In this case, a sensor mounting abnormality can be determined using the first sensor and the second sensor.
[0012] Furthermore, the calibration feasibility determination unit may determine that calibration is possible when the first rail point cloud is included in a calibration-enabled section based on a map including the relationship between the vehicle's track position and the calibration-enabled section. In this case, areas including curved sections where estimating external parameters is difficult can be identified in advance, allowing for more reliable estimation of external parameters. The calibration feasibility determination unit may then issue a sensor abnormality signal when the first straightness indicates a value that makes calibration impossible and the first rail point cloud is included in a calibration-enabled section. In this case, sensor installation abnormalities can be detected using the map. Furthermore, the rail detection unit may detect a point cloud representing the positions of parallel objects instead of the first rail point cloud. For example, the rail detection unit may detect a first overhead pole point cloud instead of the first rail point cloud. In this case, the point cloud required for calibration can be obtained using parallel objects, such as overhead poles.
[0013] The present invention also provides a correction method in which a processor executes software recorded in a memory to detect a first rail point cloud representing the position of a rail based on first sensor information acquired by a first sensor, determine whether calibration of the first sensor is possible based on a first straightness representing the degree of straightness with respect to the first rail point cloud, and if it is determined that calibration is possible, correct the first sensor information based on the first rail point cloud and a reference rail point cloud that represents the three-dimensional position of the rail and is different from the first rail point cloud. In this case, a correction method that enables more accurate calibration without providing any calibration equipment can be provided.
[0014] According to the present invention, it is possible to provide a correction device and a correction method that can perform more accurate calibration without providing any calibration equipment.
[0015] 9 is a diagram showing the overall configuration of a sensor correction system according to a first embodiment. It is a flowchart showing the operation from acquiring first sensor information to correcting the first sensor information according to the first embodiment. (a) to (b) are diagrams showing a method for calculating straightness. (c) to (e) are diagrams showing a specific example of calculating straightness. (a) to (b) are diagrams showing a specific example of a method for performing branch judgment when a branch judgment function is added to the calibration feasibility judgment unit. (a) to (d) are diagrams showing a coordinate system used in the first embodiment and a method for estimating external parameters using a first rail point cloud. The horizontal axis shows the number of accumulated frames of the external parameter estimation results, and the vertical axis shows the external parameter estimation results. It is a diagram showing the overall configuration of a sensor correction system according to a second embodiment. (a) to (e) are diagrams showing the operation of an automatic calibration unit according to the second embodiment. It is a flowchart showing the operation of an automatic calibration device when monocular camera information is used as the first sensor information. (a) to (c) are diagrams showing details of the operation of S208 in FIG. 9 and the definition of the coordinate system used. 10A and 10B are diagrams showing the overall configuration of a sensor correction system according to a fourth embodiment. (a) and (b) are diagrams showing a railway digital map and a method for determining whether external parameters can be estimated using the railway digital map. (b) are diagrams showing the overall configuration of a sensor correction system according to a fifth embodiment.
[0016] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. Here, the present invention will be described with reference to first to fifth embodiments. [First Embodiment] <Explanation of Overall Configuration of Sensor Correction System 1a> FIG. 1 is a diagram showing the overall configuration of a sensor correction system 1a in the first embodiment. As shown in the figure, the sensor correction system 1a is mounted on a vehicle 10. The vehicle 10 is a vehicle housing that runs on railway tracks, such as a train or tram. The vehicle 10 runs on a pair of rails 20Lt and 20Rt. Note that here, the rail on the left side of the traveling direction of the vehicle 10 is referred to as rail 20Lt, and the rail on the right side is referred to as rail 20Rt.
[0017] The sensor correction system 1a also includes a first sensor 101a and an automatic calibration device 11a. The automatic calibration device 11a is an example of a correction device, and includes a rail detection unit 102, a calibration feasibility determination unit 103, an automatic calibration unit 104, and a sensor information correction unit 105, and receives information acquired by the first sensor 101a as input. In this embodiment, the automatic calibration unit 104 is mounted on the vehicle 10, but if the automatic calibration unit 104 has means for transmitting information from the sensor 101a to the ground, it may be mounted on equipment installed on the ground.
[0018] In the automatic calibration device 11a, the rail detection unit 102 uses data acquired by the first sensor 101a to estimate the positions of the left and right rails 20Lt, 20Rt in front of the vehicle 10 and acquires them as a first rail point cloud 30an. Furthermore, the calibration feasibility determination unit 103 determines whether calibration is possible based on the linearity of the first rail point cloud 30an. Then, if it is determined that calibration is possible, the automatic calibration unit 104 estimates external parameters. Furthermore, the sensor information correction unit 105 corrects the data acquired by the first sensor 101a using the estimated external parameters.
[0019] The first sensor 101a is a sensor that outputs first sensor information that is the basis for estimating the first rail point cloud 30an by the rail detection unit 102. Examples of the first sensor 101a include a laser radar, a stereo camera, and a monocular camera. If the first sensor 101a is a laser radar, the first sensor information is a three-dimensional point cloud. If the first sensor 101a is a stereo camera, the first sensor information is a parallax image and left and right camera images. If the first sensor 101a is a monocular camera, the first sensor information is a two-dimensional image.
[0020] The rail detection unit 102 has a function of estimating a three-dimensional point cloud using first sensor information. It can also be said that the rail detection unit 102 detects a first rail point cloud 30an representing the positions of the rails 20Lt and 20Rt based on the first sensor information acquired by the first sensor 101a. When the first sensor information is a three-dimensional point cloud output by a laser radar, the rail detection unit 102 extracts point clouds corresponding to the left and right rails 20Lt and 20Rt from the three-dimensional point cloud and defines them as the first rail point cloud 30an. When the first sensor information is a parallax image and left and right camera images from a stereo camera, the rail detection unit 102 estimates the first rail point cloud 30an by two-dimensional rail extraction using pattern matching on the images, and by using depth estimation results based on the parallax image. If the input image is a monocular camera image, the rail detection unit 102 performs two-dimensional rail extraction, for example, using pattern matching on the image, and estimates the first rail point group 30an using the depth estimation results based on a comparison between the actual width (= gauge) of the left and right rails 20Lt, 20Rt and the observed gauge.
[0021] The first rail point cloud 30an is a point cloud corresponding to the three-dimensional positions of the left and right rails 20Lt, 20Rt, and may be a point cloud corresponding to the inside of the top surfaces of the left and right rails 20Lt, 20Rt, for example. In this embodiment, the first rail point cloud 30an is expressed in a vehicle-fixed coordinate system '40n by performing coordinate transformation using a rotational design value and a translational design value for transforming from the first sensor coordinate system to a vehicle-fixed coordinate system 40t fixed to the vehicle 10.
[0022] The vehicle-fixed coordinate system 40t is a coordinate system whose origin and orientation are fixed with respect to the vehicle 10. In this embodiment, the x direction of the vehicle-fixed coordinate system 40t is defined as the straight-ahead direction along the rails 20Lt and 20Rt, the y direction is defined as the direction along the sleepers, and the z direction is defined as the direction perpendicular to the x and y directions, with the x origin defined as the front of the vehicle body, the y origin defined on the midline of the left and right rails 20Lt and 20Rt, and the z origin defined on the plane subtended by the upper surfaces of the left and right rails 20Lt and 20Rt, but other methods may also be used.
[0023] The vehicle-fixed coordinate system '40n is a coordinate system that transitions as a result of coordinate transformation of the sensor information of the first sensor coordinate system using the designed rotation value and designed translation value. Because the designed rotation value and designed translation value differ from the actual rotation and translation, the origin and axis orientation of the vehicle-fixed coordinate system '40n differ from those of the actual vehicle-fixed coordinate system 40t. Therefore, the first rail point cloud 30an exists at a different position from the point cloud 30at corresponding to the actual positions of the rails 20Lt, 20Rt in the vehicle-fixed coordinate system 40t.
[0024] The calibration feasibility determination unit 103 evaluates the first rail point cloud 30an based on its straightness. The calibration feasibility determination unit 103 then sets a threshold for the straightness and determines whether calibration is possible based on this threshold. For example, the calibration feasibility determination unit 103 determines that calibration is possible when the straightness is equal to or greater than a predetermined threshold, and determines that calibration is impossible when the straightness is less than the predetermined threshold. Therefore, it can also be said that the calibration feasibility determination unit 103 determines whether calibration of the first sensor 101a is possible based on the straightness that represents the degree of straightness relative to the first rail point cloud 30an. Note that this straightness can also be referred to as a first straightness to distinguish it from a second straightness, which will be described later. The calibration feasibility determination unit 103 has a function of outputting a calibration feasibility signal for determining whether calibration is possible and the first rail point cloud 30an to the automatic calibration unit 104.
[0025] The linearity is an index for evaluating whether the estimated first rail point cloud 30an is a straight line or not, and the degree of data variation of the first rail point cloud 30an, and will be described in detail later. The linearity threshold is a value that is adjusted in advance so that the estimation accuracy of the external parameters in the automatic calibration unit 104 can meet requirements.
[0026] The calibration feasibility signal is information for determining whether the automatic calibration unit 104 is allowed to execute the external parameter estimation process using the first rail point cloud 30an. The calibration feasibility signal is, for example, a signal of 0 or 1, where 0 means that calibration is not possible and 1 means that calibration is possible.
[0027] When the calibration feasibility signal determines that calibration is possible, the automatic calibration unit 104 has a function of estimating extrinsic parameters of the first sensor 101a using the first rail point cloud 30an and the point cloud 30at corresponding to the actual positions of the rails 20Lt and 20Rt. Therefore, when the calibration feasibility determination unit 103 determines that calibration is possible, the automatic calibration unit 104 functions as a calibration unit that calculates the triaxial rotation and translation of the first sensor 101a using the first rail point cloud 30an and the reference rail point cloud (in the first embodiment, the point cloud 30at corresponding to the actual positions of the rails 20Lt and 20Rt). Details of the method for estimating the extrinsic parameters using the first rail point cloud 30an will be described later.
[0028] The sensor information correction unit 105 has a function of converting data of the first sensor 101a into a vehicle-fixed coordinate system 40t using the estimation results of the external parameters of the first sensor 101a. When the calibration feasibility determination unit 103 determines that calibration is possible, the sensor information correction unit 105 can also be said to correct the first sensor information based on the first rail point cloud 30an and a reference rail point cloud (in the first embodiment, a point cloud 30at corresponding to the actual positions of the rails 20Lt, 20Rt) that represents the three-dimensional positions of the rails 20Lt, 20Rt and is different from the first rail point cloud an. In this case, the sensor information correction unit 105 corrects the first sensor information using the three-axis rotation and translation calculated by the automatic calibration unit 104.
[0029] FIG. 2 is a flowchart illustrating the operation from acquiring first sensor information to correcting the information from the first sensor 101a in the first embodiment. First, the rail detection unit 102 acquires first sensor information at a certain time (S101). Next, the rail detection unit 102 determines whether the data dimension of the first sensor information is three-dimensional (S102). As a result, if the data dimension is three-dimensional (Yes in S102), the rail detection unit 102 detects the rails 20Lt and 20Rt from the three-dimensional point cloud (S103). The data dimension is three-dimensional, for example, in the case of a point cloud acquired by a laser radar. On the other hand, if the data dimension is two-dimensional (No in S102), the rail detection unit 102 first detects the rails 20Lt and 20Rt from a two-dimensional image (S104), and then three-dimensionalizes the rail detection result using a parallax image and a track gauge (S105), and outputs the result to the calibration feasibility determination unit 103. The data dimension is two-dimensional, for example, in the case of a stereo camera image or a monocular camera image.
[0030] Next, the calibration feasibility determination unit 103 calculates the straightness using the first rail point cloud 30an (S106).The calibration feasibility determination unit 103 sets the calibration feasibility signal to 1 if the straightness is equal to or greater than a predetermined threshold, and sets the calibration feasibility signal to 0 if the straightness is less than the predetermined threshold (S107).
[0031] Next, the automatic calibration unit 104 determines whether the calibration feasibility signal is 1 (S108). If the calibration feasibility signal is 1 (Yes in S108), the automatic calibration unit 104 captures the point cloud 30at corresponding to the actual positions of the rails 20Lt and 20Rt as a second rail point cloud (reference rail point cloud) (S109). The automatic calibration unit 104 then estimates the extrinsic parameters of the first sensor 101a by calculating the rotation and translation between the first rail point cloud 30an and the second rail point cloud (S110). Furthermore, the sensor information correction unit 105 corrects the first sensor information (S111). On the other hand, if the calibration feasibility signal is 0 (No in S108), the first sensor information is not corrected, and the series of processes ends.
[0032] <Description of Straightness> Next, straightness will be described in detail. FIGS. 3A and 3B are diagrams illustrating a method for calculating straightness. FIGS. 3C to 3E are diagrams illustrating specific examples of calculating straightness. First, as shown in FIG. 3A, the calibration feasibility determination unit 103 estimates a left rail straight line model 201L based on the point cloud corresponding to the left rail 20Lt for the first rail point cloud 30an obtained by the rail detection unit 102. The calibration feasibility determination unit 103 also estimates a right rail straight line model 201R based on the point cloud corresponding to the right rail 20Rt. As a method for estimating these straight line models, for example, a straight line estimation using RANSAC (RANdom Sample Consensus) is performed on the first rail point cloud 30an to estimate either the left or right straight line model as a first straight line model, and then a point cloud within a predetermined distance range from the first straight line model is removed and straight line estimation using RANSAC is performed again to estimate the other straight line model as a second straight line model. Furthermore, of the first straight line model and the second straight line model, the one with the larger y-intercept can be designated as left rail straight line model 201L, and the one with the smaller y-intercept can be designated as right rail straight line model 201R.
[0033] Next, the calibration feasibility determination unit 103 extracts a point cloud 204L that exists in a range 203L that is within a predetermined distance 202 from the left rail straight model 201L, and a point cloud 204R that exists in a range 203R that is within a predetermined distance 202 from the right rail straight model 201R. The distance 202 is set to a value that allows the ranges 203L and 203R to include the curved rail point clouds.
[0034] Furthermore, as shown in FIG. 3B, the calibration feasibility determination unit 103 calculates the distances 205Li between points 204Li included in the point cloud 204L and the left rail straight model 201L for all points in the point cloud 204L and averages the calculated distances to calculate a first distance average value. The calibration feasibility determination unit 103 also calculates the distances 205Ri between points 204Ri included in the point cloud 204R and the right rail straight model 201R for all points in the point cloud 204R and averages the calculated distances to calculate a second distance average value. Next, the calibration feasibility determination unit 103 calculates a third distance average value by averaging the first and second distance average values. The calibration feasibility determination unit 103 then defines the reciprocal of the third distance average value as the straightness. In this case, a larger straightness value indicates a higher degree of straightness of the rails 20Lt and 20Rt.
[0035] In this way, the calibration feasibility determination unit 103 determines straightness (first straightness) based on the average value of the distances between the rail straight line models 201L, 201R estimated by extracting straight lines from the first rail point cloud 30an and the points included in the first rail point cloud 30an. Furthermore, the calibration feasibility determination unit 103 determines a first distance average value and a second distance average value as average values for each of the pair of rails 20Lt, 20Rt, and determines the straightness (first straightness) to be the reciprocal of the average value of the first distance average value and the second distance average value.
[0036] Next, differences in straightness depending on the shape of the first rail point cloud 30an will be explained. Figure 3(c) shows a specific example in which a first rail point cloud 30an with little variation can be obtained for the straight rails 20Lt and 20Rt. In such a case, the third distance average value is small, and therefore the straightness, which is the reciprocal of the third distance average value, is large.
[0037] On the other hand, Figure 3(d) shows a specific example in which a first rail point cloud 30an with large variations is acquired for the straight rails 20Lt, 20Rt. If such rail detection results are used by the automatic calibration unit 104, external parameters will be estimated based on an inaccurate straight model, which may lead to increased estimation errors in the external parameters, and therefore calibration should be determined to be impossible. In the case of Figure 3(d), for example, there is a point cloud 206 that is far from the left rail straight model 201L, so the third distance average value is large and the straightness, which is the reciprocal of the third distance average value, is smaller than in Figure 3(c).
[0038] 3(e) is a specific example in which the first rail point cloud 30an is acquired for the curved rails 20Lt, 20Rt. In this embodiment, the first rail point cloud 30an input to the automatic calibration unit 104 is assumed to be a straight rail, and it is necessary to prevent point clouds corresponding to the curved rails 20Lt, 20Rt from being input to the automatic calibration unit 104. In the case of FIG. 3(e), for example, because the rails 20Lt, 20Rt are curved, there exists a point cloud 208 that is far from the left rail straight model 201L. Therefore, the third distance average value is large, and the straightness, which is the reciprocal of the third distance average value, is a larger value than in FIG. 3(c).
[0039] 3(d) and 3(e), the calibration feasibility determination unit 103 sets a threshold value for setting the calibration feasibility signal to 0. This prevents calibration from being performed when there is a large variation in the first rail point cloud 30an or when the rail is curved, making it possible to calculate external parameters more accurately. This concludes the definition and properties of the straightness calculated by the calibration feasibility determination unit 103.
[0040] In the embodiment described above, the calibration feasibility determination unit 103 basically determines the value of the calibration feasibility signal based only on the straightness, but when the rails 20Lt, 20Rt branch, the calibration feasibility signal may be set to 0. Specifically, when the rail detection unit 102 cannot stably extract a straight rail due to the branching of the rails 20Lt, 20Rt, the calibration feasibility determination unit 103 may further be provided with a function to determine that the rails 20Lt, 20Rt branch and set the calibration feasibility signal to 0.
[0041] 4A and 4B are diagrams showing a specific example of a method for performing branch judgment when a branch judgment function is added to the calibration feasibility determination unit 103. As shown in FIG. 4A, the calibration feasibility determination unit 103 calculates a distance 212 (Δy) between a point 211L having a maximum y value and a point 211R having a minimum y value among a group of points present in sections equally divided by a width 210 in the x direction of the vehicle-fixed coordinate system 209. Then, as shown in FIG. 4B, the calibration feasibility determination unit 103 creates a diagram in which the distance 212 (Δy) is plotted for each x-direction section. The x coordinate in each x-direction section is, for example, the midpoint between the maximum and minimum values in that x-direction section.
[0042] FIG. 4B is a diagram in which the distance 212 (Δy) is plotted for each x-direction section. In FIG. 4B, if the rails 20Lt and 20Rt are straight, the distance 212 roughly coincides with the gauge D of the rails 20Lt and 20Rt. However, if a branch occurs, the distance between point 211L and point 211R increases, and the distance 212 becomes larger than the gauge D. Therefore, for example, a value slightly larger than the gauge D is set as the branch threshold 214, and if the distance 212 is larger than the branch threshold 214, the calibration feasibility determination unit 103 sets the calibration feasibility signal to 0. In other words, the calibration feasibility determination unit 103 determines the presence or absence of a branch from the first rail point cloud 30an, and if a branch exists, determines that calibration is impossible. At this time, the calibration feasibility determination unit 103 determines the presence or absence of a branch by comparing the distance in the vehicle width direction with the gauge D of the rails 20Lt and 20Rt for the first rail point cloud 30an.
[0043] In Fig. 4(b), a case where the distance 212 is greater than the branch threshold 214 is indicated by, for example, point 216. Also in Fig. 4(b), a case where the distance 212 is smaller than the branch threshold 214 is indicated by, for example, point 215. This prevents inaccurate estimation of external parameters when a branch occurs, even if only partially, in the acquired first rail point cloud 30an, and enables more accurate estimation of external parameters.
[0044] The calibration feasibility determination unit 103 may further have a function of setting the calibration feasibility signal to 0 if the parallelism between the rail detection result and the ground is below a predetermined threshold. In this embodiment, parallelism is an index that indicates the degree to which two planes are parallel. Specifically, the parallelism calculation method involves first calculating a first normal vector corresponding to the plane subtended by the first rail point group 30an. Next, a point cloud near the first rail point group 30an is extracted from the first sensor information, and the first rail point group 30an is removed from the extracted point cloud to calculate a second normal vector corresponding to the plane subtended by the remaining point cloud representing the ground. Finally, the parallelism is determined by performing absolute value processing on the reciprocal of the angle between the first normal vector and the second normal vector. In this case, the larger the parallelism value, the closer the plane is to being parallel. The point cloud near the first rail point group 30an refers to, for example, a point cloud located inside the left and right rails 20Lt and 20Rt.
[0045] Because the plane on which the first rail point cloud 30an is located and the plane on which the ground near the rails 20Lt and 20Rt is located are generally parallel, if the parallelism is small, the rail detection result may not be parallel to the ground, and the rail detection result may be invalid. If a threshold value is set for the parallelism and such invalid rail detection results are not used by the automatic calibration unit 104 based on the parallelism threshold judgment, more accurate calculation of external parameters becomes possible.
[0046] Next, the operation of the automatic calibration unit 104 will be described in detail. FIGS. 5A to 5D are diagrams showing the coordinate system used in the first embodiment and a method for estimating external parameters using the first rail point cloud 30an. FIG. 5A is a diagram showing the first sensor coordinate system. The first sensor coordinate system is a coordinate system based on the first sensor 101a. The rail detection unit 102 converts information expressed in the first sensor coordinate system into a vehicle-fixed coordinate system '40n ( FIG. 5B ) using external parameter design values, and performs rail detection. The vehicle-fixed coordinate system '40n is a coordinate system that transitions from the first sensor coordinate system using external parameter design values (rotation Rs2bn, translation ts2bn), and is a coordinate system slightly different from the vehicle-fixed coordinate system 40t ( FIG. 5C ).
[0047] Since the external parameters for performing the transformation between the first sensor coordinate system ( FIG. 5( a)) and the vehicle-fixed coordinate system 40t ( FIG. 5(c)) differ from the external parameter design values, a mismatch occurs between the vehicle-fixed coordinate system′ 40n ( FIG. 5(b)) and the vehicle-fixed coordinate system ( FIG. 5(c)). Estimating the external parameters means calculating the rotation Rbn2b and translation tbn2b for transforming from the vehicle-fixed coordinate system′ 40n ( FIG. 5(b)) to the vehicle-fixed coordinate system 40t ( FIG. 5(c)).
[0048] Next, the form of rail detection results in each coordinate system will be described. 301Ls, 301Rs are detection results of the left and right rails 20Lt, 20Rt in the first sensor coordinate system (FIG. 5(a)). Furthermore, left rail model 301Lbn and right rail model 301Rbn are rail detection results in the vehicle-fixed coordinate system'40n (FIG. 5(b)). Furthermore, left rail model 301Lbt and right rail model 301Rbt are the actual positions of the rails 20Lt, 20Rt in the vehicle-fixed coordinate system (FIG. 5(c)). As shown in FIG. 5(b), because the vehicle-fixed coordinate system'40n and the vehicle-fixed coordinate system 40t are different, the left rail model 301Lbn and the left rail model 301Lbt, and the right rail model 301Rbn and the right rail model 301Rbt do not match.
[0049] Here, the rotation and translation that transform the left rail model 301Lbn to the left rail model 301Lbt and the right rail model 301Rbn to the right rail model 301Rbt are the rotation Rbn2b and translation tbn2b from the vehicle-fixed coordinate system '40n (FIG. 5B) to the vehicle-fixed coordinate system 40t (FIG. 5C). Therefore, in this embodiment, the rotation Rbn2b and translation tbn2b are calculated to transform the first representative position pbn and the first three-axis direction vector (exbn, eybn, ezbn) of the first rail point cloud 30an in the vehicle-fixed coordinate system '40n (FIG. 5B) into the second representative position pb and the second representative three-axis direction vector (exb, eyb, ezb) corresponding to the first rail point cloud 30an in the vehicle-fixed coordinate system (FIG. 5C).
[0050] As a method for calculating the first representative position pbn, for example, an arbitrary x-direction position where the first rail point cloud 30an exists is set as the x-coordinate of the first representative position, and the first rail point cloud 30an within a predetermined yz range is extracted based on the x-coordinate of the first representative position, and this is set as the extracted first rail point cloud. A left rail model 301Lbn and a right rail model 301Rbn are estimated for the extracted first rail point cloud, and the y-coordinate of the first representative position is set as the midline between the left rail model 301Lbn and the right rail model 301Rb. Furthermore, the z-coordinate corresponding to the x-coordinate of the first representative position and the y-coordinate of the first representative position on the three-dimensional plane spanned by the left rail model 301Lbn and the right rail model 301Rb is set as the z-coordinate of the first representative position.
[0051] The first representative position pbn is set to any position in the x direction. However, based on the knowledge that the accuracy of angle estimation may be improved by using distant object detection information, the x coordinate may be set to use the more distant first rail point group 30an, thereby improving the accuracy of estimating external parameters related to angles.
[0052] As a method for calculating the first triaxial vector (exbn, eybn, ezbn), for example, the unit vector in the x-direction of the left rail model 301Lbn is defined as exbn, and the normal vector of the plane spanned by the left rail model 301Lbn and the right rail model 301Rb is defined as ezbn, and the unit vector eybn perpendicular to exbn and ezbn can be obtained by taking the cross product of exbn and ezbn.
[0053] Regarding the method of calculating the second representative position pb, first, in the case of a straight rail with no vehicle body inclination, the positions of the rails 20Lt and 20Rt in the vehicle-fixed coordinate system are known, so a vehicle-fixed coordinate system rail point cloud corresponding to the actual positions of the rails 20Lt and 20Rt in the vehicle-fixed coordinate system 40t is set. Next, the x-coordinate of the second representative position pb is defined as the x-coordinate of the first representative position pbn, assuming that the x-direction error between the vehicle-fixed coordinate system '40n (FIG. 5B) and the vehicle-fixed coordinate system 40t (FIG. 5C) is small. Furthermore, the first rail point cloud 30an within a predetermined range based on the x-coordinate of the first representative position pbn is extracted and defined as an ideal rail point cloud. The left rail model 301Lbt and the right rail model 301Rbt are estimated with respect to the ideal rail point cloud, and the y-coordinate of the second representative position pb is set on the midline between the left rail model 301Lbt and the right rail model 301Rt. Furthermore, the z coordinate corresponding to the x coordinate of the first representative position pbn on the three-dimensional plane spanned by the left rail model 301Lbt and the right rail model 301Rt and the y coordinate of the first representative position pbn is defined as the z coordinate of the second representative position pb.
[0054] Regarding the method of calculating the second three-axis vector (exb, eyb, ezb), for example, the unit vector in the x-direction of the left rail model 301Lbt is defined as exb, and the normal vector of the plane spanned by the left rail model 301Lbt and the right rail model 301Rt is defined as ezb, and the unit vector eyb perpendicular to exb and ezb can be obtained by taking the cross product of exb and ezb.
[0055] By solving the equations shown in Figure 5(d) using the first representative position pbn, first three-axis direction vector (exbn, eybn, ezbn), second representative position pb, and second three-axis direction vector (exb, eyb, ezb) obtained by the above method, it is possible to obtain the rotation Rbn2b and translation tbn2b for transforming from the vehicle-fixed coordinate system '40n (Figure 5(b)) to the vehicle-fixed coordinate system 40t (Figure 5(c)).
[0056] The above is an overview of the processing in the automatic calibration device 11a. By configuring such an automatic calibration device 11a, new targets are not required for detecting the rails 20Lt and 20Rt, and automatic calibration before and during travel is possible. Furthermore, since it is not a prerequisite that the vehicle body is reflected in the first sensor information, there is no problem even if the vehicle body is difficult to reflect in the first sensor 101a by using, for example, a sensor that monitors a distant object at a narrow angle.
[0057] Furthermore, because railways have long braking distances, long-distance object detection is required to stop the train without colliding with an object detected by a forward monitoring system. Regarding object position estimation errors due to errors in external parameters, if the vehicle's direction of travel is defined as x, the direction of the sleepers as y, and the direction perpendicular to these as z, the influence of yaw and pitch estimation errors increases with distance. Since these errors increase, distant objects cannot be accurately detected, so it is particularly important for railways to accurately estimate yaw and pitch angles. The rails 20Lt and 20Rt are objects that extend long in the x direction, and since there is a large amount of sensor information in the x-axis direction, rail detection accuracy in the x-axis direction is expected to be high. Therefore, an automatic calibration method utilizing rail detection is expected to accurately estimate external parameters in the x-axis direction. The external parameters related to the x-axis direction are the yaw angle and pitch angle, which must be estimated with high accuracy in railway forward monitoring. High-accuracy estimation of the yaw angle and pitch angle improves the first sensor 101a's ability to detect distant objects, enabling safer travel.
[0058] Furthermore, in conventional inclination estimation methods, the inclination calculation results fluctuate due to variable factors such as gradients, cant, and vibrations during travel, as well as vibrations caused by passenger movement when the vehicle is stationary. Even if the inclination estimation is replaced with extrinsic parameter estimation and conventional techniques are utilized, it is difficult to accurately estimate the extrinsic parameters in the presence of such variable factors. To accurately estimate the extrinsic parameters, measures to improve the accuracy of the results are required in addition to estimating the extrinsic parameters through rail detection. Furthermore, if the extrinsic parameters are defined as displacements relative to their design values, it is conceivable to estimate the extrinsic parameters based on the difference between the ideal rail position observed by a sensor and the actual position observed. However, the ideal rail position detected by rail detection differs depending on whether the vehicle is traveling on a curve or a straight line, making it difficult to calculate the ideal position.
[0059] In contrast, in this embodiment, by removing inappropriate rail point clouds when estimating the external parameters using the calibration feasibility determination unit 103, it is possible to eliminate factors of variation and enable highly accurate calibration. Furthermore, in this embodiment, rail detection is performed on the rails 20Lt and 20Rt in straight sections, making it easy to identify ideal positions during rail detection. Furthermore, by estimating the external parameters based on the three-axis rotation and translation of the first sensor 101a, it is possible to calculate more accurate external parameters. Therefore, the automatic calibration device 11a in this embodiment can contribute to reducing the cost of forward monitoring systems and improving safety during driving.
[0060] In the present embodiment, the method has been described in which the external parameters are estimated when the calibration feasibility signal is 1, and the first sensor 101a is calibrated each time. On the other hand, the external parameters when the calibration feasibility signal is 1 may be accumulated for a certain number of frames, and a representative value of the estimated values of the external parameters over the certain number of frames may be used as the external parameter for calibration, thereby improving the estimation accuracy of the external parameters.
[0061] FIG. 6 is a diagram showing the number of accumulated frames of external parameter estimation results on the horizontal axis and the external parameter estimation results on the vertical axis. FIG. 6 also shows the external parameter estimation results for each iteration as result 302, and also shows a schematic representation of the result 303, which is the calculated median of the accumulated external parameter estimation results. As a specific example, FIG. 6 shows a case where the vertical axis represents y-direction translation ty, but the same applies to x-direction translation tx and z-direction translation tz. In the above example, the calibration feasibility determination unit 103 can exclude a certain number of curved rails and noisy rail detection results. However, a phenomenon in which a straight line that has high linearity but is not a rail is erroneously detected as a rail occurs, albeit infrequently. It is difficult to exclude such erroneous detection results by linearity determination. In this case, fluctuations occur in the calculated external parameters, as shown by 304 in FIG. 6, leading to a decrease in calibration accuracy.
[0062] To prevent degradation of calibration accuracy due to such events, a certain number of frames of data are accumulated as shown in result 303, and a representative value is used as the external parameter for calibration. This eliminates low-frequency events that appear as outliers, enabling more accurate estimation of the external parameters. For the representative value, for example, a median value, which is less susceptible to the influence of outliers, can be used. In this case, the automatic calibration unit 104 records the triaxial rotation and translation of the first sensor 101a at multiple times and outputs the median values of the triaxial rotation and translation of the first sensor 101a at the multiple times. The sensor information correction unit 105 uses the output median value to correct the first sensor information.
[0063] Alternatively, there is a method in which a fixed number of frames is set as the value fs when the fluctuation of the representative value becomes small, and this is determined by trial and error when the automatic calibration device 11a is introduced, or the number of accumulated frames is increased by a predetermined value, and then the value fs is determined based on the number of accumulated frames when the increase or decrease in the representative value converges within a certain range.
[0064] In this embodiment, a method for calculating the coordinate transformation between the first sensor coordinate system for one first sensor 101a and the vehicle-fixed coordinate system 40t has been described. However, by applying this method to multiple sensors capable of detecting the rails 20Lt and 20Rt and calculating the rotation and translation from each sensor to the vehicle-fixed coordinate system, it is possible to more accurately integrate the multiple sensors into the vehicle-fixed coordinate system 40t. Furthermore, this method has the advantage that the external parameters can be estimated independently for each sensor, making it possible to estimate the external parameters even when the sensor visibility ranges do not overlap. Therefore, this method enables more accurate automatic calibration in a system using multiple sensors without installing new targets, thereby reducing calibration costs and enabling safer vehicle travel in a system using a forward monitoring device. Although this embodiment describes a calibration method using rail detection, parallel objects may be detected instead of the rails 20Lt and 20Rt. For example, two parallel upright overhead poles whose positions relative to the vehicle 10 are known can be detected by the first sensor 101a and used instead of the first rail point cloud 30an. In this case, calibration can be performed by the rail detection unit 102 detecting a first overhead line pole point cloud, which is a point cloud corresponding to two overhead line poles standing upright in parallel.
[0065] Second Embodiment In the first embodiment, a method for estimating the external parameters of the first sensor 101a was described, in which the results of straight rail detection were compared with the ideal rail straightness in the vehicle-fixed coordinate system 40t. On the other hand, if it is not necessary to calculate the mounting position and angle of each sensor relative to the design sensor mounting angle, a method may be used in which the first rail detection results detected by the first sensor 101a and the second rail detection results detected by a second sensor 101b, which is different from the first sensor 101a, are used to integrate the information from each sensor in a second vehicle-fixed coordinate system'. This method will be described below as the second embodiment.
[0066] FIG. 7 is a diagram showing the overall configuration of a sensor correction system 1b according to the second embodiment. The illustrated sensor correction system 1b is similar to the sensor correction system 1a according to the first embodiment shown in FIG. 1 except that a second sensor 101b is added to the automatic calibration device 11b. FIG. 7 also illustrates a first rail point cloud 30an as first sensor information obtained by detecting the left and right rails 20Lt and 20Rt using the first sensor 101a. FIG. 7 also illustrates a second rail point cloud 30bn as second sensor information obtained by detecting the left and right rails 20Lt and 20Rt using the second sensor 101b. This can also be said to illustrate the first rail point cloud 30an expressed in a first vehicle-fixed coordinate system '40an and the second rail point cloud 30bn expressed in a second vehicle-fixed coordinate system '40bn. Since the external parameters of the first sensor 101a and the second sensor 101b each have an error with respect to the design value, the first rail point cloud 30an and the second rail point cloud 30bn do not match, as shown in Fig. 7. In this embodiment, external parameters are estimated and the first sensor information is corrected in order to integrate the first sensor information expressed in the first vehicle-fixed coordinate system '40an into the second vehicle-fixed coordinate system '40bn.
[0067] In this embodiment, the rail detection unit 102 estimates the first rail point cloud 30an using information from the first sensor 101a, and further estimates the second rail point cloud 30bn using information from the second sensor 101b. The calibration feasibility determination unit 103 calculates a first straightness based on the first rail point cloud 30an and a second straightness based on the second rail point cloud 30bn according to the method described in the first embodiment. Then, if both the first straightness and the second straightness are equal to or greater than a predetermined threshold, the calibration feasibility determination unit 103 sets a calibration feasibility signal to 1 and causes the automatic calibration unit 104 to estimate the external parameters. On the other hand, if at least one of the first straightness and the second straightness is less than the predetermined threshold, the calibration feasibility determination unit 103 sets the calibration feasibility signal to 0 and does not cause the automatic calibration unit 104 to estimate the external parameters. In the second embodiment, the reference rail point cloud is a second rail point cloud 30bn that is detected based on second sensor information acquired by a second sensor 101b and represents the positions of the rails 20Lt and 20Rt. The calibration feasibility determination unit 103 determines whether calibration is possible based on the difference between the first straightness and a second straightness that represents the degree of straightness with respect to the second rail point cloud 30bn.
[0068] 8A to 8E are diagrams illustrating the operation of the automatic calibration unit 104 in the second embodiment. FIG. 8 illustrates the coordinate systems used in this embodiment and the method for estimating external parameters by the automatic calibration unit 104. First, the coordinate systems will be described. The first sensor coordinate system ( FIG. 8A ) is a coordinate system based on the first sensor 101a. The rail detection unit 102 converts information expressed in the first sensor coordinate system into a first vehicle-fixed coordinate system′ ( FIG. 8B ) using external parameter design values, and performs rail detection. The first vehicle-fixed coordinate system′ is a coordinate system that is converted and transitioned from the first sensor coordinate system to the first vehicle-fixed coordinate system′ ( FIG. 8B ) using external parameter design values (rotation Rs12bn1, translation ts12bn1). The second sensor coordinate system ( FIG. 8C ) is a coordinate system based on the second sensor 101b. The rail detection unit 102 converts information expressed in the second sensor coordinate system into a second vehicle-fixed coordinate system' (FIG. 8(d)) using the external parameter design values, and performs rail detection. The second vehicle-fixed coordinate system' is a coordinate system that is converted and transitioned from the second sensor coordinate system to the second vehicle-fixed coordinate system' using the external parameter design values (rotation Rs22bn2, translation ts22bn2).
[0069] Next, the form of rail detection results in each coordinate system will be described. 401Ls and 401Rs are detection results of the left and right rails 20Lt and 20Rt in the first sensor coordinate system ( FIG. 8( a)). Furthermore, left rail model 401Lbn and right rail model 401Rbn are rail detection results in the first vehicle-fixed coordinate system' ( FIG. 8( b)). Furthermore, 402Ls and 402Rs are detection results of the left and right rails 20Lt and 20Rt in the second sensor coordinate system ( FIG. 8( c)). Furthermore, left rail model 402Lbn and right rail model 402Rbn are rail detection results in the second vehicle-fixed coordinate system' ( FIG. 8( d)). Because the first vehicle-fixed coordinate system' and the second vehicle-fixed coordinate system' are different, 401Lbn and 402Lbn, and 401Rbn and 402Rbn do not match.
[0070] Here, the rotation and translation that convert 401Lbn to 402Lbn and 401Rbn to 402Rbn are rotation Rbn12bn2 and translation tbn12bn2 from the first vehicle-fixed coordinate system' to the second vehicle-fixed coordinate system'. Therefore, in this embodiment, a rotation Rbn12bn2 and translation tbn12bn2 are calculated to convert the first representative position pbn1 and first three-axis direction vector (exbn1, eybn1, ezbn1) of the first rail point cloud 30an in the first vehicle-fixed coordinate system' into a second representative position pbn2 and second three-axis direction vector (exbn2, eybn2, ezbn2) corresponding to the second rail point cloud 30bn in the second vehicle-fixed coordinate system'.
[0071] As a method for calculating the first representative position pbn1, for example, an arbitrary x-direction position where the first rail point cloud 30an exists is set as the x-coordinate of the first representative position, and the first rail point cloud 30an within a predetermined range is extracted based on the x-coordinate of the first representative position, and this is set as the extracted first rail point cloud. A left rail model 401Lbn and a right rail model 401Rbn are estimated for the extracted first rail point cloud, and the y-coordinate of the first representative position is set as the midline between the left rail model 401Lbn and the right rail model 401Rb. Furthermore, the z-coordinate corresponding to the x-coordinate of the first representative position and the y-coordinate of the first representative position on the three-dimensional plane spanned by the left rail model 401Lbn and the right rail model 401Rb is set as the z-coordinate of the first representative position.
[0072] As a method for calculating the first triaxial vector (exbn1, eybn1, ezbn1), for example, the unit vector in the direction of the left rail model 401Lbn is defined as exbn1, and the normal vector of the plane spanned by the left rail model 401Lbn and the right rail model 401Rb is defined as ezbn1, and the unit vector eybn1 perpendicular to exbn1 and ezbn1 can be obtained by taking the cross product of exbn1 and ezbn1.
[0073] The method for calculating the second representative position pbn2 is as follows: The x-coordinate of the first representative position is defined as the x-coordinate of the second representative position, assuming that the x-direction error between the first vehicle-fixed coordinate system and the second vehicle-fixed coordinate system is small. Furthermore, a second rail point cloud 30bn within a predetermined range is extracted based on the x-coordinate of the second representative position, and this is defined as the extracted second rail point cloud. The left rail model 402Lbn and the right rail model 402Rbn are estimated from the extracted second rail point cloud, and the y-coordinate of the second representative position is defined as the midline between the left rail model 402Lbn and the right rail model 402Rb. Furthermore, the z-coordinate corresponding to the x-coordinate of the second representative position and the y-coordinate of the second representative position on the three-dimensional plane spanned by the left rail model 402Lbn and the right rail model 402Rb is defined as the z-coordinate of the second representative position.
[0074] As a method for calculating the second triaxial vector (exbn2, eybn2, ezbn2), for example, the unit vector in the direction of the left rail model 402Lbn is defined as exbn2, and the normal vector of the plane spanned by the left rail model 402Lbn and the right rail model 402Rb is defined as ezbn2, and the unit vector eybn2 perpendicular to exbn2 and ezbn2 can be obtained by taking the cross product of exbn2 and ezbn2.
[0075] By solving the equations shown in Figure 8(e) using the first representative position pbn1, first three-axis direction vector (exbn1, eybn1, ezbn1), second representative position pbn2, and second three-axis direction vector (exbn2, eybn2, ezbn2) obtained by the above method, it is possible to obtain the rotation Rbn12bn2 and translation tbn12bn2 for transforming from the first vehicle-fixed coordinate system' to the second vehicle-fixed coordinate system.
[0076] The above is the method for calculating extrinsic parameters using the first rail point cloud 30an and the second rail point cloud 30bn. According to the above method, the extrinsic parameters of the first sensor 101a can be calculated by rail detection, enabling highly accurate automatic calibration without installing a new target. This reduces the calibration cost in a system using a forward monitoring device and enables safer vehicle travel.
[0077] In this embodiment, calibration is based on the detection results of a straight rail, but in the second embodiment using the first rail point cloud 30an and the second rail point cloud 30bn, the first rail point cloud 30an and the second rail point cloud 30bn may be curved rails. If the actual rails 20Lt, 20Rt are curved, there is a method of calculating rotation and translation by, for example, iterative closest point (ICP) matching between the first rail point cloud 30an and the second rail point cloud 30bn.
[0078] Third Embodiment In the first and second embodiments, when the first sensor 101a in the rail detection unit 102 detects two-dimensional images, the two-dimensional rail detection results are converted into a three-dimensional rail point cloud, and the automatic calibration unit 104 estimates the external parameters. When converting a two-dimensional rail point cloud detected by a monocular camera into a three-dimensional image, it is difficult to estimate the depth direction without making assumptions such as a constant gradient and no roll rotation around the x-axis. Therefore, it is not easy to obtain an accurate three-dimensional point cloud. If errors in converting two-dimensional rail detection results from a monocular camera into three-dimensional images prevent the target performance of the external parameter estimation results from being met, a method that does not involve three-dimensional conversion must be considered. The third embodiment was developed in consideration of the above-mentioned problems. For monocular camera information that is difficult to convert accurately into three-dimensional images, external parameters are estimated on two-dimensional images.
[0079] 9 is a flowchart showing the operation of the automatic calibration device 11a when monocular camera information is used as the first sensor information. First, the rail detection unit 102 acquires monocular camera information as the first sensor information (S201). Next, the rail detection unit 102 performs rail detection on a two-dimensional image (S202). Next, the rail detection unit 102 calculates a three-dimensional rail point cloud using the rail detection results on the two-dimensional image, and also acquires a two-dimensional rail point cloud using the rail detection results on the two-dimensional image and stores it for use by the automatic calibration unit 104 (S203).
[0080] Next, the calibration feasibility determination unit 103 calculates the straightness based on the three-dimensional rail point cloud information (S204), and calculates a calibration feasibility signal (S205). The operation of the calibration feasibility determination unit 103 is the same as in the first embodiment.
[0081] As mentioned above, converting a two-dimensional rail point cloud into a three-dimensional image can result in inaccuracies. However, because the three-dimensional point cloud converted from the two-dimensional point cloud has a uniform difference in angles, such as roll angle, compared to a correct three-dimensional point cloud that has been accurately converted into a three-dimensional image by some means, the relative positional relationships between points within the point cloud can be considered to be maintained. Therefore, if the three-dimensional point cloud converted from the two-dimensional point cloud is curved, the correct three-dimensional point cloud will also be curved. If the three-dimensional point cloud converted from the two-dimensional point cloud is high in noise, the correct three-dimensional point cloud will also be high in noise, and the linearity will be the same. Therefore, there is no problem with threshold determination using linearity using the method described in the first embodiment.
[0082] Next, the automatic calibration unit 104 determines whether the calibration feasibility signal is 1 (S206). If the calibration feasibility signal is 1 (Yes in S206), the automatic calibration unit 104 captures the point cloud 30at corresponding to the actual positions of the rails 20Lt and 20Rt as the second rail point cloud 30bn (S207). The automatic calibration unit 104 then estimates external parameters by matching the first rail point cloud 30an with the second rail point cloud 30bn on the two-dimensional image (S208). Furthermore, the sensor information correction unit 105 corrects the first sensor information (S209). On the other hand, if the calibration feasibility signal is 0 (No in S206), the first sensor information is not corrected, and the series of processes ends.
[0083] The second rail point cloud 30bn may be an ideal three-dimensional rail point cloud as in the first embodiment, or may be estimated by the second sensor 101b as in the second embodiment. The third embodiment shows a specific example in which an ideal rail point cloud is used as the second rail point cloud 30bn in this embodiment.
[0084] 10(a) to 10(c) are diagrams showing details of the operation of S208 in FIG. 9 and the definition of the coordinate system to be used. The image coordinate system (FIG. 10(c)) is a two-dimensional Cartesian coordinate system with the origin at, for example, the upper left of the image. By using the design values of the camera mounting position and attitude, the camera matrix, and the like, points on the image coordinate system are transformed into a vehicle-fixed coordinate system' (FIG. 10(b)), which is slightly different from the vehicle-fixed coordinate system. In this embodiment, the external parameters to be estimated are the rotation Rcbn2b and translation tcbn2b from the vehicle-fixed coordinate system' (FIG. 10(b)) to the vehicle-fixed coordinate system (FIG. 10(a)).
[0085] In this embodiment, to estimate rotation and translation by matching in a two-dimensional image coordinate system, the automatic calibration unit 104 first sets ideal rail point clouds 601Lb and 601Rb in a vehicle-fixed coordinate system, as in the first embodiment. Then, the automatic calibration unit 104 calculates rail point clouds 601Lbn and 601Rbn by transforming them into a vehicle-fixed coordinate system' using rotation Rb2cbn and translation tb2cbn, which are inverse transforms of rotation Rcbn2b and translation tcbn2b. Furthermore, the automatic calibration unit 104 transforms the rail point clouds 601Lbn and 601Rbn into an image coordinate system using external parameter design information of the first sensor 101a, a camera matrix, and the like, to obtain 601Lc and 601Rc. Since the rotation Rb2cbn and the translation tb2cbn are indefinite, 601Lc and 601Rc are functions of the rotation Rb2cbn and the translation tb2cbn.
[0086] The automatic calibration unit 104 calculates, by numerical calculation, the rotation Rb2cbn and translation tb2cbn such that the above 601Lc and 601Rc coincide with the two-dimensional rail point clouds 602Lc and 602Rc detected in the image coordinate system. The numerical calculation method may be a commonly used optimization algorithm such as the steepest descent method or simulated annealing.
[0087] In the third embodiment, the first rail point cloud 30an represents the two-dimensional positions of the rails 20Lt and 20Rt, and the automatic calibration unit 104 converts the reference rail point cloud (in this case, the second rail point cloud 30bn) into an image coordinate system including the first rail point cloud 30an to obtain a two-dimensional reference rail point cloud (the second rail point cloud 30bn), and calculates three-axis rotation and translation to match the first rail point cloud 30an with the two-dimensional reference rail point cloud.
[0088] In this embodiment, there is no angular error in the rail point cloud that occurs when converting a point cloud on a two-dimensional image into a three-dimensional image, so it is expected that more accurate estimation results for the external parameters can be obtained, enabling safer vehicle travel.
[0089] [Fourth embodiment] In the first to third embodiments, the linearity of the rail point cloud is calculated to prevent the rail point cloud including a curved section from being used by the automatic calibration unit 104. In addition to the above, the fourth embodiment shows a method for identifying in advance areas where the rail point cloud includes a curved section and where estimating the external parameters is difficult, thereby more reliably estimating the external parameters.
[0090] Fig. 11 is a diagram showing the overall configuration of a sensor correction system 1c according to the fourth embodiment. The illustrated sensor correction system 1c differs from the sensor correction system 1a according to the first embodiment shown in Fig. 1 in that a railway digital map 106, a track location estimation sensor 107, and a track location estimation unit 108 are added to an automatic calibration device 11c, but the rest is the same.
[0091] The railway digital map 106 is a database that includes at least information for determining whether external parameters at points corresponding to the track location in the section on which the vehicle 10 travels can be estimated, such as the curvature and the presence or absence of a branch at the point. The track location estimation sensor 107 is a sensor required for estimating the track location of the vehicle 10, and examples thereof include a railway ground coil receiver, an encoder that measures the number of wheel rotations, and a GNSS (Global Navigation Satellite System) receiver. The track location estimation unit 108 has a function of calculating the track location of the vehicle based on the information acquired by the track location estimation sensor 107.
[0092] 12(a) and 12(b) are diagrams illustrating a digital railway map 106 and a method for determining whether external parameters can be estimated using the digital railway map 106. FIG. 12(a) is a diagram illustrating a specific example of the digital railway map 106. The digital railway map 106 records the curvature of the rails and the presence or absence of a branch for each track location (kilometers [km]) along the median line 701 of the left and right rails 20Lt and 20Rt. For example, position 703a is a straight track with a distance of 1.0 km, a curvature of 0, and no branch (0 indicates no branch, 1 indicates branch). The diagonally shaded section of region 702a indicates that the curvature and branch information are the same as those of position 703a. Position 703b is a point where a branch occurs and the track is curved, and information indicating a curvature of 0.0016 and the presence of a branch is stored. Furthermore, position 703c is a straight track with a distance of 2.5 km, a curvature of 0, and no branch. The hatched section of region 702b indicates that the curvature and branch information are the same as those of position 703c.
[0093] 12(b) is a diagram showing a method for determining whether or not external parameters can be estimated using the railway digital map 106. For example, when the vehicle 10 is present at position 705a and a section of area 706 where rail detection is possible is included in area 702a, it is guaranteed that all areas where rail detection is possible are straight tracks. This can be said to mean that the calibration feasibility determination unit 103 determines that calibration is possible when the first rail point cloud 30an is included in a calibration possible section, based on a map (in this case, the railway digital map 106) that includes the relationship between the on-rail position of the vehicle 10 and the calibration possible section.
[0094] On the other hand, if the section of the area 706 where rail detection is possible is not included in the area 702a, but includes a section where the curvature exceeds a predetermined threshold or a section where a branch exists, such as at position 703b, the calibration feasibility determination unit 103 sets the calibration feasibility signal to 0. This makes it possible to prevent a rail point cloud including a curve or branch from being used by the automatic calibration unit 104. This is expected to result in more accurate estimation results of the external parameters, enabling safer vehicle travel.
[0095] Furthermore, if the calibration feasibility determination unit 103 determines that the straightness is below a predetermined threshold even though the road ahead of the vehicle 10 is a straight line on which calibration can be performed, such as a straight section that is not a branch, the calibration feasibility determination unit 103 may set the calibration feasibility signal to 0 and issue an alert indicating that a sensor abnormality exists. In this case, it can also be said that the calibration feasibility determination unit 103 issues a sensor abnormality signal when the first straightness is a value indicating that calibration is not possible and the first rail point cloud 30an is included in a section on which calibration is possible. Adding a function to issue an alert to the calibration feasibility determination unit 103 enables the sensor abnormality to be detected and reflected in the operation of the vehicle 10, thereby enabling safer vehicle travel.
[0096] Fifth Embodiment If the rotation and translation of each sensor relative to a vehicle-fixed coordinate system can be calculated by the method described in the first embodiment, it is possible to compare the design values and current values of the rotation and translation of each sensor and detect sensor installation abnormalities. In the fifth embodiment, which takes this into consideration, the design values and the calibration results of the first embodiment are used to detect sensor installation abnormalities.
[0097] Fig. 13 is a diagram showing the overall configuration of a sensor correction system 1d according to the fifth embodiment. The sensor correction system 1d shown in the figure differs from the sensor correction system 1a according to the first embodiment shown in Fig. 1 in that a sensor installation abnormality detection unit 109 is added to an automatic calibration device 11d, but the rest is the same.
[0098] The sensor mounting abnormality detection unit 109 determines that the sensor mounting angle is abnormal when the three-axis rotation and translation calculated by the automatic calibration unit 104 exceed predetermined thresholds. The external parameters of the first sensor 101a output by the automatic calibration unit 104 are input to the sensor mounting abnormality detection unit 109. The sensor mounting abnormality detection unit 109 has a function of calculating the difference between the external parameters of the first sensor 101a output by the automatic calibration unit 104 and the external parameter design values of the first sensor 101a as an abnormality degree for each coordinate axis (two or three translational axes and three rotational axes), and determining that the sensor mounting abnormality exists when the abnormality degree exceeds a predetermined threshold.
[0099] As described in the second embodiment, it is also possible to determine a sensor installation abnormality using the first sensor 101a and the second sensor 101b and the estimation result of the first two-way extrinsic parameter between the first sensor 101a and the second sensor 101b. In this case, a third sensor different from the first sensor 101a and the second sensor 101b is used, and the automatic calibration unit 104 further obtains the estimation result of the first four-way extrinsic parameter between the first sensor 101a and the third sensor. Next, if an element of the estimation result of the first two-way extrinsic parameter exceeds a predetermined threshold and an element of the estimation result of the first four-way extrinsic parameter also exceeds a predetermined threshold, it can be determined that there is an installation abnormality in the first sensor 101a.
[0100] In this case, the sensor installation abnormality detection unit 109 can also be said to determine that there is a sensor installation angle abnormality when the three-axis rotation and translation obtained from the first rail point cloud 30an and the reference rail point cloud as the second rail point cloud 30bn, which is detected based on the second sensor information acquired by the second sensor 101b and represents the positions of the rails 20Lt, 20Rt, and the three-axis rotation and translation obtained from the first rail point cloud 30an and the third rail point cloud, which is detected based on the third sensor information acquired by the third sensor and represents the positions of the rails 20Lt, 20Rt, all exceed predetermined threshold values.
[0101] According to the fifth embodiment, it is possible to detect an abnormality in the mounting angle of each sensor in a section where rail detection is possible with a predetermined straightness or more. Therefore, failure to detect a forward object due to an abnormal mounting angle can be prevented, enabling safer driving.
[0102] In the above detailed embodiment, automatic calibration is described, and a case where calibration is performed automatically is described, but the present invention is not limited to this, and calibration may also be performed manually. Furthermore, in the above detailed embodiment, straightness is an index for evaluating whether the rail point cloud is a straight line or not, and the degree of variation in the rail point cloud data, but if sufficient accuracy can be ensured to determine a straight rail simply by determining whether the rail point cloud is a straight line, the degree of variation in the rail point cloud data does not necessarily need to be taken into consideration.
[0103] <Explanation of Correction Method> The processes performed by the automatic calibration devices 11a to 11d described above are realized by the cooperation of software and hardware resources. That is, a processor within a computer provided in each of the automatic calibration devices 11a to 11d loads software that realizes each of the above-mentioned functions into memory and executes it, thereby realizing each of these functions.
[0104] Therefore, the processing performed by the automatic calibration devices 11a to 11d can be considered to be a correction method in which the processor executes software recorded in memory to detect a first rail point cloud 30an representing the positions of the rails 20Lt, 20Rt based on the first sensor information acquired by the first sensor 101a, and determines whether the first sensor 101a can be calibrated based on a first straightness representing the degree of straightness relative to the first rail point cloud 30an.If it is determined that calibration is possible, the first sensor information is corrected based on the first rail point cloud 30an and a reference rail point cloud that represents the three-dimensional positions of the rails 20Lt, 20Rt and is different from the first rail point cloud 30an.
[0105] Although the present embodiment has been described above, the technical scope of the present invention is not limited to the scope described in the above embodiment. It is clear from the claims that various modifications and improvements to the above embodiment are also included in the technical scope of the present invention.
[0106] 1a to 1d...sensor correction system, 11a to 11c...automatic calibration device, 20Lt, 20Rt...rail, 30an...first rail point cloud, 30at...point cloud, 101a...first sensor, 101b...second sensor, 102...rail detection unit, 103...calibration feasibility determination unit, 104...automatic calibration unit, 105...sensor information correction unit, 106...railway digital map, 107...sensor for estimating track location, 108...track location estimation unit, 109...sensor installation abnormality detection unit
Claims
1. A correction device having: a rail detection unit that detects a first rail point cloud representing a rail position based on first sensor information acquired by a first sensor; a calibration feasibility determination unit that determines whether or not the first sensor can be calibrated based on a first straightness that represents the degree of straightness with respect to the first rail point cloud; and a sensor information correction unit that, when it is determined by the calibration feasibility determination unit that calibration is possible, corrects the first sensor information based on the first rail point cloud and a reference rail point cloud that represents the three-dimensional position of the rail and is different from the first rail point cloud.
2. The correction device according to claim 1, wherein the first straightness represents the degree of variation for the first rail point group in addition to the degree of straightness.
3. The correction device according to claim 2, wherein the calibration feasibility determination unit determines the first straightness based on an average value of distances between a rail straight line model estimated by extracting straight lines from the first rail point cloud and points included in the first rail point cloud.
4. The correction device described in claim 3, wherein the calibration feasibility determination unit determines a first distance average value and a second distance average value as the average value for each of a pair of rails, and sets the reciprocal of the average value of the first distance average value and the second distance average value as the first straightness.
5. The correction device according to claim 1, wherein the calibration feasibility determination unit determines whether or not a branch is present from the first rail point cloud, and determines that calibration is not possible if a branch is present.
6. A correction device according to claim 5, wherein the calibration feasibility determination unit determines the presence or absence of a branch by comparing the distance in the vehicle width direction and the gauge for the first rail point cloud.
7. The correction device according to claim 1, wherein the reference rail point cloud is a second rail point cloud detected based on second sensor information acquired by a second sensor and representing the position of the rail.
8. The correction device according to claim 7, wherein the calibration feasibility determination unit determines whether calibration is possible based on the difference between the first straightness and a second straightness representing the degree of straightness with respect to the second rail point group.
9. A correction device as described in claim 1, further comprising a calibration unit that, when the calibration feasibility determination unit determines that calibration is possible, uses the first rail point cloud and the reference rail point cloud to determine the three-axis rotation and translation of the first sensor, and the sensor information correction unit corrects the first sensor information using the three-axis rotation and the translation determined by the calibration unit.
10. The correction device described in claim 9, wherein the calibration unit records the three-axis rotation and the translation of the first sensor at multiple times and outputs a median value of the three-axis rotation and the translation of the first sensor at the multiple times, and the sensor information correction unit corrects the first sensor information using the output median value.
11. The correction device described in claim 9, wherein the first rail point cloud represents a two-dimensional position of a rail, and the calibration unit converts the reference rail point cloud into an image coordinate system including the first rail point cloud to obtain the two-dimensional reference rail point cloud, and calculates the three-axis rotation and the translation to match the first rail point cloud with the two-dimensional reference rail point cloud.
12. A correction device as described in claim 9, further comprising a sensor mounting abnormality detection unit which determines that the sensor mounting angle is abnormal if the three-axis rotation and the translation determined in the calibration unit exceed a predetermined threshold value.
13. The correction device described in claim 12, wherein the sensor installation abnormality detection unit determines that a sensor installation angle is abnormal when the three-axis rotation and the translation calculated from the first rail point cloud and a reference rail point cloud which is detected based on second sensor information acquired by a second sensor and serves as a second rail point cloud representing the position of the rail, and the three-axis rotation and the translation calculated from the first rail point cloud and a third rail point cloud which is detected based on third sensor information acquired by a third sensor and represents the position of the rail, all exceed predetermined threshold values.
14. A correction device as described in claim 1, wherein the calibration feasibility determination unit determines that calibration is possible when the first rail point cloud is included in a calibration possible section based on a map including a relationship between the vehicle's on-track position and a calibration possible section.
15. The correction device according to claim 14, wherein the calibration feasibility determination unit issues a sensor abnormality signal when the first straightness is a value that does not permit calibration and the first rail point group is included in a calibration possible section.
16. The correction device according to claim 1, wherein the rail detection unit detects a first overhead pole point cloud instead of the first rail point cloud.
17. A correction method in which a processor executes software recorded in a memory to detect a first rail point cloud representing the position of a rail based on first sensor information acquired by a first sensor, judge whether or not the first sensor can be calibrated based on a first straightness representing the degree of straightness with respect to the first rail point cloud, and if it is determined that calibration is possible, correct the first sensor information based on the first rail point cloud and a reference rail point cloud that represents the three-dimensional position of the rail and is different from the first rail point cloud.
Citation Information
Patent Citations
Camera calibration apparatus
JP2013002820A
Vehicle body inclination estimating device
JP2019023017A
Camera optical system distortion determination device, camera optical system distortion determination method, and program for performing camera optical system distortion determination
JP2022054649A
Forward monitoring device and method for calibrating forward monitoring device
WO2021044564A1
