From 051277b97e9115b085a8ac6ac2be337f50e00a06 Mon Sep 17 00:00:00 2001 From: SuragNuthulapaty <77648585+SuragNuthulapaty@users.noreply.github.com> Date: Sat, 24 Feb 2024 22:18:05 -0600 Subject: [PATCH] rm look forward --- code/full_web_socket.py | 52 ++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/code/full_web_socket.py b/code/full_web_socket.py index 1ecce3b..45838c4 100644 --- a/code/full_web_socket.py +++ b/code/full_web_socket.py @@ -42,19 +42,19 @@ def move_in_square(): time.sleep(DT) temp_start_time = time.time() - camera.capture() - if pic_time%4 == 0: - image_array = camera.image_array - person_detected = detectPersonInFrame(image_array[::-1, :, :3], ModelType.YOLOv8n) - start_time += (time.time() - temp_start_time) - - if person_detected == 1: - led1.on() - led2.on() - time.sleep(2) - led1.off() - led2.off() - start_time+=2 + # if pic_time%4 == 0: + # camera.capture() + # image_array = camera.image_array + # person_detected = detectPersonInFrame(image_array[::-1, :, :3], ModelType.YOLOv8n) + # start_time += (time.time() - temp_start_time) + + # if person_detected == 1: + # led1.on() + # led2.on() + # time.sleep(2) + # led1.off() + # led2.off() + # start_time+=2 person_detected = 0 pic_time += 1 @@ -85,19 +85,19 @@ def move_in_line(): time.sleep(DT) temp_start_time = time.time() - camera.capture() - if pic_time%4 == 0: - image_array = camera.image_array - person_detected = detectPersonInFrame(image_array[::-1, :, :3], ModelType.YOLOv8n) - start_time += (time.time() - temp_start_time) - - if person_detected == 1: - led1.on() - led2.on() - time.sleep(2) - led1.off() - led2.off() - start_time+=2 + # camera.capture() + # if pic_time%4 == 0: + # image_array = camera.image_array + # person_detected = detectPersonInFrame(image_array[::-1, :, :3], ModelType.YOLOv8n) + # start_time += (time.time() - temp_start_time) + + # if person_detected == 1: + # led1.on() + # led2.on() + # time.sleep(2) + # led1.off() + # led2.off() + # start_time+=2 person_detected = 0 pic_time += 1