The application relates to an X-
ray fluorescence imaging method and device,
electronic equipment and a storage medium, comprising: incident X-rays to a sample to be scanned to excite X-
ray fluorescence photons and scattered photons in the sample to be scanned; the
fluorescence photons and / or scattered photons are shot into a
Compton camera detector to obtain first spatial coordinates and first deposited energies of scattering events of the fluorescence photons and the scattered photons when
Compton scattering occurs during movement of the
Compton camera detector, and second spatial coordinates and second deposited energies of absorption events; and image reconstruction of the
Compton camera is performed according to the first spatial coordinates, the first deposited energies, the second spatial coordinates and the second deposited energies to obtain a three-dimensional image of the sample to be scanned. Thus, the problems of a large amount of
noise and a low
signal-to-
noise ratio caused by scattered photons generated by X-
ray excitation, difficult identification and imaging of fluorescence photons, and
low resolution of the Compton camera for incident photons below 100 keV are solved.