Hi all,
Has anyone had Photoscan freeze up while performing gradual selection in a python script run within Photoscan? I work with an organization that uses an error reduction workflow where, among other things, they use gradual selection to select up to 10% of the sparse point cloud based on reprojection error, remove those points, optimize cameras, then repeat until a target value is reached.
I was trying to implement this process as a python script run within Photoscan, and it usually works well. With certain values, however, Photoscan passes through the iterative loop a few times then freezes. This usually occurs when the value used for gradual selection is small. The process freezes at a weird spot as well. I set up the filter with the code below.
f = PhotoScan.PointCloud.Filter()
f.init(chunk, criterion = PhotoScan.PointCloud.Filter.ReprojectionError)
In most cases, this prints to the console the following message
Analyzing point cloud...
Finished processing in 0.141 sec (exit code 1)
However, in some cases it prints "Analyzing point cloud..." and then freezes so that I have to exit Photoscan using the task manager. I've used nearly this exact same loop with reconstruction uncertainty with no issue, and when most values for reprojection error are chosen.
If anyone can help me identify why this is getting hung up on analyzing the sparse point cloud for gradual selection, that would be greatly appreciated.
Thanks!