Forum

Author Topic: Export image quality  (Read 1616 times)

ASW

  • Newbie
  • *
  • Posts: 2
    • View Profile
Export image quality
« on: December 06, 2018, 03:58:22 PM »
I'm trying to export image quality data from 1000+ photos using copied python code from a previous thread: http://www.agisoft.com/forum/index.php?topic=7354.msg35453#msg35453

But I get the error: SyntaxError: invalid character in identifier

Any ideas how to solve this? I'm totally new to python so apologies if this is an easy fix (I'm hoping it will be!!)

Thanks  :)

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14854
    • View Profile
Re: Export image quality
« Reply #1 on: December 06, 2018, 05:50:48 PM »
Hello ASW,

The new script version is the following:
Code: [Select]
import PhotoScan
chunk = PhotoScan.app.document.chunk
path = PhotoScan.app.getSaveFileName("Specify output path:)
file = open(path, "wt")
for camera in chunk.cameras:
   if "Image/Quality" in camera.meta.keys():
      file.write(camera.label + "\t" + camera.meta["Image/Quality"]+"\n")
file.close()

Also you can just switch the Photos pane view to Details, select all lines, press CTRL+C and then copy the output (CTRL+V) to the external text editor.
Best regards,
Alexey Pasumansky,
Agisoft LLC

ASW

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Export image quality
« Reply #2 on: December 06, 2018, 06:18:43 PM »
Brilliant! Thank you :)