[Python] Calculate the distance between the camera and the detected objects? - YOLOv8

Discussão em 'Python' iniciado por Stack, Junho 11, 2025.

  1. Stack

    Stack Membro Participativo

    I trained a YOLOv8 small model using my custom dataset, and it successfully detects people, vehicles, and various other objects. To enhance its functionality for downstream processing, I need to calculate the distance to these detected objects.

    I have the camera's focal length (in mm) and would like the distance to the object (in feet or meters).

    Continue reading...

Compartilhe esta Página