Embedded motion tracker using computer vision