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

Pages: [1]
Hi everyone,

I'm currently working on a Python code for automated workflow. The problem I'm facing now concerns the "refine seamlines" option during the orthomosaic generation. When activated, it either cause a "Bad allocation" error, or more frequently it causes the Python script to stuck. I'm pretty sure that the problem resides there, since everything works fine if I turn it off.

Does anyone else have this same problem? Is there any solution?

Python and Java API / Reference preselection mode error
« on: December 19, 2020, 12:48:52 AM »
Hi everyone,

I have been approaching Python for the first time in the last weeks and I'm now trying to write a script to automatize a Workflow in Metashape.
However, I have a problem with reference_preselection_mode. I need to set the Sequential option, but neither ReferencePreselectionSequential nor 2 (I found an old post where Alexey suggested to use 2, but actually it was for a previous version of Metashape).
If I input ReferencePreselectionSequential the error is:
 NameError: name 'ReferencePreselectionSequential' is not defined

If I input 2 the error is:
 ValueError: Invalid argument value: reference_preselection_mode
 (which I expected, but I did not know what else to try)

The script works fine as soon as I delete that line, so I there problem is 100% there. Am I doing something wrong?

Thanks to anyone who will help.

Pages: [1]