sensor.reset() # Reset and initialize the sensor.
sensor.set_pixformat(sensor.JPEG) # Set pixel format to RGB565 (or GRAYSCALE)
sensor.set_framesize(sensor.UXGA) # Set frame size to QVGA (320x240)
sensor.set_quality(50)
sensor.skip_frames(time = 3000) # Wait for settings take effect.
clock = time.clock() # Create a clock object to track the FPS.
while(True):
clock.tick() # Update the FPS clock.
img = sensor.snapshot() # Take a picture and return the image.
print(clock.fps())

如果你使用的OV7725,直接运行hello world,设置成QVGA,就是JPEG。
如果你要运行UXGA,OV7725或者MT9V034都不行。
等新的感光元件才行,还在开发。
@kidswong999 ov2640可以吗我看网站上的资料说可以
不能,OV2640是很旧的芯片,有bug,我们也不打算支持它。