detecttechnologies / thermal_base

Decoding and common processing for thermographs / thermograms. Currently supports FLIR's TIFF and PNG encoded metadata, and DJI-encoded metadata
MIT License
54 stars 9 forks source link

Base codes for Thermography

A python package for decoding and common processing for thermographs / thermograms

Quality check

Install

  1. This tool requires exiftool to be installed.
  2. This tool also requires you to have Python 3+ installed. You can install it from the official website (https://www.python.org/downloads/)
  3. Install this package with python3 -m pip install git+https://github.com/detecttechnologies/thermal_base.git@main

Usage

Import and use the package as follows:

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.

Supported formats

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

Notes

Credits