Python Forum
Help with taking pictures on raspberry pi
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with taking pictures on raspberry pi
#1
I am trying to automatically take a picture on a raspberry pi camera every 60 seconds. I am struggling to repeat the loop. Any help would be great thanks!

Current code:
from picamera import PiCamera
from time import sleep
import time
import os
import sys
from datetime import datetime

camera = PiCamera()

camera.start_preview()
for I in range(1):
	sleep(60)

camera.capture(‘/home/pi/Desktop/images.jpg’ % i)
Reply
#2
use a while loop around the code that you want to repeat.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Find a shift between 2 pictures TazFleck 0 1,140 Jan-18-2023, 09:56 PM
Last Post: TazFleck
Photo put a green boarder and text around multiple pictures jackosullivan 5 1,457 Jul-05-2022, 10:39 AM
Last Post: snippsat
  Random pictures from a file aliwien 2 4,328 Apr-23-2021, 06:00 PM
Last Post: snippsat
  client-server pictures mcgrim 4 2,966 Oct-25-2019, 09:53 PM
Last Post: micseydel
  Open Pictures with Python MaxouRuEnIpTF34 1 3,035 Apr-22-2018, 07:48 PM
Last Post: Gribouillis
  Comparing pictures pedro 1 2,735 Sep-11-2017, 07:51 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020