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

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

3
Python and Java API / Re: chunk.detectMarkers fails to find
« on: June 06, 2023, 12:12:47 AM »
Thanks Alexey, when I do this with the API I simply get an empty array in chunk.markers:.

> chunk.detectMarkers(frames=[chunk.frames[0].key])
DetectMarkers: marker type = Circular 12 bit, tolerance = 50

camera0: 2 targets
camera1: 0 targets
camera2: 2 targets
camera3: 2 targets
camera4: 3 targets
camera5: 3 targets

chunk.markers
Out[11]: []
:

Thanks!

4
Python and Java API / Re: chunk.detectMarkers fails to find
« on: June 05, 2023, 03:37:52 PM »
Unfortunately, chunk.markers still turns up empty.

5
Python and Java API / Re: chunk.detectMarkers fails to find
« on: June 05, 2023, 04:37:51 AM »
The error was a result of an interaction between chunk.addFrames() and removing frames. As a result, frame 0 of the chunk did not have key 0, and chunk.detectMarkers expects the key, not the frame number (which is not clear in the function help).

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

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

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

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

10
Python and Java API / Re: How to add marker using camera's coordinates.
« on: September 07, 2022, 03:32:00 PM »
I am following up on this thread because the solution does not seem to work as I expect. After adding the marker through the API, I get the projection rays through the other cameras, but not the marker location projections. But if I add a marker in the GUI at the same location, I do get the markers in the other cameras. What additional steps are needed to get the marker in the other camera projections?

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

12
Camera Calibration / Re: lens calibration improvement
« on: June 29, 2022, 06:40:28 PM »
Thank you Alexey, I am sending an email. I use 3-5 images of varying quality to understand the lens calibration pipeline.

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 / Re: AprilTag
« on: May 20, 2022, 03:51:09 PM »
Bumping this request as probably one of the most important feature updates. ChArUco would be welcome as well.

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


Pages: [1] 2