@m1aw
import sensor, image, time
sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.SXGA)
sensor.skip_frames(time = 2000)
clock = time.clock()
x=544
y=515
radius1=286
radius2=350
mask = sensor.alloc_extra_fb(sensor.width(), sensor.height(), sensor.GRAYSCALE)
mask.replace(sensor.snapshot().to_grayscale().clear().invert())
mask.draw_circle((x,y,radius2),color=0,fill=True)
while(True):
clock.tick()
img = sensor.snapshot().clear(mask=mask)
print(clock.fps())