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

Pages: [1]
Python and Java API / Selectively export textures?
« on: February 21, 2024, 10:33:44 PM »

Assuming that I create all of the texture types for my model, is it possible to only have a subset of those textures included when exporting my model?


Bug Reports / Error during mesh edit following save after mesh edit
« on: January 22, 2024, 10:11:17 PM »

When I'm editing a mesh, such as selecting and deleting faces or closing holes, I save my changes before continuing with further editing. However, following saving, when I attempt to perform additional editing, the mesh disappears from view and the following errors appear in the console:

Error: Bad local file header signature
Error: Can't unpack file

I'm currently running version 2.1.0 build 17532 on Windows 11 22H2.

Fortunately, I'm able to close out of Metashape, discarding the last changes, and I'm able to reopen and continue from before the errors occurred.

Thanks for the help.

General / OSError: file used by another process
« on: January 08, 2024, 07:34:12 PM »
Hello everyone,

I've been running into an issue while running my automated workflow. Occasionally, processing will halt and the following error will show up in the console:

OSError: Can't replace file or directory: The process cannot access the file because it is being used by another process (32): PathToProject/ProjectName.files/99/0/depth_maps/

I'm running Windows 11 22H2. I think I started having this issue with Metashape v.2.0.4. Has anyone else run into this problem? I've been using the same computer for some time with the same script and no other applications are running on the computer during processing. Metashape and the project files are local.


Python and Java API / Recording logs and console output using Python
« on: October 23, 2023, 07:54:50 PM »

I'm running into some unwanted behavior when saving log/console output when running a script from within the GUI.

I have my script set up to enable logging at the start of the script. I then disable logging in the last line of my script so Metashape does not write to the previous log file the next time the application starts up. However, doing this seemingly prevents the last few lines of the console output from being recorded.

I figured a way around this would be to save the entire console text ( after the rest of the script has executed. However, I can't figure out how to do this through Python scripting. I want to save the output as a TXT file.


Python and Java API / Accessing the number of projections per image
« on: October 02, 2023, 10:46:58 PM »

How do I access the number of projections per image such as what is displayed in the Reference panel? I'm using the Python API for Metashape 2.0.3.

I found a past post from a few years ago that asked this same question:

I haven't been able to get any of the code to work. I'm guessing because the API has changed since the time of the posting?


Bug Reports / Metashape 2.0.2 and 2.0.3 crash when using scripts
« on: September 19, 2023, 12:12:37 AM »

I'm testing out using scripts to automate some of my processing. Currently, I'm trying a script developed by the USGS. Maybe some of you are familiar with the script associated with this publication:

    Over, J.R., A.C. Ritchie, C. Kranenburg, J.A. Brown, D.D. Buscombe,
    T. Noble, C.R. Sherwood, J. Warrick, and P.A. Wernette. (2021) Processing
    coastal imagery with Agisoft Metashape Professional Edition, version
    1.6—Structure from motion workflow documentation: U.S. Geological Survey
    Open-File Report 2021-1039, x p.

The script contains a workflow for alignment and error reduction.

Unfortunately, using the script causes Metashape (2.0.2 and 2.0.3 running on Windows 11) to crash. When I use the script to perform alignment, the application crashes right as the camera positions are calculated. I've also tried alignment using the GUI and then using the script for error reduction - Metashape crashes immediately.

Has anyone had similar issues when using scripts?


General / Model Confidence greyed out?
« on: April 05, 2021, 06:11:38 PM »
Hi everyone,

I generated a mesh using depth maps and want to check the confidence of my model to figure out where I may need to take additional photos. However, when I go to the toolbar to select "Model Confidence", it's greyed out.

Am I missing something here? Was there a step I missed? When I generated the mesh, I made sure to select the option for calculating vertex colors.


General / Black edges around point clouds and meshes
« on: January 25, 2021, 12:53:59 AM »
Hello everyone,

Metashape always outputs a black border around my point clouds and meshes. The subjects for my models are track way surfaces, so in a sense, they’re like 2D surfaces with relief.

I have been masking my photos. However, it doesn’t seem to make a difference whether I’m using the built-in masking tools or using Affinity Photo prior to importing my photos.

Has anyone else ever experienced this issue? Is there a solution?


Update: I've added a couple of screenshots. The first is the point cloud and the second is the mesh generated from the point cloud.

Update: It seems that the black edging around the mesh occurs when interpolation is enabled. When I disable interpolation, the edge doesn't occur, but I end up with holes in the mesh. Is there an easy way to remove the edging. I notice that with point clouds, I can filter points by color, but no such functionality exists for meshes.

Pages: [1]