Hi again Alexy,
I have some strange behaviour of the code - it's not working. It seems like my loop gets stuck at the IF statement.
chunk.estimateImageQuality()
for i in range(0, len(chunk.cameras)):
print(i)
camera = chunk.cameras[i]
print(camera)
quality = camera.frames[0].meta["Image/Quality"]
print(quality)
if quality < 0.8:
camera.enabled = False
I deleted the IF statement to see if there was something wrong with the loop itself, but it was working fine. It went through all the photos and disabled them (code below).
chunk.estimateImageQuality()
for i in range(0, len(chunk.cameras)):
print(i)
camera = chunk.cameras[i]
print(camera)
quality = camera.frames[0].meta["Image/Quality"]
print(quality)
camera.enabled = False
Do you know what I am doing wrong?
In advance, thanks for your help.
Cheers
SAV