tomasz-lewicki / ai-thermometer

Fever screening with IR & RGB cameras and Deep CNNs
147 stars 39 forks source link

Wrong viewing mode on the FLIR-Lepton #21

Open Lord-Lukas-1 opened 3 years ago

Lord-Lukas-1 commented 3 years ago

I copied your code and am running it on the developer kit. Unfortunately the FLIR Lepton shows the pictures only in red and grey like in your video with the red channel. How can i change the output of the FLIR Lepton to a range from blue to red like in your example?

nanogear commented 3 years ago

add the next code: ir_arr = cv2.applyColorMap(ir_arr, cv2.COLORMAP_JET) where it is defined def apply_cmap

Just still don´t understand how you change blue color to gray and modify the other ones to look like in the video.... I want to know how...

Here is the ColorMaps types: https://docs.opencv.org/master/d3/d50/groupimgproccolormap.html

Lord-Lukas-1 commented 3 years ago

Thank you for the answer.

I added the code but unfortunately it didn't work. Do you have any idea what else could be the problem?

I haven't made any changes in the code after copying it from here except adding your line. So I have no idea what is causing the problem.

tomasz-lewicki commented 3 years ago

@Lord-Lukas-1 you should give the newest version a try, it includes improved colormaps.