Skip to content

Instantly share code, notes, and snippets.

@HoangTienDuc
Created August 16, 2021 01:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HoangTienDuc/6031788ad83e27d9100d4ba782762a14 to your computer and use it in GitHub Desktop.
Save HoangTienDuc/6031788ad83e27d9100d4ba782762a14 to your computer and use it in GitHub Desktop.

Table of contents

  • Introduction
  • Prerequires
  • Installation
  • How to use
  • Todo

demo

Branch note

INTRODUCTION

This repo is first version of vehicle counting.
This repo is used to count vehicle include 2 modules:
Methodology:
  • Deploy: tensorrt inference server
  • Communicate: Paho-MQTT
  • Dockerize: docker-compose

PREREQUIRES

  • Ubuntu 18.04
  • Python3.7 + miniconda
  • Nvidia-docker-compose version 2.3
  • Trtis:20.02-py3
  • Paho-mqtt 1.5.0

INSTALLATION

  • Folow this instruction to install trtis:20.02-py3
  • Pull model:
- Step 1: Install [dvc](https://dvc.org/doc/start) first
- Step 2: dvc pull
- Step 3: mail to tienduchoangtb@gmail.com to access my models
  • Install the remaining component using pip

HOW TO USE

  • Start service: docker-compose up
  • To publish message from client to server: python3 pub.py
  • See monitoring system at 0.0.0.0:3000

TODO

  • Draw cross line
  • Add counting algorithm
  • Add threading
  • Add MQTT
  • Add logs
  • Add docker-compose
  • Notify in slack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment