stawel/ht301_hacklib

Documentation of functions

Opened this issue · 4 comments

First of all: Really nice work. Exactly what i am looking for.

I want to use this library to show temperature data on the camera stream for my drone that uses the HT-301.
But unfortunately your code is barely commented and the variable names are like obfuscated
and I don't have time for reverse engineering your code in order to use it.

Is it possible for you to put a simple documentation of the functions in the readme file or the wiki.
So that I know which functions are mandatory to get temperature data and how to handle the return values.

This would be awesome, Thank you <3

Hi @MCMH2000

... commented and the variable names are like obfuscated

here you have some more info:
https://www.eevblog.com/forum/thermal-imaging/software-for-xtherm-t3s-and-ht-301/msg3440018/#msg3440018
https://www.eevblog.com/forum/thermal-imaging/software-for-xtherm-t3s-and-ht-301/msg3450182/#msg3450182

and I don't have time for reverse engineering your code in order to use it.

yes, time is the most precious resource we both don't have,

Is it possible for you to put a simple documentation of the functions in the readme file or the wiki.

sorry I don't have time for this, but in short you only need these two functions:

https://github.com/stawel/ht301_hacklib/blob/master/opencv.py#L15-L17

just print the returned values and you should understand what is going on
(and maybe read the whole example it's only 42 lines long).
this may be useful:
lut - https://en.wikipedia.org/wiki/Lookup_table

Ok, thank you a lot for the fast reply.
So I might be able to use the library to get the coldest, warmest and center spot with this functions:
https://github.com/stawel/ht301_hacklib/blob/master/opencv.py#L15-L17

But one more quick question:
Is it possible to to get the temperature data of any x,y spot?
Or is there only the coldest, warmes and center spot encoded in the image meta?

That's perfect, Thank you a lot for your time and effort.
I appreciate that.