Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question #4

Open
SamiurRahman1 opened this issue Feb 23, 2021 · 1 comment
Open

Question #4

SamiurRahman1 opened this issue Feb 23, 2021 · 1 comment

Comments

@SamiurRahman1
Copy link

Hello, thank you for your cool repo. I just had a couple of questions,

  1. How did you calculate the distance between two persons? Did you use bird-eye view? Or only the pixel distance was calculated?
  2. Can we change the distance threshold value somehow?

Thanks

@ChargedMonk
Copy link
Owner

ChargedMonk commented Jun 22, 2021

Sorry for replying so late,

  1. I used euclidean distance between the centres of people (all in pixels). Yes, I used the bird-eye view.
  2. Yes, we can change the thresholds for both yellow level warning and red level warnings by passing the thresholds to the function distancing on line 111 of detect.py - distancing(people_coords, im0, dist_thres_lim=(200,250)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants