Author: Alexis Suero (alexis.esmb@gmail.com).
This repository contains a Python script that converts thermal JPEG images captured by DJI drones into TIFF format containing a single layer with temperature values in Celsius. The converted images are saved in the "output_images" folder.
DJI Thermal SDK(not included in repository)exiftool(included in the repository)- Python 3.11.x
- The following Python libraries:
rasteriodji_thermal_sdk
-
Clone the repository:
git clone https://github.com/alex-suero/thermal-image-converter.git cd thermal-image-converter -
Install the required Python libraries:
- Install
dji_thermal_sdkpackage:
pip install dji_thermal_sdk
- Install
rasteriopackage:
pip install rasterio
- Install
-
Make sure
exiftool.exeis in the root directory:- You can download
exiftoolfrom here.
- You can download
-
Download
DJI Thermal SDKand place its files indji_thermal_sdkfolder:-
You can download
DJI Thermal SDKfrom here. -
dji_thermal_sdkfolder should look like:dji_thermal_sdk/ ├── dataset/ ├── doc/ ├── sample/ ├── tsdk-core/ ├── utility/ ├── History.txt ├── License.txt └── Readme.md
-
-
Prepare your input images:
- Place all thermal JPEG images (with
_T.JPGsuffix) in theinput_imagesfolder.
- Place all thermal JPEG images (with
-
Run the script:
python dji_thermal_converter.py
-
Find your converted images:
- The converted TIFF images will be saved in the
output_imagesfolder.
- The converted TIFF images will be saved in the
Here's an example of how to use the script:
-
Place your thermal JPEG images in the
input_imagesfolder:input_images/ ├── image1_T.JPG ├── image2_T.JPG └── image3_T.JPG -
Run the script:
python dji_thermal_converter.py
-
Check the
output_imagesfolder for the converted TIFF images:output_images/ ├── image1.tif ├── image2.tif └── image3.tif
This project is licensed under the GNU General Public License v3.0.