Skip to content

This solution can be used to reduce the Near Miss incidents happening on the roads or the areas where people need to be away from vehicles such as Petrol Stations while filing the fuel.

Notifications You must be signed in to change notification settings

poojabhasin/NearMiss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NEARMISS

A near miss, "near hit", "close call", or "nearly a collision" is an unplanned event that has the potential to cause, but does not actually result in human injury, environmental or equipment damage, or an interruption to normal operation.

This solution can be used to reduce the Near Miss incidents happening on the roads or the areas where people need to be away from vehicles such as Petrol Stations while the vehicle is in area to fill the fuel.

NEARMISS

Citations

Index

  1. Introduction
  2. Deepstream Setup
    1. Install System Dependencies
    2. Install Deepstream
  3. Running the Application
    1. Clone the repository
    2. Run with different input sources

Introduction

NEARMISS Application consists of an Intelligent Video Analytics Pipeline powered by Deepstream and NVIDIA Jetson Nano and on top of that we have applied some deep learning techniques for the object detection. Whenever any vehicle or person is detected and found near to each other it will render the detections are red.

NEARMISS

Whenever any vehicle or person is detected and found near to each other it will render the detections are red.

Deepstream Setup

This post assumes you have a fully functional Jetson device. If not, you can refer the documentation here.

1. Install System Dependencies

sudo apt install \
libssl1.0.0 \
libgstreamer1.0-0 \
gstreamer1.0-tools \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly \
gstreamer1.0-libav \
libgstrtspserver-1.0-0 \
libjansson4=2.11-1

2. Install Deepstream

Download the DeepStream 5.0.1 Jetson Debian package deepstream-5.0_5.0.1-1_arm64.deb, to the Jetson device from here. Then enter the command:

sudo apt-get install ./deepstream-5.0_5.0.1-1_arm64.deb

Running the Application

1. Clone the repository

This is a straightforward step, however, if you are new to git or git-lfs, I recommend glancing threw the steps.

First, install git and git-lfs

sudo apt install git git-lfs

Next, clone the repository

# Using HTTPS
git clone https://github.com/poojabhasin/NearMiss.git

Finally, enable lfs and pull the model

git lfs install
git lfs pull

2. Run with different input sources

The computer vision part of the solution can be run on one or many input sources of multiple types, all powered using NVIDIA Deepstream.

First, build the application by running the following command:

make clean && make -j$(nproc)

This will generate the binary called ds-nearmiss-app. This is a one-time step and you need to do this only when you make source-code changes.

Next, create a file called inputsources.txt and paste the path of videos or rtsp url.

file:///home/pooja/DCMainGate_20201103_161120.mp4
rtsp://admin:admin@172.16.1.1:554/streaming/channels/101

Now, run the application by running the following command:

./ds-nearmiss-app

Finally, add the url in inputsources.txt and start ./ds-nearmiss-app.

About

This solution can be used to reduce the Near Miss incidents happening on the roads or the areas where people need to be away from vehicles such as Petrol Stations while filing the fuel.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published