Infrared image-based weak and small moving target detecting method

The invention discloses an infrared image-based weak and small moving target detecting method. The method disclosed by the invention comprises the steps of median background difference image generation, accumulated difference image generation, difference image segmentation, periodical motion area elimination and false target elimination. Concretely, the method comprises: establishing a grayscale histogram for each pixel to count the frequency of the appearance of the pixel on each grayscale in the latest time period, calculating a median to obtain median background, and calculating the absolute frame difference between the median background and a detected frame to obtain a median background difference image; calculating the frame difference between each two adjacent frames continuously, and accumulatively adding difference images to obtain an accumulated difference image; eliminating interference from periodical motion areas, and highlighting a real moving target; and finding a reasonable target track by using motion and grayscale consistency of the target. The method disclosed by the invention can accurately and continuously detect the weak and small moving target day and night at a remote distance, has high real-time performance and high robustness, and is easy to promote in application field of military robot battle reconnaissance, video monitoring and the like.