Tailgating detection from using monocular camera and edge device