From 7693eb5266899034fccb4ba6efca2d0b5ef62e2a Mon Sep 17 00:00:00 2001 From: Philippe Roy Date: Sat, 14 Oct 2023 19:28:44 +0200 Subject: [PATCH] =?UTF-8?q?D=C3=A9tection=20de=20la=20bille?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- labyrinthe/6-jumeaux/test/cam_bille-test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/labyrinthe/6-jumeaux/test/cam_bille-test.py b/labyrinthe/6-jumeaux/test/cam_bille-test.py index 93fca79..724f62f 100644 --- a/labyrinthe/6-jumeaux/test/cam_bille-test.py +++ b/labyrinthe/6-jumeaux/test/cam_bille-test.py @@ -1,6 +1,5 @@ import os, time import numpy as np -import matplotlib.pyplot as plt import cv2 as cv ############################################################################### @@ -62,7 +61,7 @@ while cam.isOpened(): # Sortir echap = cv.waitKey(1) # Saisie clavier avec un timeout de 1 ms - if echap & 0xFF == ord('q') or key == 27 : + if echap & 0xFF == ord('q') or echap == 27 : break ###############################################################################