Thanks for sharing ...!!!
I have some questions with respect to implementation part of it.
scale_w = 1.2 / 2 scale_h = 4 / 2 how did you select you with respect to image size?
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 ?
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.
what is that calculate_stay_at_home_index functions;ity?
Thanks for sharing ...!!! I have some questions with respect to implementation part of it.