I am trying to save a video from the camera feed onto the SD card. Here is the code:
import sensor, image, time, pyb, mjpeg sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QVGA) sensor.skip_frames(time = 2000) m = mjpeg.Mjpeg('openmv_video.mjpeg') clock = time.clock() time =  start = pyb.millis() while(True): clock.tick() time.append(pyb.elapsed_millis(start)) m.add_frame(sensor.snapshot()) print(clock.fps()) if pyb.elapsed_millis(start) > 100000: print('over') print(time) m.close(clock.fps()) break
I am having two problems when using this code. First, I get a very low frame rate, about 10 FPS. Secondly, the program will only run for like 10 seconds and stop receiving data. It eventually prints out the error message: “Timeout error while getting board architecture!”
How can I resolve this problem?