(main_window: 'MainWindow', refresh_frame=True)
| 16 | from app.ui.main_ui import MainWindow |
| 17 | |
| 18 | def 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 | |
| 34 | def clear_input_faces(main_window: 'MainWindow'): |
nothing calls this directly
no test coverage detected