HackUTOKYOv2Pim

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

commit 2e1524ea71b36b40ef117142624c31f0016edd19
parent 0bc879ec277e3209f92c2a3838f0fbdbc8c6284f
Author: 諒太 林 <ryouturn@gmail.com>
Date:   Sat, 31 Aug 2024 03:03:19 +0900

update test

Diffstat:
Mtest.py | 26+++++---------------------
1 file changed, 5 insertions(+), 21 deletions(-)

diff --git a/test.py b/test.py @@ -17,27 +17,11 @@ camLimit = 5 #GPIO.setup(22, GPIO.OUT)#22:MS3 def main(): - while(True): - ret, frame = cap.read() - - gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) - mos = mosaic(gray) - count = dump(gray, keep) - - print(count) - - if count[0] >= camLimit: - if count[0] > count[1]: - print("R>L") - escapeR() - else: - print("R<L") - escapeL() - elif count[1] >= camLimit: - escapeL() - - if cv2.waitKey(1) != -1: - break + for num in range(0,200): + GPIO.output(stepPin, 1) + time.sleep(0.001) + GPIO.output(stepPin, 0) + time.sleep(0.001) #逆かもしれない