Forum

Author Topic: Python workflow for WingtraOne VTOL drone?  (Read 1517 times)

Staudi

  • Newbie
  • *
  • Posts: 1
    • View Profile
Python workflow for WingtraOne VTOL drone?
« on: September 04, 2020, 02:38:05 PM »
Dear Community
I am looking for an automated Python workflow for the Wingtra One VTOL drone. Since the Wingtra One is a fixedwing drone, you get images that are rotated in the curves whenever the drone turns during mapping. According to Agisoft you should deselect these images. For this reason I am looking for a way to deselect images in Python that have a certain angle of rotation and pitch.
Does anyone have an idea how I can do this best?
Thanks for your help!
Best regards
Markus

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14847
    • View Profile
Re: Python workflow for WingtraOne VTOL drone?
« Reply #1 on: September 10, 2020, 04:33:48 PM »
Hello Markus,

If yaw, pitch, roll angles are loaded to the Reference pane, you can get measured (source) angle values by calling:
Code: [Select]
yaw, pitch, roll = camera.reference.rotationSo if you loop over all the cameras you can just disable (camera.enabled = False) the cameras which have absolute pitch / roll angle values over some threshold.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Paulo

  • Hero Member
  • *****
  • Posts: 1320
    • View Profile
Re: Python workflow for WingtraOne VTOL drone?
« Reply #2 on: September 16, 2020, 10:43:48 AM »
Hi Alexey.

i am looking at geotagged images from a Wingtra example data set https://drive.google.com/drive/folders/13dQjAGdtqWmxADDc5FGneSzvSg8DW21y....

There is no yaw, pitch, roll in Exif data but there is a GPSTrack entry in the GPS section of exif as in:
Code: [Select]
---- GPS ----
GPS Latitude Ref                : North
GPS Latitude                    : 47 deg 33' 1.07"
GPS Longitude Ref               : East
GPS Longitude                   : 8 deg 31' 43.64"
GPS Altitude Ref                : Above Sea Level
GPS Altitude                    : 533.086973 m
GPS Time Stamp                  : 11:54:14.53
GPS Track Ref                   : True North
GPS Track                       : 110.27
GPS Date Stamp                  : 2018:01:23

It would be nice if Metashape could extract this GPS track from Exif and put into camera.photo.meta data so that a script could be developed checking each camera GPSTrack and compare it to a reference track and thus discard cameras with tracks deviating too much from this reference...

Attached is complete Exif extracted from two WingTra images ( one at middle of line and another at end of line with different track......)

In attached screen copy, if GPSTrack from Exif could be loaded to camera reference yaw for each camera, then it would be easy to select and disable all cameras with yaw deviating more than 5 degrees from reference track for each line ( in this case 109 degrees for east lines and 289 deg for west)...
« Last Edit: September 19, 2020, 08:16:20 AM by Paulo »
Best Regards,
Paul Pelletier,
Surveyor