The objects will be a target (the target is about a 2 by 2 foot hole with a wooden structure suspended approximately 6 to 8 feet in the air) and balls (yellow and blue, about 6 inches in diameter)
I recommend you look at the attached document for further dimensions.
Measuring distance to an object can be done with two or more cameras using stereo vision.
This inexpensive stereo camera from Luxonis works quite well, and also performs object recognition. However, a Raspberry Pi (Zero W at minimum) or laptop/desktop PC to work with it.