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

Pages: [1] 2
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 / Re: doc.open() does not work
« on: February 04, 2024, 12:52:16 PM »
Hi.
Thanks for the help.

so it appears that you were spot on.
probably some previous commands affected because restart fixed the issue.

Also I found that my path had "/" and python wanted "\".
it seems to run good now.

thank you again :)

3
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

4
Hi alexey.

i'm wondering what is the difference between the script you added to this topic (conversion from opk to ypr)
to the script you once wrote in a different topic in which you wrote that using the following code transform from opk to ypr

yaw, pitch, roll = PhotoScan.utils.mat2ypr(PhotoScan.utils.opk2mat(PhotoScan.Vector((omega, phi, kappa))).t())

what is the difference?

5
General / Re: loading "solved" xml file
« on: December 15, 2015, 03:18:07 PM »
HI.
thanks for the reply.
can you please explain again what is wrong?
you say the orientations from the "accurate" file I have are not good?

Its worth to mention that  the orientations are omega,phi, kappa in my file.

Roy

6
General / Re: loading "solved" xml file
« on: December 14, 2015, 10:08:54 AM »
OK.
it confuses me too..

is there any progress finding the problem?
thanks

7
General / Re: loading "solved" xml file
« on: December 13, 2015, 01:08:14 PM »
in this XML there is the calibration for the camera

8
General / Re: loading "solved" xml file
« on: December 13, 2015, 01:05:17 PM »
sure.

its : name. x,y,z,o,p,k  format

9
General / Re: loading "solved" xml file
« on: December 13, 2015, 12:43:46 PM »
the data is already "aligned" in a different machine. so the locations of the images (XYZ) are accurate.
and I build rotation matrix for the transformation

10
General / Re: loading "solved" xml file
« on: December 13, 2015, 12:38:09 PM »
OK.
sent it.

thanks

11
General / Re: loading "solved" xml file
« on: December 13, 2015, 10:41:37 AM »
the size is to large (2 mb)

can I send it to you via Email?

Roy

12
General / Re: loading "solved" xml file
« on: December 13, 2015, 10:13:09 AM »
Hi Alexey.

I attached the project file after loading and build point cloud.

thank you for your help.

Roy

13
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

14
Python and Java API / Re: loading "solved" data
« on: November 26, 2015, 02:31:24 PM »
thanks for the reply alexey.

I see that importCameras works only with a few formats and as far as I see visionmap detailed report is the only text format.

do you have a code that transform from simple XYZOPK to any of the formats read by the function?

if not, any suggestion how do this transformation?

thanks, Roy

15
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


Pages: [1] 2