Skip to content

zhouyuchong/deepstream-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deepstream Kit

This repo is a deepstream tool kit contains some interfaces.

中文

Requirements

  • Deepstream 6.0.1+
  • GStreamer 1.14.5
  • Cuda 11.4+
  • NVIDIA driver 470.63.01+
  • TensorRT 8+
  • Python 3.6

Follow deepstream official doc to install dependencies.

Deepstream docker is more recommended.

Pretrained

Please refer to the tensorrtx for pretrained models and serialized TensorRT engine.

Or download from Google driver.

Now available:

  • yolov5s
  • retinaface
  • arcface

Usage

To run the demo gui.

python3 gui.py

Make sure all PATH are right.

  1. Choose the mode:
    1. OSD: on screen display
    2. Record: back stage
  2. Add resource: You can add resource before the pipeline starts or during the runtime.
    1. URI: uri of rtsp stream input.
    2. UID/name/framerate:
      1. unique id of each source, can't be re-used.
      2. name of source
      3. set max framerate of the source, notice only works if set-framerate is smaller than the source's own max framerate.
    3. enable/inROI/class-id/area:
      1. enable the analytics or not
      2. inROI to count object inside/outside the ROI
      3. class-id to count a specific class
      4. area:start with the name of this area, followed with vertexes in pairs spaced with commas. e.g. area1,500;500;1400;500;1400;900;500;900
  3. Play: start pipeline.
  4. Stop: stop the whole pipeline.
  5. Quit: quit app.
  6. Delete:
    1. delete uid: input the uid of source you want to delete, then press DELETE button.
  7. Get state of a specific source: doble click a source in listbox.

Structure

Class Pipeline contains all basic operations about Gstreamer-pipeline.

Class Source_Pool contains operations about input sources.

To control the Gstreamer-pipeline, two parallel threading are necessary.

api doc

About

Some custom interface of Deepstream

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages