Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

FLIR/DJI IR Camera Data Parser, Python Version

License

Notifications You must be signed in to change notification settings

maciej-adamiak/thermal_parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FLIR/DJI IR Camera Data Parser, Python Version

Parser infrared camera data as NumPy data.

Usage

  • Clone this respository and cd thermal_parser.
  • Run pip install -r requirements.txt in the console
  • If you run this project code on Linux, make sure exiftool is installed first or run sudo apt-get install libimage-exiftool-perl in the console to install exiftool.
  • Copy thermal.py file to project directory.
  • Copy plugins folder to same directory.
  • Try the following code:

win 64

import numpy as np
from thermal import Thermal

thermal = Thermal(
    dirp_filename='plugins/dji_thermal_sdk_v1.1_20211029/windows/release_x64/libdirp.dll',
    dirp_sub_filename='plugins/dji_thermal_sdk_v1.1_20211029/windows/release_x64/libv_dirp.dll',
    iirp_filename='plugins/dji_thermal_sdk_v1.1_20211029/windows/release_x64/libv_iirp.dll',
    exif_filename='plugins/exiftool-12.35.exe',
    dtype=np.float32,
)
temperature = thermal.parse_dirp2(image_filename='images/DJI_H20T.jpg')
assert isinstance(temperature, np.ndarray)

linux

import numpy as np
from thermal import Thermal

thermal = Thermal(
    dirp_filename='plugins/dji_thermal_sdk_v1.1_20211029/linux/release_x64/libdirp.so',
    dirp_sub_filename='plugins/dji_thermal_sdk_v1.1_20211029/linux/release_x64/libv_dirp.so',
    iirp_filename='plugins/dji_thermal_sdk_v1.1_20211029/linux/release_x64/libv_iirp.so',
    exif_filename=None,
    dtype=np.float32,
)
temperature = thermal.parse_dirp2(image_filename='images/DJI_H20T.jpg')
assert isinstance(temperature, np.ndarray)

Supported IR Camera

  • DJI H20T
  • DJI XT2
  • DJI XTR
  • DJI XTS
  • FLIR
  • FLIR AX8
  • FLIR B60
  • FLIR E40
  • FLIR T640
  • M2EA / MAVIC2-ENTERPRISE-ADVANCED / "御"2 行业进阶版

References

  • DJI Thermal SDK The DJI Thermal SDK enables you to process R-JPEG (Radiometric JPEG) images which were captured by DJI infrared camera products.
  • Thermal Image Analysis A tool for analyzing and annotating thermal images.
  • Base codes for Thermography A python package for decoding and common processing for thermographs / thermograms
  • thermography This repository contains the implementation of a feasibility study for automatic detection of defected solar panel modules.

About

FLIR/DJI IR Camera Data Parser, Python Version

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%