aqeelanwar / SocialDistancingAI

Using Python to monitor social distancing
MIT License
105 stars 71 forks source link

Some question regarding implementation #12

Open bundelesneha05 opened 4 years ago

bundelesneha05 commented 4 years ago

Thanks for sharing ...!!! I have some questions with respect to implementation part of it.

  1. scale_w = 1.2 / 2 scale_h = 4 / 2 how did you select you with respect to image size?
  2. It looks like you are doing cv2.getperspective transform for a selected polygon points, for 6 feet person's two points you are using cv2.perspectivetransform, pts = src = np.float32(np.array([four_points[4:]])) warped_pt = cv2.perspectiveTransform(pts, M)[0] But while coding you are taking three points rather two points can you specify the significance of this ?
  3. for ten feet violations you used, ten_feet_violations = len(np.where(dist_condensed < 10 / 6 * d_thresh)[0]) Can you convert this formula for generic distance calculation like for 1 feet , 2 feet ..etc.
  4. what is that calculate_stay_at_home_index functions;ity?