An object extraction method and apparatus for motion

Embodiment of the present invention discloses a method and apparatus for moving object extraction, the method comprising: obtaining a current frame image and the background image, and the current frame image and the background image are compared and analyzed, the foreground image and the extracted difference image; detecting foreground image, the foreground image is detected if there is at least a moving target area, based on the current frame image and the background image to the at least one moving object region statistical average gradient; at least one difference image, and moves according to the mean statistics gradient gradient acquisition target region signature, and the signature of the gradient operation and the extended communication line projection neighborhood value, said signature acquiring light region corresponding foreground image; FIGS marker region based on the light and moving said at least one gradient value of each pixel in the target area extracted from the foreground image moving objects, to solve the erroneous detection due to the problems of the prior art due to light irradiation.