Industrial Toolbox 4.10.1 // Traffic Monitoring // Im using the defaulf CFG file "18xx_traffic_monitoring_70m_MIMO_2D"
How to get the FPS and timestamp value of each frame?
Is it possible to get FPS using tm_visualizer? if so how?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Industrial Toolbox 4.10.1 // Traffic Monitoring // Im using the defaulf CFG file "18xx_traffic_monitoring_70m_MIMO_2D"
How to get the FPS and timestamp value of each frame?
Is it possible to get FPS using tm_visualizer? if so how?
Hello Asha,
The framerate is set by the CFG file. In that CFG config, you will see the framerate in the profileCfg command. This is documented in the SDK user's guide.
"C:\ti\mmwave_sdk_03_05_00_04\docs\mmwave_sdk_user_guide.pdf"
For a timestamp value, you can multiply the framerate by the frame number, or it will need to be added into the GUI if you wish for a non-relative timestamp.
Regards,
Jackson
Hi,
The profileCfg value is shown below, I have found /cfs-file/__key/communityserver-discussions-components-files/1023/7801.mmwave_5F00_sdk_5F00_user_5F00_guide.pdf this link to the document. According to it I was not able to find which is the parameter in profileCfg that is responsible for FPS.
profileCfg 0 77 8 7 28 0 0 20 1 256 12500 0 0 48
Is it 28 according to the profileCfg shown above?
Also can you explain a bit on how to get timestamp value with FPS? It is not clear to me
I apologize, the frameRate is actually in the frameCfg command. I typed the wrong command. It should be the 5th parameter in frameCfg.
The TLV data output for each frame will start with a header. This header will have info about how much data is included in the frame, but also which frame number it is. So if you parse out the frame number from the output data, you can multiply by the framePeriod to get the elapsed time. The data format is at the bottom of the TM user's guide.
Regards,
Jackson
Thanks Jackson Thomas,
To make my understanding clear.
frameCfg I used is
frameCfg 0 1 64 0 50 1 0
Does this mean FPS in tm_visualizer data is 50 ?
Also the elapsed time for frameNumber 2 is 2*50 = 100 milli seconds ?
Further, Is there a way to convert this elapsed time into UTC timestamp value ?
Hello,
Yes this is the way to do that. The sensor has no knowledge of world time, so you will need to add that timestamp into the GUI. You can either store the start time and elapsed time, or have the GUI record the real time whenever it records a frame.
Regards,
Jackson
Thank you Jackson Thomas it was really helpful. Really appreciate your support.
One quick question, does tm_visualizer provides any way to record the real time in GUI? If so how to set? ( Please suggest any tutorials/ documents if any)
The .exe version does not. You can add it to the source code and run from matlab. You will just need to look up the matlab function for timestamp, and then add it to the output log.
Regards,
Jackson