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

Pages: [1]
1
Python and Java API / Using tkinter for parameter input
« on: August 14, 2022, 02:37:41 PM »
Hello,
I am testing some code I made for different operating systems. The script uses the built-in tkinter that comes with Agisoft's Python version. I am getting errors on MacOS and Ubuntu with the latest Metashape Professional versions indicating version conflicts and missing init.tcl errors (Screenshots attached). Can anyone help me?
How can there be version conflicts with the Python provided by Agisoft?

Thank you very much.

2
Python and Java API / Error Window 'matching'
« on: August 10, 2022, 07:11:05 PM »
Hello,
I am working on a pipeline to automate processes via the Python API. I have run into this error window that shows up. Unfortunately, it does not give more information than just 'matching'. Does anyone know where I have to start looking for the error?

Thank you for your help!

3
Thank you for your reply, Alexey.
Yes, the masks are assigned to the right cameras despite the error message. I am trying to automate my workflow and the error message stops the script from continuing. Is there a way to suppress the message box popping up?

Quote
Though, you may need to modify cameras=chunk.cameras to cameras=[c.key for c in chunk.cameras if c.type == Metashape.Camera.Type.Regular]

What does this do?

Mettigel

4
Hi,

How do I import masks in form of a .jpg file and assign them to the corresponding cameras without getting an error and interrupting my script.
Only a few of my cameras need to be masked and I would like to make the script find them and create a list containing the cameras I have masks for.

Code: [Select]
    chunk.generateMasks(path=f"{input_path}{os.path.sep}masks{os.path.sep}"+"{filename}.jpg",
                        masking_mode=Metashape.MaskingMode.MaskingModeFile,
                        cameras=chunk.cameras)

Thank you very much in advance

Mettigel

Pages: [1]