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] 2
1
Bug Reports / exportMarkers fails
« on: December 18, 2023, 11:23:29 PM »
Code: [Select]
chunk.exportMarkers(file_name)

fails with

Code: [Select]
RuntimeError: Unsupported markers format

but the expected marker format is undocumented.

Metashape 2.0.*

2
Bug Reports / GUI cannot export current frame
« on: December 18, 2023, 11:22:34 PM »
Exporting a model from the current frame in the GUI loops over all frames instead. Exporting the point cloud works properly.

3
Python and Java API / Availability of Tweaks in API?
« on: November 30, 2023, 11:53:08 PM »
Are the advanced preferences Tweaks in the GUI also available through the API?

For example,
Code: [Select]
BuildModel/ooc_surface_blow_up
as detailed here.

Also, what seems to have previously been the Tweak for setting the ratio of valid tie points,
Code: [Select]
main/depth_point_threshold

4
Bug Reports / Ms.Image.fromstring returns error
« on: November 20, 2023, 05:12:04 AM »
I have a numpy array I would like to import to Ms.Image. This code block has worked fine previously, possibly before upgrading to 2.0.

Code: [Select]
# image.dtype is dtype('uint8')
# image.shape is (800, 1280)
Ms.Image.fromstring(image, image.shape[1], image.shape[0], ' ', datatype='U8')

However, the first line returns the error,
Code: [Select]
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
Problem exists in 2.0.2 and 2.0.3.

5
General / plotting only marker dots?
« on: November 12, 2023, 10:26:28 PM »
I would like to be able to plot markers without the flags or labels, which hide densely placed markers. Is it possible to suppress these elements?

6
Bug Reports / 2.0.2 build 16404 Export model frame saves all frames
« on: August 06, 2023, 04:47:32 PM »
Expected behavior: Exporting model current frame will save the current frame.

Observed behavior: Exporting model current frame iterates through all frames in the project while saving and overwriting the same target file.

7
Python and Java API / license key for 1.8.x to 2.0.x upgrade?
« on: June 23, 2023, 05:59:25 PM »
Does a license for the previous version of Metashape pro upgrade to version 2, or is a new license required?

8
Python and Java API / chunk.detectMarkers fails to find
« on: June 05, 2023, 04:22:18 AM »
I am attempting to replicate the marker detection behavior of the GUI. In the GUI, all 12 bit markers are detected.

chunk.detectMarkers() detects all markers.

chunk.detectMarkers(frames=0) [or any other frame] returns nothing.

This is performed on the same doc. What does the GUI operation do that the (python) API does not?

9
General / u,v marker locations to 3D coordinates
« on: April 20, 2023, 02:37:18 AM »
Given a set u,v of markers in some number of calibrated frame cameras, can we rapidly return the 3D coordinates? I have used Metashape for calibrating, but I want to track marker motions (e.g., motion capture) independently of any constructed surface mesh.

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

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

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

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

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


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

Pages: [1] 2