I am running the following code snippet below:
class Progress(object):
def __call__(self, state):
print("Called!")
print("State: {}".format(state))
progress_callback = Progress()
doc.chunk.alignCameras(progress=progress_callback)
But it doesn't seem like my callback is getting called:
2018-05-02 13:11:06 AlignCameras: adaptive fitting = 1
2018-05-02 13:11:06 processing matches... done in 8.7e-05 sec
2018-05-02 13:11:06 selecting camera groups... done in 0.000384 sec
2018-05-02 13:11:06 processing block: 1 photos
...
2018-05-02 13:11:06 point variance: 0 threshold: 9.088
2018-05-02 13:11:06 adding 0 points, 0 far (9.088 threshold), 0 inaccurate, 0 invisible, 0 weak
2018-05-02 13:11:06 optimized in 0.001967 seconds
2018-05-02 13:11:06 coordinates applied in 0 sec
2018-05-02 13:11:06 Finished processing in 0.085296 sec (exit code 1)
I have also tried to define a function instead of a Callable class and pass its name to alignCameras(), it didn't work either.
Could someone please help me out and explain if I am doing something wrong, and how it needs to be?
I couldn't find any examples in PhotoScan's documentation...
Thanks in advance.
PhotoScan Professional 1.4.2
Build 6205 (64 bit)
macOS High Sierra 10.13.3[/code]