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

Pages: [1] 2 3 ... 6
1
It seems that it installed all dependencies just fine (even if i got a lot of warnings).

In the following days i will test it (try to detect some objects) in a project to see that it runs correctly.
\Thank you!

2
Hello all.

I used to have the "Detect Objects" script (from https://github.com/agisoft-llc/metashape-scripts) and was working fine in Metashape v.2.1

I updated Metashape to the latest version v.2.3 today. I downloaded all scripts i needed from Github. All working fine but the "Detect Scripts" cannot install dependencies.

When i start Metashape i get a message to install dependencies. (pic1)

1) If i run the installation i get the error "Failed to install script dependencies"
and the message in console is (full console message attached as html:

Code: [Select]
2026-02-17 12:05:16 Agisoft Metashape Professional Version: 2.3.0 build 21954 (64 bit)
2026-02-17 12:05:16 Platform: Windows
2026-02-17 12:05:16 CPU: AMD Ryzen 7 2700X Eight-Core Processor (desktop)
2026-02-17 12:05:16 CPU family: 23 model: 8 signature: 800F82h
2026-02-17 12:05:16 RAM: 63.9 GB
2026-02-17 12:05:16 OpenGL Vendor: NVIDIA Corporation
2026-02-17 12:05:16 OpenGL Renderer: NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2
2026-02-17 12:05:16 OpenGL Version: 4.6.0 NVIDIA 576.52
2026-02-17 12:05:16 Maximum Texture Size: 32768
2026-02-17 12:05:16 Quad Buffered Stereo: not enabled
2026-02-17 12:05:20 Installing "detect_objects" requirements...
...
...
..
2026-02-17 12:06:15
2026-02-17 12:06:15 [notice] A new release of pip is available: 23.3.2 -> 26.0.1
2026-02-17 12:06:15 [notice] To update, run: C:\Program Files\Agisoft\Metashape Pro\python\python.exe -m pip install --upgrade pip
2026-02-17 12:06:15 error: invalid-installed-package
2026-02-17 12:06:15
2026-02-17 12:06:15 Cannot process installed package pytorch-lightning 1.5.10 in 'c:\\program files\\agisoft\\metashape pro\\python\\lib\\site-packages' because it has an invalid requirement:
2026-02-17 12:06:15 .* suffix can only be used with `==` or `!=` operators
2026-02-17 12:06:15     torch (>=1.7.*)
2026-02-17 12:06:15            ~~~~~~^
2026-02-17 12:06:15
2026-02-17 12:06:15 Starting with pip 24.1, packages with invalid requirements can not be processed.
2026-02-17 12:06:15
2026-02-17 12:06:15 hint: To proceed this package must be uninstalled.
2026-02-17 12:06:33 Traceback (most recent call last):
2026-02-17 12:06:33   File "C:/Users/ITG/AppData/Local/Agisoft/Metashape Pro/scripts/detect_objects.py", line 153, in <module>
2026-02-17 12:06:33     pip_install(requirements_txt)
2026-02-17 12:06:33   File "C:\Program Files\Agisoft\Metashape Pro\modules\pip_auto_install.py", line 373, in pip_install
2026-02-17 12:06:33     raise Exception("Failed to install requirements")
2026-02-17 12:06:33 Exception: Failed to install requirements
...
...

In [1]:

Please help! I cannot figure out how to install dependencies correctly.



3
General / Re: Orthomosaic is mirrored when importing it in GIS or CAD
« on: June 30, 2025, 01:05:07 PM »
thank you vineg

Works like a charm!

4
General / Re: Orthomosaic is mirrored when importing it in GIS or CAD
« on: June 25, 2025, 03:08:30 PM »
Thank you Paulo and vineg.

I know that i may ask too much but if you can make this code in a script to have it in Scripts Menu in Metashape would be very helpful.
I do not need the script to have the whole workflow of building the orthomosaic, define projection etc.
I only need a script that when run it inverts the Y axis. (exactly what the code does, that vineg provided)

This way i do not have to copy paste the code in the console etc.

5
General / Re: Orthomosaic is mirrored when importing it in GIS or CAD
« on: June 24, 2025, 02:27:22 PM »
Thank you vineg.

I tried the code you provided and it works.
The exported orthomosaic is now imported with no mirroring.

So, the code you provided inverts the axis along Y.
Supposed i need (in the future) to invert along the X axis. Is this possible? How is the syntax for the code? (Top, Bottom)?

I believe that it should be better that Metashape should recognise automatically that someone is using "Interior Projection" and ask the user to invert the axis during export or add an option to select to the export dialog.

Lastly, it would be nice to have the code load automatically when Metashape starts and added to a Menu Listing in the Scripts Menu. Does anyone know how to add this code to a script? I'm not that good with scripting and any help would be awesome.


6
General / Re: Orthomosaic is mirrored when importing it in GIS or CAD
« on: June 24, 2025, 12:49:13 PM »
I did a little testing and i think the problem is when choosing "Interior Projection".

If i do not check this option when creating the orthomosaic then the produced orthomosaic (which is wrong) is importing fine in Civil 3D etc (without mirroring but it the wrong orthomosaic).

BUT this is not correct orthomosaic for this project as i need the interior view projected for obvious reasons. (I'm scanning a Tunnel, not a bottle that i need the outside surface). Not using the Interior Projection produces a mirrored orthomosaic in the first place which is wrong. Importing this "wrong" orthomosaic in Civil 3D it places it "as is" without mirroring it.

So i think that Cylindrical Projection is made with objects like bottles etc in mind,  that you need the outside texture unwrapped. But when you need the inside and you check "Interior Projection" then you get the correct orthomosaic in Metashape but when exporting it it gets the Axis messed up. (in my case the Y axis).

Checking also the "World file" it produces i think it's not correct (Pic.01) I never seen both X and Y values for pixel size to be negative.


My conclusion is that the problem is just the Export routine from Metashape. It somehow messes up the Axis.

Am i wrong? Is something i need to do differently? Or Agisoft has to check and somehow to fix this problem/bag.

7
General / Orthomosaic is mirrored when importing it in GIS or CAD
« on: June 24, 2025, 12:25:11 PM »
Hello. I have a problem when importing an orthomosaic in QGIS and AutoCad. I view it perfectly fine in Metashape but it gets mirrored when importing it in other programs.
Metashape Pro Version 2.2.1 (build 20641)

The project is to produce an unwrapped orthomosaic of a tunnel (no need for road surface). See Pic.01
My workflow:
1) Collect photos and CPs on the field.
2) Align photos
3) Enter CPs to georeference the project (local coordinates) CP coordinates are measured in such a way that the produced model has the Tunnel Axis aligned with Metashapes Y axis. It also places the model according to the Chainage of the Tunnel. 
4) Apply gradual selection and optimize the alignment.
5) Build a tiled model.
6) Define Axis and Radius of the tunnel with markers.
7) Build Orthomosaic by using Cylindrical Projection and using the Markers to define the axis and Projection Origin. Because it's a Tunnel i check the option "Interior Projection". As surface i choose Tiled Model and transfer model texture. See Pic.02
8) Export the Orthomosaic

