Giter Site home page Giter Site logo

seieric / gst-dsobjectsmask Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 4.94 MB

๐Ÿ“€NVIDIA DeepStream integrated GStreamer Plugin. Mask objects with cuda cores on Jetson boards. Fast and smooth since everything is done on NVMM.๐ŸŽ

Makefile 9.04% C++ 90.96%
cuda deepstream gpu opencv gstreamer gstreamer-plugins jetson-tx1 jetson-tx2 cuda-programming jetson-xavier

gst-dsobjectsmask's Introduction

Gst-dsobjectsmask

This plugin masks objects detected by NVIDIA nvinfer plugin. Fast and smooth since all the masking processes are done with GPU. Originally forked from seieric/gst-dsobjectsmosaic.

Must be a better masking solution than masking with nvdsosd.

Note: This plugin is tested with PeopleSegNet, which is an instance segmentation model. Masking process refers to a object's mask_params of NvDsObjectMeta. Other models (e.g. semantic segmentation models) may not attach mask_params and this wouldn't work as expected.

Note: For Jetson only, not works with dGPU.

Features

  • Mask objects with cuda
  • Specify class ids for which blur should be applied
  • Fast and smooth processing

Sample

Gst Properties

Property Meaning Type and Range
min-confidence Minimum confidence of objects to be masked Double, 0 to 1
class-ids Class ids of objects for which masking should be applied Semicolon delimited integer array

Depedencies

  • DeepStream 6.1
  • OpenCV4 with CUDA support

Download and Installation

If your environment satisfies the requirements, just run following commands.

git clone https://github.com/seieric/gst-dsobjectsmask.git
cd gst-dsobjectsmask
sudo make -j$(nproc) install

Example usage

This is a brief instruction to test this plugin after installtion.

  1. Download NVIDIA-AI-IOT/deepstream_tao_apps to /opt/nvidia/deepstream/deepstream-6.1/sources/apps.
  2. Download required models for deepstream_tao_apps. Refer to the documentation.
  3. Build custom parser in /opt/nvidia/deepstream/deepstream-6.1/sources/apps/deepstream_tao_apps/post_processor.
  4. Run the sample script samples/peoplesegnet_test.sh.
  5. You will get the peoplesegnet_test.mp4 in your curennt directory.

gst-dsobjectsmask's People

Contributors

seieric avatar

Watchers

 avatar

Forkers

asagot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.