how object tracking with bounding box?

Hello, I want to detect objects with a bounding box that will give me the vertical and horizontal axis, what code should I type?please hellp me

You could try this:

image

or:

image

Would that work for you? If that’s not it, do elaborate.