Object detection and chasing by STS-pi robot using opencv and YOLO library

Hi All,
I am trying to program an STS-pi robot to detect an object (say cat) and chasing the object.
I need help to program in python to control the motor movements of STS-pi.
I have coordinates of the box detecting the Cat’s position. So my aim is to move the robot to follow those coordinates.
If someone could help me with code and required pin connections, would be appreciated.

Many thanks!

Kind regards