Timelapse

OpenMV related project discussion.
sejlau
Posts: 5
Joined: Sat May 06, 2017 4:58 am

Timelapse

Postby sejlau » Tue May 30, 2017 2:17 am

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
User avatar
kwagyeman
Posts: 2276
Joined: Sun May 24, 2015 2:10 pm

Re: Timelapse

Postby kwagyeman » Tue May 30, 2017 2:31 am

Hi, just write to a file with the last number image number?
Nyamekye,
User avatar
iabdalkader
Posts: 542
Joined: Sun May 24, 2015 3:53 pm

Re: Timelapse

Postby iabdalkader » Tue May 30, 2017 7:39 am

Hi,

Try

Code: Select all

os.listdir('path/to/dir/')[-1]
should give you the last file name, then you can convert it to number and increment.

Return to “Project Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests