1
Python and Java API / Re: Save Images with Markers
« on: November 14, 2021, 06:04:32 PM »
@wojtek
Thanks for your reply.
I found the following page and gave it a try.
https://agisoft.freshdesk.com/support/solutions/articles/31000136860-how-to-install-external-python-module-to-photoscan-professional-pacakge
The marker position(x[pix], y[pix]) on the image could be obtained in the following way.
I'm more familiar with OpenCV, I used "cv2.drawMarker" to draw the markers.
This Q&A has been resolved.
Thanks for your reply.
I found the following page and gave it a try.
https://agisoft.freshdesk.com/support/solutions/articles/31000136860-how-to-install-external-python-module-to-photoscan-professional-pacakge
The marker position(x[pix], y[pix]) on the image could be obtained in the following way.
Code: [Select]
for marker in chunk.markers:
for cam, proj in marker.projections.items():
target_pos = (proj.coord.x), proj.coord.y)
I'm more familiar with OpenCV, I used "cv2.drawMarker" to draw the markers.
This Q&A has been resolved.