A python package for decoding and common processing for thermographs / thermograms
sudo apt-get install exiftool
python3 -m pip install git+https://github.com/detecttechnologies/thermal_base.git@main
Import and use the package as follows:
from thermal_base import ThermalImage
image = ThermalImage(image_path="path/to/image", camera_manufacturer="dji/flir") thermal_np = image.thermal_np # The temperature matrix as a np array raw_sensor_np = image.raw_sensor_np # The raw thermal sensor excitation values as a np array meta = image.meta # Any other metadata that exiftool picked up
- Manipulation
```python
from thermal_base import utils
print(dir(utils)) # View manipulation tools available
thermal_np = utils.change_emissivity_for_roi(...) # Sample: Change the emissivity of an RoI
This repo can be used in conjunction with Thermal-Image-Analysis for an interactive experience.
Data Format | Sample Cameras | Support |
---|---|---|
FLIR RJPG with TIFF-format of thermal embedding | Zenmuse XT-2 | :heavy_check_mark: |
FLIR RJPG with PNG-format of thermal embedding | FLIR E-4, T640, T660 | :heavy_check_mark: |
DJI-encoded thermal image | Zenmuse H20-T | :heavy_check_mark: |
FLIR SEQ Thermal Video | Zenmuse XT-2 | :heavy_check_mark: |
FLIR CSQ Thermal Video | Zenmuse XT-2 | :x: |
Seek HIR Format Images | Seek Shot | :x: |
*RJPG is also known as R-JPEG
flyr_unpack.py
file for PNG-encoded FLIR metadata was derived from the flyr library.