while(True):
clock.tick()
img = sensor.snapshot()
for r in img.find_rects(threshold = 10000):
img.draw_rectangle(r.rect(), color = (255, 0, 0))
print("x:", r.x())
print("y:", r.y())
print("w:", r.w())
print("h:", r.h())
print("cx:", r.x()+r.w()/2)
print("cy:", r.y()+r.h()/2)