Same problem here, I've been trying to use the importMasks command to load a series of images to be used as masks but each image is applied to each image in the chunk and I can't figure out how to match up images as pairs only based on file name.
Is it possible I'm not using the "cameras" attribute correctly?
#loading backgrounds
backgrounds_list = os.listdir(path_masks)
for background in backgrounds_list:
if ("jpg" in background.lower()) or ("jpeg" in background.lower()) or ("JPEG" in background.lower()) or ("JPG" in background.lower()):
chunk.importMasks(path = path_masks + "\\" + background, method='background', tolerance=tolerance, cameras=['0'])
print("stop here to check masking")