脱机运行没几分钟程序就中止了,然后又重新运行
-
代码如下,感觉应该没啥问题,有可能是硬件问题吗?或者内存?
# Untitled - By: hw - Thu Nov 30 2023 import sensor, image, time, cpufreq cpufreq.set_frequency(480) # 决策结束后,设置cpu频率为最低,即低功耗拍照 sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sensor.skip_frames(time = 2000) clock = time.clock() cpufreq.set_frequency(60) # 决策结束后,设置cpu频率为最低,即低功耗拍照 with open("record.txt", "a") as f: print("\n程序开始执行...\n", file=f) cou = 0 while(True): cou += 1 time.sleep(1) clock.tick() img = sensor.snapshot() print(clock.fps()) with open("record.txt", "a") as f: print("cou = ", cou, file=f)
-
我是插了sd卡的,插了卡之后每次给openmv供电,都会先闪3下红光,然后亮1下白光,之后就不亮了。这是正常情况吗?
-
你没考虑过sd卡写满的情况吗?