Author Topic: SeekThermal - How to correct the image received from the sensor?  (Read 41959 times)

0 Members and 1 Guest are viewing this topic.

Offline frenky

  • Supporter
  • ****
  • Posts: 1003
  • Country: si
    • Frenki.net
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #25 on: June 22, 2015, 07:59:34 am »
That would be great, because compared to all other apps, yours seems to get the best details out of the sensor.  :-+
If you take a look at the pins of the IC. On the image taken with your app pins have really good detail.
« Last Edit: June 22, 2015, 08:01:17 am by frenky »
 

Offline jadewTopic starter

  • Frequent Contributor
  • **
  • Posts: 472
  • Country: ro
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #26 on: June 26, 2015, 07:48:40 am »
@frenky,

I updated the zip file.

I gave up on trying to figure out the temperature for now, but I did add the manual ranging feature. I really don't like this dual slider approach, but didn't have a better control, nor time to write one, so it will have to do for now.

If anyone figures out how to compute temperature reliably, please let me know.
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #27 on: June 26, 2015, 08:17:16 am »
Ice, boiling water would be good references for 0 C and 100 C

 9 C beer on an old version of my program was giving me 16077 (sensor - calibration)+16384 but not sure if that is the formula I used for the picture. Ambient temp was giving me 16460:


Lamp at 20.6C is room temperature giving me 16451 so about the same as the previous image.
Colder spot about 16C (winter and my office corners seem to leak heat out or let cold in. Value 16299


Ice tray and lighter, ice 14708 this was below freezing (maybe -6C) because I just took it out of the freezer.
Lighter reads 18801 but not sure what temperature that is.


I was borrowing a friend's thermal spot gun, but I never finished calibrating the values and I think this is an old version of the code so the formula might not apply anymore.

Edit: but maybe using the sensor data instead might be better, the ones I posted did subtract the calibration values and added the 16384 offset I used.
Edit2: nope just by looking at the values the only ones that make sense are after subtracting the calibration from the sensor, the offset (16384) helps for the computation to keep the values centered on a 32768 range, 32K values (the 1024 ones that is)
« Last Edit: June 26, 2015, 08:30:12 am by miguelvp »
 

Offline frenky

  • Supporter
  • ****
  • Posts: 1003
  • Country: si
    • Frenki.net
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #28 on: June 26, 2015, 08:18:18 am »
Thank you for your effort.
This new version really is all I need for inspecting electronics from PC. :-+

 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #29 on: June 26, 2015, 08:26:08 am »
That looks awesome!  :-+
 

Offline jadewTopic starter

  • Frequent Contributor
  • **
  • Posts: 472
  • Country: ro
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #30 on: June 26, 2015, 08:35:37 am »
@frenky,
You're welcome. I like this feature too :)


@miguel,
I went that route too, but there are some problems:

1) The values are drifting, which means that the camera might be sending a temperature reading with the calibration frame - or it's telling us how to compensate in some way.

2) I don't think it's linear. I tried to calibrate it against a 250 °C span and I couldn't deduce the value count/degree. It's possible that there's an offset involved.

3) We don't know where this calibration data might be or how the camera figures out the temperature of the calibration frame.
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #31 on: June 26, 2015, 07:22:40 pm »
I was running numbers last night and did find some correlation but I was too tired, So I'll continue later tonight.

I think it's a log base 6 ratio or something like that but my brain was fried so I probably was doing something stupid.
 

Offline Trax

  • Regular Contributor
  • *
  • Posts: 124
  • Country: at
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #32 on: June 26, 2015, 09:29:11 pm »
is the source for this custom application to be found some ware?
 

Offline jadewTopic starter

  • Frequent Contributor
  • **
  • Posts: 472
  • Country: ro
 

Offline jadewTopic starter

  • Frequent Contributor
  • **
  • Posts: 472
  • Country: ro
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #34 on: July 04, 2015, 09:42:06 am »
I just added an option for bilinear and bicubic interpolation. Zip file updated.
 

Offline frenky

  • Supporter
  • ****
  • Posts: 1003
  • Country: si
    • Frenki.net
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #35 on: July 04, 2015, 10:10:34 am »
This is really great and image also resizes if you resize window.  :-+

A nice feature would be a checkbox below Save button with text "Capture image after calibration".
So the app would wait for shutter cal before taking image. Because those images contain the least noise.

And in this version I noticed some blinking of the image. Image vanishes for a few milliseconds and then reappear.

I hope you won't take my comments the wrong way.
In think you app is really great I'm just brainstorming on how to make it even better. :)
 

Offline jadewTopic starter

  • Frequent Contributor
  • **
  • Posts: 472
  • Country: ro
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #36 on: July 04, 2015, 10:20:09 am »
A nice feature would be a checkbox below Save button with text "Capture image after calibration".
So the app would wait for shutter cal before taking image. Because those images contain the least noise.

It's been doing this since the first version, that's what the "Take One" button does :)

About the flickering, does it happen only when you resize or all the time?

Edit: I guess I should add a tooltip for when you hold your mouse over that button. I realize now that it's not particularly clear what it does.
« Last Edit: July 04, 2015, 10:25:33 am by jadew »
 

Offline frenky

  • Supporter
  • ****
  • Posts: 1003
  • Country: si
    • Frenki.net
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #37 on: July 04, 2015, 10:47:58 am »
I see... I did't know that, then there is no need for checkbox I'll just use the button. :)

One more suggestion. ;)
I would prefer to select location on fist save and then just press the "Save" button (to save new images with timestamp as a name) without browse function.
It would save a lot of time. But I guess it could be confusing to somebody else...

