How can I run inference “on demand” from the code (when some requirement is met)? I can’t find any example of this. Also, how to only run inference on some streams (not on all the streams in the batch)?
Even if it was something like disabling inference by attaching something to the frame meta. I’ve seen that
gstnvinfer.cpp looks at rect_params. I can obviously modify those to make sure it doesn’t run the inference, but that seems very hacky and it only works for objects already detected (won’t work for primary inference).