How can I convert RGB values of the thermal image into Celsius or kelvin temperature in python?
Here is the thermal image taken by a FLIR device:
Here I am reading image using OpenCV and getting the RGB values from it but I don't know how to convert these RGB values to temperature:
import cv2 as cv import numpy as np # read image img = cv.imread('D:/Desktop/images/thermal.jpg') img = cv.resize(img, (300, 300)) for i in range(img.shape): for j in range(img.shape): print(img[i, j]) cv.imshow('img', img) cv.waitKey(0) cv.destroyAllWindows()
Any help would be appreciated!