In order to prevent locomotive deviation accident caused by negligence operation of driver in coal yard of inclined shaft, safety control system of trailer operation of electrical locomotive was designed based on machine image recognition, wireless remote control, PLC control. The composition and control principle of the system were introduced. The practical application showed that the system is sensitive and accurate in identification locomotive, timely and reliable in braking, which effectively put an end to the locomotive deviation accident in coal yard of inclined shaft.