How to custom preprocess in SGIE base on Deepstream 5.0?

Pls check the comment #6 in that topic.
BTW, you can refer DeepStream 5.0 nvinferserver how to use upstream tensor meta as a model input - #4 by giangblackk if you are using nvinferserver