I assume you are looking for object detecting and localising (bounding box). If so, you can have a look at this example from pytorch here, https://pytorch.org/tutorials/intermediate/torchvision_tutorial.html 5 . However, this is a fine running example and consists of block diagram of how object detection and localisation works.
If not try to explain the scenario a bit more contextually so that community may suggest one