CN101915852B - Velocity Measurement Method Based on Stereo Vision - Google Patents
Velocity Measurement Method Based on Stereo Vision Download PDFInfo
- Publication number
- CN101915852B CN101915852B CN2010102480240A CN201010248024A CN101915852B CN 101915852 B CN101915852 B CN 101915852B CN 2010102480240 A CN2010102480240 A CN 2010102480240A CN 201010248024 A CN201010248024 A CN 201010248024A CN 101915852 B CN101915852 B CN 101915852B
- Authority
- CN
- China
- Prior art keywords
- carrier
- speed
- measurement
- running
- time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000691 measurement method Methods 0.000 title claims description 7
- 238000005259 measurement Methods 0.000 claims abstract description 51
- 238000000034 method Methods 0.000 claims abstract description 42
- 230000001133 acceleration Effects 0.000 claims abstract description 16
- 239000003550 marker Substances 0.000 claims abstract description 11
- 238000001914 filtration Methods 0.000 claims abstract description 5
- 238000005070 sampling Methods 0.000 claims description 20
- 238000004364 calculation method Methods 0.000 claims description 9
- 230000004927 fusion Effects 0.000 claims description 6
- 238000009434 installation Methods 0.000 claims description 5
- 230000005484 gravity Effects 0.000 claims description 3
- 230000009466 transformation Effects 0.000 claims description 3
- 230000003068 static effect Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000000295 complement effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000002123 temporal effect Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 239000000969 carrier Substances 0.000 description 1
- 150000001875 compounds Chemical class 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000013178 mathematical model Methods 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Navigation (AREA)
- Length Measuring Devices With Unspecified Measuring Means (AREA)
Abstract
Description
技术领域 technical field
本发明属于轨道交通技术领域,特别涉及一种基于立体视觉的速度测量方法。The invention belongs to the technical field of rail transit, in particular to a speed measurement method based on stereo vision.
背景技术 Background technique
速度是火车驾驶和安全控制的一个重要数据,其准确性及可靠性决定列车的运行质量。目前,列车的运行速度主要是通过直接或间接地对车轮计数来测量,然后根据车轮周长及单位时间内车轮的转数计算出列车的速度。这种方法的准确度受轮径磨耗及轮轨间相对滑动的影响。现有的一些复合测速方法虽然融合了一些传感器的数据,但是基于车轮计数的测量数据还是其进行速度估计的主要依据,因此其准确度仍然受轮径磨耗及轮轨间相对滑动的影响。Speed is an important data for train driving and safety control, and its accuracy and reliability determine the running quality of the train. At present, the running speed of the train is mainly measured by directly or indirectly counting the wheels, and then the speed of the train is calculated according to the circumference of the wheels and the number of revolutions of the wheels per unit time. The accuracy of this method is affected by wheel diameter wear and relative slip between wheel and rail. Although some existing compound speed measurement methods have fused the data of some sensors, the measurement data based on the wheel count is still the main basis for speed estimation, so its accuracy is still affected by the wear of the wheel diameter and the relative slip between the wheel and the rail.
因此,基于车轮计数的测速方法虽然原理简单、容易实现,但是其测量精度容易受到轮径变化、车轮空转、打滑影响。而且,空转和打滑的时机以及由此引发的误差很难用数学的方法进行描述,从而其影响也无法通过复杂的数学处理和融合滤波的方式消除。Therefore, although the speed measurement method based on wheel counting is simple in principle and easy to implement, its measurement accuracy is easily affected by wheel diameter changes, wheel idling, and slippage. Moreover, the timing of idling and slipping and the resulting errors are difficult to describe mathematically, so their influence cannot be eliminated through complex mathematical processing and fusion filtering.
发明内容 Contents of the invention
(一)要解决的技术问题(1) Technical problems to be solved
本发明要解决的技术问题其一是,如何消除车轮空转、打滑对速度测量精度的影响;其二是如何实现低噪声、实时的速度测量。One of the technical problems to be solved by the present invention is how to eliminate the influence of wheel idling and skidding on the speed measurement accuracy; the other is how to realize low-noise and real-time speed measurement.
(二)技术方案(2) Technical solution
为解决上述技术问题,本发明提供了一种基于立体视觉的速度测量方法,包括以下步骤:In order to solve the problems of the technologies described above, the invention provides a speed measurement method based on stereo vision, comprising the following steps:
S1,实施基于视频的速度计算方法:采集载体运行时前方静止标识物的图像,根据图像信息在空间和时间上的相关性,通过在空间维度和时间维度对图像进行处理,得到载体的运行速度的测量值 S1, implement the video-based speed calculation method: collect the image of the stationary marker in front of the carrier when it is running, and obtain the running speed of the carrier by processing the image in the space and time dimensions according to the correlation of image information in space and time measured value of
S2,实施融合算法:测量载体运行轨道的坡度φ的变化率ω,并测量载体运行方向的加速度ax,利用运行速度的测量值变化率ω以及加速度ax建立进行载体运行速度估计的过程模型和测量模型,然后根据该过程模型和测量模型利用卡尔曼滤波算法估计出载体的运行速度作为最终结果。S2, implement the fusion algorithm: measure the change rate ω of the slope φ of the carrier’s running track, and measure the acceleration a x in the running direction of the carrier, and use the measured value of the running speed The rate of change ω and the acceleration a x establish a process model and a measurement model for estimating the carrier's running speed, and then use the Kalman filter algorithm to estimate the carrier's running speed as the final result according to the process model and measurement model.
其中,在步骤S1中,利用两个摄像头采集标识物的图像,该两个摄像头平行放置,构成双目立体视觉系统,且两个摄像头均安装在车头,视安装高度,调整使其相对水平线的夹角在5度到85度之间。Wherein, in step S1, two cameras are used to collect images of markers, the two cameras are placed in parallel to form a binocular stereo vision system, and both cameras are installed on the front of the vehicle, depending on the installation height, they are adjusted so that they are relatively horizontal. The included angle is between 5 degrees and 85 degrees.
其中,在步骤S2中,利用陀螺仪测量载体运行轨道的坡度φ的变化率ω,利用加速度计测量载体运行方向的加速度ax。Wherein, in step S2, a gyroscope is used to measure the rate of change ω of the gradient φ of the carrier's running track, and an accelerometer is used to measure the acceleration a x of the carrier's running direction.
其中,步骤S1进一步包括以下步骤:Wherein, step S1 further includes the following steps:
S11,在时刻t1对载体运行时前方静止标识物进行视频采样,得到两个摄像头在同一时刻对相同标识物的图像;S11, at time t1, video sampling is performed on the stationary marker in front of the carrier when it is running, and images of the same marker are obtained by two cameras at the same time;
S12,在其中一幅图像中选择特征点Pi,所述特征点是指相对来说边界明显、对比清晰、且易于跟踪和识别的像素区域中的点;S12. Select a feature point P i in one of the images, where the feature point refers to a point in a pixel area with a relatively obvious boundary, clear contrast, and easy tracking and identification;
S13,利用步骤S12中选出的特征点Pi,在另一幅图像寻找相匹配的特征点P′i,形成同一特征点在两幅图像中的匹配对集合{Pi,i=1,2,...,N}和{P′i,i=1,2,...,N};S13, use the feature point P i selected in step S12 to find the matching feature point P′ i in another image to form a set of matching pairs of the same feature point in the two images {P i , i=1, 2,..., N} and {P′ i , i=1, 2,..., N};
S14,根据两个摄像头的位置间距b以及步骤S13所得到的匹配对集合,计算特征点Pi在摄像头坐标系中的位置xi,并记录特征点Pi及其坐标位置{Pi,xi};S14, according to the position distance b of the two cameras and the matching pair set obtained in step S13, calculate the position x i of the feature point P i in the camera coordinate system, and record the feature point P i and its coordinate position {P i , x i };
S15,在时刻t2进行视频采样;S15, video sampling is performed at time t2 ;
S16,同样利用步骤S12中得到的特征点的集合,在同一摄像头在时刻t2所摄图像中进行匹配查找,得到匹配的特征点集合 S16, also use the set of feature points obtained in step S12 to perform a matching search in the image captured by the same camera at time t2 , and obtain a set of matching feature points
S17,利用步骤S16所得的结果在t2时刻另一摄像头所摄图像中进行匹配,得到相应的匹配点集合按步骤S14中的方法计算出步骤S12确定的特征点Pi在时刻t2在摄像头坐标系下的位置{Pi,xi′};S17, use the result obtained in step S16 to perform matching in the image captured by another camera at time t2 to obtain a corresponding set of matching points Calculate the position {P i , x i '} of the feature point P i determined in step S12 at the moment t2 in the camera coordinate system by the method in step S14;
S18,根据步骤S14和S17所得的结果以及相邻两次视频采样的时间间隔,计算出特征点在摄像头坐标系下的速度 S18, according to the results obtained in steps S14 and S17 and the time interval between two adjacent video samples, calculate the speed of the feature point in the camera coordinate system
S19,根据两个摄像头安装的几何位置进行坐标变换,得到特征点在载体坐标系下的速度,计算出的速度即为载体的运行速度;S19. Carry out coordinate transformation according to the installed geometric positions of the two cameras to obtain the speed of the feature point in the carrier coordinate system, and the calculated speed is the running speed of the carrier;
S10,计算同一时刻所有特征点的速度,取其平均值作为该时刻载体的运行速度v,然后取运行速度v在载体运行方向的分量作为载体运行速度的测量值。S10, calculate the speed of all feature points at the same time, take the average value as the running speed v of the carrier at that time, and then take the component of the running speed v in the running direction of the carrier As a measure of the speed at which the carrier is running.
其中,步骤S2进一步包括以下步骤:Wherein, step S2 further comprises the following steps:
S21,利用单轴陀螺仪测量轨道的坡度φ的变化率ω,并利用单轴加速度计测量载体运行方向的加速度ax,将单轴陀螺仪和单轴加速度计的测量模型分别用下式描述:S21, use the single-axis gyroscope to measure the rate of change ω of the slope φ of the track, and use the single-axis accelerometer to measure the acceleration a x of the carrier’s running direction, and use the following formulas to describe the measurement models of the single-axis gyroscope and the single-axis accelerometer respectively :
其中,b为单轴陀螺仪的测量偏差,υ为单轴陀螺仪的测量噪声,g为重力加速度,η为单轴加速度计的测量噪声,采用高斯白噪声模型表示两种测量噪声:υ~N(0,Q),η~N(0,R),其中E[υ′υ]=Q,E[η′η]=R,E[*]表示期望值,其根据实际测量数据统计得到,上标“’”表示转置运算;Among them, b is the measurement deviation of the uniaxial gyroscope, υ is the measurement noise of the uniaxial gyroscope, g is the acceleration of gravity, η is the measurement noise of the uniaxial accelerometer, and the Gaussian white noise model is used to represent two kinds of measurement noise: υ~ N(0, Q), η~N(0, R), wherein E[υ′υ]=Q, E[η′η]=R, E[*] represents the expected value, which is obtained statistically according to the actual measurement data, The superscript "'" means transpose operation;
S22,利用步骤S1得到的测量值将载体速度表示为S22, using the measured value obtained in step S1 to express the carrier velocity as
其中ε为测量误差,ε~N(0,H),其中E[ε′ε]=H,H根据实际测量数据统计得到,vx为载体速度的真实值;Where ε is the measurement error, ε~N(0, H), where E[ε′ε]=H, H is statistically obtained according to the actual measurement data, and v x is the real value of the carrier velocity;
S23,将式(1)线性化为:S23, formula (1) is linearized as:
式(3)和式(4)分别是利用卡尔曼滤波算法进行速度估计的过程模型和测量模型,根据该过程模型和测量模型利用卡尔曼滤波算法估计出载体的运行速度。Equations (3) and (4) are the process model and measurement model for speed estimation using the Kalman filter algorithm, respectively. According to the process model and measurement model, the Kalman filter algorithm is used to estimate the running speed of the carrier.
其中,根据该过程模型和测量模型利用卡尔曼滤波算法估计出载体的运行速度的过程如下:Among them, the process of estimating the running speed of the carrier by using the Kalman filter algorithm according to the process model and the measurement model is as follows:
(1)利用所选取的采样频率fs分别将式(3)、(4)离散化,得到离散化模型,其中采样频率fs大于10Hz;(1) Using the selected sampling frequency f s to discretize equations (3) and (4) respectively to obtain a discretization model, wherein the sampling frequency f s is greater than 10 Hz;
(2)根据(1)中得到的离散化模型,和统计得到的单轴陀螺仪和单轴加速度计的测量噪声的噪声方差,利用标准的稳态卡尔曼滤波算法计算得到卡尔曼滤波器;(2) According to the discretization model obtained in (1), and the noise variance of the measurement noise of the uniaxial gyroscope and uniaxial accelerometer obtained by statistics, the Kalman filter is calculated by using the standard steady-state Kalman filter algorithm;
(3)在每个采样时刻执行步骤a:读取单轴加速度计及单轴陀螺仪的测量值,然后把同一采样时刻步骤S1和步骤a的测量值输入到卡尔曼滤波器,经过滤波处理,得到的输出作为所述最终结果。(3) Execute step a at each sampling time: read the measured values of the single-axis accelerometer and single-axis gyroscope, and then input the measured values of step S1 and step a at the same sampling time into the Kalman filter for filtering , to get the output as the final result.
其中,利用Matlab软件控制工具箱的卡尔曼命令实现所述标准的稳态卡尔曼滤波算法。Wherein, the Kalman command of the Matlab software control toolbox is used to implement the standard steady-state Kalman filter algorithm.
其中,所述采样频率fs大于10Hz。Wherein, the sampling frequency f s is greater than 10 Hz.
其中,所述采样频率fs优选30Hz。Wherein, the sampling frequency f s is preferably 30 Hz.
其中,所述载体优选为列车。Wherein, the carrier is preferably a train.
(三)有益效果(3) Beneficial effects
本发明能产生如下有益效果:利用双摄像头构成立体视觉配置,安装于载体前部,通过拍摄载体行进前方静态场景实现对速度的推算;基于视频的速度估计算法利用图像的空间关联对特征点进行定位,利用特征点的时间关联性进行跟踪。通过对相邻连续帧的处理,计算得到载体的速度。以上测量方法不依赖于对轮轴的计数,从而消除了车轮空转、打滑对测量精度的影响。进一步,利用Kalman(卡尔曼)滤波的融合算法实现载体速度测量值与加速度计、陀螺仪测量值的融合,实现了低噪声、实时的速度测量。另外,测量装置安装简单,维护方便。The present invention can produce the following beneficial effects: use dual cameras to form a stereo vision configuration, install them on the front of the carrier, and realize the estimation of the speed by shooting the static scene in front of the carrier; the video-based speed estimation algorithm uses the spatial correlation of the image to perform Positioning, using the temporal correlation of feature points for tracking. By processing adjacent consecutive frames, the velocity of the carrier is calculated. The above measurement methods do not rely on counting the axles, thereby eliminating the influence of wheel idling and slipping on the measurement accuracy. Further, the Kalman (Kalman) filter fusion algorithm is used to realize the fusion of the carrier velocity measurement value and the accelerometer and gyroscope measurement values, realizing low-noise, real-time velocity measurement. In addition, the measuring device is easy to install and easy to maintain.
附图说明 Description of drawings
图1是本发明实施例的方法流程图;Fig. 1 is the method flowchart of the embodiment of the present invention;
图2是本发明实施例的方法所使用的系统构成框图;Fig. 2 is a system block diagram used in the method of the embodiment of the present invention;
图3是实施本发明实施例的方法时摄像头安装位置及角度示意图;Fig. 3 is a schematic diagram of the installation position and angle of the camera when implementing the method of the embodiment of the present invention;
图4是本发明实施例的方法中基于视频的速度计算方法原理示意图。Fig. 4 is a schematic diagram of the principles of the video-based speed calculation method in the method of the embodiment of the present invention.
具体实施方式 Detailed ways
下面结合附图和实施例,对本发明的具体实施方式作进一步详细描述。以下实施例用于说明本发明,但不用来限制本发明的范围。The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
本发明实施例以列车为例进行说明。本发明实施例的方法流程图如图1所示。如图2所示,本发明的方法利用如下几个装置构成的系统实现:2个CCD(Charge-coupled Device,电荷耦合元件)(或CMOS(Complementary metal-oxide-semiconductor,互补性氧化金属半导体))摄像头1、2、单轴加速度计、单轴陀螺仪。其中,单轴加速度计测量列车运行方向的加速度,单轴陀螺仪用来测量列车运行轨道的坡度的变化率。两个摄像头平行配置,构成双目立体视觉系统,完成对车辆运行前方视景的实时捕获。系统还包括两个DSP(Digital SignalProcessor,数字信号处理器),其一是视频处理DSP,负责视频运算处理,另一个是速度计算DSP,用于运行速度测量算法。The embodiment of the present invention is described by taking a train as an example. The flow chart of the method of the embodiment of the present invention is shown in FIG. 1 . As shown in Figure 2, the method of the present invention utilizes the system realization that following several devices are formed: 2 CCDs (Charge-coupled Device, charge-coupled device) (or CMOS (Complementary metal-oxide-semiconductor, complementary metal oxide semiconductor) ) camera 1, 2, single-axis accelerometer, single-axis gyroscope. Wherein, the single-axis accelerometer measures the acceleration in the running direction of the train, and the single-axis gyroscope is used to measure the gradient change rate of the train running track. Two cameras are arranged in parallel to form a binocular stereo vision system to complete the real-time capture of the front view of the vehicle. The system also includes two DSP (Digital Signal Processor, digital signal processor), one is video processing DSP, which is responsible for video operation processing, and the other is speed calculation DSP, which is used to run speed measurement algorithm.
如图3所示,两个摄像头安装在车头,视安装高度,调整使其相对水平线的夹角在5度到85度之间,这样保证摄像头捕获的图像不包括车本身的图像。As shown in Figure 3, the two cameras are installed on the front of the car. Depending on the installation height, adjust the angle between them relative to the horizontal line to be between 5 degrees and 85 degrees, so as to ensure that the images captured by the cameras do not include the images of the car itself.
本发明实施例的方法包括两个主要步骤,第一,依据摄像头采集的图像信息,基于视频的速度计算方法得到速度的测量值;第二,结合加速度计和陀螺仪进行数据融合,利用Kalman滤波算法估计出列车速度。The method of the embodiment of the present invention includes two main steps. First, according to the image information collected by the camera, the measured value of the speed is obtained based on the video speed calculation method; second, data fusion is carried out in combination with the accelerometer and the gyroscope, and the Kalman filter is used. An algorithm estimates the train speed.
基于视频的速度估计算法是根据图像信息在空间和时间上的相关性,通过在空间维度和时间维度对图像进行相关运算,推算出列车的运行速度。原理说明如图3所示。The speed estimation algorithm based on video is based on the correlation of image information in space and time, and calculates the running speed of the train by performing correlation operations on images in space and time dimensions. The principle description is shown in Figure 3.
图4中,A、B、C、D为同一物体或标识物分别在在不同摄像头、不同时刻的映像。A和B为分别表示在时刻1时同一标识物在两个摄像头中的映像;C和D则分别表示这一标识物在时刻2时在两个摄像头中的映像。依据同一时刻的空间关联,可以计算出标识物在摄像头坐标系下的位置,而依据时间上的关联,则可以计算出在时刻1和时刻2间的这段时间载体的平均运动速度。当按视频的采集频率(通常为30Hz)进行连续运算处理时,便可得到载体的即时速度。算法的处理步骤如下:In Fig. 4, A, B, C, and D are images of the same object or marker at different cameras and at different times. A and B respectively represent the image of the same marker in the two cameras at time 1; C and D respectively represent the image of the marker in the two cameras at time 2. According to the spatial correlation at the same time, the position of the marker in the camera coordinate system can be calculated, and according to the temporal correlation, the average moving speed of the carrier during the period between time 1 and time 2 can be calculated. When the continuous calculation process is carried out according to the acquisition frequency of the video (usually 30Hz), the instant speed of the carrier can be obtained. The processing steps of the algorithm are as follows:
1,在时刻1(t1)进行视频采样,得到摄像头1和摄像头2在同一时刻对相同场景的快照。1. Perform video sampling at time 1 (t 1 ), and obtain snapshots of the same scene taken by camera 1 and camera 2 at the same time.
2,在其中一幅图像中(如摄像头1所摄图像)寻找和选择特征点Pi,特征点是那些边界明显、对比清晰,易于跟踪和识别的像素区域中的点。2. Find and select the feature points P i in one of the images (such as the image taken by the camera 1). The feature points are those points in the pixel area with obvious boundaries, clear contrast, and easy to track and identify.
3,利用步骤2中选出的特征点Pi,在另一幅图像寻找相匹配的特征点P′i,形成同一特征点在两幅图像中的匹配对集合{Pi,i=1,2,...,N}和{P′i,i=1,2,...,N}。3. Use the feature point P i selected in step 2 to find the matching feature point P′ i in another image to form a set of matching pairs of the same feature point in the two images {P i , i=1, 2, . . . , N} and {P′ i , i=1, 2, . . . , N}.
4,根据两摄像头的位置间距b以及步骤3所形成的匹配集合,计算特征点在摄像头坐标系中的位置xi。位置xi的计算采用文献[1](Milan Sonka,Vaclav Hlavac,Roger Boyle:Image Processing,Analysis and Machine Vision,Second Edition,ISBN 0-534-95393-X,Brooks/Cole,pp.460.)中的立体视觉算法(Stereo vision algorithm)进行。记录特征点Pi及其坐标位置{Pi,xi}。4. Calculate the position x i of the feature point in the camera coordinate system according to the position distance b of the two cameras and the matching set formed in step 3. The calculation of the position xi adopts the literature [1] (Milan Sonka, Vaclav Hlavac, Roger Boyle: Image Processing, Analysis and Machine Vision, Second Edition, ISBN 0-534-95393-X, Brooks/Cole, pp.460.) The stereo vision algorithm (Stereo vision algorithm) is carried out. Record the feature point P i and its coordinate position {P i , x i }.
5,在时刻2(t2)进行视频采样。5. Perform video sampling at time 2 (t 2 ).
6,同样利用步骤2中得到的特征点集合,在该摄像头在时刻2所摄图像中进行匹配查找,得到匹配的特征点集合 6. Also use the set of feature points obtained in step 2 to perform a matching search in the image captured by the camera at time 2 to obtain a set of matching feature points
7,利用6中结果在t2时刻另一摄像头所摄图像中进行匹配,得到相应的匹配点集合按步骤4中同样方法计算出步骤2确定的特征点Pi在时刻2时在摄像头坐标系下的位置{Pi,xi′}。7. Use the results in 6 to perform matching in the image captured by another camera at time t2 to obtain the corresponding set of matching points Calculate the position {P i , x i ′} of the feature point P i determined in step 2 in the camera coordinate system at time 2 by the same method as in step 4.
8,根据步骤4和7所得结果以及两次相邻视频采样间时间间隔,可以计算出特征点Pi在摄像头坐标系下的速度 8. According to the results obtained in steps 4 and 7 and the time interval between two adjacent video samples, the velocity of the feature point P i in the camera coordinate system can be calculated
9,根据摄像头安装的几何关系进行坐标变换,可以得到特征点Pi在列车坐标系下的速度。由于摄像头所视场景为静止场景,则计算出的速度大小即为列车的运行速度。9. Carry out coordinate transformation according to the geometric relationship of the camera installation, and the velocity of the feature point P i in the train coordinate system can be obtained. Since the scene viewed by the camera is a static scene, the calculated speed is the running speed of the train.
10,计算所有特征点的速度,取其平均值作为该时刻列车的速度:10. Calculate the speed of all feature points, and take the average as the speed of the train at this moment:
由于列在轨道上运行,我们关注其前进的速度。所以取v的x方向分量(列车坐标系参见图3)作为列车速度的测量值。As the column moves in orbit, we focus on its speed. So take the x-direction component of v (See Figure 3 for the train coordinate system) as the measured value of the train speed.
11,返回步骤1继续运行。11. Go back to step 1 and continue running.
根据上面步骤,可得到利用视频图像计算出的列车速度。由于视频处理受摄像头采样率及DSP处理能力影响,计算出的速度会存在延时。为了改善延时,减小噪声,由视频处理得出的速度和加速度计及陀螺仪利用Kalman滤波算法进行进一步融合,从而达到即时、低噪、准确的速度估计。过程如下:According to the above steps, the train speed calculated by using the video image can be obtained. Since the video processing is affected by the sampling rate of the camera and the processing capability of the DSP, there will be a delay in the calculated speed. In order to improve delay and reduce noise, the speed obtained by video processing is further fused with the accelerometer and gyroscope using the Kalman filter algorithm to achieve instant, low-noise, and accurate speed estimation. The process is as follows:
陀螺仪测量轨道水平坡度φ的变化率ω。加速度计测量列车运行方向的加速度ax。考虑到噪声和测量偏差,陀螺仪和加速度计的测量模型可分别由下式描述。The gyroscope measures the rate of change ω of the horizontal slope φ of the track. The accelerometer measures the acceleration a x in the running direction of the train. Considering noise and measurement bias, the measurement models of gyroscope and accelerometer can be described by the following equations respectively.
其中,等式左边的符号中,变量上方加“·”表示对该变量微分,b为陀螺仪测量偏差,g为重力加速度,υ和η分别为两个传感器的测量噪声,我们采用高斯白噪声模型,Among them, in the symbol on the left side of the equation, adding "·" above the variable means to differentiate the variable, b is the measurement deviation of the gyroscope, g is the acceleration of gravity, υ and η are the measurement noises of the two sensors respectively, and we use Gaussian white noise Model,
υ~N(0,Q),η~N(0,R)υ~N(0, Q), η~N(0, R)
其中E[υ′υ]=Q,E[η′η]=R,根据实际测量数据统计得到。Among them, E[υ′υ]=Q, E[η′η]=R, which are statistically obtained according to the actual measurement data.
利用基于视频的速度计算方法计算出的测量值将列车速度表示为The train speed is expressed as
其中ε为测量误差,ε~N(0,H),E[ε′ε]=H,vx为列车速度真实值。Where ε is the measurement error, ε~N(0, H), E[ε′ε]=H, and v x is the true value of the train speed.
由于轨道坡度通常不超过10%(5.7°),式(1)可以线性化。Since the track slope usually does not exceed 10% (5.7°), equation (1) can be linearized.
式(3)和式(4)分别是基于视觉速度估计的过程模型和测量模型,根据此模型可以利用稳态Kalman滤波算法,估计出列车的运行速度。具体过程如下:Equations (3) and (4) are the process model and measurement model based on visual speed estimation respectively. According to this model, the steady-state Kalman filter algorithm can be used to estimate the running speed of the train. The specific process is as follows:
(1)选定计算采样频率fs,将模型式(3)、(4)离散化,得到离散化数学模型。为保证测量精度,fs应大于10Hz,通常选择30Hz。(1) Select the calculation sampling frequency f s , and discretize the model equations (3) and (4) to obtain a discretized mathematical model. In order to ensure the measurement accuracy, f s should be greater than 10Hz, usually choose 30Hz.
(2)利用(1)中得到的离散化模型,和统计得到的噪声方差,利用标准的稳态Kalman滤波算法(如利用Matlab软件控制工具箱的kalman命令)计算的到Kalman滤波器。(2) Using the discretization model obtained in (1) and the statistically obtained noise variance, the standard steady-state Kalman filter algorithm (such as using the kalman command of the Matlab software control toolbox) is used to calculate the Kalman filter.
(3)在每个采样时刻:b,读取加速度传感器及陀螺仪测量数据;c,把基于视频的速度计算方法计算出的测量值和b的结果输入到kalman滤波器,经过滤波处理,得到的输出作为列车速度测量结果。(3) At each sampling moment: b, read the measurement data of the acceleration sensor and gyroscope; c, input the measured value calculated by the video-based speed calculation method and the result of b into the kalman filter, and after filtering, get The output of is used as the train speed measurement result.
本发明的方法不仅可用于列车测速也可用于对其它载体进行测速,只是由于铁路运行环境比较单一,因此比较适合应用视觉方法。The method of the present invention can be used not only for measuring the speed of trains but also for other carriers, but because the railway operating environment is relatively simple, it is more suitable for applying the visual method.
以上实施方式仅用于说明本发明,而并非对本发明的限制,有关技术领域的普通技术人员,在不脱离本发明的精神和范围的情况下,还可以做出各种变化和变型,因此所有等同的技术方案也属于本发明的范畴,本发明的专利保护范围应由权利要求限定。The above embodiments are only used to illustrate the present invention, but not to limit the present invention. Those of ordinary skill in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, all Equivalent technical solutions also belong to the category of the present invention, and the scope of patent protection of the present invention should be defined by the claims.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102480240A CN101915852B (en) | 2010-08-06 | 2010-08-06 | Velocity Measurement Method Based on Stereo Vision |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102480240A CN101915852B (en) | 2010-08-06 | 2010-08-06 | Velocity Measurement Method Based on Stereo Vision |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101915852A CN101915852A (en) | 2010-12-15 |
CN101915852B true CN101915852B (en) | 2012-05-23 |
Family
ID=43323413
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010102480240A Active CN101915852B (en) | 2010-08-06 | 2010-08-06 | Velocity Measurement Method Based on Stereo Vision |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101915852B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102017212955A1 (en) | 2017-07-27 | 2019-01-31 | Siemens Aktiengesellschaft | Determining the speed of a rail vehicle using an on-board camera |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102607509A (en) * | 2012-03-29 | 2012-07-25 | 南京理工大学 | Method and device for measuring attitude dip angle of moving carrier based on floating point type DSP (digital signal processor) |
US10042815B2 (en) | 2012-08-31 | 2018-08-07 | Ford Global Technologies, Llc | Road gradient estimation arbitration |
US9454508B2 (en) * | 2012-08-31 | 2016-09-27 | Ford Global Technologies, Llc | Kinematic road gradient estimation |
CN104133076A (en) * | 2014-07-30 | 2014-11-05 | 宇龙计算机通信科技(深圳)有限公司 | Speed measurement device and method and terminal |
CN105352495B (en) * | 2015-11-17 | 2018-03-23 | 天津大学 | Acceleration and light stream Data Fusion of Sensor unmanned plane horizontal velocity control method |
WO2017177367A1 (en) * | 2016-04-11 | 2017-10-19 | Xiaogang Wang | Method and system for object tracking |
CN107462242B (en) * | 2016-06-06 | 2020-09-29 | 千寻位置网络有限公司 | Vehicle speed measuring method and device |
CN106932605B (en) * | 2017-04-27 | 2020-04-14 | 中国科学院长春光学精密机械与物理研究所 | A system for measuring the movement speed of bullet bullets |
CN107462912A (en) * | 2017-07-12 | 2017-12-12 | 南通赛洋电子有限公司 | A kind of filtering method of the speed of a ship or plane course-stability output of GNSS peculiar to vessel |
CN109664922B (en) * | 2018-12-29 | 2020-12-18 | 交控科技股份有限公司 | Fusion speed measurement processing method and device based on accelerometer |
CN110047070B (en) * | 2019-04-22 | 2021-01-08 | 山东师范大学 | Method and system for identifying rail wear degree |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63246678A (en) | 1987-04-02 | 1988-10-13 | Hitachi Ltd | Speed and acceleration measuring device for moving objects |
CN1388028A (en) * | 2001-05-25 | 2003-01-01 | 现代自动车株式会社 | Method for sampling to road information using vehicle-carrying camera and detecting for spaces of vehicles |
CN1868793A (en) * | 2006-06-23 | 2006-11-29 | 西南交通大学 | On-line dynamic detecting device of locomotive wheel lset exterior size |
WO2009060093A1 (en) * | 2007-11-09 | 2009-05-14 | Societe De Technologie Michelin | System or controlling a vehicle with determination of its instantaneous speed relative to the ground |
CN201347528Y (en) * | 2008-12-26 | 2009-11-18 | 中国铁道科学研究院基础设施检测研究所 | Device for mentoring contact state of wheel track and system thereof |
CN1845205B (en) * | 2006-05-09 | 2010-05-26 | 陈宁宁 | Optical visual effect testing device and method (2) |
-
2010
- 2010-08-06 CN CN2010102480240A patent/CN101915852B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63246678A (en) | 1987-04-02 | 1988-10-13 | Hitachi Ltd | Speed and acceleration measuring device for moving objects |
CN1388028A (en) * | 2001-05-25 | 2003-01-01 | 现代自动车株式会社 | Method for sampling to road information using vehicle-carrying camera and detecting for spaces of vehicles |
CN1845205B (en) * | 2006-05-09 | 2010-05-26 | 陈宁宁 | Optical visual effect testing device and method (2) |
CN1868793A (en) * | 2006-06-23 | 2006-11-29 | 西南交通大学 | On-line dynamic detecting device of locomotive wheel lset exterior size |
WO2009060093A1 (en) * | 2007-11-09 | 2009-05-14 | Societe De Technologie Michelin | System or controlling a vehicle with determination of its instantaneous speed relative to the ground |
CN201347528Y (en) * | 2008-12-26 | 2009-11-18 | 中国铁道科学研究院基础设施检测研究所 | Device for mentoring contact state of wheel track and system thereof |
Non-Patent Citations (1)
Title |
---|
周达天等.采用时域相关匹配信息融合的列车定位方法.《铁道学报》.2006,第28卷(第03期),97-100. * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102017212955A1 (en) | 2017-07-27 | 2019-01-31 | Siemens Aktiengesellschaft | Determining the speed of a rail vehicle using an on-board camera |
Also Published As
Publication number | Publication date |
---|---|
CN101915852A (en) | 2010-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101915852B (en) | Velocity Measurement Method Based on Stereo Vision | |
CN101598549B (en) | Method for dynamic estimation of vehicle running gradient and relative height | |
CN103411621B (en) | A kind of vision/INS Combinated navigation method of the optical flow field towards indoor mobile robot | |
CN103499350B (en) | Vehicle high-precision localization method and the device of multi-source information is merged under GPS blind area | |
TWI448977B (en) | Method and apparatus for video analytics based object counting | |
CN102700551B (en) | Method for estimating gradient of road surface in real time in vehicle running process | |
CN201269758Y (en) | Vehicle mounted full automatic detection recording system for traffic signs | |
CN104802826B (en) | For the device for the cross force for estimating rail vehicle | |
CA3067782C (en) | Running location identification system, running location identification apparatus, and running location identification method for railroad cars | |
CN106537155B (en) | Method and device for determining the absolute speed of a rail vehicle | |
CN104408917B (en) | Based on smart mobile phone acceleration transducer real-time traffic method of estimation | |
CN101464152A (en) | Adaptive filtering method for SINS/GPS combined navigation system | |
CN113841188B (en) | Traffic flow estimating device, traffic flow estimating method, and storage medium | |
CN106225786A (en) | A kind of adaptive pedestrian navigation system zero-speed section detecting method | |
CN103835212A (en) | Three-dimensional road surface detecting system | |
CN111582160A (en) | Vehicle trajectory extraction method and device based on distributed optical fiber sensing system | |
CN102155955A (en) | Stereoscopic vision mile meter and measuring method | |
CN114719884A (en) | Attitude measurement precision evaluation method and application of inertial navigation system | |
CN104808015A (en) | Vehicle movement direction detecting method based on magnetic anomaly signals | |
CN105648862B (en) | Dynamic continuous detection method of track centerline coordinates | |
JP2011064639A (en) | Distance measuring device and distance measuring method | |
CN102419179A (en) | Method and device for positioning mobile robot and recording driving track | |
CN105869413A (en) | Method for measuring traffic flow and speed based on camera video | |
CN206192281U (en) | Rail is examined parking stall and is put attitude measurement system based on combination of optics inertia | |
CN107677247A (en) | Road horizontal slope slope measuring and bearing calibration |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
ASS | Succession or assignment of patent right |
Owner name: BEIJING JIAOTONG UNIVERSITY ASSETS MANAGEMENT CO., Free format text: FORMER OWNER: BEIJING COMMUNICATION UNIV. Effective date: 20110822 |
|
C41 | Transfer of patent application or patent right or utility model | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20110822 Address after: 100044 Beijing city Haidian District sorghum Bridge Street No. 44 Building Room 806 Applicant after: Beijing Jiaotong University Address before: 100044 Beijing city Haidian District Shangyuan Village No. 3 Applicant before: Beijing Jiaotong University |
|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
ASS | Succession or assignment of patent right |
Owner name: BEIJING TRAFFIC CONTROL TECHNOLOGY CO., LTD. Free format text: FORMER OWNER: BEIJING JIAOTONG UNIVERSITY ASSET MANAGEMENT CO., LTD. Effective date: 20120809 |
|
C41 | Transfer of patent application or patent right or utility model | ||
COR | Change of bibliographic data |
Free format text: CORRECT: ADDRESS; FROM: 100044 HAIDIAN, BEIJING TO: 100070 FENGTAI, BEIJING |
|
TR01 | Transfer of patent right |
Effective date of registration: 20120809 Address after: 100070 Beijing science and Technology Park of Fengtai District Haiying Road No. 6 hospital of Beijing, the headquarters of the International 2 Building No. 3 Patentee after: Beijing Traffic Control Technology Co., Ltd. Address before: 100044, room 44, science building, 806 Jiao Feng street, Haidian District, Beijing Patentee before: Beijing Jiaotong University |
|
C56 | Change in the name or address of the patentee | ||
CP01 | Change in the name or title of a patent holder |
Address after: 100070 Beijing science and Technology Park of Fengtai District Haiying Road No. 6 hospital of Beijing, the headquarters of the International 2 Building No. 3 Patentee after: TRAFFIC CONTROL TECHNOLOGY Co.,Ltd. Address before: 100070 Beijing science and Technology Park of Fengtai District Haiying Road No. 6 hospital of Beijing, the headquarters of the International 2 Building No. 3 Patentee before: Beijing Traffic Control Technology Co., Ltd. |
|
CP03 | Change of name, title or address |
Address after: 100070 Beijing science and Technology Park of Fengtai District Seahawks Hospital No. 6 2, No. 3 (Park) Patentee after: TRAFFIC CONTROL TECHNOLOGY Co.,Ltd. Address before: 100070 Beijing science and Technology Park of Fengtai District Haiying Road No. 6 hospital of Beijing, the headquarters of the International 2 Building No. 3 Patentee before: TRAFFIC CONTROL TECHNOLOGY Co.,Ltd. |
|
CP03 | Change of name, title or address |