Forum

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.


Topics - patrick_f

Pages: [1]
1
Python and Java API / Cutting of a part of reconstructed 3d model
« on: October 22, 2017, 09:27:58 PM »
Hi everyone,

I try to make following thing by script but it doesn´t work:

I create a 3D model with some parts of the ground. The complete project file I save as a *.psz file. Then I resize the region and "cut" away the ground and export the 3d model as a obj-file.
Problem is that the ground stays on the exported model.

Is It possible to export only the things that are part of the current region or do I have the run the model generation a second time?

Best Patrick


2
Python and Java API / Problems with saving and export
« on: August 13, 2017, 10:28:16 PM »
Hi,

I use a standard phyton script but I have some problems:
I hope someone can help me. Here is the script:
Code: [Select]
import PhotoScan

doc = PhotoScan.app.document
doc.open("project.psz")
chunk = doc.chunk
chunk.matchPhotos(accuracy=PhotoScan.HighAccuracy, generic_preselection=True, reference_preselection=False)
chunk.alignCameras()
chunk.buildDenseCloud(quality=PhotoScan.MediumQuality)
#chunk.buildDenseCloud(quality=PhotoScan.MediumQuality, filter=PhotoScan.NoFiltering, reuse_depth=True)
chunk.buildDenseCloud(quality=PhotoScan.MediumQuality, filter=PhotoScan.NoFiltering, keep_depth=True)
chunk.buildModel(surface=PhotoScan.Arbitrary, interpolation=PhotoScan.EnabledInterpolation)
chunk.buildUV(mapping=PhotoScan.GenericMapping)
chunk.buildTexture(blending=PhotoScan.MosaicBlending, size=4096)
doc.save()
modelname = path+"\\output\\model.obj"
chunk.exportModel(modelname, binary=True, precision=6, ImageFormat="JPG", texture=True, normals=True, colors=True, cameras=False, udim=False, strip_extensions=False, format="OBJ")
doc.save(path = "C:\3dscan\test\project.psz", chunks = [doc.chunk])


The problems are: Chunk export doesn´t work and doc.save
Software and Version: Agisoft Photoscan Pro 1.3.2

I´m looking forward to your support!
Best Patrick

Pages: [1]