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 - stijntje44@hotmail.com

Pages: [1]
1
Python and Java API / Timed interrupt of a loop.
« on: August 26, 2019, 03:04:31 PM »
Hi,
I made an automated script for agisoft Metashape 1.5.0

This script potentially loops indefinitely and I thought it would be nice to give the user the potential to exit the loop after each loop.

The idea was to Metashape.getBool in order to give the user a chance to input a boolean.

IF the user were to not input anything for say, 10 seconds, it would default to False and continue the loop.

However, you cannot do anything while the script is sleeping, and asking for a boolean also halts the process, so I cannot get any temporary pop-up going.

I've tried with multi-threading but it either doesn't work with Agisoft or I am doing something wrong.

I am using windows 10, python 3.6 (I believe).


Thanks for any help,
Stijn Klessens

2
General / Texture projection issues.
« on: May 28, 2019, 02:22:47 PM »
I am trying to build a texture using a retopologized model, however, doing so causes weird artefacts, things are improperly placed, half the face is blurry, etc.

However, it projects correctly on the original model, does anyone know what the issue could be?

I don't think it could be inaccuracy in the model, since that was wrapped automatically and shouldn't have discrepancies of this size. I am using "keep uv" and "mozaic" and have tried other options, same issue.

3
Python and Java API / How do I center my scene on 0,0,0?
« on: April 23, 2019, 05:19:23 PM »
No matter what I do I can't seem to figure this out.


I want to center my scene at 0,0,0 based on location of Markers. I have the marker location, but I can't figure out how to change the scene, I can change the region, but that's about it.


Is there a function that can be used to adjust the rotation and transform of the entire scene, or do I have to apply a matrix multiplication to all individual cameras in the scene?

Any help would be greatly appreciated.

4
Python and Java API / How to get Marker coordinates
« on: April 23, 2019, 03:44:21 PM »
I've been trying to get the coordinates of markers through python.
After detecting the markers I have the following code

for c in chunk.markers:

Pages: [1]