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

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.

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

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

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?

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

About error "undefined symbol: __gmpz_limbs_write":

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

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

About Java API:

3) Basically there are everything the same, you can see that in there are 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 - ( was renamed to - 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/'

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 - (but "How to install" requires some efforts)

You can try to mask a newspaper (to align all photos in single chunk) with just a couple of masks like shown here -

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 -

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).

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

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.

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)

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)

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 -

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

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