Hi,
I have a working Python script to communicate with photoscan 1.3.5 but when I upgrade to photoscan 1.4.0. the code fails. I fixed an issue with DenseCloudpoint generation. But not the issue is in DEM generation
here is the code
PhotoScan.app.console.clear()
doc = PhotoScan.app.document
psxfile ="c:/tmp/test.psx"
doc.save( psxfile )
chunk = doc.addChunk()
chunk.matchPhotos(accuracy=PhotoScan.HighAccuracy, preselection=PhotoScan.ReferencePreselection, reference_preselection=True,keypoint_limit=40000,tiepoint_limit=4000)
chunk.alignCameras()
chunk.buildDepthMaps(quality=PhotoScan.UltraQuality,filter=PhotoScan.AggressiveFiltering)
chunk.buildDenseCloud(point_colors=True)
CS="EPSG::32634"
chunk.crs = PhotoScan.CoordinateSystem(CS)
chunk.exportPoints('c:/tmp/test.laz', colors=True, projection = chunk.crs)
doc.save( psxfile )
chunk.buildDem(source=PhotoScan.DenseCloudData, interpolation=PhotoScan.EnabledInterpolation, projection=chunk.crs)
the error I am getting here while calling chunk.buildDem is
2018-01-17 13:24:03 Traceback (most recent call last):
2018-01-17 13:24:03 File "<console>", line 1, in <module>
2018-01-17 13:24:03 TypeError: expected CoordinateSystem object or 4x4 Matrix
Don't know the source of error. It there a bug on buildDem ?. Because exportpoints is working well.
Thank you for help in advance
pant