The compound nested control method of PID control and fuzzy control is used to control the walking position and speed of the bridge crane, and image processing technology is applied to detect the critical position during rotor hoisting. The system simulation is carried out using Matlab/Simulink, and the feasibility of the control method is verified based on the overshoot, response time, and stability indicators with the unit step signal as the excitation. The results show that the time required to reach steady state through fixed parameter PID simulation analysis is 0.237 s, and the overshoot is 3.3%. The time required for steady state using fuzzy PID control is 0.12s, the response speed is better than that of fixed parameter PID control, and the system has no overshoot. The image of the stator captured by the camera is processed by OpenCV. Firstly, the image is grayed and the Gaussian filtering is used to remove the image noise. Then, the stator edge contour is detected based on the Canny edge detection algorithm. The test shows that OpenCV can accurately identify the edge of the stator and extract the central coordinates of the stator image, which assists the bridge crane in accurate positioning.