1. A method for the real-time correction of latent charges in a detector of an X-ray apparatus, the method comprising: determining successive read and integration phases of the detector; corresponding the successive read and integration phases of the detector with a clock signal; exposing a patient's body to radiation produced by the X-ray apparatus; obtaining, through each final read phase situated just after said integration phase of the detector, a raw image representing an internal structure of the body determining, for each integration phase, an initial read phase situated just before said integration phase; measuring, for each integration phase, the charges present in the detector at the corresponding initial read phase producing a lag image from the latent charges measured in the initial read phase; and subtracting the lag image from the raw image.