Social Distancing Detector Using Yolo
Social Distancing Detector Using Yolo
Social Distancing Detector Using Yolo
Balineni Kushaal
[email protected] Naveen Marella Penugonda Sandeep
[email protected] [email protected]
III. METHODOLOGY
Object detection
With just one look at the picture, the type of an object and
location of the object can be predicted by using this model.
In allocating class probabilities to the subjects, YOLO treats
the detection issue as a regression task rather than a
classification task. This YOLO algorithm also predicts
multiple bounding boxes for a single subject and with
closest probabilities at the same instance. Basically
YOLOv1, YOLOv2, and YOLOv3 are the three main Fig (b) showing an example of Non maxima suppression
algorithms used in object classification. The YOLO v1
algorithm is used to identify subjects in the video frame
image. YOLO is an object detector which can detect the Distance caluculation
possible areas within an image where certain objects may be
present and classifies certain areas into object classes in a After detection of each individual in each video frame, in
single step. YOLOv3 has a 53 convolutional layers further step, the distance is computed by the bounding boxes
including 3x3 and 1x1 filters, with shortened connections from the centroid of every identified subject. The detected
between each layers for extraction of each subject. For each boundary box specific coordinates are used for calculating
individual subject three predictions of bounding boxes are each box’s centroid. After calculating, the centroid each
identified bounding box Is given a unique ID and the next
step is to compute the distance between each detected
object. we first examined each individual frame in the video
stream and centroids of every bounding box and the pair-
wise distance is calculated using Euclidean distance. Every
centroid data is stored within the sort of an inventory. Based
on the each distance value between every pair in the frame To calculate the distance between the centroids
image an input threshold value is given to check if the
distance is less than the specified pixel or not. If they are
C1 and C2 of the detected pair subjects
less than given threshold value the colour of the bounding
box is displayed as red indicating they are not following the
social distancing or else it displays green as shown in the
flow chart diagram in fig(c) The information in the violation
set will be updated frame to frame. If the violation set (list)
consists the existing present index , then the colour is
where c= centroid of the bounding box,
changed to red, and even the number of violations is also C1=(Xmin,Ymin) ; C2=(Xmax,Ymax) , (x,y) are
shown in the output. the co-ordinates of the centroid.
IV. FLOW CHART
Fig 1
Fig(c)
Fig 2
VIII. REFERENCES 8. Ahmed I., Ahmad A., Piccialli F., Sangaiah A.K., Jeon G.
IEEE Internet of Things Journal. 2018;5:1598– 1605.
1. Imran Ahmed, Misbah Ahmed ,joel J.P.C. Rodrigues, 9. Ahmed I., Ahmad M., Adnan A., Ahmad A., Khan M.
Gwanggil Jeon, and Sadia Din ‘A deep learning based social International Journal of Machine Learning and Cybernetics.
distancing monitoring framework for COVID-19’ 2020 Nov 2019:1–12.
1. pp.7-20
10. Girshick R. Proceedings of the IEEE international
2. Ahmad M., Ahmed I., Ullah K., Khan I., Adnan A. 2018 conference on computer vision. 2015. pp. 1440–1448
9th IEEE annual ubiquitous computing, electronics mobile
communication conference (UEMCON) 2018. pp. 746–752 11. Ramadass L., Arunachalam S., Sagayasree Z.
. International Journal of Pervasive Computing and
3. WEI FANG,LIN WANG,and PEIMING REN " Tinier- Communications. 2020
YOLO: A Real-Time Object Detection Method for
Constrained Environments" Published on 2019 Dec 24. 12. N. S. Punn, S. K. Sonbhadra, and S. Agarwal, “Covid-
19 epidemic analysis using machine learning and deep
4. MATE KRIŠTO,MARINA IVASIC-KOS,and MIRAN learning algorithms,” medRxiv, 2020.
POBAR "Thermal Object Detection in Difficult Weather
Conditions Using YOLO" 2020 july 06 vol 8.pp.8-9