All Projects → nationaldronesau → FlirImageExtractor

nationaldronesau / FlirImageExtractor

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

Projects that are alternatives of or similar to FlirImageExtractor

flirpy
Python library to interact with FLIR camera cores
Stars: ✭ 150 (+650%)
Mutual labels:  thermal
go-ocr
A tool for extracting text from scanned documents (via OCR), with user-defined post-processing.
Stars: ✭ 31 (+55%)
Mutual labels:  extract-images
image-resolver
A Java 8 library to extract main image from a URL or website link
Stars: ✭ 22 (+10%)
Mutual labels:  extract-images
Docotic.Pdf.Samples
C# and VB.NET samples for Docotic.Pdf library
Stars: ✭ 52 (+160%)
Mutual labels:  extract-images
spinnaker sdk camera driver
Point Grey (FLIR) Spinnaker based camera driver (Blackfly S etc.)
Stars: ✭ 106 (+430%)
Mutual labels:  flir
libmsr
Wrapper library for model-specific registers. APIs cover RAPL, performance counters, clocks and turbo.
Stars: ✭ 47 (+135%)
Mutual labels:  thermal
mbpfan
A simple daemon to control fan speed on all MacBook/MacBook Pros (probably all Apple computers) for Linux Kernel 3 and newer
Stars: ✭ 680 (+3300%)
Mutual labels:  thermal
darkgreybox
DarkGreyBox: An open-source data-driven python building thermal model inspired by Genetic Algorithms and Machine Learning
Stars: ✭ 25 (+25%)
Mutual labels:  thermal

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 flir-image-extractor-cli

On windows you may need to use:

python -m pip install flir-image-extractor-cli

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 flir-image-extractor-cli

Usage

You can start the CLI using the terminal.

flir-image-extractor-cli

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)

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.

Credits

This CLi was developed using this repo: https://github.com/Nervengift/read_thermal.py

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].