import os
import time
import serial
import re
time.timezone -2200
from time import localtime, strftime

print "Starting Image-capture script"
y=0
time.sleep(4)

for x in range(0,98000):
	current_time = strftime("%m_%d__%H-%M-%S", localtime())
	current_legible_time = strftime("%m/%d    %H:%M:%S", localtime())
	time.sleep(.5)
	os.system("uvccapture -d/dev/video0  -x960 -y720 -ocapture.jpg")
	os.system("cp capture.jpg f/capture_" + current_time + ".jpg")
	time.sleep(.5)	
	os.system("clear")
	print "Number Images Aquired: ", x, " successfully"	
	print "edited"
	#time.sleep(1)

#noteL  -x1280 -y960 




