I made a program that reads from an IR camera and generates the corresponding heat map in real time. What I am trying to do now is try to map what I see in the output to temperature, that is I want to display in a graphical way what the temperature of the hottest image is.
So basically I need to come up with an equation to convert this heat map into temperatures.
This is the code I made for the heat map generation:
import numpy as np
import cv2
cap=cv2.VideoCapture(1)
while(cap.isOpened()):
ret,frame = cap.read()
thresh1 = cv2.applyColorMap(frame,cv2.COLORMAP_JET)
cv2.imshow('frame',thresh1)
if cv2.waitKey(100)&0xFF==ord('q'):
break
cap.release()
cv2.distroyAllWindows()