Final Year Project

Final Year Project 2 - Progress 1

Training of new face mask detection model

Some improvements are done:

  1. The face mask model includes 3 classes: with_mask, without_mask, incorrect_mask _wearing with a total number of 3800 images.
  2. The best mAP achieved is 94.83% (> 90%) and average loss of 1.3972. It is considered great result for real-time detection.
  3. However, there might be some error detection on images but still consider acceptable (e.g: incorrect_mask_wearing is detected as with_mask)

 

mAP and loss chart

Testing Image 1

Testing Image 2

Testing Image 3

Testing Video

Download output.avi [45.18MB]
Details

Social Distancing Detection Model

  1. Capture first frame of the input video as an image (Figure 1)
  2. Select 4 points to be transformed into bird's view, 4 points are connected with lines. (Figure 2)
  3. Transform the captured first frame image into bird's view. (Figure 3)
  4. Then fed in again the input video, and transform it into bird's view using the selected 4 points. (Figure 4)
  5. The blue line shows the selected region to be used to detect person. (Figure 5)

To be improved:

  1. For now, the whole region of the video is detected (not the selected region).
  2. Use the Figure 4 for person detection.
  3. Check for violation distance.

 

Figure 1

First Frame of Input Video
Details

Figure 2

Chosen 4 points connected in line
Details

Figure 3

Image in bird's view
Details

FIgure 4

Sample frame of input video that has transformed into bird's view
Details

FIgure 5

Person detection on original video
Details