Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: tailong on August 29, 2022, 07:25:55 PM

Title: Dense Cloud Generation?
Post by: tailong on August 29, 2022, 07:25:55 PM
Hi all,

I am trying to build a dense cloud using the API based off of GUI parameters (quality=medium, depthfiltering=mild, do not reuse depth maps, calculate point colors, calculate point confidence)

How can I recreate this in python? I'm a little confused as createDepthMaps seems to be its own thing. Do I keep arguments such as workitem_size_cameras default?
Title: Re: Dense Cloud Generation?
Post by: ppant on August 30, 2022, 12:43:35 AM
hey tailong you need to build a depth map and dense point cloud.

Code: [Select]
chunk.buildDepthMaps(downscale=4, filter_mode=Metashape.MildFiltering,reuse_depth=False)
chunk.buildDenseCloud(point_colors=True)

Best Wishes