1
Python and Java API / Estimate image quality ignoring masked regions and disable images
« on: May 25, 2018, 07:53:20 AM »
Hi, I try to estimate the image quality and disable those that have a quality lower than 0.6, I have tried with the following code:
However, the console reports the following error:
What would be the correct code?
Also I would like to know if there is a parameter for the estimation to be carried out ignoring the masked areas, I reviewed the phyton agisoft guide but I did not find anything.
Thanks a lot
Code: [Select]
chunk.estimateImageQuality(chunk.cameras)
for camera in chunk.cameras:
if float(camera.photo.meta["Image/Quality"]) < 0.6:
camera.enabled = False
However, the console reports the following error:
Code: [Select]
float() argument must be a string or a number, not 'NoneType'
What would be the correct code?
Also I would like to know if there is a parameter for the estimation to be carried out ignoring the masked areas, I reviewed the phyton agisoft guide but I did not find anything.
Thanks a lot