The flickering it's totally random... If I start app without changing any settings:
First blink could be 2 seconds after start or 30 seconds. And then there could be no blink between shutter cals or there were as much as 5.
Easiest solution would be to just use black color behind image on the form, so when image disappears our eyes wouldn't even notice it.

BTW: the quality of images is now really fascinating. I have absolutely no regrets of not waiting for Flir One v2.


« Last Edit: July 04, 2015, 10:53:50 am by frenky »
 

Offline jadewTopic starter

  • Frequent Contributor
  • **
  • Posts: 472
  • Country: ro
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #38 on: July 04, 2015, 12:40:46 pm »
I updated the zip with the flicker fix. Please let me know if it works.

About the auto-naming suggestion, I like it but I won't have time to implement it until next weekend.

Also, do you think it could use more color profiles? They're rather easy to make but I'm not sure what else to add.
 

Offline frenky

  • Supporter
  • ****
  • Posts: 1003
  • Country: si
    • Frenki.net
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #39 on: July 04, 2015, 01:07:27 pm »
Take your time... ;)

I don't know about more color palettes because 99% of the time I use "iron" and the other 1% the "rainbow".

What you could also improve is manual correction of the range.
Currently only a very small section of the sliders is usefull, so you have to click very carefully to not overdue it.
It would be better if the auto calculated range would account for 50% of the whole sliders so that it would be easier to precise tune the sliders manually.
I hope you understand what I mean since my english is mediocre at best...
« Last Edit: July 04, 2015, 01:15:30 pm by frenky »
 

Offline frenky

  • Supporter
  • ****
  • Posts: 1003
  • Country: si
    • Frenki.net
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #40 on: July 04, 2015, 01:13:14 pm »
And flickering is gone in new version. :-+

I waited 1 minute before clicking anything and after that I changed all the settings. No flickering.
 

Offline jadewTopic starter

  • Frequent Contributor
  • **
  • Posts: 472
  • Country: ro
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #41 on: July 04, 2015, 05:13:18 pm »
I know what you mean about the range thing and I thought about that too. It can't be done like that because it would wiggle a lot.

I already thought of a solution, but it requires a bit more time than I have available right now.
 

Offline Trax

  • Regular Contributor
  • *
  • Posts: 124
  • Country: at
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #42 on: July 04, 2015, 08:38:45 pm »
What do you think is better the normal seek or the XR one?
 

Offline jadewTopic starter

  • Frequent Contributor
  • **
  • Posts: 472
  • Country: ro
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #43 on: July 05, 2015, 01:43:38 am »
@ Trax,

The XR, it can focus down to 12 cm or so, out of the box. For what we're doing it perfect, for surveillance you might want the regular one, which has wider field of view.
 

Offline frenky

  • Supporter
  • ****
  • Posts: 1003
  • Country: si
    • Frenki.net
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #44 on: July 07, 2015, 10:08:50 am »
I know what you mean about the range thing and I thought about that too. It can't be done like that because it would wiggle a lot.
One way to do it would be to just hide both sliders while in auto-range mode.
Because sliders do not add any usefull function to the app if you have auto-range on.

So show the sliders only when autorange is off and there will be no wiggle... :D
 

Offline frenky

  • Supporter
  • ****
  • Posts: 1003
  • Country: si
    • Frenki.net
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #45 on: July 08, 2015, 07:42:39 am »
I was thinking about palettes...
Real cool feature would be to let users design their own palettes.
You could read user defined palettes from files on the root with extension ".palette".

Your "iron.palette" would contain:
#000000
#000066
#7C009D
#F07000
#FFCC00
#FFF060
#FFFFFF

So user could go to http://html-color-codes.info/ and pick their own colors like this:



And put color codes in file mynewpal.palette :
#000000
#070719
#0B0B61
#0000FF
#BF00FF
#FF00BF
#FF8000
#FFFF00
#FFFFFF

I think that would be really cool.

And could you please explain to me how to open your ThermalView solution in VS. I got bunch of errors when I tried to build it.

Tnx.
« Last Edit: July 08, 2015, 07:45:00 am by frenky »
 

Offline jadewTopic starter

  • Frequent Contributor
  • **
  • Posts: 472
  • Country: ro
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #46 on: July 13, 2015, 07:32:32 pm »
Sorry for the late reply, I was on vacation.

I suppose there's no way around the custom palette thing, I'll find some free time and do it like that.

The auto-hide thing for the sliders - tried it before releasing it, it's not working well because the available space for the image changes and it looks weird. On top of that, having it always on gives you a bit more info on the temperature spectrum.

I understand that while I was on vacation they announced the beta version of the SDK. Hopefully some more complete and better applications will emerge.
 

Offline frenky

  • Supporter
  • ****
  • Posts: 1003
  • Country: si
    • Frenki.net
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #47 on: July 14, 2015, 08:24:52 am »
No pressure, take your time. ;)

I doubt that we will be able to get better images with SDK than with your app.
Quality will probably be the same as with android app.
(I hope I'm wrong)
« Last Edit: July 14, 2015, 11:07:17 am by frenky »
 

Offline jadewTopic starter

  • Frequent Contributor
  • **
  • Posts: 472
  • Country: ro
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #48 on: July 17, 2015, 01:46:09 pm »
I made another update. Now the profiles are file based and it has a rudimentary profile editor you can use to create your own profiles.

I also added the option to save in raw format (when saving 206 x 156 images), because I saw that requested in the other thread.

PS: Please share if you come up with some nice profiles. :)
 

Offline frenky

  • Supporter
  • ****
  • Posts: 1003
  • Country: si
    • Frenki.net
Re: SeekThermal - How to correct the image received from the sensor?
« Reply #49 on: July 17, 2015, 03:32:08 pm »
Great. I'm on vacation but I'll test it when I came back.

Sent from my LG-D855 using Tapatalk

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf