Need help in the topics of robotics

I want to build a robot which can able to detect a goalkeeper in front of a goal post and after that it can able to bypass that goal keeper. Is it possible??