From a5227a5405de2789ea09c3c3634ce1c82e37f338 Mon Sep 17 00:00:00 2001 From: Jean-Robin Date: Fri, 30 Aug 2024 17:46:13 +0200 Subject: [PATCH] Apply suggestions from code review --- src/main.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main.py b/src/main.py index 6274ac7..6c0d63a 100644 --- a/src/main.py +++ b/src/main.py @@ -17,7 +17,6 @@ def on_action_captured_image(state, id, payload): print("Captured image") - choice = payload["args"][0] if choice == 0: notify(state, "i", "Adding image to database...") @@ -59,12 +58,10 @@ def process_image(state, frame): state.captured_label = label state.show_capture_dialog = True state.capture_image = False - def handle_image(state, action, args): print("Handling image...") - payload = args["args"][0] bytes = payload["data"] logging.debug(f"Received data: {len(bytes)}") @@ -147,4 +144,3 @@ def button_retrain_clicked(state): gui = Gui(webcam_md) gui.add_library(Webcam()) gui.run(title='Face Recognition') -