Object tracking / chasing robot

Since i am firly new to open

Since i am firly new to open CV i would like to see how you wrote the object detection and translated it into commands to move.
I guess options number 1 & 2 are my choices.
Thanks!