1
General / Re: Import Video -> has correct image sequence naming been implemented?
« on: July 13, 2022, 06:49:41 AM »
using filename template: image_{filenum:04}.png
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.
import Metashape as ms
chunk = ms.app.document.chunk
camera = chunk .cameras[0]
mv = ms.app.model_view
vp = mv.viewpoint
vp.fov = 90
vp.rot = chunk.transform.matrix.rotation() * camera.transform.rotation() * ms.Matrix.Diag([1, -1, -1])
center = (chunk.transform.matrix * camera.transform).translation()
vp.coo = ?
vp.mag = ?
mv.captureView(1024, 1024, True, True).save(r'd:\t.jpg')
import Metashape as ms
chunk = ms.app.document.chunk
task = ms.Tasks.MatchPhotos()
for idx in range(len(chunk.cameras) - 1):
pairs.append((chunk.cameras.key, chunk.cameras[idx + 1].key))
task.pairs = pairs
# task.apply(chunk) # it is ok when run in local computer
# convert to network task
nt = task.toNetworkTask(chunk)
client = ms.NetworkClient()
client.connect('192.168.1.10')
proj_path = ms.app.document.path
batch_id = client.createBatch(proj_path[proj_path.find(":") + 2:], [nt])
client.resumeBatch(batch_id)