Skip to content

ganeshsankaran/smart-security-systems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Smart Security Systems

By Ganesh Sankaran

Tested on macOS Mojave and Ubuntu 18.04 LTS


The Challenge

Your business stores an extraordinary amount of raw security footage which must be searched and analyzed manually. This not only results in a loss in your productivity, but also poses a threat to your business' security.

The Solution

Smart Security Systems generates metadata from several security footage streams by passing it through an extremely efficient computer vision algorithm. The metadata is much easier to store, search, and analyze compared to raw video.

Storage

Smart Security Systems automatically generates and stores feature-rich metadata from your videos. The memory-efficient nature of metadata means that your data can be stored securely for a long period of time.

Search

Smart Security Systems allows you to choose from a variety of filters and tags to find the exact moment you are looking for. Searches are faster and more flexible thanks to the capabilities of Elasticsearch.

Analysis

Smart Security Systems employs an extremely quick, accurate, and customizable computer vision algorithm that can notify you of incidents. By harnessing the power of AI, our algorithm surpasses humans in sight and memory.

Deploying the Django Web Application (macOS)

1. Obtaining the Source Code

a. Clone the repository

cd ~
~ will be the parent directory for the repository
git clone https://github.com/ganeshsankaran/smart-security-systems.git

b. Obtain the pre-trained YOLOv3 model

cd ~/smart-security-systems/SmartSecuritySystems/sss_v1/yolov3-coco/
wget --no-check-certificate https://pjreddie.com/media/files/yolov3.weights

2. Setting Up the PostgreSQL Server

a. Install the necessary packages

Download and install PostgreSQL at https://www.enterprisedb.com/downloads/postgres-postgresql-downloads Then install the command line utilities for PostgreSQL
brew install postgresql

b. Create the database

sudo su - postgres
createdb sss
exit

3. Setting up the Python Environment

a. Install the necessary packages

sudo pip3 install -r ~/smart-security-systems/SmartSecuritySystems/requirements.txt

b. Configure matplotlib

sudo mkdir ~/.matplotlib/
sudo vim matplotlibrc
Write backend: TkAgg to the file and save changes

4. Deploying the Django Web Application

a. Configure the database

sudo python3 ~/smart-security-systems/SmartSecuritySystems/manage.py makemigrations
sudo python3 ~/smart-security-systems/SmartSecuritySystems/manage.py migrate

b. Start the server

sudo python3 ~/smart-security-systems/SmartSecuritySystems/manage.py runserver 0.0.0.0:80

Deploying the Django Web Application (Ubuntu)

1. Obtaining the Source Code

a. Clone the repository

cd ~
~ will be the parent directory for the repository
git clone https://github.com/ganeshsankaran/smart-security-systems.git

b. Obtain the pre-trained YOLOv3 model

cd ~/smart-security-systems/SmartSecuritySystems/sss_v1/yolov3-coco/
wget --no-check-certificate https://pjreddie.com/media/files/yolov3.weights

2. Setting Up the PostgreSQL Server

a. Install the necessary packages

sudo apt install postgresql postgresql-contrib postgresql-server-dev-all

b. Configure the postgres account

sudo su - postgres
psql
Set the password to password
\password
\q

c. Create the database

createdb sss
exit

3. Setting up the Python Environment

a. Install the necessary packages

sudo pip3 install -r ~/smart-security-systems/SmartSecuritySystems/requirements.txt

4. Deploying the Django Web Application

a. Configure the database

sudo python3 ~/smart-security-systems/SmartSecuritySystems/manage.py makemigrations
sudo python3 ~/smart-security-systems/SmartSecuritySystems/manage.py migrate

b. Start the server

sudo python3 ~/smart-security-systems/SmartSecuritySystems/manage.py runserver 0.0.0.0:80

About

A Django web application for optimized security footage storage, search, and analysis (for internal dev and test purposes only)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors