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

Pages: [1]
1
Python and Java API / Re: Debugging python code in Agisoft?
« on: October 28, 2015, 03:42:34 AM »
This is a MUCH needed feature!

2
Python and Java API / Re: How do you specify orthophoto width?
« on: October 14, 2015, 01:14:47 AM »
Do you have any sample code on how to calculate this?

I have a problem where the ortho is larger than 65500px and that can not be exported as it exceeds the jpg limit in size. I need to some how estimate how big the jpg is going to be and if bigger than 65500px then I need to reduce the size to within that number.

Thanks for any help.

3
Python and Java API / Re: How do you specify orthophoto width?
« on: October 13, 2015, 10:06:40 AM »
I would also like to know how to do this

4
Found the answer

Code: [Select]
chunk.dense_cloud.classifyGroundPoints(max_angle=max_angle, max_distance=max_distance, cell_size=cell_size)

5
Hey

I was having the same problem so I tried what you suggested but had no luck.
I'm getting the following error:

Code: [Select]
AttributeError: 'PhotoScan.Chunk' object has no attribute 'classifyGroundPoints'
Any suggestions?
Thanks

6
Python and Java API / Re: Example code for full processin chain
« on: August 27, 2015, 09:34:33 AM »
removed

7
Python and Java API / Show script errors in the console
« on: August 05, 2015, 09:28:00 AM »
Hi All

Is there a way to turn on errors in the photoscan console. If I run a script function that I have bound to a custom menu item and that function has a python error in it, photoscan does not throw that error. However if I typr the commands into the python console it will show me the error.

Barry

8
Python and Java API / Re: Export DXF
« on: June 25, 2015, 04:00:44 AM »
Thanks for the update.

Any news on when the next version will be out and have this implemented?

9
Python and Java API / Export DXF
« on: June 24, 2015, 08:32:18 AM »
Hi guys

When exporting a DXF model in the GUI you get the option to select 3DFace or Polyline. However, when you use the API I am not able to find a way to set what output type I would like.

Can anyone tell me how to do this? Also, if there is not a way to set this, can some one tell me what the default output is.

10
Python and Java API / Re: Running headless
« on: June 11, 2015, 05:18:33 AM »
Please can we get this added! It is crazy necessary for many workflows!

11
Python and Java API / Changing coordinate system on all cameras
« on: June 11, 2015, 05:05:20 AM »
Hi there

I'm trying to figure out how to convert the coordinate system on all cameras using the API.

I have tried something like this

Code: [Select]
crs = app.getCoordinateSystem("Select project coordinate system")
chunk.crs = crs

But that changes the project coordinate system but does not convert the cameras projection from the old to the new.

I just want it to do the same thing as hitting the convert button on the camera reference tab.

12
Python and Java API / Re: Potree Generation Information
« on: May 20, 2015, 02:46:13 AM »
Any Ideas? Still cat get it to work.

PhotoScan.app.document.chunk.exportPoints(location + projectName + "_potree.zip", format="potree", source=PhotoScan.DensePoints)

Exports pretty much a blank potree zip file with one js file in it and no data.

13
Python and Java API / Re: Potree Generation Information
« on: May 16, 2015, 01:14:35 AM »
Hi, I'm using version 1.1.6 on Ubuntu 15.04

14
Python and Java API / Re: Potree Generation Information
« on: May 15, 2015, 02:52:43 AM »
I am hitting the problem where the export from the GUI and the export from the Python API are not at all the same.

The GUI export has a folder in the zip file called "data" and is full of files that are then referenced in the JS file. However when you do an export using the Python API, you get no "data" folder in the zip file and the JS file has completely different data in it, only the structure is the same.

My Steps:
1. Open project file
2. Click "File", "Export Points", Type name and select "Potree" as file type, Click "Save"
3. Make sure "Dense cloud" is selected, Click "OK"
4. Export should start

5. Run the following line in the CLI "PhotoScan.app.document.chunk.exportPoints("/location/to/my/export/potree.zip", format="potree", source=PhotoScan.PointsSource.DensePoints)"

6. Compare outputs and they are not the same.

It seems that the script output is not generating any data, its kind of just a blank JS potree file.

Can anyone tell me what I might be missing or why this is happening.

15
Python and Java API / Re: Potree Generation Information
« on: May 14, 2015, 09:41:47 AM »
I would also like to know how to export potree in python

Pages: [1]