I am very new to all this OpenCV processing. Can I measure the distance from my PiCamera v2 to any object (detected with YOLO before) with very few tolerance using OpenCV? I heard about the mathematical formula in "https://stackoverflow.com/questions/14038002/opencv-how-to-calculate-distance-between-camera-and-object-using-image" and the chessboard camera calibration in "https://learnopencv.com/camera-calibration-using-opencv/". As far as I've researched, there were only examples with reference images and face detections or reference images and distance estimation of maximum two objects.
In my case I adapted the YOLO Object detection with OpenCV but also need the distances to these several objects just by using OpenCV and my PiCamera v2. Is is possible at all? Do you have any proposals?