Tuesday, September 5, 2017

opencv - Optimal measurement model for Kalman in Augmented Reality


I am developing an augmented reality SDK that uses Kalman for tracking a planar marker. My state is composed of 3D position, a quaternion, velocity and angular velocity.


\begin{bmatrix}{\vec{p}}\\{\vec{q}}\\{\vec{v}}\\{\vec{\omega }}\end{bmatrix}


For some reason Kalman is not tracking properly. I think that the problem is our measurement model.


enter image description here


We use points (we tried 4 and 8) detected in the real-world marker (proyected points) as measurements $ z_k$. Kalman predicted measurements $h(x_k^-)$ are the matches of those points in the trained-marker, and proyected with the homography predicted by Kalman. Kalman doesn't predict homography directly, but can be extracted from position and quaternion. Homography from Kalman should proyect the matched pairs close to the measured pairs.


Is this a good measurement model? Does anybody have a better idea?


Here is a link of the expected result of project of this type with Kalman softening the tracking. In our project the 3D projections are shaking, it is not precise.





No comments:

Post a Comment

periodic trends - Comparing radii in lithium, beryllium, magnesium, aluminium and sodium ions

Apparently the of last four, $\ce{Mg^2+}$ is closest in radius to $\ce{Li+}$. Is this true, and if so, why would a whole larger shell ($\ce{...