flir_rs
Library and tools to process thermal images from FLIR cameras.
Overview
This crate provides two functionalities:
-
Compute temperature from raw sensor values and ambient parameters (typically stored as metadata in the image).
-
Parse parameters and raw sensor values from image metadata. Supports parsing R-JPEGs with FFF encoding of Flir parameters, and parsing ExifTool generated JSON (output from
exiftool -b -j).
let path = "demo.jpg";
let path = new;
let img = open.unwrap;
let = img.dimensions;
let img = try_from_rjpeg_path.unwrap;
let settings = img.settings;
let sensor_values = img.image.iter.map.;
let mut temp_vec = vec!;
for in sensor_values.chunks.enumerate
for pos in &box_1_vec
Please see [crate documentation][docs] for more information
Tools
The crate also provides two handy binaries:
- stats: Generates temperature stats for a set of images / JSONs
- transform: Generates temperature valued 16-bit single channel TIFF files for images, with value normalized to encode a given range of temperatures.