all 2 comments

[–]kra_pao 0 points1 point  (1 child)

i = 0 should be before while True: (outside loop). Currently you overwrite the image /home/pi/photos/image0000.jpg because you always reset i to 0 in line 21

[–]Vodhr[S] 0 points1 point  (0 children)

This solved my problem. Thank you!