MCPcopy
hub / github.com/visomaster/VisoMaster / clear_target_faces

Function clear_target_faces

app/ui/widgets/actions/card_actions.py:18–31  ·  view source on GitHub ↗
(main_window: 'MainWindow', refresh_frame=True)

Source from the content-addressed store, hash-verified

16 from app.ui.main_ui import MainWindow
17
18def clear_target_faces(main_window: 'MainWindow', refresh_frame=True):
19 if main_window.video_processor.processing:
20 main_window.video_processor.stop_processing()
21 main_window.targetFacesList.clear()
22 for _, target_face in main_window.target_faces.items():
23 target_face.deleteLater()
24 main_window.target_faces = {}
25 main_window.parameters = {}
26
27 main_window.selected_target_face_id = False
28 # Set Parameter widget values to default
29 common_widget_actions.set_widgets_values_using_face_id_parameters(main_window=main_window, face_id=False)
30 if refresh_frame:
31 common_widget_actions.refresh_frame(main_window=main_window)
32
33
34def clear_input_faces(main_window: 'MainWindow'):

Callers

nothing calls this directly

Calls 1

stop_processingMethod · 0.80

Tested by

no test coverage detected