Skip to main content

Flyr is a thermal data extractor for FLIR image written fully in Python, without depending on ExifTool.

Project description


Flyr is a library extracting thermal data from FLIR images written fully in Python, without depending on ExifTool.

Other solutions are wrappers around ExifTool to actually do the hard part of extracting the thermal data. Flyr is a reimplementation of the ExifTool's FLIR parser. Practically, this offers the following benefits:

  • Faster decoding because no new process needs to be started and in-memory data does not need to be communicated to this other process
  • Easier and robust installation and deployment, because is not an external executable
  • Simpler use (in my opinion): simply call thermal = flyr.unpack(flir_file_path) and done


Flyr is installable through PyPi: pip install flyr.

Alternatively, download and include in your source tree.

Flyr depends on three external packages, all installable through pip: pip install numpy nptyping pillow. Pillow does the conversion from PNG file to an array, nptyping allows for high quality array type annotations. Numpy provides the two dimensional array type containing the thermal data.


Call flyr.unpack on a filepath to receive a numpy array with the thermal data. Alternatively, first open the file in binary mode for reading and and pass the the file handle to flyr.unpack.

import flyr

flir_path = "/path/to/FLIR9121.jpg"  
thermal = flyr.unpack(flir_path)  # Reading directly

with open(flir_path, "rb") as flir_handle:  # In binary mode!
	thermal = flyr.unpack(flir_handle)  # Reading from file handle

Alternatively, if you already have the file in memory as a BytesIO, you can directly call flyr.unpack on that byte stream.

Lastly, can be run as a script to unpack a single image:

$ ./ ./FLIR123l.jpg


Currently this library has been tested to work with:

  • FLIR E5
  • FLIR E53
  • FLIR E75
  • FLIR T630SC
  • FLIR T660

However, the library is still in an early phase and lacks robust handling of inconsistent files. When it encounters such an image it immediately gives up raising a ValueError, while it could also do a best effort attempt to extract anyway. This is planned.

Camera's found not to work (yet):

  • FLIR One
  • FLIR E60BX
  • FLIR Thermocam B400


Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.


This code would not be possible without ExifTool's efforts to document the FLIR format.


Flyr is licensed under The European Union Public License 1.2.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flyr-0.4.4.tar.gz (9.0 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page