Forum

Author Topic: optimize coverage  (Read 1491 times)

jvduijvenbode

  • Newbie
  • *
  • Posts: 6
    • View Profile
optimize coverage
« on: January 25, 2019, 05:58:46 PM »
How do I apply the optimize coverage function in python API? Let's say my chunk is just called chunk. I can't call chunk.OptimizeCoverage() or something along those lines. Also, can i apply the function before the aligncameras function or after?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14847
    • View Profile
Re: optimize coverage
« Reply #1 on: January 25, 2019, 06:21:39 PM »
Hello jvduijvenbode,

In the version 1.5.0 you can use this function in the following way:
Code: [Select]
chunk = Metashape.app.document.chunk
optimize_coverage = Metashape.Tasks.OptimizeCoverage()
optimize_coverage.max_cameras = 50 #or leave 0 for automatic estimation
optimize_coverage.apply(chunk)

The function should be applied after the alignment is performed and also requires the presence of the mesh model in the chunk. As a result some cameras may be disabled, if they are considered to provide excessive information.

[/code]
Best regards,
Alexey Pasumansky,
Agisoft LLC