-1

Here's my current Python code:

import picamera
with picamera.piCamera() as camera:
    for i in range (10):
        camera.capture("/home/pi/Desktop/newfile/newimage.jpg")

closed as unclear what you're asking by Aurora0001, Steve Robillard, Darth Vader May 31 '18 at 10:54

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

1

What you probably want to do is tell the camera to capture to a file with the number i in its filename like this:

for i in range (10):
    camera.capture("/home/pi/Desktop/newfile/" + i + ".jpg")

Your corrected code looks like this:

import picamera
with picamera.piCamera() as camera:
    for i in range (10):
        camera.capture("/home/pi/Desktop/newfile/" + i + ".jpg")

Not the answer you're looking for? Browse other questions tagged or ask your own question.