Hi all,
I'm currently facing a problem with my python script with Photoscan 1.3.0
This script was used with 1.2 version and worked fine. We just updated to 1.3.0 on our rigs but since the process can't run anymore.
I've isolated the problem to this part:
def loadCamera(chunk, path, name):
prepareSensor(chunk)
c = chunk.addCamera()
c.sensor = chunk.sensors[chunk.sensors.__len__()-1]
oky = c.open(path)
c.label = name
c.sensor.label = name
img = c.photo.image()
if img is not None:
c.sensor.width = img.width
c.sensor.height = img.height
return oky
this part loads our photo, but oky is returned in NoneType.
Any idea ? Maybe Python lib change use others functions.
I've tried to follow up with
http://www.agisoft.com/pdf/photoscan_python_api_1_3_0.pdf but i can't find any solutions.
Lemme know if you need more code.
Thanks in advance