Improving Visual Perception of a Social Robot for Controlled and In-the-wild Human-robot Interaction