gui.threads package¶
This package contains the thread encapsulation of the ThermoApp class.
This encapsulation allows to work with thermography using a graphical interface.
Submodules¶
gui.threads.thermo_thread module¶
-
class
ThermoGuiThread[source]¶ Bases:
PyQt5.QtCore.QThreadClass encapsulating the
ThermoAppapplication used for theThermoGUIclass.Initializes the Thermo Thread.
-
attention_frame_signal¶ Signal emitted in every
ThermoApp.stepcontaining the data representing the attention image of the last frame.
-
classes_frame_signal¶ Signal emitted in every
ThermoApp.stepcontaining the data representing the classification of the modules in the global module map overlayed to the last frame.
-
edge_frame_signal¶ Signal emitted in every
ThermoApp.stepcontaining the data representing the edge image extracted in the last frame.
-
iteration_signal¶ Signal emitted whenever the
ThermoApp.stepfunction is terminated.
-
last_frame_signal¶ Signal emitted in every
ThermoApp.stepcontaining the data representing the last processed frame.
-
load_video(start_frame: int, end_frame: int)[source]¶ Loads the video associated to the absolute path in :attr:´self.input_file_name <gui.threads.thermo_thread.ThermoThread.input_file_name>`
Parameters: - start_frame – Starting frame index (inclusive).
- end_frame – End frame index (exclusive).
-
module_list_signal¶ Signal emitted in every
ThermoApp.stepcontaining the data representing a python list of detected modules.
-
module_map_frame_signal¶ Signal emitted in every
ThermoApp.stepcontaining the data representing the global module map computed in the last frame.
-
rectangle_frame_signal¶ Signal emitted in every
ThermoApp.stepcontaining the data representing the rectangle image computed in the last frame.
-
run()[source]¶ Function executed when this thread is launched.
This function chooses whether to process the video loaded from disk or to use the images taken as input from the webcam. The sequence of images is processed by the encapsulated
ThermoApp.
-
segment_frame_signal¶ Signal emitted in every
ThermoApp.stepcontaining the data representing segment image computed in the last frame.
-
gui.threads.thermo_thread_dataset_creation module¶
-
class
ThermoDatasetCreationThread[source]¶ Bases:
PyQt5.QtCore.QThreadClass encapsulating the
ThermoAppapplication used for theCreateDatasetGUIclass.Initializes the ThermoThread for dataset creation.
-
last_frame_signal¶ Signal emitted in every
ThermoApp.stepcontaining the data representing the last processed frame.
-
module_list_signal¶ Signal emitted in every
ThermoApp.stepcontaining the data representing a python list of detected modules.
-