Hello Alexey,
Thanks for the quick answer. I have tested now a few different sets of scanned images, both at 15 and 16 micron resolution, and I get the same issue. If I only process a few images at a time, like 5 or 6 then it works fine, but the second I add a lot of images to the chunk (like more than 10), I get this error. I have also tried it now on a different machine with more memory and still same issue.
As for the fiducial types, the same happens for the two different types of fiducials I have tried (attached). If it doesn't crash, it seems to detect the fiducials correctly in most cases...
The script I run where it fails is like this (I shortened the beginning a bit where I import the images, I hope this is ok):
createMasks = False
film_camera = True
pixel_width = 0.015
pixel_height = pixel_width
F = 152.82
for camera in chunk.cameras:
sensor = camera.sensor
sensor.film_camera = film_camera
calibration = sensor.calibration
sensor.fixed_calibration = False
sensor.focal_length = F
sensor.pixel_height = pixel_height
sensor.pixel_width = pixel_width
if film_camera == True:
sensor.height = 0
sensor.width = 0
## combine all cameras of the same sensor size and pixel size into the same camera:
for i in range(1, len(chunk.cameras)):
camera = chunk.cameras[i]
prev = chunk.cameras[i-1]
if (camera.sensor.width == prev.sensor.width) and (camera.sensor.height == prev.sensor.height):
if (camera.sensor.pixel_height == prev.sensor.pixel_height) and (camera.sensor.pixel_width == prev.sensor.pixel_width):
if camera.sensor.focal_length == prev.sensor.focal_length:
camera.sensor = prev.sensor
if findFiducials == True:
chunk.detectFiducials(generate_masks = createMasks)
print("Found the following fiducials in the images: ")
for marker in chunk.markers:
print(marker.label)
This last part of the code is where it fails, at chunk.detectFiducials, usually after it has already detected fiducials in a few iamges. Interestingly, I also tried opening the project in the GUI and also same problem, it crashes after it detects fiducials in a few images. As far as I can tell I can't find any pattern for when it fails or not, but it definitely does not handle detecting fiducials in a lot of images at a time.
Thanks for the help,
Sydney