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

Pages: [1]
1
Hi Alexey,

As of now I cannot  reproduce the "Bad allocation" error anymore, since the Python script just get stuck without any warning or error.

Metashape version 1.7.2 and the procedure does not fail from the GUI, but only from the Python code.

2
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?


3
Python and Java API / Re: Reference preselection mode error
« on: December 19, 2020, 04:03:45 AM »
Thank you @Paulo, it was actually that simple.
Seems like I still have a lot to learn even on basics.

Best Regards

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