Skip to content

Webapp that handles live footage from any number of cameras connected to the system and monitors it for weapon (handgun and pistol) detection and identified instances with high confidence and time intervals are stored in the user directory for alert and review)

Notifications You must be signed in to change notification settings

vygodisgreat/yolov8-security-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yolov8-security

app.py initializes a Flask application that runs on the local server and automatically connects to all the webcameras connected to the system. This can be thought of as a scalable model for a server that handles multiple CCTV footages and needs automatic monitoring to detect any weapon if it is in frame.

The webapp then displays all active webcams on the system that are available.

Click on the desired camera icon to open a tab that displays live footage from the current cam and also when gun is detected in frame (continuously for > 10 frames as well as with confidence > 0.7 by the model) then the Frame is captured and stored in the local database and alert is sent to the User.

The model is yolov8s.pt that is custom traiend on a dataset of 3K images of pistols and people holding pistols in colab The dataset is prepared from Roboflow.

Dependencies are opencv, Flask and ultralytics for the model.

About

Webapp that handles live footage from any number of cameras connected to the system and monitors it for weapon (handgun and pistol) detection and identified instances with high confidence and time intervals are stored in the user directory for alert and review)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published