The invention discloses an X-ray imaging method with an automatic correction function. The method includes that first, the point light source of an X-ray source directly irradiates to a flat panel detector, and the flat panel detector receives image signals; second, the image signals are amplified through a signal amplifier and then enter into an automatic correction unit for correction, the relation between an output signal I (x, y) and an output signal I0 (x, y) of the automatic correction unit is that I (x, y) =G0(x, y)* S (x, y)* I0 (x, y), wherein the (x, y) is an image space coordinate, G0(x, y) is a sensitivity correction function of a detector, and S (x, y) is a system automatic correction function; and at last, corrected images are processed by a digital image processing unit and then output. According to the imaging system, under a changing condition, without the need for repeated correction, an optimal image can still be developed.