The orthomosaic looks perfect for the needs of this project. See Pic.03
Preview inside windows explorer looks correct.

9) Importing the orthomosaic in Civil 3D and the orthomosaic is mirrored along Y axis. See Pic.04 The same happens when is imported in QGIS.

Why it does that and how can i correctly produce such unwrapped orthomosaic.


8
General / Re: Sectional views from 3d scan
« on: March 05, 2025, 12:56:35 PM »
You need to use the Measure Profile feature. (see pic.1)

1) select the "Measure Profile" command.
2) Click the first point and then click again a second point along the line you need to cut.
3) Right click to finish the command.

In the window that opens you see the profile of the cut you assigned.  From there there is a save command that lets you save the profile in different formats such as .shp, .dxf, .jpg, .png etc. (see pic.2)

you can make some adjustments with the sliders to the depth range of the cut, an offset of the cut and the display of the point (solid, color, classification etc)

In order to use this feature you need to have the project referenced. This can be done with georeferencing, or with Control Points, or with scale bars.

9
General / Re: Align imported point cloud file
« on: February 11, 2025, 01:32:12 PM »
I would be interested if you find a solution because i have also tried but no success yet.

10
Feature Requests / Re: Hide all info layers option for Capture View
« on: February 06, 2025, 10:18:26 AM »
+1

11
Thank you Alexey.

I tried this morning and download completed just fine.

One think that i noticed is that the files are named "U2Net_v0" (see attached pictures) and not "U2Net_v1" which always failed to download. Is this a previous version of the AI model? How is it going to update to next versions if any will be available in the future?


12
Python and Java API / Re: Footprint script creates only 1 footprint
« on: February 04, 2025, 05:13:02 PM »
Thank you Alexey.

I downloaded the updated script and now works fine.  ;D

13
I cleared C:/<user>/AppData/Local/Agisoft/Metashape Pro/ai/ folder (i even tried a second time and deleted the ai folder altogether).
I checked C:/Program Files/Agisoft/Metashape Pro/ai/ but there is no such ai folder.

I tried to download the model but i get the same errors.

The ai folder created itself again in C:/<user>/AppData/Local/Agisoft/Metashape Pro/ and it only contains a folder named "default" with nothing at it.  During the download there are 2 files named "U2Net_v1.json" and "U2Net_v1.onnx" but as download finishes and i get the error the files disappear. (see print screen)


Bellow is the complete console from opening Metashape to error messages.

