Wide-range application scenarios, such as industrial, medical, rescue, etc., are in various demand for human spatial positioning technology. However, the existing MEMS-based sensor positioning methods have many problems, such as large accuracy errors, poor real-time performance and a single scene. We focused on improving the accuracy of IMU-based both feet localization and path tracing, and analyzed three traditional methods. In this paper, a planar spatial human positioning method based on high-resolution pressure insoles and IMU sensors was improved, and a real-time position compensation method for walking modes was proposed. To validate the improved method, we added two high-resolution pressure insoles to our self-developed motion capture system with a wireless sensor network (WSN) system consisting of 12 IMUs. By multi-sensor data fusion, we implemented dynamic recognition and automatic matching of compensation values for five walking modes, with real-time spatial-position calculation of the touchdown foot, enhancing the 3D accuracy of its practical positioning. Finally, we compared the proposed algorithm with three old methods by statistical analysis of multiple sets of experimental data. The experimental results show that this method has higher positioning accuracy in real-time indoor positioning and path-tracking tasks. The methodology can have more extensive and effective applications in the future.