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.


Messages - yossiz

Pages: [1]
1
As I'm using this code for creating 3D model from .jpg photos from UAV.

import PhotoScan
doc = PhotoScan.app.document
doc.open("project.psz")
chunk = doc.chunk
app = PhotoScan.Application()


print("---Align Photo...")
chunk.matchPhotos(accuracy=PhotoScan.LowAccuracy, preselection=PhotoScan.GenericPreselection)
chunk.alignCameras()


print("---Build Dense Cloud...")
chunk.buildDenseCloud(quality=PhotoScan.MediumQuality)

print("---Build Mesh...")
chunk.buildModel(surface=PhotoScan.HeightField, interpolation=PhotoScan.EnabledInterpolation)


print("---Defining coordinate settings...")
coord = PhotoScan.Vector([104.148348, 18.350459, 1052.977])
crs = PhotoScan.CoordinateSystem("EPSG::4326")
crs_new = PhotoScan.CoordinateSystem("EPSG::32648")
coord = crs.unproject(coord)
coord = crs_new.project(coord)

print("---Build Orthomosaic...")
chunk.buildOrthomosaic(surface=PhotoScan.DataSource.ModelData,blending=PhotoScan.BlendingMode.MosaicBlending,color_correction=False,projection=crs_new)
 
doc.save()


But the coordinate and projection are not change in the same way. (not going to be UTM)

So how can I solve this problem?


Pages: [1]