Skip to content

Commit

Permalink
Do not directly quit the program if Q is pressed, but just break the …
Browse files Browse the repository at this point in the history
…loop
  • Loading branch information
Guido Diepen committed Feb 27, 2017
1 parent 277b51b commit f789460
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions track multiple faces/demo - track multiple faces.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,11 @@ def detectAndTrackMultipleFaces():
#Resize the image to 320x240
baseImage = cv2.resize( fullSizeBaseImage, ( 320, 240))

#Check if a key was pressed and if it was Q, then destroy all
#opencv windows and exit the application
#Check if a key was pressed and if it was Q, then break
#from the infinite loop
pressedKey = cv2.waitKey(2)
if pressedKey == ord('Q'):
cv2.destroyAllWindows()
exit(0)
break



Expand Down

0 comments on commit f789460

Please sign in to comment.