Using interval with deepstream-test-5

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) GPU
• DeepStream Version 5.0.1
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only) 440+
• Issue Type( questions, new requirements, bugs) questions

I am trying to count the number of objects of a class in a frame and send it to the broker. I have to use interval of 15 for the system to work so I am only running inference every 16 frames. My issue is that when I check downstream of the plugin I dont know if there are 0 objects in the frame cause its the 15 frames of no inference or if tehre really are no objects.

Is there a variable to check when inference runs using interval?

Good question, there is a bInferDone filed in NvDsFrameMeta

 /** Holds a Boolean indicating whether inference is performed on the frame. */
gboolean bInferDone;

Perfect! Thanks for your help