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.

IWR6843: Height calculation

Part Number: IWR6843

Hi,

In overhead people counting demo, how are you calculating the height of the target?

Thanks,

Sowmya

  • Hi Sowmya,

    I've asked an expert to look into this and we should have an answer for you later this week.

     

    Cheers,

    Akash

  • 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 Justin,

    That was helpful. But why are you adding 'sensorHeight' to Z?

    Also, I see that stance detection code is commented out. Was there any issue with this code? What  is p1?

    Regards,

    Sowmya

  • 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