A kind of motion target tracking method and system based on optical flow method

The present invention provides a kind of motion target tracking method and system based on optical flow method, and the method includes providing video image and carry out pretreatment to described image to generate pretreatment image;Edge detection is carried out to pretreatment image and target information is extracted to pretreatment image using optical flow method, and complete moving target is generated according to the information of edge detection and the target information extracted fusion;The error matching points that estimation analysis is carried out to the moving target using optical flow method and rejecting is generated due to illumination using the algorithm of Backward error forward based on feature point trajectory;Drawing template establishment image and carry out template image matching moving target is tracked.The motion target tracking method based on optical flow method and system of the embodiment of the present invention have moving target recognition accurately complete, and the advantages of can be realized prolonged tenacious tracking.