The invention discloses a moving target detection method based on optical flow field clustering. The method comprises the following steps: to begin with, generating a dense optical flow field for each frame of image of a video through a DeepFlow algorithm; then, carrying out optical flow field clustering by utilizing a DENCLUE algorithm, and clustering motion vector similar pixels into blob; then, merging the motion vector similar blob; and finally, in the time aspect, merging the adjacent multiframe blob and forming a moving target tracking path. The method has good robustness for interferences of illumination variation, shadow, noise and random swing and the like, can naturally segment the targets, the motion vectors of which are inconsistent, has a great application value for follow-up classification, tracking and retrieval and the like, is high in detection rate, and can better detect the moving targets, which can be recognized by human eyes, in the video.