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

Pages: [1]
1
Hi all


All the psz files built with ps 0.9.0.1584 do not open fully correctly with photoscan 1.0.0.1795
nor 1.0.1.1812 64 bits linux.
Markers coordinates are incorrect ; they look like truncated to the comma.
Also, import of the marker coordinates does not work with the early data. I need to
change the decimal separator from point to comma.

I can provide data if needed.

thanks
Julien

2
Python and Java API / How to get the volume of a model ?
« on: November 02, 2012, 06:22:15 PM »
Hello

I did not find any api function that can match the  "tools / measure area and volume" menu.
Does it exists ?

Thanks
Henri

3
Python and Java API / How to specify Quality in ExportPoints function
« on: October 30, 2012, 04:21:07 PM »
Hello

In PS app, when exporting points with dense type, you must select the quality. You can choose the
precision and some other params that I can not see in the exportPoints function.

Is there a way to specify those params, if not, what are the values used for the export ?

Thanks for you help.
Regards
Henri

4
Python and Java API / chunk.optimize does not work
« on: October 30, 2012, 03:54:41 PM »
Hello

on the below code :
Code: [Select]
doc = PhotoScan.app.document
chunk = doc.chunks[0]
chunk.optimize()
chunk.optimize() raises an error "AttributeError: 'PhotoScan.Chunk' object has no attribute 'optimize'"
I tried chunk.optimize(True, True, True), same error.
I tried on the same object, exportReport and this method works.

What happens ?

Also, one more question, in the documentation, default values for optimize parameters are true, true, true while in the above text, the types are bool, float, float. I suppose that, according to the desktop
app, the correct types are bool, bool, bool. Exact ?

I'm using photoscan pro 0.9

Regards
Henri

5
Python and Java API / Getting wgs84 coordinates of a face's vertices
« on: October 26, 2012, 02:35:13 PM »
Hello

I'm trying to get the wgs84 coordinates of a face's vertices.
Preamble : I use a model that has been georeferenced using WGS84 GCPS.

Here's what I did :

Code: [Select]
doc = PhotoScan.app.document
chunk = doc.chunks[0]
model = chunk.models[0]
faces = model.faces

crs = PhotoScan.CoordinateSystem()
crs.init("EPSG::4326")

for face in faces:
    if face.selected:
        vertex = face.vertices[0]
        unpro = crs.unproject(model.vertices[vertex].coord)
        print (unpro)

Definitly, this does not provide a wgs84 coordinate.
What did I do wrong ?

Regards
Henri

Pages: [1]