http://docs.openmv.io/library/omv.sensor.html
代码
import sensor, image, lcd#导入相关的一些模块
sensor.reset() # 摄像头初始化
sensor.set_pixformat(sensor.RGB565) # 设置图像为彩图 (or GRAYSCALE)
sensor.set_framesize(sensor.QVGA) # 设置图像的大小 (320x240)
sensor.skip_frames(time = 2000) # 跳过前面2S的图像,使摄像头稳定.
lcd.init() # LCD初始化
while(True): # 重复执行
img = sensor.snapshot() # 拍一张照片并且返回图像赋值给img
lcd.display(img) # LCD显示img
效果:LCD实时显示摄像头的画面