The faces to be identified should be added to the folder called faces.
A folder named img_process should be created to save the detected faces in the same directory.
Face recognition done using face recognition library on python. IOU method was used for dangerous and safe zone detection.
Python