HackUTOKYOv2Pim

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit c68b2adc8820674238115ca70957222192ff7554
parent 6d050b6e3dea09cf493a77432f5084787a055621
Author: 諒太 林 <ryouturn@gmail.com>
Date:   Fri, 30 Aug 2024 21:02:44 +0900

update test

Diffstat:
Mtest.py | 15+++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/test.py b/test.py @@ -16,6 +16,12 @@ camLimit = 5 #GPIO.setup(27, GPIO.OUT)#27:MS2 #GPIO.setup(22, GPIO.OUT)#22:MS3 +#逆かもしれない +def escapeR(): + print("escapeR") +def escapeL(): + print("escapeL") + def main(): while(True): ret, frame = cap.read() @@ -33,19 +39,12 @@ def main(): else: print("R<L") escapeL - print("RL same!") elif count[1] >= camLimit: escapeL if cv2.waitKey(1) != -1: break - -#逆かもしれない -def escapeR(): - print("escapeR") -def escapeL(): - print("escapeL") - + def mosaic(src): dst = cv2.resize(src, None, fx=0.1, fy=0.1, interpolation=cv2.INTER_NEAREST) return cv2.resize(dst, src.shape[:2][::-1], interpolation=cv2.INTER_NEAREST)