Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: ArmOne on December 25, 2011, 07:07:14 PM

Title: making Python work on Win 7 64bit
Post by: ArmOne on December 25, 2011, 07:07:14 PM
Hello

I tried the 0.8.4 demo version of photoscan and I do not seem to be able to make work python script that comes in the documentation:

import PhotoScan
doc = PhotoScan.app.document
doc.activeChunk.alignPhotos(accuracy = ’high’, preselection = ’generic’)
doc.activeChunk.buildModel(quality=’medium’, object=’arbitrary’, geometry=’smooth’, faces=200000)
doc.activeChunk.buildTexture(mapping=’generic’, blending=’average’, width=2048, height=2048)
doc.save(’test2’)

it does nothing and when I try the lines by itself I get error
any idea how to make it work?
Title: Re: making Python work on Win 7 64bit
Post by: Alexey Pasumansky on December 25, 2011, 09:01:36 PM
Hello ArmOne,

Could you please check if this script works with quotes-symbol instead of apostrophe.

Actually it should work with apostrophes too, if input manually instead of copying from pdf.
We'll check if the apostrophes are converted into inproper symbols in the documentation.
Title: Re: making Python work on Win 7 64bit
Post by: ArmOne on December 25, 2011, 11:20:47 PM
oh now it works!