Agisoft Metashape
Agisoft Metashape => Python and Java API => Topic started by: jvduijvenbode 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?
-
Hello jvduijvenbode,
In the version 1.5.0 you can use this function in the following way:
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]