Author Topic: Filter photos by marker using Python API  (Read 1564 times)

  • Newbie
  • *
  • Posts: 25
    • View Profile
Filter photos by marker using Python API
« on: August 03, 2022, 09:31:15 PM »
The filter photos by marker work very well on GUI. I need to get the same result of filtering photos using the python API. Is there any way to do it?

and also is there any way to find the approximate positions for the markers on the images?
« Last Edit: August 03, 2022, 09:44:52 PM by »

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14927
    • View Profile
Re: Filter photos by marker using Python API
« Reply #1 on: August 15, 2022, 01:13:35 PM »
Hello aniket,

Here is the example, that applies a filter to the Photos pane, based on the existing projections of the marker:

Code: [Select]
chunk =
marker = chunk.markers[-1] #last marker
cameras_filtered = marker.projections.keys()

As for the marker projections on the cameras, you can check the example in another thread, which shows how to access the existing projection (blue or green flag) and how to estimate the marker re-projected location based on the marker 3D position:
Best regards,
Alexey Pasumansky,
Agisoft LLC