EEVblog Electronics Community Forum

Products => Thermal Imaging => Topic started by: kirill_ka on December 07, 2019, 10:56:09 pm

Title: free Linux application for the TE-Q1 camera
Post by: kirill_ka on December 07, 2019, 10:56:09 pm
This is a basic thermal camera viewer application I wrote some time ago.
Now I'm releasing it for the case someone would find it useful.
https://github.com/KIrill-ka/tkthcam/releases/download/r0.5/tkthcam.tar.gz
For now it's not packaged. In the current state it's intended for people familiar with *nix command line.
Spells like this should get you started:
Code: [Select]
mkdir tkthcam
cd tkthcam
tar xzf  ../tkthcam.tar.gz
./tkthcam.tcl
Tcl/Tk 8.6 and libtk-img should be installed...
Ok, I'd add some documentation if there's some interest.


Title: Re: free Linux application for the TE-Q1 camera
Post by: Klaus on August 09, 2020, 09:21:53 pm
Hi,

I'm interessed in some more information.

I can't start it  :'(
Title: Re: free Linux application for the TE-Q1 camera
Post by: kirill_ka on August 10, 2020, 07:31:09 am
Hi Klaus,

Do you have some output in the terminal? Please, provide the exact sequence of commands you are entering and the output.
Title: Re: free Linux application for the TE-Q1 camera
Post by: Klaus on August 10, 2020, 09:16:08 pm
Hi kirill_ka,

i tried this:

root@raspberrypi:/home/pi/tkthcam# tclsh tkthcam.tcl
couldn't load file "/tmp/libimgtools0.3.so": /tmp/libimgtools0.3.so: wrong ELF class: ELFCLASS64
    while executing
"load $tmpFileName"
    (file "./imgtools-0.3.tm" line 21)
    invoked from within
"source -encoding utf-8 ./imgtools-0.3.tm"
    ("package ifneeded imgtools 0.3" script)
    invoked from within
"package require imgtools"
    (file "tkthcam.tcl" line 10)

Best Regards
Title: Re: free Linux application for the TE-Q1 camera
Post by: kirill_ka on August 10, 2020, 09:48:50 pm
couldn't load file "/tmp/libimgtools0.3.so": /tmp/libimgtools0.3.so: wrong ELF class: ELFCLASS64

Ah, that binary release is for x86-64.
I'd try to make a pi version if you want one. What do you think?
Title: Re: free Linux application for the TE-Q1 camera
Post by: Klaus on August 10, 2020, 09:59:58 pm
That would be nice!
I'm using a RPi 3+
Title: Re: free Linux application for the TE-Q1 camera
Post by: kirill_ka on August 10, 2020, 10:15:55 pm
That would be nice!
I'm using a RPi 3+

Is it a 64bit ARM? I think I have an older pi which is 32bit... This makes things more complex.
Title: Re: free Linux application for the TE-Q1 camera
Post by: puch650tr on October 14, 2020, 08:51:27 pm
Hi,

just found your little Software for the TE-Q1 cam. Finally i can use it under Linux and don't have to boot Windows.
I have run the program at my testing/experimenting system. It's just an old laptop, but with an actual version of Debian Testing. Starts and runs fine, no issues so far.

But one question: When starting the program as normal (non root) user, the camera is not detected. As root it works fine (as mentioned above). But is there a way to get it working as a normal user?
The camera shows up with „lsusb“ but does not show up as a device in /dev. So for now i have no clue what i can do to get it detected by your program as non root user.

Thanks very much for your great work!

Vincent
Title: Re: free Linux application for the TE-Q1 camera
Post by: kirill_ka on October 15, 2020, 07:47:49 am
Hi Vincent,

Yes, here are some "snips" from the i3systems' SDK installation scripts.
Code: [Select]
# move i3Vendor.rules
    mv ./i3Vendor.rules /etc/udev/rules.d/
Code: [Select]
$ cat i3Vendor.rules 
SUBSYSTEM=="usb", ATTRS{idVendor}=="0547", MODE="0666"
SUBSYSTEM=="usb_device", ATTRS{idVendor}=="0547", MODE="0666"

Maybe you need to restart udev to apply the changes.

Alternatively you can make teq1drv setuid root.
Something like this:
Code: [Select]
chown root teq1drv
chmod u+s teq1drv
Title: Re: free Linux application for the TE-Q1 camera
Post by: puch650tr on October 15, 2020, 07:29:07 pm
Hi,

thanks for your answer!

Just one hour ago i figured it out by myself. Now it's working fine.
Yesterday night as i tried to sleep i had an idea. I have another device which had the same issue but i was not sure about the root cause. Then after playing with the camera and instead of falling asleep i managed to connect the dots. Wrote some udev rules and now both devices are working fine  :)

Thanks again for your work. I will mention it at my website (it's not big and only in german, so i guess nobody will see it. but who knows). I hope you keep on working at it, this would be great.

Have a nice evening,
Vincent
Title: Re: free Linux application for the TE-Q1 camera
Post by: kirill_ka on October 19, 2020, 08:01:45 pm
Thanks, Vincent.

I'm happy to know that you find my app useful. Feel free to post you suggestions and bug reports here or on the github.
Although, I can't promise to fix everything  ;)
Also it would be nice if you share a link to your site.

EDIT: I realized that there's a link to your site in profile.
Title: Re: free Linux application for the TE-Q1 camera
Post by: kirill_ka on October 19, 2020, 08:05:00 pm
That would be nice!
I'm using a RPi 3+

Is it a 64bit ARM? I think I have an older pi which is 32bit... This makes things more complex.

I realized that I do have a RPI3. So I can try to make a port for raspbian. Do you still want it?
Title: Re: free Linux application for the TE-Q1 camera
Post by: puch650tr on October 28, 2020, 04:40:14 pm
Here is the direct link to the camera at my site: https://www.vpippan.at/index.php?pid=Ausstattung_Hardware_DiversesWerkzeug_ThermokameraTeq1 (https://www.vpippan.at/index.php?pid=Ausstattung_Hardware_DiversesWerkzeug_ThermokameraTeq1).
This will be easier to find then going over the startpage, especially without speaking german  :)

Quote
Although, I can't promise to fix everything 
No problem, thats fine. Just work on it as long as you have fun with it  :)
And up to now, no bugs found.

Greetings from Austria
Title: Re: free Linux application for the TE-Q1 camera
Post by: Klaus on November 01, 2020, 08:57:11 pm
Hi, that would be great! I want the RPi with the te-q1 to use as a thermal Web cam!
Title: Re: free Linux application for the TE-Q1 camera
Post by: kirill_ka on November 16, 2020, 09:07:48 pm
Hi, that would be great! I want the RPi with the te-q1 to use as a thermal Web cam!

To match the pace of the thread it took me 2 weeks just to run make on my RPI 3  :-DD
Well, not quite, but anyway...
https://github.com/KIrill-ka/tkthcam/releases/download/r0.5/tkthcam-raspbian.tar.gz
It works on my RPI3/raspbian jessie. It's likely to work on the newer 32-bit (armhf) releases.
Title: Re: free Linux application for the TE-Q1 camera
Post by: Klaus on December 27, 2020, 10:01:13 pm
Hi,
i just testet your fine peace off software. Very nice stuff! Excelent!

Now a litte web cam software would be fine.

Best regards