Skip to content

Commit

Permalink
Removing duplicate read in surveillance demo
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeHowse committed Oct 25, 2015
1 parent 552406d commit 6848bca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions chapter8/surveillance_demo/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,11 @@ def main():
out = cv2.VideoWriter('output.avi',fourcc, 20.0, (640,480))
while True:
print " -------------------- FRAME %d --------------------" % frames
grabbed, frane = camera.read()
grabbed, frame = camera.read()
if (grabbed is False):
print "failed to grab frame."
break

ret, frame = camera.read()
fgmask = bs.apply(frame)

# this is just to let the background subtractor build a bit of history
Expand Down

0 comments on commit 6848bca

Please sign in to comment.