NvDsAnaylticsFrameMeta objLCCumCnt reset

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
RTX 3090
• DeepStream Version
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue? (This is for bugs. Including which sample app is used, the configuration files content, the command line used, and other details for reproducing)

Hi All,

I am following the python example about using nvdsanalytics for line crossing. I am looking for a method to reset the counter, specifically user_meta_data.objLCCumCnt) in pyds.NvDsAnalyticsFrameMeta in the probe. Simply setting the metadata to 0 does not work.

# both lines do not work with any error message.
user_meta_data.objLCCumCnt['Enter'] = 0
user_meta_data.objLCCumCnt = {'Enter': 0}

I have searched the python api document and I am not able to find anything related to resetting the counter.
Please kindly advise.


currenty deepstream dose not support to count objLCCumCnt from zero again on the fly.
here is a solution:
you might save the start value A and end value B, then get new objLCCumCnt
by “A-B”.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.