A method for eliminating an interference pattern in an image, applicable to an electronic device, the electronic device comprising a display screen, a flight of time ToF sensor being arranged under the display screen, the ToF sensor comprising an emitting unit and a receiving unit, and the method comprising: obtaining (S701, S801, S901, S1001) K interference patterns, wherein the K interference patterns correspond to K different values of a same parameter, wherein the parameter is a temperature in a case that the receiving unit collects an image, or a wavelength of the laser emitted by the emitting unit, or an exposure time for the receiving unit to collect an image, or ambient light intensity in a case that the receiving unit collects an image, and each of the interference patterns is a bright-dark concentric ring generated in a case that laser emitted by the emitting unit passes through the display screen; collecting (S702, S802, S902, S1002), by the receiving unit, a first image; measuring (S703, S803, S903, S1003) a first value of the parameter in a case that the receiving unit collects the first image; determining (S704, S804, S904, S1004) a first interference pattern in the K interference patterns, wherein the first interference pattern corresponds to a second value of the parameter, and a difference between the second value and the first value is less than or equal to a first value; and eliminating (S706, S806, S906, S1006) a second interference pattern in the first image by dividing the first image by the second interference pattern so that the first image in which the interference pattern is eliminated is obtained, wherein the second interference pattern is determined (S705, S805, S905, S1005) according to the first interference pattern, wherein that the second interference pattern is determined (S705, S805, S905, S1005) according to the first interference pattern comprises: the second interference pattern being generated by enlarging a radius of each circular ring in the first interference pattern; or the second interference pattern being generated by decreasing a radius of each circular ring in the first interference pattern, wherein enlarging or decreasing the radius of each circular ring in the first interference pattern comprises: an enlarged value or a decreased value of a radius of a circular ring of an m i th interference order in the first interference pattern being: dr d λ = 4 f 2 h 2 n λ 2 m 2 4 f 2 h 2 n 2 λ 2 m 2 − f 2, wherein λ is the wavelength of the laser emitted by the emitting unit, f is a focal length of a lens of the ToF sensor, n is a refractive index of a screen layer in which refraction occurs in the display screen, and h is a thickness of the screen layer in which refraction occurs in the display screen. obtaining (S701, S801, S901, S1001) K interference patterns, wherein the K interference patterns correspond to K different values of a same parameter, wherein the parameter is a temperature in a case that the receiving unit collects an image, or a wavelength of the laser emitted by the emitting unit, or an exposure time for the receiving unit to collect an image, or ambient light intensity in a case that the receiving unit collects an image, and each of the interference patterns is a bright-dark concentric ring generated in a case that laser emitted by the emitting unit passes through the display screen; collecting (S702, S802, S902, S1002), by the receiving unit, a first image; measuring (S703, S803, S903, S1003) a first value of the parameter in a case that the receiving unit collects the first image; determining (S704, S804, S904, S1004) a first interference pattern in the K interference patterns, wherein the first interference pattern corresponds to a second value of the parameter, and a difference between the second value and the first value is less than or equal to a first value; and eliminating (S706, S806, S906, S1006) a second interference pattern in the first image by dividing the first image by the second interference pattern so that the first image in which the interference pattern is eliminated is obtained, wherein the second interference pattern is determined (S705, S805, S905, S1005) according to the first interference pattern, wherein that the second interference pattern is determined (S705, S805, S905, S1005) according to the first interference pattern comprises: the second interference pattern being generated by enlarging a radius of each circular ring in the first interference pattern; or the second interference pattern being generated by decreasing a radius of each circular ring in the first interference pattern, wherein enlarging or decreasing the radius of each circular ring in the first interference pattern comprises: the second interference pattern being generated by enlarging a radius of each circular ring in the first interference pattern; or the second interference pattern being generated by decreasing a radius of each circular ring in the first interference pattern, wherein enlarging or decreasing the radius of each circular ring in the first interference pattern comprises: an enlarged value or a decreased value of a radius of a circular ring of an m i th interference order in the first interference pattern being: dr d λ = 4 f 2 h 2 n λ 2 m 2 4 f 2 h 2 n 2 λ 2 m 2 − f 2, wherein λ is the wavelength of the laser emitted by the emitting unit, f is a focal length of a lens of the ToF sensor, n is a refractive index of a screen layer in which refraction occurs in the display screen, and h is a thickness of the screen layer in which refraction occurs in the display screen.