thermography.settings package¶
This package contains the settings and associated function used in thermography
.
Submodules¶
thermography.settings.camera module¶
-
class
Camera
(camera_path: str)[source]¶ Bases:
object
Class representing the intrinsic camera parameters of the camera used to capture the videos analyzed by
thermography
.Loads the camera parameters into the object.
Parameters: camera_path – Absolute path to the camera file parameter. -
camera_matrix
¶ Returns the intrinsic camera matrix.
-
camera_path
¶ Returns the absolute path to the configuarion file associated to the camera parameters contained in this object.
-
distortion_coeff
¶ Returns the distortion coefficients of the camera.
-
focal_length
¶ Returns the focal length of the camera expressed in pixel units.
-
image_size
¶ Returns the image size captured by the camera.
-
principal_point
¶ Returns the pixel coordinates of the principal point.
-
r1
¶ Returns the first radial distortion coefficient.
-
r2
¶ Returns the second radial distortion coefficient.
-
r3
¶ Returns the thirds radial distortion coefficient.
-
t1
¶ Returns the first tangential distortion coefficient.
-
t2
¶ Returns the second tangential distortion coefficient.
-
thermography.settings.paths module¶
-
get_settings_dir
() → str[source]¶ Returns the absolute path to the settings directory, i.e. the directory containing this file. :return: Absolute path to the settings directory.
-
get_thermography_root_dir
() → str[source]¶ Returns the absolute path to the root directory of the thermography project, i.e. the parent directory of the settings directory. :return: Absolute path to the project root directory.
-
get_data_dir
() → str[source]¶ Returns the absolute path to the data directory. :return: Absolute path to the data directory.
-
set_data_dir
(data_dir: str)[source]¶ Sets the data directory. :param data_dir: Absolute path to the data directory.
-
get_test_dir
() → str[source]¶ Returns the absolute path to the test directory. :return: Absolute path to the rest directory.