Quote
2025-02-04 14:55:58 Agisoft Metashape Professional Version: 2.2.0 build 19890 (64 bit)
2025-02-04 14:55:58 Platform: Windows
2025-02-04 14:55:58 CPU: AMD Ryzen 7 2700X Eight-Core Processor (desktop)
2025-02-04 14:55:58 CPU family: 23 model: 8 signature: 800F82h
2025-02-04 14:55:58 RAM: 63.9 GB
2025-02-04 14:55:58 OpenGL Vendor: NVIDIA Corporation
2025-02-04 14:55:58 OpenGL Renderer: NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2
2025-02-04 14:55:58 OpenGL Version: 4.6.0 NVIDIA 566.36
2025-02-04 14:55:58 Maximum Texture Size: 32768
2025-02-04 14:55:58 Quad Buffered Stereo: not enabled
2025-02-04 14:55:58 ARB_vertex_buffer_object: supported
2025-02-04 14:55:58 ARB_texture_non_power_of_two: supported
2025-02-04 14:55:59 To execute this script press Scripts/Add reference altitude
2025-02-04 14:55:59 To execute this script press Scripts/Align model or dense point cloud
2025-02-04 14:55:59 Script started...
2025-02-04 14:55:59 To execute this script press Scripts/Add reference offset
2025-02-04 14:55:59 To execute this script press Scripts/Bounding box to coordinate system
2025-02-04 14:55:59 To execute this script press Scripts/Color Model with Altitude
2025-02-04 14:55:59 To execute this script press Scripts/Color Model with Overlap
2025-02-04 14:55:59 To execute this script press Scripts/Coordinate system to bounding box
2025-02-04 14:55:59 To execute this script press Scripts/Copy bounding box
2025-02-04 14:55:59 To execute this script press Scripts/Detect objects
2025-02-04 14:55:59 To execute this script press Scripts/Export Depth Maps
2025-02-04 14:55:59 To execute this script press Scripts/Create footprint shape layer
2025-02-04 14:55:59 To execute this script press Scripts/Detect Fiducials
2025-02-04 14:55:59 To execute this script press Scripts/Import external depth
2025-02-04 14:55:59 To execute this script press Scripts/Import DJI trajectory_sbet.txt
2025-02-04 14:55:59 To execute this script press Scripts/Masking by color
2025-02-04 14:55:59 To execute this script press Scripts/Read RelativeAltitude from DJI metadata
2025-02-04 14:55:59 To execute this script press Scripts/Region Control
2025-02-04 14:55:59 To execute this script press Scripts/Remove assets
2025-02-04 14:55:59 To execute this script press Scripts/Remove disabled photos
2025-02-04 14:55:59 To execute this script press Scripts/Remove duplicated photos
2025-02-04 14:55:59 To execute this script press Scripts/Remove low quality photos
2025-02-04 14:55:59 To execute this script press Scripts/Remove Unpinned Projections
2025-02-04 14:55:59 To execute this script press Scripts/Render image
2025-02-04 14:55:59 To execute this script press Scripts/Render photos for cameras
2025-02-04 14:55:59 To execute this script press Scripts/Save estimated reference
2025-02-04 14:55:59 To execute this script press Scripts/Split calibration groups by order
2025-02-04 14:55:59 To execute this script press Scripts/Split in chunks
2025-02-04 14:55:59 To execute this script press Scripts/Transfer orientations
2025-02-04 14:55:59 To execute this script press Scripts/Undistort Photos
2025-02-04 14:56:21 LoadProject: path = D:/PHOTO TEST/2/2.psx
2025-02-04 14:56:21 Loading project...
2025-02-04 14:56:21 loaded project in 0.136 sec
2025-02-04 14:56:21 Finished processing in 0.136 sec (exit code 1)
2025-02-04 14:56:42 loaded mesh in 1.532 sec
2025-02-04 14:56:52 Downloading AI model (167.84 MB)...
2025-02-04 14:58:11 Finished processing in 78.579 sec (exit code 0)
2025-02-04 14:58:11 Error: Error during downloading of the model: Assertion "Invalid model json, can't create model info" failed at line 415
2025-02-04 14:58:22 Error: Error in generate mask dialog: Assertion "No models available for background masking after downloading" failed at line 98

14
Python and Java API / Re: Footprint script creates only 1 footprint
« on: February 04, 2025, 03:40:04 PM »
Some additional info.

I tested again the previous script (for v.2.1.0) in Metashape v.2.1.4 and it worked fine.

I checked and compared the 2 scripts (v.2.1.0 & v.2.2.0) and i see that the new version has added lines and capabilities maybe for different sensors (it's my guess as i do not know how to script).

After that i run the previous version of the script and run it to Metashape 2.2.0 and it worked.


So, i believe that the new added code in the latest version of the script somehow breaks the script and gives me only one footprint for the first image. If someone can fix it i would appreciate it so much.

NOTE:
I forgot to mention in the previous post that in the project i also have imported an aerial Lidar point cloud but i do not believe that causes the problem.

15
Python and Java API / Footprint script creates only 1 footprint
« on: February 04, 2025, 03:09:52 PM »
I work on Metashape Pro 2.2.0 (build 19890) on Windows 10 Pro.

I have a project with 2.137 pictures and I aligned the photos, created point cloud, DEM, orthophotos. When i run the Footprint script (downloaded from github) it only creates one footprint from the first image. I get no errors. (the script is for version 2.2.0)

The last time i used this script was in metashape 2.1.0 in a project with 16.000 pictures and it worked just fine.

Why it processes only 1 photo and not the rest of them?

Pages: [1] 2 3 ... 6