blobs = img.find_blobs( thresholds, pixels_threshold=20, area_threshold=20, merge=True ) if blobs: print("1") else: print("0") for blob in blobs: img.draw_rectangle (blob.rect()) img.draw_cross (blob.cx(),blob.cy())