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

Pages: [1]
1
Python and Java API / Re: Exporting Chunks as Georeferenced Orthophotos
« on: October 21, 2014, 04:51:07 PM »
Hi,
I tried this solution too, but I always get the following error:

crd = chunk.ground_control.locations[chunk.cameras[0]].coord
TypeError: invalid key

If I output the variables everything seems to be ok.

Code: [Select]
    print(chunk.cameras[0])
    print(chunk.ground_control.locations)

    crd = chunk.ground_control.locations[chunk.cameras[0]].coord
    [...]
<Camera 'test0001.JPG'>
<PhotoScan.GroundControlLocations object at 0x7ff9a416e1f0>

Any obviously mistake? Or is there a special precondition for accessing the ground_control.locations?

Thanks in advance

2
Python and Java API / Re: Issue of Python scrip for exporting Orthophoto
« on: October 21, 2014, 04:49:35 PM »
Hey Alexey,
thanks for your help :)
Looks good

3
Python and Java API / Re: Issue of Python scrip for exporting Orthophoto
« on: October 17, 2014, 02:17:54 PM »
Hi,
I'm trying for days to export some orthophotos in python analogues to GUI, but I don't get the transformation matrices
I wrote a part in python where a set of matrices is generated randomly (with random values of 1,0,-1) to understand how the values influences the orthophoto..but finally I don't get it :(

BottomXY = PhotoScan.Matrix([[-1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, -1.0, 0.0],  [0.0, 0.0, 0.0, 1.0]]) as in the topic here...PhotoScan.Matrix ([[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]]) is Top XY

I want to build only the transformation matrices for exactly the same options in the GUI:
* Top XY (0,90, 180, 270)
* Bottom XY (0,90, 180, 270)
* Front XZ (0,90, 180, 270)
* Back XZ (0,90, 180, 270)
* Right YZ (0,90,180,270)
* Left YZ (0,90,180,270)

Maybe somebody could show me how this works  :-\

Thanks in advance

4
Python and Java API / Re: Running headless
« on: June 28, 2014, 07:50:03 PM »
Hey there,
I'm also interested in this feature..running PhotoScan over python scripting without gui on remote server would be the decisionmaker for pro license purchase  ::)
please let us know if this is planned for the future or already in work

Pages: [1]