logo

OpenMV IDE更新后运行报错(CSI模块相关)

2026-07-15 17:07
5
591mif97aan5

OpenMV IDE更新后运行报错(CSI模块相关)

故障概述

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

关键信息

  • 故障类型:代码报错
  • 硬件型号:其他(未明确具体型号)
  • 固件版本:5.0.0
  • 报错截图已提供(见附件)
  • 故障代码:使用csi模块初始化与拍照,含reset()、pixformat()、framesize()、snapshot()等调用
  • 参考文章链接:未提供
  • 硬件外观照片:无法提供

附:用户提供的报错截图

image

附:用户提供的故障代码

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.
5
591mif97aan5

更新了最新版ide 下载了最新固件 不管什么程序都是 运行2次后出现这个报错

2026-07-15 17:42
Z
星小瞳xs

重新插拔即可

2026-07-18 12:37
O
omk94bekib75

使用LCD shield后就弹出这个弹出

5dfa21d7-533b-413e-862f-485653f0013d.jpg
2026-07-20 09:33
Z
星小瞳xs

更新固件