Preprocessing image before feed it in SGIE

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Sorry! Don’t understand your requirement, What do you mean “define some function”? Why do you think this can solve your issue?