CThermal.py
contains classes for sensor value-->temperature conversion from FLIR files (SEQ, images), and the analysis tools for the same, and for splitting SEQ videosthermal_analysys.py
contains the main code to be run for the analysis tools on the FLIR files.split_seq.py
splits an SEQ file into multiple FFF files
- First, install the requirements for using the code in this repo using
pip install -r requirements.txt
- To run thermal analysis on a FLIR image (FFF/jpg/rjpg/...), run the following command in a terminal:
The usage instructions and other notes for this are in the wiki page
python thermal_analysis.py <file name>
- To extract FFF(RJPG header that can be used by
thermal_analysis.py
of this repo) and JPG files from an SEQ video, you can run the following command:python split_seq.py <SEQ file name>
-
ROI Scaling - Draw a (freehand) Region of Interest area to scale the rest of the image with. This is useful in cases where the region of your interest is low in contrast compared to the scale of the entire image. This drawn area can be moved around to change the region
-
Area Measurement - Draw a rectangle, or freehand area(s), to get the average, minimum, and maximum temperatures of that area. These can be moved around as well.
-
Line Tool - Draw a line to get a plot (temp vs pixel distance) of the temperatures along the points.
-
Spot Measurement - Draw spots(circular areas with a small radius). Similar to 'Area Measurement'
-
Change Image Parameters - Option to change the global parameters: Object Distance, Relative Humidity, Reflected Apparent Temperature, Atmospheric Temperature, Emissivity of the image. The default values are obtained from the metadatawiki
-
Change Color Map - Change the color map representation of the thermal data (Default-Jet). Options available are: Gray (No false colormap), Rainbow, and Hot
-
Invert Scaling - Change the way the way the image is scaled between the default scaling, and the raw image.
- General Interface changes for easier use
- Draw multiple areas in the same go
- Line visualization while drawing from the 'Draw Line' tool
- Change free hand to polygon