fnoop / flirone-v4l2

v4l2 based solution to running Flir One from Linux
GNU General Public License v2.0
89 stars 26 forks source link

support flir one gen 3 thermal stream resolution #13

Open DAMEK86 opened 3 years ago

DAMEK86 commented 3 years ago

I was able to run the code with a "pixel mixed" stream - so far so good. after reading the stats of the gen 3, I saw that the gen 3 thermal sensor have only 80x60 pixel resolution (instead of 160x120 like the pro).

when I declare the defines to

#define FRAME_WIDTH2  80
#define FRAME_HEIGHT2 60

I get a good picture but the color calculation and also the font_write(...) didn't match (resolution is 1/4 of the pro).

Since I am a noob of raw video stream manipulation, it would be awesome if you can help to adapt the code to a smaller resolution. I'm not sure what's better - pixel duplication to get to similar screen size or downsizing the fonts and so on.:thinking:

DAMEK86 commented 3 years ago

update: the dynamic temp range differs from the pro gen3: -20 °C bis 120 °C pro: -20 °C bis 400 °C which results in a bluish stream

annius commented 3 years ago

Same problem here: I have the gen3 which is 80x60. But surely simply changing the #defines isn't sufficient? I see a bunch of loops with max values of 160 and 120 that presumably need to be changed to 80 x 60.

Do you have a branch where you got this working for the gen3?

epozzobon commented 3 years ago

I made it work on 80x60 resolution on my fork ( https://github.com/epozzobon/flirone-v4l2 )

annius commented 3 years ago

@epozzobon thanks very much! I tried out your fork and it works very well. I wonder whether you (or anyone else) know whether any sort of calibration is required on the temperature? Pointing at human skin it regularly shows 43C+.