stawel / ht301_hacklib

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

Documentation of functions #1

Open MCMH2000 opened 3 years ago

MCMH2000 commented 3 years ago

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

stawel commented 3 years ago

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

MCMH2000 commented 3 years ago

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?

stawel commented 3 years ago

here you go: https://github.com/stawel/ht301_hacklib/blob/master/example_simple.py

MCMH2000 commented 3 years ago

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