/abandoned_object_detection

TensorRT YOLOv4, YOLOv3, SSD, MTCNN, and GoogLeNet

Primary LanguagePythonMIT LicenseMIT

abandoned_object_detection

Prerequisites

  • NVIDIA Jetson with JetPack 4.5 or later
  • USB camera

Installation

Install docker-compose (You need to have docker-compose with the runtime paramter support.)

  1. If you already have pip installed with apt in your Jetson. Remove it.
$ sudo apt remove python3-pip
  1. Install pip from PyPA
$ sudo apt update
$ sudo apt install curl python3-testresources
$ curl -kL https://bootstrap.pypa.io/get-pip.py | python3
  1. Install docker-compose
$ python3 -m pip install --user docker-compose
  1. Add $HOME/.local/bin directory in your PATH.
  2. Comfirm docker-compose installed successfully.
$ docker-compose --version
  1. Add "default-runtime": "nvidia" to your /etc/docker/daemon.json configuration file to build the TensorRT plugin. And restart the docker service or reboot your system.
{
  "runtimes": {
      "nvidia": {
          "path": "nvidia-container-runtime",
          "runtimeArgs": []
      }
  },
  "default-runtime": "nvidia"
}
  1. Clone this repository.
$ git clone https://github.com/MACNICA-CLAVIS-NV/abandoned_object_detection
  1. Add the execution permission to the shell scripts.
$ cd abandoned_object_detection
$ chmod +x ./scripts/*.sh

Usage

Start the services of the application

$ ./scripts/compose-up.sh

You can see the dashboard at http://localhost:1880/ui

Stop the services of the application

$ ./scripts/compose-down.sh

Licenses