Commit 1a8c9a95 authored by Nimesh's avatar Nimesh

Update webcam.py

parent c1b3571b
......@@ -23,7 +23,7 @@ class myThread2 (threading.Thread):
frame_height = int(video.get(4))
size = (frame_width, frame_height)
filename="../results/WebcamRecordings/"+read_config()+"_"+datetime.now().strftime('%d-%m-%Y_%H:%M:%S')+".avi"
result = cv2.VideoWriter(filename,cv2.VideoWriter_fourcc(*'XVID'), 10, size)
result = cv2.VideoWriter(filename,cv2.VideoWriter_fourcc(*'XVID'), 24, size)
while(True):
ret, frame = video.read()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment