there is only one detection model in this sample, if want to get the vehicle 's type, please add classification model. please refer to deepstream native sample deepstream_test2.
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.
You are right, there is the “class_id” into “NvDsObjectMeta” but this contains all the “class_id” detected on the frame and not the “class_id” who cross the line.
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.