Or calculate the distance between your object and the camera based on object size, sensor and lens focal length!
Please enter available values to calculate the missing values - for example :
Object distance and dimensions focal length
Focal length and object dimensions object distance