摘要 |
The present invention provides an optical flow tracking method and apparatus. The method comprises: generating a random structure according to an object to be tracked on an image, the random structure comprising at least two structure blocks having fixed relative locations, and each structure block comprising at least one feature point of the object to be tracked; tracking all structure blocks in the random structure by using an optical flow tracking algorithm, so as to obtain a location offset of the random structure; and estimating a target location of the object to be tracked according to the location offset of the random structure. In the optical flow tracking method and apparatus provided in the embodiments of the present invention, the feature points of the object to be tracked on the image are obtained, the random structures are generated from the feature points, each random structure is tracked to obtain a location offset of the random structure, and accordingly, the location of the object to be tracked is estimated, tracking errors are reduced, and tracking precision is effectively improved. |