Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation of functions #1

Open
MCMH2000 opened this issue May 8, 2021 · 4 comments
Open

Documentation of functions #1

MCMH2000 opened this issue May 8, 2021 · 4 comments

Comments

@MCMH2000
Copy link

MCMH2000 commented May 8, 2021

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
Copy link
Owner

stawel commented May 8, 2021

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
Copy link
Author

MCMH2000 commented May 8, 2021

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
Copy link
Owner

stawel commented May 8, 2021

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

@MCMH2000
Copy link
Author

MCMH2000 commented May 8, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants