Real time tracking in 3D space by image processing