Skip to content

Instantly share code, notes, and snippets.

@jubin13
jubin13 / FLIRjpg2HDF5.py
Created July 4, 2019 20:58 — forked from gilgeorges/FLIRjpg2HDF5.py
Extracts the raw thermal images from a set / sequence of FLIR JPG images and stores them as matrices in an HDF5 file. The actual extraction is done using Exiftool (available at http://www.sno.phy.queensu.ca/~phil/exiftool/ - may require you to install Perl, e.g. "Strawberryperl" for Windows).
""" FLIRjpg2HDF5
reads raw thermal images from a FLIR-camera JPG image series
and stores them in a HDF5 file - using exiftool """
import glob
import os
import subprocess
import PIL.Image
import numpy as np