Forum

Author Topic: How to get height of a scanned person in python script?  (Read 4950 times)

Goran

  • Newbie
  • *
  • Posts: 10
    • View Profile
How to get height of a scanned person in python script?
« on: April 26, 2017, 05:21:07 PM »
Hey,

I am struggling now to get the height.
With the GUI I can build a DEM by defining the ground markers as horizontal.
This way the elevation model gets build with the top being the highest point.
In the script API I can not find these options.
Even when I don't buildDem in the script, the report presents me an elevation model but it has chest and nose as highest points and PhotoScan.Elevation.height doesn't return a value.

What would be a proper way to log the height of the scanned object in python?
I have a bounding box set up with floor and center markers.


btw thanks for the great help in this forum, is really appreciated.


Goran

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: How to get height of a scanned person in python script?
« Reply #1 on: May 18, 2017, 04:55:30 PM »
is there a way to get the DEM show the highest point from the cleaned model after chunk.model.removeComponents() ?
I only get it to show the highest point of dense cloud which contains some unwanted components on top and returns the wrong height.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15432
    • View Profile
Re: How to get height of a scanned person in python script?
« Reply #2 on: May 18, 2017, 04:59:09 PM »
Hello Goran,

Maybe you can loop through the mesh vertices and get their coordinates, then apply chunk.transform matrix to get the reference coordinate system values and find the highest point?
Best regards,
Alexey Pasumansky,
Agisoft LLC