ROI=(35,10,244,219)
sensor.reset()
sensor.set_pixformat(sensor.GRAYSCALE)
sensor.set_framesize(sensor.QVGA)
sensor.set_windowing(ROI)
http://book.openmv.cc/image/statistics.html