Skip to content
Snippets Groups Projects
Commit 590d63a9 authored by Vaek's avatar Vaek
Browse files

maj

parent 8c84e234
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -49,7 +49,7 @@ def game(playTime = 30, invincibleFrame=0.5, dt_required=0.5, n_photos=None):
while cap.isOpened(): #or while 1. cap.isOpened() is false if there is a problem
while cap.isOpened():
ret, frame = cap.read() #Read next video frame, stop if frame not well read
if not ret: break
......@@ -114,3 +114,6 @@ def game(playTime = 30, invincibleFrame=0.5, dt_required=0.5, n_photos=None):
plt.xticks([])
plt.yticks([])
plt.show()
if __name__ == "__main__":
game()
......@@ -57,6 +57,7 @@ def selectFace(image):
face = image[y:y+h, x:x+w]
return face
#Some tests here.
# image = cv2.imread("cagnol.jpg", 1) #Load Cagnol colored image
# imageProcess(image)
# cv2.imshow("Cagnol", image)
......
from game import *
from videoCapture import *
game(playTime=60, invincibleFrame=1, dt_required=0.3, n_photos=5)
#game(playTime=40, invincibleFrame=1, dt_required=0.3, n_photos=5)
#videoCapture()
\ No newline at end of file
videoCapture()
\ No newline at end of file
This diff is collapsed.
File added
File added
File added
File moved
......@@ -14,7 +14,7 @@ def videoCapture():
ip.imageProcess(frame) #Process frame
cv2.imshow("Image traitée", frame) #Show processed image in a window
cv2.imshow("Image", frame) #Show processed image in a window
if cv2.waitKey(1) & 0xFF == ord('q'): #If you press Q, stop the while and so the capture
break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment