Thanks for your reply. I have already cheched this NvDsAnalyticsObjInfo.lcStatus and it contains the name of the crossed line. In my case, it print “Entry” or “Exit” and not the class id of the object who cross the line.
please refer to nvdsanalytics_src_pad_buffer_probe
in deepstream_nvdsanalytics_test.cpp, NvDsAnalyticsObjInfo is attached in object meta as user meta, so you might get class_id in object meta, and get the line name in NvDsAnalyticsObjInfo.
all objects have own “class_id”, some of them will have lcStatus value if cross the line, some of them will not have lcStatus value if didn’t cross the line, so you can know which class_id cross the line. for example, there are two persons(AB) and two cars(C,D) in one frame, only C crossed the line. the meta should look like:
A, B,C(cross), D. then you can know class-id of car cross the line.