PureThermal 2 & Basic Lepton Features
https://lepton.flir.com/wp-content/uploads/2015/06/PureThermal-2-Basic-Lepton-Features.pdf
Quick Start Guide: Getting Started Programing with the Python SDK
https://www.youtube.com/watch?time_continue=535&v=egw4Co-ICi4&feature=emb_logo
tiff file read code
import cv2
import sys
import os
import numpy as np 
from matplotlib import pyplot as plt 
from matplotlib import cm
img_path = 'path/to/file/'
img_list = os.listdir(img_path)
for img_name in img_list:
    if '.tiff' in img_name:
        print(img_name)
        img = cv2.imread(os.path.join(img_path, img_name), -1)
        print('non-transform reading')
        print(img.dtype)
        print(img.shape)
        
    
"""
figure read succeeded!
"""
img_trans = img/100 -273.15
print(img_trans.shape)
#plt.imshow(img_trans, cmap=cm.plasma,vmin=20,vmax=40) 
#plt.show()
Split multi-tiffs to multi pages code
from PIL import Image
import cv2
import sys
import os
import numpy as np 
from matplotlib import pyplot as plt 
from matplotlib import cm
img = Image.open('path/to/file/a.tiff')
for i in range(87): # use irfan view to check number of frames of Tiff file
    try:
        img.seek(i)
        img.save('C:/Users/saku_/Documents/GitHub/personal/thermal_illusion/frames/'+'%s.tif'%(i,))
    except EOFError:
        break
print("split ended")
img_path = 'path/to/foulder/'
img_list = os.listdir(img_path)
img_trans_path = "path/to/foulder/"
for img_name in img_list:
    if '.tif' in img_name:
        print(img_name)
        img = cv2.imread(os.path.join(img_path, img_name), -1)
        #print('non-transform reading')
        #print(img.dtype)
        #print(img.shape)
        
        img_trans = img/100 -273.15 # Lepton 2.5 and 3.5 both support Temperature Linear (TLinear) mode.Each pixel represents the temperature at that point in centikelvin (cK).Convert centikelvin to Celsius with TC = TcK / 100 - 273.15.Where TC is the temperature in ºC and TcK is the temperature in cK.Example: 29587/100 -273.15 = 22.72°C
        plt.imshow(img_trans, cmap=cm.plasma,vmin=20,vmax=40) 
        #plt.show()
        plt.savefig(img_trans_path + img_name + ".png")
        plt.close()
        
print("convert ended")

VIDEO
- https://youtu.be/PdPT3APo_F8 converted by multi-Tiff files
