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

Pages: [1]
1
Python and Java API / detect markers
« on: June 10, 2019, 07:55:44 PM »
Hello,
I am looking to detect markers by script with a list of cameras defined. metashape always sends me back this error
ListCamVOL102 being the list of cameras
ch.detectMarkers (type = Metashape.CircularTarget14bit, ListCamVOL102)
  File "<ipython-input-34-0d0c3fcd90ae>", line 1
    ch.detectMarkers (type = Metashape.CircularTarget14bit, ListCamVOL102)
                                                                                                           ^
SyntaxError: positional argument follows

Thanks for your help
togne

2
Python and Java API / match image
« on: April 18, 2019, 05:19:14 PM »
Hello,
how can we know by script if an image was match
thank you
togne

3
Python and Java API / network matchPhoto
« on: February 21, 2019, 07:13:34 PM »
Hello
I want to make a network matchPhoto with several PCs with the following python code.
When I run my script the server generates a spot whereas if I run by the build point cloud command the server generates 16 spots
thank you

import Metashape

path = "B:/TEST_JANVIER_2019/Togne_NetWork/Match_NetWork.psx"

doc = Metashape.Document()
doc.open(path)
chunk = doc.chunk
client = Metashape.NetworkClient()

tasks = list()

task = Metashape.Tasks.MatchPhotos()
task.downscale = 2
task.keypoint_limit = 10000
network_task = Metashape.NetworkTask()
network_task.name = task.name
network_task.params = task.encode()
network_task.frames.append((chunk.key, 0))
tasks.append(network_task)

client.connect("192.168.0.193") #server ip
batch_id = client.createBatch(path, tasks)
client.resumeBatch(batch_id)

Pages: [1]