DeepStream 3.0 - Vehicle Speed Calculation

I would like calculate the speed of vehicles using deepstream. Intially, I though I should do the calculation in analytic server based on the EventMsg and frame rate sent from perception server. But when I go through deepstream_smartparking_360. in DEEPSTREAM 3.0 ANALYTICS APPLICATIONS pdf, I found out there is two ‘speed’ type mentioned in the metadata example in page 42, section 5.6 ‘Object’.

I am confusing whether speed calculation should be done in perception server or analytic server?

From the code, you can ignore the “speed” in location.

I think you can get it in your case and set it in NvDsEventMsgMeta in perception side. Please refer to deepstream-test4 sample.