@kidswong999 ov2640可以吗我看网站上的资料说可以
Q
qnbe
@qnbe
0
声望
3
楼层
661
资料浏览
0
粉丝
0
关注
qnbe 发布的帖子
-
请问怎么显示JPEG图片 是我哪里没有设置吗
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())