Skip to content

Dooopinder/FaceTrack-Surveillance-GUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

FaceTrack-Surveillance-GUI

A real-time face recognition and gaze-tracking surveillance system with a Tkinter GUI. Built using OpenCV, dlib, and face_recognition, it detects known and unknown individuals, tracks gaze direction, and flags suspicious activity.

πŸ”§ Features

  • βœ… Save and register known faces via GUI
  • Real-time face detection and identification
  • Eye gaze tracking using facial landmarks (dlib)
  • 🚨 Flags and pauses on 5 off-focus gaze violations
  • Saves session metadata and violation snapshots
  • Tkinter-based GUI for easy control and visualization
  • πŸ—‚οΈ Saves frame-by-frame recordings in session folders

πŸ–₯️ Interface

  • SAVE FACE – Captures and registers a new known face.
  • START – Begins surveillance session.
  • STOP – Stops surveillance without closing the app.
  • RESUME – Manually resumes after 5 gaze-off violations.
  • EXIT – Safely closes the app and saves session data.

FOLDER STRUCTURES

facedetection/
β”œβ”€β”€ known_faces/                  # saved known faces
β”‚   └── JOHN.jpg
β”œβ”€β”€ sessions/
β”‚   └── 2025-05-12_1510/
β”‚       β”œβ”€β”€ frame_00001.jpg
β”‚       β”œβ”€β”€ unknown_151202.jpg
β”‚       β”œβ”€β”€ gaze_violation_151310.jpg
β”‚       └── metadata.json

βš™οΈ Installation

Using pip:

pip install face_recognition dlib opencv-python numpy Pillow Using conda:

conda install -c conda-forge face_recognition dlib opencv numpy pillow Note: You must also download the facial landmarks model.

πŸ“₯ Required File

Place the following file in the same directory as your Python script:

shape_predictor_68_face_landmarks.dat

πŸ“Ž Download: https://github.com/davisking/dlib-models/raw/master/shape_predictor_68_face_landmarks.dat

πŸš€ Usage

Run the application:

face detect.ipynb

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published