Vehicle pose detection plays a vital role in modern automotive technology, which can improve driving safety, enhance vehicle stability and provide important support for the development of autonomous driving technology. The current pose estimation methods have the problems of accumulation errors, large algorithm computing power, and expensive cost, so they cannot be widely used in intelligent connected vehicles. This paper proposes a vehicle pose detection method based on an RSU (Roadside Unit). First, the on-board GPS performs the positioning of the target vehicle and transmits the positioning information to the RSU through the UDP (User Data Protocol). Next, the RSU transmits a forward command to the OBU (On-board Unit) through the UDP. The OBU sends the command to the ECU (Electronic Control Unit) to control the vehicle forward. Then, the RSU detects and tracks the vehicle. The RSU takes pictures of two images before and after the movement and obtains the coordinates of the four angle points and the center point by image processing. The vehicle heading direction is determined by the moving direction of the center point of the front and rear two images. Finally, the RSU captures the vehicle images in real time, performs the process of tracking, rectangular fitting and pose calculation to obtain the pose information and transmits the information to the OBU to complete the whole process of vehicle pose detection and information transmission. Experiments show that the method can realize accurate and efficient detection of vehicle pose, meet the real-time requirements of vehicle pose detection, and can be widely used in intelligent vehicles.