목록2024/10/16 (1)
Trikang
DJI Thermal jpeg file에서 보정되지 않은 섭씨 온도 얻기
DJI H20T thermal radiometric jpeg file 보정되지 않은 섭씨 온도를 얻으려면celsius = ((raw_int16 >> 2) * 0.0625) - 273.15from PIL import Imageimport numpy as npim = Image.open("/datasets/dji_thermal/images/DJI_20240520212354_0001_T.JPG")# concatenate APP3 chunksa = im.applist[3][1]for i in range(4, 14): a += im.applist[i][1]raw = np.array(Image.frombytes('I;16L', (640, 512), a), np.int16)celsius = np.right_sh..
개발 Tip
2024. 10. 16. 00:28