#openmv的代码
import sensor, image, time
import json
from pyb import UART
# For color tracking to work really well you should ideally be in a very, very,
# very, controlled enviroment where the lighting is constant...
blue_threshold = ( 0, 60, -20, 64, -128, 0)
# You may need to tweak the above settings for tracking green things...
# Select an area in the Framebuffer to copy the color settings.
#p4_10,p5_11,gnd_gnd
sensor.reset() # Initialize the camera sensor.
sensor.set_pixformat(sensor.RGB565) # use RGB565.
sensor.set_framesize(sensor.QQVGA) # use QQVGA for speed.
sensor.skip_frames(10) # Let new settings take affect.
sensor.set_auto_whitebal(False) # turn this off.
clock = time.clock() # Tracks FPS.
uart = UART(3, 115200)
'''
扩宽roi
'''