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

Pages: [1] 2 3 ... 5
1
General / Re: Unable to read exr depth data
« on: September 30, 2022, 03:48:38 PM »
For me it seems like a bug in OpenCV, because the same exr file can be sucessfully opened in openexr-viewer, so I created a report

2
General / Re: Unable to read exr depth data
« on: September 29, 2022, 09:51:02 PM »
I tried to open a depth map reconstructed in Metashape with OpenCV (4.6.0) and also got only zeros :(

I ensured that OpenCV was build with EXR support (this line is from OpenCV configure output - when you run cmake before building OpenCV):

Code: [Select]
OpenEXR:                     build (ver 2.3.0)
I will try later to re-build OpenCV with more fresh version of OpenEXR, maybe it will help.

3
General / Re: Unable to read exr depth data
« on: September 28, 2022, 01:16:40 PM »
Hi,

have you ensured that your OpenCV installation properly works with OpenEXR format? For example you can try to create floating-point image full of 1.5 values, save it to .exr file, read it back and check that all values are still 1.5

If you will find that OpenEXR doesn't work properly - maybe it is disabled (see this) and can be enabled with env. variable OPENCV_IO_ENABLE_OPENEXR=1

4
Python and Java API / Re: JAVA API compared to GUI
« on: September 27, 2022, 01:10:24 PM »
Hi, how do you measure processing timings for Java API?

Maybe 23 seconds - including JVM initialization + library classes loading + metashape native libraries (.so) loading?

If you will do the same processing but ten times in for-loop, what time will it take? 23*10 seconds or 23+3*9 seconds?

5
General / Re: Metashape Java API running on UBUNTU
« on: September 07, 2022, 12:06:32 PM »
Hi,

About libgmp.10.so error "undefined symbol: __gmpz_limbs_write":

1) It can be fixed like you described with deletion of libgmp.10.so, in fact in Metashape 1.8.4 it is so by default - this file was renamed to libgmp.10.so.compat, so that it is ignored (but can be manually renamed back to libgmp.10.so to be used again - it is useful on old Linux distributions with old system libgmp.10.so)

2) Alternatively it can be fixed with forced pre-loading of system libgmp.10.so before Metashape launch - then Metashape will ignore its bundled libgmp.10.so even if it is presented with such name in metashape/lib. You can do it with LD_PRELOAD='/usr/lib/x86_64-linux-gnu/libgmp.so.10' /path/to/metashape.sh

About Java API:

3) Basically there are everything the same, you can see that in metashape-java-api-1.8.4.zip there are libgmp.so.10.compat in metashape-java-api-1.8.4/jniLibs/linux64/, so if you use official Java API library - everything should work

4) It seems that this change was properly adapted by maven artifact mantainer - https://github.com/jseinturier/metashape-java-maven/commit/d114ea49bf3c09efdc4be1a71e9226d7b11946b2#diff-9f4fb1e1e4ca8b6aa4584334671cb5b949abfc96114847d57383e2c04f0502a6 (libgmp.10.so was renamed to libgmp.10.so.compat) - so may be you use old artifact?

5) Also you can workaround this problem for older versions by launching your java application (for GUI version it works too) with environment variable that will force loading of system libgmp: LD_PRELOAD='/usr/lib/x86_64-linux-gnu/libgmp.so.10'

6
General / Re: when using mesh from depth maps deleted areas reappear
« on: August 12, 2022, 04:59:06 PM »
Also if you are using Metashape Pro - you can try to use this AI-driven script - https://github.com/agisoft-llc/metashape-scripts/blob/master/src/automatic_masking.py (but "How to install" requires some efforts)

7
You can try to mask a newspaper (to align all photos in single chunk) with just a couple of masks like shown here - https://agisoft.freshdesk.com/support/solutions/articles/31000158967-aligning-photos-with-background-suppression-from-single-mask

Or in two passes - generate target model in each of two chunks - delete background triangles (a newspaper) - generate masks from model. After that you will have good masks for all images that will make possible processing of all photos in a single chunk - https://agisoft.freshdesk.com/support/solutions/articles/31000163388-automatic-masking-from-the-model

8
General / Re: when using mesh from depth maps deleted areas reappear
« on: August 12, 2022, 11:34:41 AM »
Also you can try to delete unwanted triangles from built model directly (using Free-Form Selection for example).

9
Python and Java API / Re: Error Window 'matching'
« on: August 11, 2022, 12:15:40 PM »
Have you checked console output?

10
General / Re: HDD vs SSD - data processing time
« on: August 05, 2022, 10:39:08 AM »
First of all - it is not important where Metashape itself is installed.

It is important where photos and projects files are located. So photos importing was faster thanks to photos located on SSD - Metashape was able to read them one by one much faster than from HDD. And yes, SSD for data storage should lead to faster processing.

11
General / Re: Problems aligning big Dataset in one aligment
« on: August 05, 2022, 10:31:36 AM »
What parameters did you use for alignment in one processing? (you can just click on Tie Points of that attempt and make a screenshot - parameters of alignment will be shown in bottom left corner)

12
General / Re: mesh generation extremely low cpu and gpu usage
« on: August 04, 2022, 11:54:55 AM »
Hi, like you said - it seems to be Input/Ouput-bound (i.e. IO is slow - see also 98% IO in logs). Can you transfer your project from external drive (WB My Book) to local internal disk for processing? (to SSD ideally)

13
General / Re: multi camera system approach for RGB + thermal sensor
« on: July 08, 2022, 12:21:27 PM »
You can't just replace images with images of another resolution (even of the same aspect ratio) because camera alignment includes camera internal parameters calibration and they are dependent on image resolution (and camera FOV, camera distortions and so on).

But I agree with Paulo that you can still reuse camera position and orientation (it will not be very accurate, but probably ok) if cameras were close to each other + were looking in the same direction + both cameras were taken photos at the same time. This script seems to do what you want - https://github.com/agisoft-llc/metashape-scripts/blob/master/src/transfer_orientation.py

14
Python and Java API / Re: align model to model.py without GUI
« on: May 17, 2022, 05:27:11 PM »
Yes, looks like the simplest way.

15
General / Re: Export Cameras Parameters like Colmap
« on: May 17, 2022, 04:49:51 PM »
I think you can follow this script - it parses Agisoft's xml file to pass cameras calibrations into NVIDIA's instant-ngp (NERF) which originally was using Colmap calibrations as input (so its purpose is very close to your request).

Pages: [1] 2 3 ... 5