Robust motion detection and tracking for human-robot interaction