Forum

Author Topic: empty 3d model through python scripting  (Read 2010 times)

iceman11

  • Newbie
  • *
  • Posts: 29
    • View Profile
empty 3d model through python scripting
« on: September 01, 2017, 12:01:40 AM »
Hi
I produced a 3D model on an aws server through a python script(attached in mail). I copied the file onto my local machine to visualize the model however, there doesn’t seem to be any model observed at all.
I have posted these files on the cloud here. Can you please tell me what really is missing out here?
Thanks,
Tarun


https://drive.google.com/drive/folders/0B0E-BzWWoRoaRVdubkxPajcwbnc?usp=sharing

Here’s the link to the files

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14847
    • View Profile
Re: empty 3d model through python scripting
« Reply #1 on: September 01, 2017, 01:17:53 AM »
Hello Tarun,

Do you have processing log related to the workflow?

I can suggest to regroup the lines 89 - 99 i the following way:
Code: [Select]
    chunk.matchPhotos(accuracy=PhotoScan.HighAccuracy, preselection=PhotoScan.GenericPreselection)
    chunk.alignCameras(adaptive_fitting = False)
    chunk.buildDenseCloud(quality=PhotoScan.MediumQuality)
    doc.save()
    chunk.buildDem(source=PhotoScan.DenseCloudData, interpolation=PhotoScan.EnabledInterpolation)
    doc.save()
    chunk.buildModel(surface=PhotoScan.Arbitrary, interpolation=PhotoScan.EnabledInterpolation)
    chunk.buildUV(mapping=PhotoScan.GenericMapping)
    chunk.buildTexture(blending=PhotoScan.MosaicBlending, size=4096)
    doc.save()
    chunk.exportDem(project_path[:-4]+'t_rgb.tif', image_format=PhotoScan.ImageFormatTIFF, nodata = -99999, write_kml=False, write_world=False)
    chunk.exportPoints(project_path[:-4]+'ptcloud.obj', format=PhotoScan.PointsFormatOBJ)
Best regards,
Alexey Pasumansky,
Agisoft LLC

iceman11

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: empty 3d model through python scripting
« Reply #2 on: September 01, 2017, 08:06:34 AM »
Hi Alexey,
I changed the lines but still the file is empty. Any suggestions on how to fix it? I have added the log file in this mail.
By the way how do I speed up the 3D model process through python scripting
Thanks,
Tarun