Skip to main content

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

To install and Run on Linux and windows if repo is cloned:

poetry install
poetry run flir-image-extractor

You can install the CLI using pip:

pip install flirimageextractor or pip install --upgrade flirimageextractor (windows)

Usage: Sample Basic code Snppet

import numpy as np
from flirimageextractor import FlirImageExtractor

flir = FlirImageExtractor()
flir.process_image(flir_img_file='images/DJI_H20T.jpg')
# Save processed images and extract thermal data
images = flir.save_images(bytesIO=True)
temperature = flir.get_thermal_np()
# Calculate and upload thermal data
max_temp, min_temp = np.amax(temperature), np.amin(temperature)
print(max_temp)
print(min_temp)

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 R-JPEG Camera Model

    • FLIR
    • FLIR AX8
    • FLIR B60
    • FLIR E40
    • FLIR T640
  • DJI R-JPEG Camera Model

    • DJI H20T
    • DJI XT2
    • DJI XTR
    • DJI XTS
    • DJI R-JPEG Camera Model DTAT3.0
  • DJI M2EA / DJI MAVIC2-ENTERPRISE-ADVANCED

    • DJI H20N
    • DJI M3T / DJI MAVIC3
    • DJI M30T

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 Poetry. 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
  • poetry add "packagename" --group=extras --optional
  • sphinx-build -b html docs/source docs/build (To Generate Docs)

Credits

This CLi was developed using this repos:

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.10.tar.gz (34.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flirimageextractor-1.5.10-py3-none-any.whl (39.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flirimageextractor-1.5.10.tar.gz
  • Upload date:
  • Size: 34.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.20

File hashes

Hashes for flirimageextractor-1.5.10.tar.gz
Algorithm Hash digest
SHA256 83c0e7ddfb07c43c0fc5a1b28599f2a94ec0cf429867a13b181c46992ba1f529
MD5 bc64072431ee04205e4544d0e3a3f57d
BLAKE2b-256 ebc83bcbe583a68a2ce84183636a6b9d998a8532d3c8044c22e217b2b4e3f4e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for flirimageextractor-1.5.10-py3-none-any.whl
Algorithm Hash digest
SHA256 9ee0a2759897723faefa067ae1fcdacf424f77f9b9ddcd2ee2b8d9bb0a353fb8
MD5 75d4c4e07725e331cd55537d26b85e73
BLAKE2b-256 a766fb9db2357f0d7d6a2296355bb6c466ece8a7fecd8147bdd0ef825c0759a7

See more details on using hashes here.

Release history Release notifications | RSS feed

1.5.11

2 files

This release

1.5.10 This release

2 files

1.5.9

2 files

1.5.8

2 files

1.5.7

2 files

1.5.6

2 files

1.5.5

2 files

1.5.4

2 files

1.5.3

2 files

1.5.2

2 files

1.5.1

2 files

1.5.0

2 files

1.4.1

2 files

1.4.0

2 files

1.3.0

1 file

1.2.11

1 file

1.2.10

1 file

1.2.9

1 file

1.2.8

2 files

1.2.7.3

2 files

1.2.7.2

2 files

1.2.7.1

2 files

1.2.7

2 files

1.2.6.1

2 files

1.2.6

2 files

1.2.5.1

2 files

1.2.5

2 files

1.2.4

2 files

1.2.3

2 files

1.2.2

2 files

1.2.1

1 file

1.2.0

1 file

1.1.0

1 file

1.0.3

1 file

1.0.2

1 file

1.0.1

1 file

1.0.0

1 file

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

3 files

0.0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page