import picamera as p
import os
import time

os.chdir('/home/pi/Desktop')

cam = p.PiCamera()
cam.resolution = (320,240)
cam.hflip = True
cam.vflip = True

x = 0
while x < 15:
	img = cam.capture('gregTest.jpg')
	time.sleep(.25)
	x +=1

exit()

import picamera as p
import os
import time

os.chdir('/home/pi/Desktop')

cam = p.PiCamera()
cam.resolution = (320,240)
cam.hflip = True
cam.vflip = True

x = 0
while x < 50:
	img = cam.capture('tempGregTest.jpg')
	os.unlink('gregTest.jpg')
	os.rename('tempGregTest.jpg','gregTest.jpg')
	time.sleep(.25)
	x +=1

exit()

Add temp pic file sequence to takepicture file
Add temp pic file sequence to takepicture file

  import picamera as p
  import os
  import time
  
  os.chdir('/home/pi/Desktop')
  
  cam = p.PiCamera()
  cam.resolution = (320,240)
  cam.hflip = True
  cam.vflip = True
  
  x = 0
- while x < 15:
+ while x < 50:
- 	img = cam.capture('gregTest.jpg')
+ 	img = cam.capture('tempGregTest.jpg')
+ 	os.unlink('gregTest.jpg')
+ 	os.rename('tempGregTest.jpg','gregTest.jpg')
  	time.sleep(.25)
  	x +=1
  
  exit()
  
Add temp pic file sequence to takepicture file
## Code Before:
import picamera as p
import os
import time

os.chdir('/home/pi/Desktop')

cam = p.PiCamera()
cam.resolution = (320,240)
cam.hflip = True
cam.vflip = True

x = 0
while x < 15:
	img = cam.capture('gregTest.jpg')
	time.sleep(.25)
	x +=1

exit()

## Instruction:
Add temp pic file sequence to takepicture file
## Code After:
import picamera as p
import os
import time

os.chdir('/home/pi/Desktop')

cam = p.PiCamera()
cam.resolution = (320,240)
cam.hflip = True
cam.vflip = True

x = 0
while x < 50:
	img = cam.capture('tempGregTest.jpg')
	os.unlink('gregTest.jpg')
	os.rename('tempGregTest.jpg','gregTest.jpg')
	time.sleep(.25)
	x +=1

exit()
