With the continuous increase of the urban population, urban traffic problems have become increasingly prominent. The subway and light rail have the characteristics of large passenger volume and low pollution, which are the preferred solutions to solve the traffic problems in large and medium cities. Due to the high density of rail transit trains, the close distance between stations, and the high safety requirements, the real-time and accurate determination of the train's position on the line is the premise to ensure safety, maximize efficiency, and provide the best service. How to accurately detect the speed and position of the train to control its the operation is the core content of the rail transit system. Therefore, the in-depth study of train positioning methods has great and far-reaching significance for promoting the research of train operation control system and the development of rail transit system. It has become a research hotspot to rely on computer technology and image recognition technology to realize precise positioning of trains. In order to realize the real-time precise positioning of the train, this paper proposes a train positioning method based on Haar wavelet transform. First, the samples are obtained by the method of video acquisition, and the video images are initially processed by binarization. Second, the image is compressed, denoised, and enhanced by Haar wavelet transform, and the train number is determined. Finally, the orbital electronic map and satellite assistance are used to determine the position of the train and realize the train positioning. The simulation experiments show that the image acquired by Haar wavelet transform can accurately identify the train and track. Based on the satellite aid of the orbital electronic map, the train positioning can be accurately realized, and the proposed Haar wavelet transform is proposed and has good positioning accuracy.