Closed poxiao2 closed 4 years ago
Hi!
See Metashape.Utils.createMarkers(chunk, projections)
in Python API.
projections - list of (Camera, Target) tuples. See also this topic on forum (for example to learn more about Target.radius).
marker = chunk.addMarker()
marker.label = "marker 152"
x = 500
y = 200
is_pinned = True
marker.projections[camera] = Metashape.Marker.Projection(Metashape.Vector([x, y]), is_pinned)
Feel free to reopen the issue if needed.
thanks,already solved.
------------------ 原始邮件 ------------------ 发件人: "Nikolai Poliarnyi"<notifications@github.com>; 发送时间: 2020年9月30日(星期三) 晚上8:38 收件人: "agisoft-llc/metashape-scripts"<metashape-scripts@noreply.github.com>; 抄送: "破晓"<3408699495@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [agisoft-llc/metashape-scripts] How to place markers with python scripts? (#24)
Hi!
See Metashape.Utils.createMarkers(chunk, projections) in Python API.
projections - list of (Camera, Target) tuples. See also this topic on forum (for example to learn more about Target.radius).
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
I know how to add markers, but I have no idea how to place markers on the photos.