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.


Topics - forumname

Pages: [1]
1
General / select faces by camera visibility
« on: November 08, 2022, 08:01:27 PM »
Is there a method (GUI ok, API preferred) to select faces that are visible from a given camera?

2
General / animation from multiframe chunk
« on: October 11, 2022, 10:05:41 PM »
Is there an option/tutorial for creating an animation of a multiframe model?  For example, a simple top view while the timeline plays.

3
General / depth maps coordinate shift
« on: August 19, 2022, 03:34:24 AM »
I have noticed that the images of depth maps are horizontally shifted compared to the masks or input image. Is it possible to obtain the translation so that the mask will overlay the depth map?

Code used to obtain each image:

Code: [Select]
import matplotlib.pyplot as plt

frame = chunk.frames[0]

img = frame.cameras[0].image()
img = np.frombuffer(img.tostring(), dtype=np.uint8).reshape(img.height,img.width)

depth = frame.depth_maps[frame.cameras[0]].image()
depth = np.frombuffer(depth.tostring(), dtype=np.float32).reshape(depth.height,depth.width)

mask = frame.masks[frame.cameras[0]].image()
mask = np.frombuffer(mask.tostring(), dtype=np.uint8).reshape(mask.height,mask.width)

plt.imshow(img)
plt.imshow(mask)
plt.imshow(depth)

EDIT: this is solved by undistorting the mask with the camera calibration.

4
Camera Calibration / lens calibration improvement
« on: June 28, 2022, 05:26:52 PM »
I am trying to calibrate lenses under difficult lighting conditions.

Although metashape finds the chessboard corners, it does not use them (all points grey). Insights as to why the corners are found but rejected?

Using the python API, is it possible to supply the corner locations to the lens calibrator? This would allow corner detection using opencv, or another method like AprilTags.

5
Feature Requests / request doc.close()
« on: March 11, 2022, 06:45:53 PM »
This has been suggested previously, and would have saved me a lot of trouble because of unexpected behavior with doc.open() and doc.save(). A method for terminating the connection to doc to ensure that all components have been written to that point would be helpful.


6
I am attempting to follow the instructions here for Linux.

I navigate to the directory and execute the directed command, but I get an error that the python 3.8 shared objected can't be found

>./metashape-pro/python/bin/python3.8 -m pip install numpy cv2 shutil

./metashape-pro/python/bin/python3.8: error while loading shared libraries: libpython3.8.so.1.0: cannot open shared object file: No such file or directory


I also tried the libssl install as directed, without success.

I am working in a conda virtual environment, but that doesn't seem to make a difference.

7
Python and Java API / depth maps are not saved when looping over frames
« on: February 27, 2022, 08:36:44 PM »
I am building the depth maps through the python API (in Spyder IDE) within a loop, as follows:


for frame in chunk.frames:
    frame.buildDepthMaps(downscale=1, filter_mode=Ms.NoFiltering)

doc.save()


It completes and saves successfully, and says X depth maps were completed. I can verify that the depth_maps folder was created in the project.files directory. However, when I open the project within Metashape GUI, no depth maps are found. Furthermore, if I close the python console, the directories are all deleted immediately. This happens even if doc.save() is called within the loop, or if the loop contains the dense cloud building:


frame.buildDenseCloud(point_confidence=True, keep_depth=True)


However, the depth maps can be properly saved when frames are called manually, e.g.,


chunk.frames[0].buildDepthMaps(downscale=1, filter_mode=Ms.NoFiltering)

doc.save()


The maps are also saved properly if created within the Metashape GUI.

8
General / manually increasing tie points
« on: February 16, 2022, 07:10:44 PM »
I am working with a challenging situation with nearly featureless objects and low lighting. Metashape therefore has a great deal of difficulty finding tie points and so depth map generation fails. Is there a way to decrease the threshold for tie point generation to get more initial candidates? Alternatively, can Metashape accept tie points added manually, e.g., using SIFT or some other feature tracker? Thank you for any insight.

9
General / Select face by texture color
« on: August 31, 2021, 04:42:22 AM »
Can faces be selected by color the way points can be? Specifically, after calculating a texture map I would like to remove all faces corresponding to a given color.

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

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