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.QThread

Class encapsulating the ThermoApp application used for the ThermoGUI class.

Initializes the Thermo Thread.

attention_frame_signal

Signal emitted in every ThermoApp.step containing the data representing the attention image of the last frame.

classes_frame_signal

Signal emitted in every ThermoApp.step containing 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.step containing the data representing the edge image extracted in the last frame.

finish_signal

Signal emitted when all frames in ThermoApp are processed.

iteration_signal

Signal emitted whenever the ThermoApp.step function is terminated.

last_frame_signal

Signal emitted in every ThermoApp.step containing 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.step containing the data representing a python list of detected modules.

module_map_frame_signal

Signal emitted in every ThermoApp.step containing the data representing the global module map computed in the last frame.

rectangle_frame_signal

Signal emitted in every ThermoApp.step containing 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.step containing the data representing segment image computed in the last frame.

use_webcam(webcam_port: int)[source]

If this image is called, then the ThermoApp encapsulated by this thread uses the webcam as input instead of loading a video from disk.

gui.threads.thermo_thread_dataset_creation module

class ThermoDatasetCreationThread[source]

Bases: PyQt5.QtCore.QThread

Class encapsulating the ThermoApp application used for the CreateDatasetGUI class.

Initializes the ThermoThread for dataset creation.

last_frame_signal

Signal emitted in every ThermoApp.step containing the data representing the last processed frame.

module_list_signal

Signal emitted in every ThermoApp.step containing the data representing a python list of detected modules.

run()[source]

Function executed when the current thread is created.