The invention discloses an automatic image acquiring magnetic particle flaw detector for train axles. The automatic image acquiring magnetic particle flaw detector for the train axles comprises a darkroom, wherein a hanger support and a magnetic particle flaw detector body is arranged in the darkroom. The magnetic particle flaw detector body comprises a magnetic suspension spraying mechanism, an open-close type electromagnetic coil, a linear guide rail, a workpiece clamp, a rotation driving mechanism and a linear driving mechanism, wherein the open-close type electromagnetic coil is installed on a sliding block, the workpiece clamp is used for clamping the workpiece which is sleeved in the open-close type electromagnetic coil when flaws are detected, the rotation driving mechanism is used for driving the workpiece to rotate, the linear driving mechanism is used for driving the open-close type electromagnetic coil to move along the linear guide rail, image acquiring mechanisms arranged in a straight line is installed on the hanger support, and two parallel ultraviolet light illuminating lines are symmetrically arranged on the two sides of the straight line. The automatic image acquiring magnetic particle flaw detector for the train axles can facilitate the judge on whether flaws exist on the workpiece or not of an operator outside the range of the darkroom, and avoids the long-term work of the operator under an environment with ultraviolet rays.