# 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
# 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.