# Gst-nvdsanalytics cross-line statistics problem

**URL:** <https://forums.developer.nvidia.com/t/gst-nvdsanalytics-cross-line-statistics-problem/318878>\
**Category:** DeepStream SDK\
**Tags:** deepstream\
**Created:** [January 6, 2025, 7:49am UTC](https://forums.developer.nvidia.com/t/gst-nvdsanalytics-cross-line-statistics-problem/318878 "2025-01-06T07:49:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrrg5533](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@jrrg5533](https://forums.developer.nvidia.com/u/jrrg5533)\
**Post date:** [January 6, 2025, 7:49am UTC](https://forums.developer.nvidia.com/t/gst-nvdsanalytics-cross-line-statistics-problem/318878/1 "2025-01-06T07:49:25Z")

</div>

Please provide complete information as applicable to your setup.

**• Hardware Platform (Jetson / GPU)**  
GPU  
**• DeepStream Version**  
6.3.0  
**• JetPack Version (valid for Jetson only)**  
**• TensorRT Version**  
8.5  
**• NVIDIA GPU Driver Version (valid for GPU only)**  
535.54.03  
**• Issue Type( questions, new requirements, bugs)**  
bugs  
**• 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)**

When I use the cross-line statistics function of the Gst-nvdsanalytics plug-in, when a person enters the line, the cross-line count will increase by one, and when the person leaves the line, it will decrease by one. This is in line with expectations. However, sometimes, the cross-line count does not count after the person enters the line until the person leaves the line again. At this time, the cross-line count shows that the person enters once and leaves once. The mode is loose

---

<div class="post-metadata">

**Author:** ![jrrg5533](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@jrrg5533](https://forums.developer.nvidia.com/u/jrrg5533)\
**Post date:** [January 6, 2025, 7:58am UTC](https://forums.developer.nvidia.com/t/gst-nvdsanalytics-cross-line-statistics-problem/318878/3 "2025-01-06T07:58:03Z")

</div>

I am very troubled by the effect that sometimes it is accurate and sometimes it is not. Please help me. Thank you

---

<div class="post-metadata">

**Author:** ![jrrg5533](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@jrrg5533](https://forums.developer.nvidia.com/u/jrrg5533)\
**Post date:** [January 6, 2025, 7:59am UTC](https://forums.developer.nvidia.com/t/gst-nvdsanalytics-cross-line-statistics-problem/318878/4 "2025-01-06T07:59:11Z")

</div>

The code is as follows, where objLCCumCnt is the attribute used for counting  
[probe\_handler.txt](https://forums.developer.nvidia.com/uploads/short-url/qJ26e4otHOtrFSA7ziMsCHvrAEH.txt) (23.7 KB)

---

<div class="post-metadata">

**Author:** ![fanzh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fanzh/32/115955_2.png) [@fanzh](https://forums.developer.nvidia.com/u/fanzh)\
**Post date:** [January 6, 2025, 10:03am UTC](https://forums.developer.nvidia.com/t/gst-nvdsanalytics-cross-line-statistics-problem/318878/6 "2025-01-06T10:03:04Z")

</div>

Can you use deepstream-preprocess-test to reproduce the issue? if so, could you provide the configuration file and test video? Thanks!

---

<div class="post-metadata">

**Author:** ![Fiona.Chen](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fiona.chen/32/15508_2.png) [@Fiona.Chen](https://forums.developer.nvidia.com/u/Fiona.Chen)\
**Post date:** [March 10, 2025, 2:09am UTC](https://forums.developer.nvidia.com/t/gst-nvdsanalytics-cross-line-statistics-problem/318878/7 "2025-03-10T02:09:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [March 24, 2025, 2:09am UTC](https://forums.developer.nvidia.com/t/gst-nvdsanalytics-cross-line-statistics-problem/318878/8 "2025-03-24T02:09:59Z")

</div>

Closed on March 24, 2025, 2:09am UTC

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