Forum

Author Topic: Class PhotoScan.TargetType  (Read 4050 times)

fabvin

  • Newbie
  • *
  • Posts: 22
    • View Profile
Class PhotoScan.TargetType
« on: March 15, 2015, 06:40:18 PM »
Dear members,
I am trying to use Python scripting to automatize the detection of targets for every chunks of a Photoscan project, but the classes of the command TargetType looked wrong regarding the manual (PhotoScan Python Reference Release 1.1.0). They are called CircularTarget12bit on page 41 and TargetCircular12bit on page 16. I am trying to call the class Target Circular 16 bit, but none of the denominations TargetCircular16bit or CircularTarget16bit seemed to work.
Do you have an idea of the right denomination of the classes?

I have the latest version of Photoscan 1.1.3.

Best regards,

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15029
    • View Profile
Re: Class PhotoScan.TargetType
« Reply #1 on: March 15, 2015, 07:59:07 PM »
Hello fabvin,

Have you tried PhotoScan.TargetType.CircularTarget12bit?

And what is the Console pane output, if you just try to detect targets using one-line code from the Console?
Best regards,
Alexey Pasumansky,
Agisoft LLC

fabvin

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Class PhotoScan.TargetType
« Reply #2 on: March 16, 2015, 12:55:13 PM »
Excellent!
Thanks to your advice, it works!
Here is the python code that I used, if it could help others:

import PhotoScan

doc = PhotoScan.app.document
for chunk in doc.chunks:
    chunk.detectMarkers(type=PhotoScan.TargetType.CircularTarget16bit,tolerance=100)