The factors affecting magnetic field distribution above weld joint are investigated. A magneto-optical imaging deviation prediction model is established for seam tracking. The change of lift-off height will affect the detection accuracy of weld position.