Get line crossing results in sample_apps/deepstream-app

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) GPU
• DeepStream Version 12.2
• JetPack Version (valid for Jetson only)
• TensorRT Version8.6.1
**• NVIDIA GPU Driver Version (valid for GPU only)**535.183
• Issue Type( questions, new requirements, bugs) questions
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)
I use nvds-analytics plugin in deepstream-app sample application to do line crossing detecting. I manage to apply Smart Record when the object crossing the line. So I write the code in analytics_done_buf_prob function and use if (msg_meta->type = NVDS_EVENT_EXIT) as the condition of triggering Smart Record. However, it turns out to trigger massive times, like 5-second road video appears 1,000 times to trgger. So obviously, this condition is incorrect. So I go to deepstream-nvdsanalytics-test app for searching clue, and I find LineCrossing Current Frame could be helpful. So how can I get the line crossing results of current frame in analytics_done_buf_prob?

I am checking

please refer to the " std::unordered_map<std::string, uint64_t> objLCCurrCnt;" of NvDsAnalyticsFrameMeta. please refer to parse_nvdsanalytics_meta_data of
deepstream_nvdsanalytics_meta.cpp for how to access objLCCurrCnt.

Yes, it works. I refer the sample code in deepstream-nvdsanalytics-test app.

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