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 - 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 / Re: How to get the volume of a model ?
« on: November 12, 2012, 07:04:29 PM »
The 'close holes' function would be nice too !   ;)

Julien

3
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

4
Python and Java API / Re: Getting wgs84 coordinates of a face's vertices
« on: November 02, 2012, 05:35:57 PM »
Thanks

This works perfectly.

Hum, now I would like to do the inverse operation (wgs84 -> local coordinates)... ?

5
Python and Java API / Re: Getting wgs84 coordinates of a face's vertices
« on: November 02, 2012, 01:05:34 PM »
Hello Alexey

Code: [Select]
    v = vertex.coord
AttributeError: 'int' object has no attribute 'coord'

Photoscan 0.9.

Henri

6
Python and Java API / Re: How to specify Quality in ExportPoints function
« on: October 30, 2012, 05:48:08 PM »
Oh yes !
Is there any document in which I can find the description of the concept of depth filtering  ?

Henri

7
Python and Java API / Re: How to specify Quality in ExportPoints function
« on: October 30, 2012, 05:38:36 PM »
Ok, doc is not 100% up to date but support is nice and reactive !!  ;)

What kind of filtering is used when using desktop app ?
I want to reproduce with scripting exactly what I do the app.

Henri

8
Python and Java API / Re: How to specify Quality in ExportPoints function
« on: October 30, 2012, 05:17:12 PM »
Hum, here's the documentation about buildDepth :

buildDepth(quality=’medium’, p1=40, p2=2000, gpu_mask=0, cpu_cores_inactive=0[, frames ])
Generates depth maps for the chunk.
Parameters
• quality (string) – Depth map quality in [’lowest’, ‘low’, ‘medium’, ‘high’, ‘ultra high’].
• p1 (int) – Smoothness parameter.
• p2 (int) – Smoothness parameter.
• gpu_mask (int) – GPU device bit mask: 1 - use device, 0 - do not use (i.e. value 5 enables
device number 0 and 2).
• cpu_cores_inactive (int) – Number of CPU cores to reserve for GPU tasks during pro-
cessing. It is recommended to deactivate one CPU core for each GPU in use for optimal
performance.
• frames (list of int) – A list of frames to be processed.
Returns Success of operation.
Return type boolean


If I call chunk.buildDepth("lowest", 40, 2000, 1, 2).
Here are my questions :
1- This call raises chunk.buildDepth("lowest", 40, 2000, 1, 2). What is the error ?
2- where does I fix p1 and p2 when using the desktop app ?
3- If I do not specify the frames, I suppose that all frames are computed ?

Thanks
Julien

9
Python and Java API / Re: How to specify Quality in ExportPoints function
« on: October 30, 2012, 05:03:24 PM »
Ok, thanks

Henri

10
Python and Java API / Re: chunk.optimize does not work
« on: October 30, 2012, 04:50:11 PM »
It works.

Thanks Alexey
Julien

11
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

12
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

13
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]