An image detection method and device are used to improve the detection rate and the accuracy rate for the detection of a moving target in an image, so as to accurately detect a moving target in a scenario of complex illumination changes. The image detection method comprises: collecting an image; detecting a moving target in the image and determining a target image by using a preset mixed time-space background model; the mixed time-space background model is obtained in advance through modeling according to a gray level change trend of the image.