A Real-time Approach to 3D Object Tracking in Complex Scenes