Forum

Author Topic: Camera Path Change  (Read 1727 times)

Ethan A

  • Newbie
  • *
  • Posts: 2
    • View Profile
Camera Path Change
« on: June 06, 2018, 04:53:36 PM »
Code: [Select]
  # STEP 4 - Change images to projection images
if int(step04) > 0:
log("Switching to projection images")
for i in range(len(chunk.cameras)):
camera = chunk.cameras[i]
photo = camera.photo.copy()
photo.path = projectbotdir + camera.label
camera.photo = photo

Trying to switch the camera path of images that are already loaded and masked in Agisoft so that the images are switched to images with projected noise to get a better result when aligning the photos however I keep getting the error that image has failed to load.

The projectbotdir is the file path of the new photos

I have also tried

Code: [Select]
  # STEP 4 - Change images to projection images
if int(step04) > 0:
log("Switching to projection images")
for i in range (len(chunk.cameras)):
camera = chunk.cameras[i]
camera.photo.open(camera.photo.path.replace(normaltopdir,projecttopdir))

But get the error that that says the image can't be opened.

Any help would be appreciated. 
« Last Edit: June 07, 2018, 09:40:32 PM by Ethan A »

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14854
    • View Profile
Re: Camera Path Change
« Reply #1 on: July 02, 2018, 03:43:55 PM »
Hello Ethan,

Please check the two option here:
http://www.agisoft.com/forum/index.php?topic=9214.msg43161#msg43161
Best regards,
Alexey Pasumansky,
Agisoft LLC