Hi
So I am trying to step through cameras in a chunk, the scan is huge and I want to save after each camera depth map is generated. What is the proper use of [,cameras] for buildDepthMaps?
Jeff
if buildDM == True:
if stepDM == True: # Step through all cameras in a chunk and build depth map and save project
cameras = chunk.cameras
cameraCount = len(cameras)
print("There are " + str(cameraCount) + " cameras in the chunk")
for i in range(len(cameras)):
print("------------- Camera " +str(i))
chunk.buildDepthMaps(cameras[i], downscale=quality, filter_mode=Metashape.FilterMode.MildFiltering, reuse_depth=True, max_neighbors=-1, subdivide_task=True, workitem_size_cameras=20, max_workgroup_size=100)
doc.save()