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

Pages: 1 [2]
16
Feature Requests / identify markers/targets within 4D capture
« on: July 14, 2021, 03:33:02 PM »
Currently, it is very hard to identify the same marker or target across frames of a 4D capture. This is because the markers are not uniquely identified. For example, if I have 500 sequential frames with fiducial markers, 'target 2' will be identified 50 times. If I need to manually place the marker, it is pretty much impossible to tell which of the 50 I should place. If I select the wrong one, I end up with e.g. two 'target 2' on the frame.

The correct behaviour would be to list only the discovered markers (i.e. target 1, target 2, target 3, ...) and to correctly find the marker based on the current frame.

In the attached picture, the problem and the multiple target 2s are shown.

Actually, it's a bit worse because if the point isn't found, then no target/market entry is created for that camera. So it doesn't seem to be possible to add a marker at all.

17
Python and Java API / Re: exportPoints() deletes cloud
« on: June 11, 2021, 02:21:52 AM »
Solved, thank you.

18
Python and Java API / Re: exportPoints() deletes cloud
« on: June 10, 2021, 06:33:28 PM »
Version 1.7.2 build 12070 (64 bit) on Linux Ubuntu.

Exporting through GUI is fine.

The above problem was encountered running through Spyder IDE. Running the script from Metashape also deletes the point cloud.


import Metashape as Ms

doc = Ms.Document()

doc.open('./F2.psx')

chunk = doc.chunk


for frame in chunk.frames:
    frame.matchPhotos(downscale=1)

chunk.alignCameras( adaptive_fitting=True )


for frame in chunk.frames:
    frame.buildDepthMaps( downscale = 8, max_neighbors = 5 )

region = chunk.region
region.size = 1.5 * region.size
chunk.region = region


for frame in chunk.frames:
    frame.buildDenseCloud( keep_depth = True,
                          point_confidence = True,
                          max_neighbors = 5 )

    frame.exportPoints('f0.xyz', binary=True, format=Ms.PointsFormatXYZ)


19
Python and Java API / exportPoints() deletes cloud
« on: June 10, 2021, 05:00:54 AM »
I have a cloud that I would like to export:

frame.dense_cloud
<DenseCloud '3354 points'>


When I call exportPoints(), it outputs an empty file and then deletes the points from frame.

frame.exportPoints('f0.xyz', binary=False, format=Ms.PointsFormatXYZ)
ExportPoints: binary = off, format = PointsFormatXYZ, path = f0.xyz
point cloud size: 0 points


When I check the dense cloud again, the points are now deleted.

frame.dense_cloud
<DenseCloud '0 points'>


How do I export a cloud?



Pages: 1 [2]