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

Pages: [1]
1
Python and Java API / exporting reference table as csv
« on: August 02, 2018, 06:46:39 PM »
Hi all,

I'm trying to export the 'estimated' reference table with estimated XYZ camera coordinates plus projections and pixel errors.

I've tried working with Tasks.ExportReference to accomplish this, but have not been successful in developing working code. Likely because I don't fully understand the task class.

Could someone share some code for exporting the reference tables that I could start to work with?

Thanks,

-scottm.

2
I'm writing a python script to implement gradual selection. As part of the script, I was to tighten the tiepoint accuracy, but I'm receiving an error. code and error follow.

Edit: Looks like my error was that I needed to assign float to the parameter.
accuracy_TP = float(0.3)

I thought I had tried this prior to posting, but I guess I was wrong. I'll leave this here to demonstrate my ineptitude. -s

Code: [Select]
#### processing parameters
...
accuracy_TP = 0.3
...

####Processing
doc = PhotoScan.Document()
chunk = doc.addChunk()
...
chunk.tiepoint_accuracy(accuracy_TP)
...

The error I receive:

Quote
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-89-3b268cc58787> in <module>()
----> 1 chunk.tiepoint_accuracy(accuracy_TP)

TypeError: 'float' object is not callable

I'm sure I'm missing something simple. Thanks.

Pages: [1]