Skip to content

qustions/gst-nvinfer-custom

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom gst-nvinfer (DEMO)

This is a custom gst-nvinfer plugin to do some preprocess.

Requirements

  • Deepstream 6.0+
  • Opencv

Usage

  1. set cuda environment
export CUDA_VER=11.6
  1. compile Makefile
make
make install

NOTE: To compile the sources, run make with "sudo" or root permission.

  1. set config file

first to set primary gie's output-tensor-meta to true. For example, in retinaface config file:

output-tensor-meta=1

use kyeword alignment and user-meta in next gie-config file. For example, in arcface config file:

alignment=1
user-meta=1

Now only retinaface and arcface(operate on retinaface)

Details

the custom gst-nvinfer has two new properties: alignment and user-meta.

Once these properties are true, there would be a preprocess on every croped object.

It first receives the output tensor meta, to extract the 5 landmarks of a face and do NMS. By similarTransform, a matrix M will be generated.

then use the croped object and M to do alignment: cv::warpPerspective.

finally, cover the original surface with the output of alignment.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 95.7%
  • C 3.6%
  • Makefile 0.7%