用户在更新OpenMV IDE后运行脚本出现报错,涉及csi模块调用,固件版本为5.0.0。

import csi
import time
csi0 = csi.CSI()
csi0.reset() # Reset and initialize the sensor.
csi0.pixformat(csi.RGB565) # Set pixel format to RGB565 (or GRAYSCALE)
csi0.framesize(csi.QVGA) # Set frame size to QVGA (320x240)
csi0.snapshot(time=2000) # 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 = csi0.snapshot() # Take a picture and return the image.
print(clock.fps()) # Note: OpenMV Cam runs about half as fast when connected
# to the IDE. The FPS should increase once disconnected.更新了最新版ide 下载了最新固件 不管什么程序都是 运行2次后出现这个报错
重新插拔即可
使用LCD shield后就弹出这个弹出

更新固件