Movatterモバイル変換


[0]ホーム

URL:


CN116430398B - Distance measurement method and equipment based on TOF camera and binocular vision data fusion - Google Patents

Distance measurement method and equipment based on TOF camera and binocular vision data fusion

Info

Publication number
CN116430398B
CN116430398BCN202310359199.6ACN202310359199ACN116430398BCN 116430398 BCN116430398 BCN 116430398BCN 202310359199 ACN202310359199 ACN 202310359199ACN 116430398 BCN116430398 BCN 116430398B
Authority
CN
China
Prior art keywords
distance
camera
binocular vision
value
tof
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
Application number
CN202310359199.6A
Other languages
Chinese (zh)
Other versions
CN116430398A (en
Inventor
张勇
张谨萌
刘学
张建隆
杨振
代鑫
焦丹
杨玙璠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harbin Institute of Technology Shenzhen
Original Assignee
Harbin Institute of Technology Shenzhen
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Harbin Institute of Technology ShenzhenfiledCriticalHarbin Institute of Technology Shenzhen
Priority to CN202310359199.6ApriorityCriticalpatent/CN116430398B/en
Publication of CN116430398ApublicationCriticalpatent/CN116430398A/en
Application grantedgrantedCritical
Publication of CN116430398BpublicationCriticalpatent/CN116430398B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

基于TOF相机与双目视觉数据融合的测距方法及设备,属于融合测距技术领域。为了解决现有的距离测量方式存在由于系统不确定性、环境干扰及失效数据导致测距精度低的问题。本发明首先对每组数据利用高斯模型处理,剔除偏差过大的距离值,选择高概率距离值并计算平均值,得到测距最优值;测量数据在近距离段采用双目视觉测距平均值为最后测距值,在远距离段采用TOF相机测距平均值为最后测距值,在中间距离段采用自适应加权融合方法,对TOF测距平均值与双目视觉测距平均值分配不同权重,TOF相机与双目视觉的测距平均值与各自权重相乘后求和,作为中间距离段的最后测距值。

The present invention relates to a distance measurement method and device based on the fusion of TOF camera and binocular vision data, belonging to the field of fusion distance measurement technology. In order to solve the problem of low distance measurement accuracy caused by system uncertainty, environmental interference and invalid data in the existing distance measurement method, the present invention first uses a Gaussian model to process each set of data, eliminates distance values with excessive deviations, selects high-probability distance values and calculates the average value to obtain the optimal distance measurement value; the measurement data uses the binocular vision distance measurement average value as the final distance measurement value in the close-range segment, and the TOF camera distance measurement average value as the final distance measurement value in the long-range segment; an adaptive weighted fusion method is used in the intermediate distance segment, and different weights are assigned to the TOF distance measurement average value and the binocular vision distance measurement average value. The distance measurement average values of the TOF camera and the binocular vision are multiplied by their respective weights and summed as the final distance measurement value of the intermediate distance segment.

Description

Distance measurement method and device based on TOF camera and binocular vision data fusion
Technical Field
The invention belongs to the technical field of fusion ranging, and relates to a fusion ranging method, a storage medium and equipment.
Background
With technical progress and scientific development, the fields of automatic driving, robot vision, equipment docking and the like all put higher requirements on distance precision, and the precision and efficiency of a sensor detection result directly influence the safety and reliability of engineering.
In the optical field, common ranging methods include a time-of-flight method (TOF), a structured light method and a binocular vision ranging method, wherein the structured light method is short in measuring distance and can only be used indoors, natural light in an outdoor environment can cause coded light to be submerged, the using range is too narrow, a TOF camera is used for directly measuring according to the flight time of light, the TOF camera is little influenced by illumination and texture change, the distance can be measured, the binocular vision ranging is performed through an analog eye imaging principle, and the short-distance measuring accuracy is high. The TOF camera and the binocular vision ranging have advantages and disadvantages in different measuring ranges and measuring scenes.
Considering the limitation of a single sensor measurement mode, the distance measurement of the same target parameter is performed by utilizing the two sensors of the TOF camera and the binocular vision through the multi-sensor information fusion technology, so that the distance measurement precision can be improved. Meanwhile, as a single data fusion method has a certain limitation, two or more data fusion methods are used for advantage integration, the negative influence of uncertainty, environmental interference and failure data of a system on state estimation can be effectively reduced, and the distance measurement accuracy is lower for distance measurement. Most of the existing depth information fusion methods related to the TOF camera need to generate a parallax image of the TOF camera and then carry out pixel-level processing, so that the effect is required to be improved, and the problems of low processing speed and low efficiency are caused by the pixel-level processing.
Disclosure of Invention
The invention aims to solve the problems of low ranging accuracy caused by system uncertainty, environmental interference and failure data in the existing distance measurement mode and the ranging error caused by the influence of system errors of a single ranging system.
A distance measurement method based on the fusion of TOF cameras and binocular vision data comprises the following steps:
S1, acquiring data of ranging of a target to be measured by a TOF camera and a binocular vision ranging platform, wherein the acquired data corresponds to n times of measurement, namely the TOF camera and the binocular vision camera respectively acquire n distance values Di, i=1, 2, & gt, n;
The TOF camera and the binocular vision ranging platform comprise a TOF camera and a binocular vision camera, wherein the binocular vision camera comprises a binocular vision right camera and a binocular vision left camera;
S2, respectively carrying out the following processing on the TOF camera and binocular vision:
s2.1, determining a Gaussian distribution function of the random measured value d:
Wherein, sigma is the standard deviation, D is the random measurement value in n distance values Di, mu is the mathematical expected value, sigma2 is the variance corresponding to n distance values Di;
s2.2, determining a critical value of a selectable value range and a Gaussian distribution function:
wherein u is the lower threshold of the gaussian distribution function;
when the value of the Gaussian distribution function is larger than u, the measured value is considered to be a high probability occurrence value, and m is an average value corresponding to n distance values Di;
S2.3, selecting the ranging values Xi which are reserved after being screened by a Gaussian model from the ranging initial values, wherein the number of the ranging values Xi is r, and obtaining the ranging optimal values:
Wherein Xi is the i-th value meeting the requirements, i=1, 2,..r, r is the number meeting the requirements;
S3, judging whether any one of the distance measurement optimal value distances obtained by the TOF method and the binocular method is located between a first distance threshold and a second distance threshold, and if so, executing S4;
S4, fusing the TOF ranging average value and the binocular vision ranging average value according to weights to obtain a final ranging value:
S4.1, marking a TOF camera as p, marking data screened by a Gaussian model as Xp, and marking the mean value as
The binocular vision camera is marked as q, the data screened by the Gaussian model is marked as Xq, and the average value is
S4.2, assuming that the real distance is Xture, recording the observation errors of TOF ranging average value and binocular vision ranging as Vp and Vq, and then having Xp=Xture+Vp and Xq=Xture+Vq, wherein the observation errors Vp and Vq are regarded as zero-mean stationary noise;
The variance of the data measured by camera p is σ2=E(Vp2), where E (·) is desired;
s4.3, as R data are obtained for both cameras after being processed by the Gaussian model, a cross-correlation function Rpq between the camera p and the camera q and an autocorrelation function Rpp of the camera p are obtained:
s4.4 determining the variance of the camera pAnd variance of camera q:
S4.5, determining weighting factors Wp and Wq for camera p and camera q:
S4.5, fusing by using weighting factors Wp and Wq, wherein the estimated value of the fused distance X is as follows:
Wherein, theAndAnd (5) screening the data mean value of the TOF camera and the binocular vision through a Gaussian model.
Further, the determining process of the first distance threshold and the second distance threshold is as follows:
A1, acquiring data for ranging a target to be measured by a TOF camera and a binocular vision ranging platform, wherein the acquired data correspond to L/k measuring positions, and each position corresponds to n times of measuring data;
in the range L of the measured object, the measured object is approached to the measured object by the measuring position with the interval distance of k and is measured in sequence, each measuring position is measured n times, and L/k measuring positions are all used;
A2, respectively processing the TOF camera and the binocular vision, and processing each group of data by using a Gaussian model to obtain a ranging optimal value;
A3, determining distance of the distance measurement optimal value and corresponding distance errors based on L/k measurement positions, respectively obtaining error-distance curves of the TOF and binocular vision methods in the distance measurement range 0~L, drawing the error-distance curves of the TOF and binocular vision methods together, and obtaining the intersection point corresponding to the distance minimum value and the intersection point corresponding to the distance maximum value in the two graphs as a first distance threshold value and a second distance threshold value.
Further, the processing procedure of step A2 is the same as that of step S2.
Preferably, the first distance threshold and the second distance threshold are 1m and 3.5m, respectively.
Further, the method comprises the following steps:
Taking the distance within the first distance threshold as a short distance segment and the distance outside the second distance threshold as a long distance segment based on the target position;
In the S3 process of judging whether any one of the distance measurement optimal value distances obtained by the TOF method and the binocular method is located between the first distance threshold value and the second distance threshold value, if the distance measurement optimal value distances obtained by the TOF method and the binocular method are in a long distance section, selecting a distance measurement average value corresponding to a camera with smaller distance error in the long distance section in the TOF camera and the binocular vision camera as a final distance measurement value, and if the distance measurement optimal value distances obtained by the TOF method and the binocular method are in a short distance section, selecting a distance measurement average value corresponding to a camera with smaller distance error in the short distance section in the TOF camera and the binocular vision camera as the final distance measurement value.
Further, the distance error in the camera with smaller distance error in the long distance section is determined in the process of determining the distance between the distance measurement optimal value and the corresponding distance error in the A3.
Further, the distance error in the camera with smaller distance error in the short distance section is determined in the process of determining the distance between the distance measurement optimal value and the corresponding distance error in the A3.
Further, in the short distance section, the ranging average value corresponding to the binocular vision camera is selected as the final ranging value, and in the long distance section, the ranging average value corresponding to the TOF camera is selected as the final ranging value.
A computer storage medium having stored therein at least one instruction loaded and executed by a processor to implement the ranging method based on a TOF camera fused with binocular vision data.
The ranging device based on the fusion of the TOF camera and the binocular vision data comprises a processor and a memory, wherein at least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor to realize the ranging method based on the fusion of the TOF camera and the binocular vision data.
The beneficial effects are that:
The invention provides a distance measurement method based on the fusion of TOF camera and binocular vision data, wherein the TOF camera and the binocular vision distance measurement have advantages and disadvantages in different measurement ranges and measurement scenes, and the distance measurement is carried out on the same target parameter by two sensors, so that the advantages are complementary, and the distance measurement precision can be improved.
The invention provides a data fusion method, which comprises the steps of firstly processing two groups of data sets through a Gaussian model, removing a value with larger error, then carrying out self-adaptive weighted fusion, and obtaining an optimal value through distributing different weights. The two data fusion methods are used for advantage integration, so that the negative influence of uncertainty of a system, environmental interference and failure data on state estimation can be effectively reduced;
Most of the existing depth information fusion methods related to the TOF cameras need to generate the parallax images of the TOF cameras, the parallax images of the TOF depth images do not need to be generated, pixel-level fusion processing does not need to be carried out, a novel data fusion method is provided, algorithm efficiency is high, and processing time is fast.
Drawings
Fig. 1 is a schematic diagram of a ranging method based on the integration of a TOF camera and binocular vision data.
FIG. 2 is a binocular vision calibration flow chart.
Fig. 3 is a schematic diagram of a TOF camera and binocular vision adaptive weighted fusion principle.
Fig. 4 is a schematic diagram of ranging.
Detailed Description
The invention provides a ranging method based on TOF camera and binocular vision data fusion, which fuses a TOF camera and a binocular vision ranging result through two fusion methods of Gaussian model processing and self-adaptive weighting, inhibits the influence of errors, expands the use condition of a sensor and improves the reliability and the accuracy. The invention is further described below with reference to the drawings and detailed description.
Detailed description of the embodiments first the present embodiment is described with reference to figure 1,
The present embodiment is a ranging method based on the integration of TOF camera and binocular vision data, and the ranging method based on the integration of TOF camera and binocular vision data includes ranging, first data optimization, second data optimization, and final estimated value output.
The ranging method based on the fusion of the TOF camera and the binocular vision data comprises the following steps:
And 1, building a binocular vision ranging platform, calibrating internal parameters and external parameters of left and right cameras of binocular vision, and obtaining a transformation relation between the internal parameters of the cameras and the two cameras.
As shown in fig. 2, a black-and-white checkered picture on a plane is first prepared, the left and right cameras shoot pictures at the same time, a plurality of groups of pictures are shot, the corner points of the pictures are detected through simulation software, and internal parameters and external parameters of the cameras, namely internal parameters and relative transformation relations of the left and right cameras, are solved.
The method comprises the steps of 2, building a TOF camera and binocular vision ranging platform for ranging a target, namely a measured object (6), wherein the TOF camera and binocular vision ranging platform comprises a camera support (1), a camera platform (2), a binocular vision right camera (3), a TOF camera (4) and a binocular vision left camera (5), the binocular vision right camera (3), the binocular vision left camera (5) and the TOF camera (4) are arranged on the camera platform, the centers of the TOF camera and the binocular vision left camera are on the same straight line, the binocular vision right camera (3) and the binocular vision left camera (5) are arranged on two sides of the TOF camera (4), and the camera platform (2) is arranged on the camera support (1) as shown in fig. 4.
The TOF camera and the left and right cameras of binocular vision are centered on a straight line, and the straight line is perpendicular to the connecting line of the platform and the measured object.
In the range L, the measuring positions with the interval distance k are close to the measured target, and the measured target is photographed and measured in sequence, so that a measured image is obtained, and L/k measuring positions are taken in total. At each measuring position, the TOF camera and binocular vision are measured n times (n is more than or equal to 20);
And 3, in order to measure the distance of a certain point on the target, a measured point is firstly selected on the target, the distance value of the point can be directly obtained on the TOF depth image, binocular vision ranging is required to calculate a parallax image through three-dimensional correction and three-dimensional matching (comprising four stages of preprocessing, cost calculation, dynamic programming and post processing) through a semi-global three-dimensional matching algorithm SGBM, and then the distance value of the measured point is obtained in the parallax image.
At this time, L/k measurement positions are shared in the whole range, so that the TOF camera and binocular vision form L/k groups of data respectively, each group of numbers has n distance values at each measurement position, and a distance measuring platform is not required to be moved when the measurement is carried out at the same distance measuring position;
The L/k measuring positions are used for respectively obtaining error-distance curves of TOF phase and binocular vision methods in a 0~L ranging range, and when the method is actually applied, the TOF and binocular vision methods only need to measure n (n is more than or equal to 20) times at a certain position.
And 4, processing the TOF camera and the binocular vision respectively, processing each group of data by using a Gaussian model, eliminating the distance value with overlarge deviation, namely, the distance value which does not meet the distance value in the step 4.2, selecting the distance value subjected to Gaussian model screening as a high probability distance value, selecting the high probability distance value, and calculating an average value to obtain the distance measurement optimal value.
Taking a certain group of data of a certain camera as an example, the specific steps are as follows:
step 4.1, the Gaussian distribution function of the random measurement value d is as follows:
Wherein sigma is a standard deviation, D is a random measurement value in n distance values Di, mu is a mathematical expected value, and m and sigma2 are the average value and the variance corresponding to n distance values Di respectively;
the mean m and variance σ2 of the measured data are:
Where Di is the i-th initial measurement, i=1, 2,..n. n is the total number of data;
Step 4.2, determining a selectable value range and a critical value of a Gaussian distribution function:
Where u is a lower threshold of the Gaussian distribution function, and is generally selected from 0.6-0.8. When the value of the Gaussian distribution function is smaller than u, the measured value is regarded as a small probability error value, and the measured value can be omitted;
And 4.3, selecting the ranging values Xi which are reserved after the Gaussian model screening from the ranging initial values, wherein the number of the ranging values Xi is r. Obtaining the distance measurement optimal value:
Wherein Xi is the i-th value meeting the requirements, i=1, 2,..r, r is the number meeting the requirements;
The Gaussian model solves the problem that an error value caused by a small probability event affects the overall ranging accuracy in the ranging process, and the ranging accuracy and the stability of the system are improved;
Determining distance of the distance measurement optimal value and corresponding distance errors based on the L/k measurement positions to respectively obtain error-distance curves of the TOF and binocular vision methods in the 0~L distance measurement range, and determining application ranges of the TOF camera and the binocular vision based on the error-distance curves of the TOF and binocular vision methods:
The error-distance curves of the TOF and binocular vision methods are drawn together, an intersection point corresponding to a distance minimum value and an intersection point corresponding to a distance maximum value in the two curves are recorded as a first distance threshold value and a second distance threshold value, a distance within the first distance threshold value is used as a short distance segment, a distance outside the second distance threshold value is used as a long distance segment, and a distance between the first distance threshold value and the second distance threshold value is used as an intermediate distance segment.
In this embodiment, the first distance threshold and the second distance threshold were found to be 1m and 3.5m, respectively.
Taking the camera with smaller error in the short distance section as a short distance section dominant camera;
Step 5, when in actual use, firstly judging the distance between the distance measurement optimal values obtained by the TOF method and the binocular method;
if the distance measurement optimal value distances of the two are located in the long-distance section, adopting a distance measurement average value corresponding to the advantage camera in the long-distance section as a final distance measurement value;
if the distance measurement optimal value distances of the two are positioned in the short-distance section, adopting a distance measurement average value corresponding to the advantage camera in the short-distance section as a final distance measurement value;
If any distance between the two distance measurement optimal values is located in the middle distance section, executing the step 6;
in the embodiment, in the short distance section of 0-1 m, the binocular vision camera is dominant, the average binocular vision ranging value is the last ranging value, and in the long distance section of more than 3.5m, the TOF camera is dominant, the average TOF camera ranging value is the last ranging value;
Step 6, in the middle distance section, the distance measurement results of the binocular vision and the TOF camera are unstable, and both the two can influence the distance measurement accuracy at a certain position due to system uncertainty, environmental interference and failure data, so that different weights are distributed to the TOF distance measurement average value and the binocular vision distance measurement average value, the distance measurement average values of the TOF camera and the binocular vision are multiplied by the weights respectively and then summed, and the sum is used as the final distance measurement value of the middle distance section as shown in fig. 3.
Taking a certain measurement position as an example, the specific steps are as follows:
In the step 6.1, the TOF camera is marked as p, the data after being screened by a Gaussian model is Xp, the total number of the data is r, and the average value isThe binocular vision camera is marked as q, the data after being screened by a Gaussian model is Xq, the total number of the binocular vision cameras is r, and the average value is
Step 6.2. In general, these measurements consist of the true signal X and the observed errors Vp and Vq, denoted Xp=X+Vp and Xq=X+Vq. The observed errors Vp and Vq can be regarded as zero-mean stationary noise. Based on this, at a certain measurement position, the variance of the data measured by the camera p is σ2=E(Vp2), where E (·) is desired. Since the TOF and the binocular vision are mutually independent, the ranging process is not affected, so that the observation errors between the 2 cameras are uncorrelated, the average value of the observation errors is 0, and the observation errors are uncorrelated with the real signal. The formula for the cross correlation function Rpq between any camera p and q, and the autocorrelation function Rpp for camera p is as follows:
Rpq=E(XpXq)=E(X2)
Rpp=E(XpXp)=E(X2)+E(Vp2)
Step 6.3, since r data are obtained for both cameras after the gaussian model processing, the calculation formula of the autocorrelation and cross correlation functions is as follows:
wherein r is the number of sampling points, namely the number of data;
Step 6.4 variance of camera pAnd the variances of camera q are respectively:
And 6.5, solving an extremum theory according to a multiple function, wherein when the total root mean square error is minimum, the weighting factors Wp and Wq corresponding to p and q are respectively as follows:
and 6.5, calculating the following formula of the fused estimated value X:
Wherein, theAndAnd (5) screening the data mean value of the TOF camera and the binocular vision through a Gaussian model.
In summary, the invention provides a ranging method based on the fusion of TOF camera and binocular vision data, which fuses the TOF camera and the binocular vision ranging result through two fusion methods of Gaussian model processing and self-adaptive weighting, suppresses the influence of errors, enlarges the use condition of the camera, and improves the reliability and accuracy.
The second embodiment is as follows:
the embodiment is a computer storage medium, in which at least one instruction is stored, where the at least one instruction is loaded and executed by a processor to implement the ranging method based on the integration of a TOF camera and binocular vision data.
It should be understood that the instructions comprise a computer program product, software, or computerized method corresponding to any of the methods described herein, which instructions may be used to program a computer system, or other electronic device. Computer storage media may include readable media having instructions stored thereon, and may include, but is not limited to, magnetic storage media, optical storage media, magneto-optical storage media including read-only memory ROM, random access memory RAM, erasable programmable memory (e.g., EPROM and EEPROM), and flash memory layers, or other types of media suitable for storing electronic instructions.
And a third specific embodiment:
The embodiment is a distance measuring device based on the integration of a TOF camera and binocular vision data, the device comprises a processor and a memory, and it should be understood that the device comprising any of the devices comprising the processor and the memory described in the invention can also comprise other units and modules for performing display, interaction, processing, control and other functions through signals or instructions;
the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to realize the ranging method based on the fusion of the TOF camera and the binocular vision data.
The above examples of the present invention are only for describing the calculation model and calculation flow of the present invention in detail, and are not limiting of the embodiments of the present invention. Other variations and modifications of the above description will be apparent to those of ordinary skill in the art, and it is not intended to be exhaustive of all embodiments, all of which are within the scope of the invention.

Claims (10)

Translated fromChinese
1.一种基于TOF相机与双目视觉数据融合的测距方法,其特征在于,包括以下步骤:1. A distance measurement method based on the fusion of TOF camera and binocular vision data, characterized by comprising the following steps:S1、获取TOF相机与双目视觉测距平台对待测目标进行测距的数据,获取的数据对应n次测量,即TOF相机和双目视觉相机各自得到n个距离值Di,i=1,2,…,n;S1. Obtaining data of distance measurement of the target by the TOF camera and the binocular vision ranging platform. The acquired data corresponds to n measurements, that is, the TOF camera and the binocular vision camera each obtain n distance values Di , i=1, 2, ..., n;TOF相机与双目视觉测距平台包括TOF相机和双目视觉相机,双目视觉相机包括一个双目视觉右相机和一个双目视觉左相机;TOF相机与双目视觉的左右相机中心在一条直线上,此直线和平台与被测目标的连线相互垂直;The TOF camera and binocular vision ranging platform includes a TOF camera and a binocular vision camera. The binocular vision camera includes a binocular vision right camera and a binocular vision left camera. The centers of the TOF camera and the left and right binocular vision cameras are in a straight line, and this straight line and the line connecting the platform and the target are perpendicular to each other.S2、针对TOF相机与双目视觉分别进行如下处理:S2. Perform the following processing for TOF camera and binocular vision respectively:S2.1、确定随机测量值d的高斯分布函数:S2.1. Determine the Gaussian distribution function of the random measurement value d:其中,σ为标准差,d为n个距离值Di中的随机测量值,μ为数学期望值,σ2为n个距离值Di对应的方差;Where σ is the standard deviation, d is the random measurement value among the n distance values Di , μ is the mathematical expectation, and σ2 is the variance corresponding to the n distance values Di ;S2.2:确定可选值范围及高斯分布函数的临界值:S2.2: Determine the range of selectable values and the critical value of the Gaussian distribution function:其中,u为高斯分布函数的下临界值;Where u is the lower critical value of the Gaussian distribution function;当高斯分布函数的值大于u时,认为测量值为高概率发生值;m为n个距离值Di对应的平均值;When the value of the Gaussian distribution function is greater than u, the measured value is considered to have a high probability of occurrence; m is the average value corresponding to the n distance values Di ;S2.3:从测距初始值中选取经过高斯模型筛选后保留下的测距值Xi,个数为r;得到测距最优值:S2.3: Select r number of ranging valuesXi retained after Gaussian model screening from the ranging initial values; obtain the optimal ranging value:其中Xi为第i个满足要求的值,i=1,2,…,r,r为满足要求的个数;WhereXi is the i-th value that meets the requirements, i = 1, 2, ..., r, and r is the number of values that meet the requirements;S3、判断TOF和双目两种方法得到的测距最优值距离是否有任意一个测距最优值距离位于第一距离阈值和第二距离阈值之间,如果是,执行S4;S3, determining whether any of the optimal distances obtained by the TOF and binocular methods is between the first distance threshold and the second distance threshold; if so, executing S4;S4、对TOF测距平均值与双目视觉测距平均值按权重进行融合,得到最后测距值:S4. The average value of TOF distance measurement and the average value of binocular vision distance measurement are fused according to the weights to obtain the final distance measurement value:S4.1、将TOF相机记为p,经过高斯模型筛选后的数据记为Xp,均值为S4.1. Let the TOF camera be denoted as p, and the data filtered by the Gaussian model be denoted as Xp , with a mean of将双目视觉相机记为q,经过高斯模型筛选后的数据记为Xq,均值为The binocular vision camera is recorded as q, the data after the Gaussian model is recorded asXq , and the mean isS4.2、假设真实距离为Xture,将TOF测距平均值与双目视觉测距的观测误差记为Vp和Vq,则有Xp=Xture+Vp和Xq=Xture+Vq;观测误差Vp和Vq视作零均值平稳噪声;S4.2. Assume the true distance isXture , and denote the observation errors of the TOF distance measurement average and binocular vision distance measurement asVp andVq , respectively. Then,Xp =Xture +Vp andXq =Xture +Vq . The observation errorsVp andVq are considered as zero-mean stationary noise.相机p测量的数据,其方差为σ2=E(Vp2),其中,E(·)为期望;The variance of the data measured by camera p is σ2 =E(Vp2 ), where E(·) is the expectation;S4.3、由于经过高斯模型处理后,两个相机均有r个数据,得到相机p和相机q之间的互相关函数Rpq,以及相机p的自相关函数RppS4.3. Since both cameras have r data after being processed by the Gaussian model, we can obtain the cross-correlation function Rpq between camera p and camera q, and the autocorrelation function Rpp of camera p:S4.4、确定相机p的方差和相机q的方差:S4.4. Determine the variance of camera p And the variance of camera q:S4.5、确定相机p和相机q的加权因子Wp和WqS4.5. Determine the weighting factorsWp andWq of camera p and camera q:S4.5、利用加权因子Wp和Wq进行融合,融合后的距离X的估计值如下:S4.5. Use weighting factorsWp andWq to perform fusion. The estimated value of the fused distance X is as follows:其中,为TOF相机和双目视觉经高斯模型筛选后的数据均值。in, and It is the mean value of the data of TOF camera and binocular vision after being filtered by Gaussian model.2.根据权利要求1所述的一种基于TOF相机与双目视觉数据融合的测距方法,其特征在于,第一距离阈值和第二距离阈值的确定过程如下:2. A distance measurement method based on the fusion of TOF camera and binocular vision data according to claim 1, characterized in that the first distance threshold and the second distance threshold are determined as follows:A1、获取TOF相机与双目视觉测距平台对待测目标进行测距的数据,获取的数据对应L/k个测量位置,每个位置对应有n次测量数据;A1. Obtain the distance data of the target to be measured by the TOF camera and the binocular vision ranging platform. The obtained data corresponds to L/k measurement positions, and each position corresponds to n measurement data;L/k个测量位置:在被测目标的测距范围L内,以间隔距离为k的测量位置靠近被测目标并依次对被测目标进行测距,每个测量位置测量n次,共有L/k个测量位置;L/k measurement positions: Within the range L of the target, measurement positions separated by a distance of k are placed close to the target and the distance to the target is measured in sequence. Each measurement position is measured n times, for a total of L/k measurement positions.A2、针对TOF相机与双目视觉分别进行处理,对每一组数据利用高斯模型进行处理得到测距最优值;A2. Process the TOF camera and binocular vision separately, and use the Gaussian model to process each set of data to obtain the optimal distance measurement value;A3、基于L/k个测量位置,确定测距最优值距离与对应的距离误差,分别得到TOF和双目视觉方法在0~L测距范围内的误差-距离曲线;将TOF和双目视觉方法的误差-距离曲线绘制在一起,将两条曲线图中距离最小值对应的交点和距离最大值对应的交点即为第一距离阈值和第二距离阈值。A3. Based on L/k measurement positions, determine the optimal distance and the corresponding distance error, and obtain the error-distance curves of the TOF and binocular vision methods within the ranging range of 0 to L, respectively; plot the error-distance curves of the TOF and binocular vision methods together, and the intersection of the minimum distance value and the maximum distance value of the two curves is the first distance threshold and the second distance threshold.3.根据权利要求2所述的一种基于TOF相机与双目视觉数据融合的测距方法,其特征在于,步骤A2与步骤S2的处理过程相同。3. A distance-finding method based on TOF camera and binocular vision data fusion according to claim 2, characterized in that the processing procedures of step A2 and step S2 are identical.4.根据权利要求3所述的一种基于TOF相机与双目视觉数据融合的测距方法,其特征在于,第一距离阈值和第二距离阈值分别为1m和3.5m。4. A distance measurement method based on the fusion of TOF camera and binocular vision data according to claim 3, characterized in that the first distance threshold and the second distance threshold are respectively 1m and 3.5m.5.根据权利要求2、3或4所述的一种基于TOF相机与双目视觉数据融合的测距方法,其特征在于,所述方法还包括以下步骤:5. The distance measurement method based on the fusion of TOF camera and binocular vision data according to claim 2, 3 or 4, characterized in that the method further comprises the following steps:基于目标位置,将第一距离阈值以内的距离作为近距离段,将第二距离阈值以外的距离作为远距离段;Based on the target location, the distance within the first distance threshold is regarded as the short distance segment, and the distance outside the second distance threshold is regarded as the long distance segment;在S3判断TOF和双目两种方法得到的测距最优值距离是否有任意一个测距最优值距离位于第一距离阈值和第二距离阈值之间的过程中,如果TOF和双目两种方法得到的测距最优值距离都在远距离段,则选取TOF相机与双目视觉相机中在远距离段中距离误差较小的相机所对应的测距平均值作为最后测距值;如果TOF和双目两种方法得到的测距最优值距离都在近距离段,则选取TOF相机与双目视觉相机中在近距离段中距离误差较小的相机所对应的测距平均值作为最后测距值。In the process of determining in S3 whether any of the optimal distances of the ranging values obtained by the TOF and binocular methods is between the first distance threshold and the second distance threshold, if the optimal distances of the ranging values obtained by the TOF and binocular methods are both in the long-distance segment, the average distance value corresponding to the camera with the smaller distance error between the TOF camera and the binocular vision camera in the long-distance segment is selected as the final ranging value; if the optimal distances of the ranging values obtained by the TOF and binocular methods are both in the short-distance segment, the average distance value corresponding to the camera with the smaller distance error between the TOF camera and the binocular vision camera in the short-distance segment is selected as the final ranging value.6.根据权利要求5所述的一种基于TOF相机与双目视觉数据融合的测距方法,其特征在于,远距离段中距离误差较小的相机中所述的距离误差为在A3确定测距最优值距离与对应的距离误差的过程中确定的。6. A distance measurement method based on TOF camera and binocular vision data fusion according to claim 5, characterized in that the distance error of the camera with smaller distance error in the long-distance segment is determined in the process of determining the optimal distance and the corresponding distance error in A3.7.根据权利要求6所述的一种基于TOF相机与双目视觉数据融合的测距方法,其特征在于,近距离段中距离误差较小的相机中所述的距离误差为在A3确定测距最优值距离与对应的距离误差的过程中确定的。7. A distance measurement method based on TOF camera and binocular vision data fusion according to claim 6, characterized in that the distance error of the camera with smaller distance error in the close-range segment is determined in the process of determining the optimal distance and the corresponding distance error in A3.8.根据权利要求7所述的一种基于TOF相机与双目视觉数据融合的测距方法,其特征在于,在近距离段中,选取双目视觉相机对应的测距平均值作为最后测距值;在远距离段中,选取TOF相机对应的测距平均值作为最后测距值。8. A ranging method based on the fusion of TOF camera and binocular vision data according to claim 7, characterized in that in the close-range segment, the average ranging value corresponding to the binocular vision camera is selected as the final ranging value; in the long-range segment, the average ranging value corresponding to the TOF camera is selected as the final ranging value.9.一种计算机存储介质,其特征在于,所述存储介质中存储有至少一条指令,所述至少一条指令由处理器加载并执行以实现如权利要求1至8任意一项所述的一种基于TOF相机与双目视觉数据融合的测距方法。9. A computer storage medium, characterized in that the storage medium stores at least one instruction, and the at least one instruction is loaded and executed by a processor to implement the ranging method based on the fusion of TOF camera and binocular vision data according to any one of claims 1 to 8.10.一种基于TOF相机与双目视觉数据融合的测距设备,其特征在于,所述设备包括处理器和存储器,所述存储器中存储有至少一条指令,所述至少一条指令由处理器加载并执行以实现如权利要求1至8任意一项所述的一种基于TOF相机与双目视觉数据融合的测距方法。10. A distance measurement device based on the fusion of a TOF camera and binocular vision data, characterized in that the device includes a processor and a memory, the memory storing at least one instruction, the at least one instruction being loaded and executed by the processor to implement the distance measurement method based on the fusion of a TOF camera and binocular vision data according to any one of claims 1 to 8.
CN202310359199.6A2023-04-062023-04-06 Distance measurement method and equipment based on TOF camera and binocular vision data fusionActiveCN116430398B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202310359199.6ACN116430398B (en)2023-04-062023-04-06 Distance measurement method and equipment based on TOF camera and binocular vision data fusion

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202310359199.6ACN116430398B (en)2023-04-062023-04-06 Distance measurement method and equipment based on TOF camera and binocular vision data fusion

Publications (2)

Publication NumberPublication Date
CN116430398A CN116430398A (en)2023-07-14
CN116430398Btrue CN116430398B (en)2025-09-05

Family

ID=87080922

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202310359199.6AActiveCN116430398B (en)2023-04-062023-04-06 Distance measurement method and equipment based on TOF camera and binocular vision data fusion

Country Status (1)

CountryLink
CN (1)CN116430398B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116990830B (en)*2023-09-272023-12-29锐驰激光(深圳)有限公司Distance positioning method and device based on binocular and TOF, electronic equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113792593A (en)*2021-08-062021-12-14昆山泰仑合机器人科技有限公司Underwater close-range target identification and tracking method and system based on depth fusion
CN115714855A (en)*2022-10-112023-02-24华中科技大学Three-dimensional visual perception method and system based on stereoscopic vision and TOF fusion

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2021087812A1 (en)*2019-11-062021-05-14Oppo广东移动通信有限公司Method for determining depth value of image, image processor and module
CN113052886A (en)*2021-04-092021-06-29同济大学Method for acquiring depth information of double TOF cameras by adopting binocular principle

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113792593A (en)*2021-08-062021-12-14昆山泰仑合机器人科技有限公司Underwater close-range target identification and tracking method and system based on depth fusion
CN115714855A (en)*2022-10-112023-02-24华中科技大学Three-dimensional visual perception method and system based on stereoscopic vision and TOF fusion

Also Published As

Publication numberPublication date
CN116430398A (en)2023-07-14

Similar Documents

PublicationPublication DateTitle
CN111161358B (en) A camera calibration method and device for structured light depth measurement
CN108401457A (en)A kind of control method of exposure, device and unmanned plane
CN107481284A (en)Method, apparatus, terminal and the system of target tracking path accuracy measurement
JP2011179908A (en)Three-dimensional measurement apparatus, method for processing the same, and program
CN111982124B (en) 3D LiDAR Navigation Method and Device in Glass Scene Based on Deep Learning
CN103649674A (en)Measurement device and information processing device
JPH10124658A (en) Image distortion correction method of camera using neural network
CN113822920B (en)Method for acquiring depth information by structured light camera, electronic equipment and storage medium
CN117197241B (en) A high-precision tracking method for absolute posture of robot end based on multi-eye vision
CN111798507A (en)Power transmission line safety distance measuring method, computer equipment and storage medium
CN105306922A (en)Method and device for obtaining depth camera reference diagram
CN116430398B (en) Distance measurement method and equipment based on TOF camera and binocular vision data fusion
CN114332191A (en)Three-dimensional point cloud error compensation method and device
CN118623894B (en) An autonomous navigation and obstacle avoidance method for robots in dynamic scenes
WO2022217988A1 (en)Sensor configuration scheme determination method and apparatus, computer device, storage medium, and program
CN113077518A (en)Camera parameter calibration method, device and storage medium
CN115115684B (en)Calibration method, system, electronic device and computer readable storage medium
CN110068308A (en)A kind of distance measuring method and range-measurement system based on more mesh cameras
CN112344966B (en)Positioning failure detection method and device, storage medium and electronic equipment
CN117523009B (en)Binocular camera calibration method, system, device and storage medium
CN112405526A (en)Robot positioning method and device, equipment and storage medium
Sarkis et al.Modeling the variation of the intrinsic parameters of an automatic zoom camera system using moving least-squares
CN115830111B (en) A method for UAV image positioning and attitude determination based on adaptive fusion of point and line features
CN116503387B (en)Image detection method, device, equipment, system and readable storage medium
CN111586299B (en)Image processing method and related equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp