stawel / ht301_hacklib

ht-301 thermal camera opencv lib
GNU General Public License v3.0
56 stars 31 forks source link

Added better support for T2S+ v2 cameras (and probably others with no onboard FPGA processing) #16

Open diminDDL opened 3 months ago

diminDDL commented 3 months ago

It is a known that these thermal cameras originally came with some sort of onboard processing FPGA and thus presented a clean autoranged and noise free image to the computer. However, as of recently this is no longer the case. Newer models present the raw sensor data on the camera endpoint and let the application handle the rest.

This is what the image looked like on my T2S+ with the current state of this repository: image

This is what it looks like after my additions: image

The following has been added to make this work:

As of right now I was unable to determine the logic with which the body temperature register works in the V2, so for now I left that as hard coded room temperature values. This is sub-optimal, but the only downside here is the slightly inaccurate temperature readout, still better than that noisy mess for the V2 users.

Because this sort of processing is quite a bit different compared to normal non V2 operation, it is only performed with a special command line argument, and also because on some of my systems the software wouldn't detect the camera automatically. I also introduced a video device option.

The readme was updated accordingly.

Thank you for considering my PR, please let me know if I should add/change anything.

diminDDL commented 3 months ago

From what I understand @dzid26 is the current maintainer of the repository. Sorry for the ping but it would be nice if we could get this merged.