Code Monkey home page Code Monkey logo

ht301_hacklib's Introduction

ht301_hacklib

Thermal camera opencv python lib.

Supported thermal cameras:

  • Hti HT-301
  • Xtherm T3S, thanks to Angel-1024!
  • Xtherm T2L, T2S+, thanks to Christoph Mair

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 and windows 11:

$ ./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
    'k', 'l' - set the thermal range to normal/high (only for the TS2+)
    'o'      - change the camera orientation (rotate 90 degs CW). Only in OpenCV
    
    left, right, up, down - set exposure limits

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

Alternatively if you can specify the video device directly with -d to skip the search routine. Also for T2S+ V2 users (where the camera sends raw data and doesn't do onboard processing) you can specify the -r option to tell the program to treat the camera stream as raw sensor data. Example:

./pyplot.py -d /dev/video14 -r

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


Related projects

Related materials

ht301_hacklib's People

Contributors

stawel avatar dzid26 avatar diminddl avatar sumpster avatar cuprum77 avatar wrtlprnft avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.