stawel / ht301_hacklib

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

Using with Xtherm T3S #5

Open Angel-1024 opened 2 years ago

Angel-1024 commented 2 years ago

whenever try to use it with t3s script hangs with gray window and if debug is on returns error "frame meta no match" to fix it i modified ht301_hacklib.py from line 293 i add this strings

            if device_strings[3] == 'T3-317-13': frame_ok = True
            else:
                if device_strings[5] == 'T3S-A13': frame_ok = True
                else:
                     if debug > 0: print('frame meta no match:', device_strings)

and modify line 249

Exception('device ' + str(video_dev) + ": HT301 or T3S not found!")

and at least it works on windows 11 :) screenshot 2022-09-08 180132

stawel commented 2 years ago

Great news, Thanks!

I've added your changes to the repository

Angel-1024 commented 2 years ago

Thanks! And i forget, i also edited 276 string in ht301_hacklib_py raise Exception("HT301 or T3S device not found!") after this if camera not connected returns HT301 or T3S device not found! I think T3Pro can use too but need to know it's strings... but i don't have this cam.

stawel commented 2 years ago

ok, I've changed both exception strings :)