- Detect faces using cvlib.detect_faces
- Apply model to classifiy if the face is masked or not
- Detect bounding boxes of person using cvlib.detect_common_objects
- calculate centroid for all boxes
- feed these centroid to sklearn.DBSCAN to get the clusters.
Run both these tasks in 2 different threads.
use streaming to stream the final frame from the app to the browser
Realtime person, distance violators and un masked count display Post Session statistics of overall detection with time for analysis.