This is a custom gst-nvinfer plugin to do some preprocess and postprocess.
- Deepstream 6.0+
- Opencv
- add landmarks and number of lmks in
object_user_metadata
- use npp to do alignment
- support multi batch size now
- support double-line car plate recognition(without alignment), check at branch 'car_plt_split'
- add landmarks in
nvdsinfer
so it can be processed together with bondingboxes innvdsinfer_customparser
. - if
numLmks
not 0, we concat landmarks to the tail of labels (notice only modify functionDetectPostprocessor::fillUnclusteredOutput
innvdsinfer_context_impl_output_parsing.cpp
) - decode landmarks in
attach_metadata_detector
and attach them toobject_user_metadata
- decode landmarks in object_user_metadata
- use npp to do alignment
- Done!
sh install.sh
this script will auto backup original nvinfer
related lib to ./backup
.
set oinfo.numLmks
and oinfo.landmarks
properties in your parse-bbox-func-name
.
set cluster-mode=4
since we only modify fillUnclusteredOutput
.
cluster-mode=4
enable-output-landmark = 1
alignment-type=1
alignment-pics-path=/path/to/save/your/alignment_pics
alignment-type=1->arcface alignment-type=2(not impl yet)->Retina_License_Plate
sh restore.sh
cal affine matrix use cuSolver(not efficient as expected)- cal affine matrix use eigen
- add more test case