Patent ID: 8026931

Claim:
A method at least partially implemented by a computing device, the method comprising: identifying a foreground object in a video stream comprising multiple image frames; rendering a three-dimensional (3-D) visual feature over a portion of the foreground object to add a digital video effect to the video stream and generate a modified foreground object; tracking each pose of the foreground object in 3-D space across the multiple image frames by; iteratively refining estimations associated with a first and a second conditional distributions in a joint distribution of a Bayesian network that models the foreground object, the first conditional distribution comprises a distribution of a relative pose given correspondences between 3-D model points and two-dimensional (2-D) features of the foreground object, the second conditional distribution comprises a distribution of matching features of the visual object between two frames of the video sequence given the 3-D model points and a relative pose estimation associated with the first conditional distribution; and using a Bayesian fusion of the iteratively refined estimations to obtain a current pose of the foreground object, wherein the iteratively refined estimations include an iteratively refined relative pose estimation and an iteratively refined feature matching estimation; and maintaining rendered aspect ratios of the 3-D visual feature in correspondence with aspect ratios of a remaining portion of the foreground object as the foreground object changes pose in respective ones of the image frames.