Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - tailong

Pages: [1]
Python and Java API / Dense Cloud Generation?
« 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?

Python and Java API / ExportModel Parameters
« on: August 27, 2022, 01:34:41 AM »
I want to be able to export a model in FBX format using the same parameters in the GUI regardless of coordinate system (see attached image):
export vertex colors
export vertex normals
export texture (jpeg)
binary encoding
convert to 8 bit rgb
save alpha
embed texture
clip to boundary
shift of (0,0,0)

do not export cameras
do not export markers
do not include comment
no raster transform

currently i am using the line
Code: [Select]
chunk.exportModel(path=' MODEL.fbx', save_cameras=False, save_markers=False, save_alpha=True, embed_texture=True, crs=crs, shift=Metashape.Vector((0,0,0)), save_comment=False)
the output file appears to be the same size, but there are notable differences in the mesh when using programs such as cloud compare. Suppose I know for certain that the coordinate system is not the problem, is there any parameters or code that I am missing? What would be the correct function parameters?

Python and Java API / How to export orthomosaic KMZ using python API
« on: August 19, 2022, 12:46:05 AM »
I want to automate the export of an orthomosaic in KMZ format. For example, using the UI I would go File->Export->Export Orthomosaic and then save my file as a google KMZ type.
I assumed that since I must use ExportRaster() to export orthomosaics in TIFF format, that exporting an orthmosaic in KMZ format would be the same.

However, the console spits out "Error: Unsupported extension: .kmz".

I know ExportOrthophotos() exists but that is not really what I am looking for...

Is there a way to export a KMZ orthomosiac using the API?


Pages: [1]