Forum

Author Topic: Find camera/image pair by date/time  (Read 5289 times)

Milderinne

  • Newbie
  • *
  • Posts: 34
    • View Profile
Find camera/image pair by date/time
« on: May 23, 2016, 02:12:13 PM »
Hello everybody,

I have a new question.
I need to find an image pair (taken with two cameras at the exact same time) by its date and time to create a scalebar.

Code: [Select]
chunk3.addScalebar(chunk3.cameras[x], chunk3.cameras[y])
sb.reference.distance = 1

Of course, I want to find x and y.

Do I have to update or something like that after creating the scalebar(s) (like in the GUI)?

Afterwards, I actually want to calculate the estimated length of scalebars and maybe remove the worst one.
Any suggestions or hints to help me?

Thanks in advance!
Kind regrads.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15723
    • View Profile
Re: Find camera/image pair by date/time
« Reply #1 on: May 23, 2016, 06:35:35 PM »
Hello Milderinne,

In case the EXIF data is not missing, you can access several date/time stamps from the photo meta data:
camera.photo.meta['Exif/DateTimeOriginal'] and camera.photo.meta['Exif/DateTime'].
The result is given in the following string format: '2016:05:23 12:46:01'.
Best regards,
Alexey Pasumansky,
Agisoft LLC