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 3
1
Bug Reports / Re: exportMarkers fails
« on: December 19, 2023, 11:40:18 PM »
Thanks, Alexey. It would be helpful to have an export class argument like the other export* functions, for example Metashape.MarkersFormatXML. I could not tell from the API what are the accepted formats.

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

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

4
Python and Java API / Re: Availability of Tweaks in API?
« on: December 01, 2023, 06:57:25 PM »
Thanks, Alexey, this is great! So these are arguments that aren't detailed in the API? Is there a list of them elsewhere?

5
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

6
Bug Reports / Re: Ms.Image.fromstring returns error
« on: November 20, 2023, 08:23:47 PM »
Thank you, Alexey.

Installed from whl in a custom conda environment with python 3.10.13. Ubuntu 23.04.

Possibly related to changes introduced in python 3.10.

I will try to downgrade my environment to <3.10.

EDIT: confirmed this operation works correctly on with python 3.7.12.

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

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

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

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

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

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

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

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

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

Pages: [1] 2 3