In order to improve the centralized planning ability of logistics distribution path data, improve the efficiency of logistics distribution and reduce the cost of logistics distribution, this paper proposes an optimal path selection algorithm based on machine vision. Using machine vision technology to calibrate the coordinates of logistics distribution path, combined with EMD decomposition method and wavelet denoising method to remove redundant data in logistics distribution data, particle swarm optimization algorithm to complete logistics distribution path planning, and ant colony algorithm to realize the optimal path selection of logistics distribution. The experimental results show that the average distribution cost of this method is only 766.7 yuan, the distribution time is less than 0.3 h, and the customer satisfaction is as high as 98%, which shows that this method can effectively optimize the distribution path.