Abstract:For the problem of complex calibration step, image matching and inaccurate in the current distance measurement algorithm, a long-range dynamic foreground distance measurement was proposed. The two cameras in the system were responsible for collecting real-time environment image and detecting the object by foreground detection algorithm. Three-dimensional coordinate of the object in the calibration mapping points on the board was worked out by measuring the distance between the two cameras, the distance between calibration and cameras, the width and height of calibration board according to perspective projection model. The two line formulas whose intersection point is the object was work out according to the two camera coordinates. The distance from the object to the camera was calculated by Euclidean distance formula. The experiments show that all the measured errors are less than 3% when the target distance is less than 3000 meters, the average measurement errors of computer vision dynamic foreground and traditional distance measurement methods are separately 2.90% and 25.50% when the target distance is more than 3000 meters, and the computer vision dynamic foreground distance measurement method shows a higher accuracy.