Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinAV authored Aug 30, 2024
1 parent b157425 commit a5227a5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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...")
Expand Down Expand Up @@ -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)}")
Expand Down Expand Up @@ -147,4 +144,3 @@ def button_retrain_clicked(state):
gui = Gui(webcam_md)
gui.add_library(Webcam())
gui.run(title='Face Recognition')

0 comments on commit a5227a5

Please sign in to comment.