I’m working on a project which involves saving a stream of images to an SD card as jpeg on the OpenMV H7. The camera is expected to take hours of footage at a time, and the hope is that it would be at a high enough frame rate for a machine vision algorithm to be able to look at offline. The goal for now is to try to achieve a consistent 5 fps.
However, what I’ve noticed is that simply using in a loop (sensor taking image resolution QVGA)
img = sensor.snapshot() img.save(filename)
tends to cause the framerate to slow down drastically as more images are taken. In my instance, the saving started off at around 5 fps and very quickly after a few minutes dropped down all the way to 1 fps on a 32 Gb SD card. Is there perhaps a better way or some possible optimization for this type of thing?