Random questions

Hello everyone, I have a random question if anyone can respond it and thank you.

  1. let’s say I’m doing social distanciation project, but how for example we can do it ? Like I don’t think that training a model on a dataset will be able to detect the distance between two persons??
    What really I’m asking, how to train a model to detect the distance? If there is any other solution please provide it.

You can detect person/face/something to get (x,y) value for each person of interest. After that you need to transform your image from image to planar scale. Homography is the term you are looking for to do that. See opencv docs for info on this. Now you can compute the distances between all pairs of points.