Hi Alex
Wow, Thanks for the fast reply.
Here is our code at the moment. I think we are missing the first doc.save(path) after the doc.open(path.....). I have attached the script too.
def process(args):
#mprojects = ('E:\AUV4_Metashape\Site_25_Split_Chunk_1_Align.psx',
# 'E:\AUV4_Metashape\Site_25_Split_Chunk_2_Align.psx')
mprojects = ('E:\AUV4_Metashape\Site_25_Split_Chunk_3_Align.psx',
'E:\AUV4_Metashape\Site_25_Split_Chunk_4_Align.psx',
'E:\AUV4_Metashape\Site_25_Split_Chunk_5_Align.psx',
'E:\AUV4_Metashape\Site_25_Split_Chunk_6_Align.psx',
'E:\AUV4_Metashape\Site_25_Split_Chunk_7_Align.psx',
'E:\AUV4_Metashape\Site_25_Split_Chunk_8_Align.psx')
multiprocessing(batches,mprojects,"Running Metashape batches")
def batches(projects,i):
doc = Metashape.Document()
doc.open(path=projects,ignore_lock=True)
chunk = doc.chunk
#run_camera_alignment(chunk)
#chunk.matchPhotos(downscale=3, generic_preselection=True, reference_preselection=False)
#chunk.triangulatePoints(max_error=10, min_image=1)
#chunks.alignCameras()
chunk.buildDepthMaps(downscale=4, filter_mode=Metashape.MildFiltering)
doc.save(path=projects)
chunk.buildDenseCloud()
doc.save(path=projects)
chunk.buildModel(surface_type=Metashape.Arbitrary, interpolation=Metashape.EnabledInterpolation, face_count=Metashape.MediumFaceCount, source_data=Metashape.DenseCloudData, vertex_colors=True)
doc.save(path=projects)
#chunks.buildTexture(blending_mode=Metashape.MosaicBlending, texture_size=4096)
chunk.buildOrthomosaic(surface_data=Metashape.ModelData,blending_mode=Metashape.MosaicBlending,fill_holes=True)
#chunks.buildUV(mapping_mode=Metashape.GenericMapping)
doc.save(path=projects)
doc.save()
Thanks again.
Regards
IP Offline