The invention relates to an intrusion detection
algorithm based on a
Fourier descriptor and a
histogram of oriented gradient, which comprises the steps of 1) acquiring a continuous video frame image; 2) carrying out inter-
frame difference on the video frame image, performing a series of morphological operations, and acquiring an actual motion region; 3) judging whether the motion region is a
human body target or not, intercepting the video frame image and a
binary image corresponding to the actual motion region acquired in the step 2), extracting HOG (
histogram of oriented gradient) features of the video frame image in a sliding window mode, carrying out judgment by adopting an HOG classifier, extracting FD (
Fourier descriptor) features of a specified dimension in the
binary image, carrying out judgment by adopting an FD classifier, and carrying out an AND operation on results acquired by the two classifiers so as to acquire a final judgment result; and 4) according to the judgment result of the step 3), carrying out follow-up behavior logic judgment if the motion region is judged to be a
human body target, and giving out an alarm. The intrusion detection
algorithm provided by the invention is high in robustness for illumination, the
image quality and environmental interference, and the detection precision is high.