Skip to main content

A small tool/lib to read temperatures and original photos from FLIR® thermal camera images.

Project description

Flir Image Extractor CLI

The email address attached to this on PyPi may not be monitored, open issues on the GitHub repo to ensure a response

Feel free to submit any pull requests or issues, this is in active development. Also let me know if you are successful in using this on cameras not listed below.

FLIR® thermal cameras like the FLIR ONE® include both a thermal and a visual light camera. The latter is used to enhance the thermal image using an edge detector. The resulting image is saved as a jpg image but both the original visual image and the raw thermal sensor data are embedded in the jpg metadata.

This Python CLI that allows you to extract the original photo and thermal sensor values converted to temperatures, normalize the temperature range and output the photos to different color maps.

Requirements and Install

This tool relies on exiftool. It should be available in most Linux distributions (e.g. as perl-image-exiftool in Arch Linux or libimage-exiftool-perl in Debian and Ubuntu). Links for downloading the Mac version and more information is available on the ExifTool site. To install on Linux:

sudo apt update
sudo apt install exiftool

To install exiftool on Windows for use in this CLI, download the exiftool windows executable from here. Extract exiftool(-k).exe and rename to exiftool.exe. Copy this executable to C:\Windows on your computer. You will need admin permissions to do this. Doing this will make exiftool available to the CLI.

It also requires other python packages, matplotlib, numpy and pillow, which are installed when the CLI is installed through pip.

Once you have install exiftool, you can install the CLI using pip:

pip install flirimageextractor

On windows you may need to use:

python -m pip install flirimageextractor

To update to the latest version of the CLI use this command. The first time you install the latest version will be automatically downloaded.

pip install --upgrade flirimageextractor

Usage

You can start the CLI using the terminal.

flirimageextractor

Resulting Plot and Saved Images

The CLI is able to output 3 folders of images with the bwr, gnuplot, and gist_ncar colormaps from matplotlib. You can define the pallete(s) that you would rather use.

Supported/Tested Cameras

  • Flir One (thermal + RGB)
  • Xenmuse XTR (thermal + thumbnail, set the subject distance to 1 meter)
  • AX8 (thermal + RGB)
  • DJI Zenmuse H20T Camera (ZH20T)

Other cameras might need some small tweaks (the embedded raw data can be in multiple image formats). Let me know if you succesfully use other cameras so they can be added to this list.

Development

Install the required packages using Pipenv. Then run pre-commit install to install the pre-commit hooks. Note that this tool is intended to work on Windows as well as Unix operating systems so use os.path functions to manipulate file paths instead of string manipulation.

Build Command for Dev (uses poetry or twine)

  • python -m build --sdist --wheel
  • poetry build
  • sphinx-build -b html docs/source docs/build (To Generate Docs)

Credits

This CLi was developed using this repos:

Project details


Download files

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

Source Distribution

flirimageextractor-1.5.1.tar.gz (27.3 kB view details)

Uploaded Source

Built Distribution

flirimageextractor-1.5.1-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

File details

Details for the file flirimageextractor-1.5.1.tar.gz.

File metadata

  • Download URL: flirimageextractor-1.5.1.tar.gz
  • Upload date:
  • Size: 27.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.16

File hashes

Hashes for flirimageextractor-1.5.1.tar.gz
Algorithm Hash digest
SHA256 df4040a436255921ad397724e83620b92e14935e5f926813372b0b388558dbf0
MD5 d6bdb60dfe2b5cd1da4bf6d9ad3a8969
BLAKE2b-256 8f64d540bd2d205b8205d92ab8a9bb1d1406a6f98d1de5fa2e81120a33a7436b

See more details on using hashes here.

Provenance

File details

Details for the file flirimageextractor-1.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for flirimageextractor-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 679f2224481f7a535abdad2f8736849f0ae1e4c3e7a8022452cf9d257026bea3
MD5 89988d8eababf7fc2651f8365ea07cf4
BLAKE2b-256 dfe080e84a5489e2d2708c28d9beb10dfd31c50ed57de07b3b0f5bcd9ca616ca

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page