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

Pages: [1]
1
Bug Reports / Markers not detected in laser scans in version 2.0.2+
« on: July 25, 2024, 04:40:29 AM »
Hi,

I noticed a very strange bug, marker detection is not working anymore for laser scans, it's detecting a very small portion of the markers and they are badly positioned in Metashape 2.1.1, but it was working fine a couple of weeks ago with the same laser scans.

Workflow:
- import laser scans
- detect markers 16 bits, tolerance 90

This workflow will give us 3 bad markers in 2.0.2+ and 287 good markers in 2.0.1. Everything is exactly the same, just the Metashape version changed.
I need to work in a version superior than 2.0.1 because nice laser scans alignment features where introduced.

Any idea what might have happened ?

Thanks,
Max


2
Hi Alexey,

Yes, exactly.
I think that even if you already have laser scans imported, if you save your file in .psz it's gonna change the position.
Because I had tried to import manually using the GUI, and then via python I was just duplicating the chunk and saving again, and the position was different.

For now, I changed my workflow to save a .psx instead.

Thanks!
Max

3
HI Alexey,

Thanks for your answer!

EDIT : I just found a solution, looks like it's working if I save the file in .psx instead of .psz



The script is as simple as this :

Code: [Select]
import Metashape

laser_scans_path = "S:/temp/laserscans-withmarkers.e57"
output_path = "S:/temp/import_lidar_test_001.psz"

doc = Metashape.Document()
chunk = doc.addChunk()

chunk.importPointCloud(
path=laser_scans_path,
format=Metashape.PointCloudFormatE57,
is_laser_scan=True
)

doc.save(path=output_path)

It is run within a Python 3.9  shell environment where Metashape-2.1.1 was installed. So /path/to/Python39/python.exe import_laser_scans.py.
I also tried to run the script using metashape.exe but the results were the same.
"C:/Program Files/Agisoft/Metashape Pro/metashape.exe" -r import_laser_scans.py

Couple things I tried :
- Looked into the coordinate system by forcing it to the following, but everything looked good there.
Code: [Select]
crs = Metashape.CoordinateSystem('LOCAL_CS["Local Coordinates (m)",LOCAL_DATUM["Local Datum",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]]]')
- Looked into some parameters, like scanner_at_origin but it didn't change anything.


The 6 laser scans are still being imported, just the position of their cameras is wrong (except, always for the first one of the file). As you can see on the joined image, the alignment is good but the cameras are underground.

I hope we can resolve this, thanks again!
Max

Pages: [1]