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 - Roy

Pages: [1]
1
Hello.

i'm trying to run a script from inside Metashape with the "Run Script" option.
I noticed that there is an "Arguments" row that I can put stuff in it.

How can I access to these arguments from the script itself?

Would Appreciate help.

Roy

2
Python and Java API / doc.open() does not work
« on: January 31, 2024, 12:00:15 PM »
Hello.
i'm starting to write python code for my projects and I am stuck on a problem that I can't understand.

code:

import Metashape

doc = Metashape.app.document
doc.open("my_path")
....


and when I run this i get the following error:

'getset_descriptor' object has no attribute 'open'

what am I doing wrong?

would appreciate the help.
Roy

3
General / loading "solved" xml file
« on: November 30, 2015, 05:20:46 PM »
Hi.

I have an xml file that I wrote for agisoft and I am loading it with import cameras ("solved" data after aligning)

the problem is when I try to build points. at the console log it seems to work at first ( finding almost 40k points for each image ,finding pairs and matching points. even "generating tie points)
but when it reached the adding part it doesn't add any points.
I attached an image from the console with the log.

what is the problem? can anyone help me ?

thanks, Roy

4
Python and Java API / loading "solved" data
« on: November 26, 2015, 12:56:18 PM »
Hi.

I have data of cameras that are already aligned and their XYZ omega , phi kappa are accurate.

I load them to agisoft (using python scripting) but it doesn't appear as "solved" and it not aligned.

is there a way of uploading the data that it will be already aligned ?

the data is in text file "name x ,y, z omega , phi , kappa"  (i transform opk to yaw pitch roll)

thanks, Roy


5
Python and Java API / import geotag (GPS IMU) of images from file
« on: November 24, 2015, 02:51:39 PM »
Hi.

I have a set of images without geotags and a file (now it's a text file comma separated but it's changeable)
that holds the tagging of the images (name , GPS (phi ,lambda , h) and IMU (yaw, pitch , roll) )

how can I combine them and load to the same chunk so i'll have the images and their geotags.

thanks.

6
Python and Java API / can't load photos
« on: November 24, 2015, 12:32:57 PM »
Hi.

i have a JPG image list that i'm trying to load to a chunk I created using this code :

import os, PhotoScan
doc = PhotoScan.app.document
myChunk = doc.addChunk()
path_photos = PhotoScan.app.getExistingDirectory("Specify folder with input photos:")
path_photos += "/"
project_path = PhotoScan.app.getSaveFileName("Specify project filename for saving:")
image_list = os.listdir(path_photos)
for myP in image_list:
        if("JPG") in myP:
            myChunk.addPhotos(path_photos + myP)

but it can't load the photos throwing this error:

"2015-11-24 11:28:31 Error: Can't load photos"



Pages: [1]