Part Number: IWR6843
Hi,
In overhead people counting demo, how are you calculating the height of the target?
Thanks,
Sowmya
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.
Height of the target:
Y = highest point associated with the target. Highest point is the point with the smallest Y value. Then height is sensorHeight - targetHeight. This value is then averaged across 20 frames,which is 1 second.
Regards,
Justin
Hi Justin,
Thanks for the reply.
From my understanding ,
targetAltitude = range * sin(elevation).
But as per your code, the above value is considered as Z(line 701 of main_pplcount_viz.m , in OPC demo). So my doubt is , why are we using value of Y to compute height instead of Z.
Is my understanding of targetAltitude computation wrong?
Regards,
Sowmya
Hi Sowmya,
Please see the beginning of main_pplcount_viz.m, line 12: 'orientation = 'sidemount''. The precompiled GUI uses Overhead, which changes the height calculation to Y axis. Sidemount uses the Z axis for height calculation. You can see at line 627 where the point cloud is stored based on the specified mounting type.
Regards,
Justin
Hi Sowmya,
Sensor Height is added to Z to get the real height. If sensor is at 2 meters, and the detected point is at 1.5 meters, the Z value would be -0.5 meters. For the purpose of stance detection or height measurement, I want the height relative to the ground, not the height relative to the sensor.
Some code has been commented out as it was an earlier model that did not work as well.
Regards,
Justin