Timelapse

Hi!
I am writing timelapse software for OpenMV M7. Does anyone have idea how to preserve file numbering between power cycles?

Thank you in advance for any suggestion.

Best regards

Hi, just write to a file with the last number image number?

Hi,

Try

os.listdir('path/to/dir/')[-1]

should give you the last file name, then you can convert it to number and increment.