GuoPingPan / ht301_hacklib

ht-301/t2s thermal camera opencv lib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ht301_hacklib

ht-301 thermal camera opencv python lib.

This fork is a hack to support InfiRay T2S+! Note: measuring higher temperatures than +116°C does not work!

Supported thermal cameras:

  • Hti HT-301
  • Xtherm T3S, thanks to Angel-1024!

It's a very simple hacked together lib, might be useful for somebody,
uses matplotlib which is a little bit on the slow side,
or pure opencv - much faster but without most features

Tested on ubuntu 20.04:

$ ./pyplot.py
keys:
    'h'      - help
    'q'      - quit
    ' '      - pause, resume
    'd'      - set diff
    'x','c'  - enable/disable diff, enable/disable annotation diff
    'f'      - full screen
    'u'      - calibrate
    't'      - draw min, max, center temperature
    'e'      - remove user temperature annotations
    'w'      - save to file date.png
    'r'      - save raw data to file date.npy
    ',', '.' - change color map
    'a', 'z' - auto exposure on/off, auto exposure type
    left, right, up, down - set exposure limits

mouse:
    left  button - add Region Of Interest (ROI)
    right button - add user temperature annotation

pyplot output pyplot output

View saved ('r' key) raw data file:

$ ./pyplot.py 2022-09-11_18:49:07.npy

Opencv version:

$ ./opencv.py

opencv output

About

ht-301/t2s thermal camera opencv lib

License:GNU General Public License v3.0


Languages

Language:Python 99.8%Language:Shell 0.2%