for blob in img.find_blobs(C_thresholds, roi=right_roi, x_stride=2, y_stride=1,
invert=False, area_threshold=4, pixels_threshold=4, merge=True, margin=1, threshold_cb=None, merge_cb=None):
改为
for blob in img.find_blobs(C_thresholds, roi=right_roi, x_stride=2, y_stride=1,
invert=False, area_threshold=4, pixels_threshold=4, merge=True, margin=1):