This repository contains the code for an IoT Traffic Surveillance System using a fog-computing architecture as shown by the image below. The system uses an adaptive video encoding algorithm that switches the video encoding at specific intervals to reduce the required network bandwidth. The repository also contains a Traffic Density Measument algorithm to analyze the surveillance videos.
- Linux distro or MacOS (Tested on Ubuntu 18.04 and Ubuntu 20.04.1 LTS)
The following dependencies are common between the Fog Nodes and the Cloud Server:
- FFmpeg (Tested on 4.1.4)
sudo snap install ffmpeg
- Python3 (Tested on Python 3.6.9)
sudo apt-get upgrade python3
- Clone this repository and put the
cloud_server
folder on the server machine, and thefog_node
folder on the fog node machine.
- For running the Cloud Server scripts, refer to the README.md
- For running the Fog Node scripts, refer to the README.md
Complete