By Ganesh Sankaran
Tested on macOS Mojave and Ubuntu 18.04 LTS
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.
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.
StorageSmart 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.
SearchSmart 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.
AnalysisSmart 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.
1. Obtaining the Source Codea. 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 athttps://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 matplotlibrcWrite
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
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
psqlSet 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