摘要 |
The present invention provides an optical flow tracking method and apparatus, where the method includes: generating a random structure according to an object to be tracked in an image, where the random structure includes at least two structure blocks with fixed relative 5 positions, and each of the structure blocks includes at least one characteristic point of the object to be tracked; tracking all structure blocks in the random structure by using an optical flow tracking algorithm, to obtain a position offset of the random structure; and estimating a target position of the object to be tracked according to the position offset of the random structure. According to the optical flow tracking method and apparatus provided in 10 embodiments of the present invention, characteristic points of an object to be tracked in an image are obtained, and a random structure is generated according to the characteristic points, and each random structure is tracked to obtain a position offset of the random structure, so as to estimate a position of the object to be tracked, thereby reducing tracking errors and effectively improving tracking precision. |