Author Topic: Flir One Thermal imaging camera teardown and hacks  (Read 115359 times)

0 Members and 2 Guests are viewing this topic.

Offline devilmastah

  • Contributor
  • Posts: 15
  • Country: nl
    • My blog (which i should update more often)
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #25 on: November 18, 2014, 10:53:54 pm »
ah i must have skipped that,

i writing a tutorial for the temprature mod at the moment :)
Maybe you can include it in the opening post later on (quote it)
 

Offline tomas123Topic starter

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #26 on: November 18, 2014, 11:03:56 pm »
Sure!

many users have trouble with using of mikes crc01

Taucher wrote a simplified version
EzCRC01
I took the liberty and made a simplified version of CRC01 - called EzCRC01
Just extract the attached zip archive, doubleclick EzCRC01.exe and follow the on screen instructions
edit3: To complete the process your e8.conf (lowercase "e" important) needs to be placed on the camera (via .FIF or RNDIS+FTP) - then cold boot your cam (battery removal)

It's intended as supplement to Mikes files and as a codebase for an in-place-crc01-updater.

EDIT2: Replaced with static version (64 bit)

Online mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 13694
  • Country: gb
    • Mike's Electric Stuff
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #27 on: November 18, 2014, 11:10:04 pm »
Just noticed the Flir lepton page is now showing a 25 deg lens option (presumably as used in the security camera product)  and a shutter (as used in TG165)
http://www.flir.com/cores/content/?id=66257
 
Also can't see mention of the 1000 MOQ that I'm sure was there, so maybe moving towards becoming more available...?
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline eneuro

  • Super Contributor
  • ***
  • Posts: 1528
  • Country: 00
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #28 on: November 18, 2014, 11:45:08 pm »
i found some references to toggle MSX mode and other stuff, i will now boot my mac to take a look at the other screensets that are in the app :)
Do you have source code of this Flir's MSX implementation or only make changes to some app config files to tweak its parameters?
Probably DFT will do the job in my OpenCV based Seek Thermal app, but it would be nice to see code how Flir makes this fusion of IR & visual in their products  >:D
12oV4dWZCAia7vXBzQzBF9wAt1U3JWZkpk
“Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine”  - Nikola Tesla
-||-|-
 

Offline tomas123Topic starter

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #29 on: November 18, 2014, 11:48:57 pm »
Do you have source code of this Flir's MSX implementation or only make changes to some app config files to tweak its parameters?
Probably DFT will do the job in my OpenCV based Seek Thermal app, but it would be nice to see code how Flir makes this fusion of IR & visual in their products  >:D

Flir MSX it's simple, see my IM scripts here
https://www.eevblog.com/forum/testgear/flir-e4-thermal-imaging-camera-teardown/msg342072/#msg342072

Offline tomas123Topic starter

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #30 on: November 18, 2014, 11:58:56 pm »
Just noticed the Flir lepton page is now showing a 25 deg lens option (presumably as used in the security camera product)  and a shutter (as used in TG165)

off topic on

Code: [Select]
Datasheet TG165:
Saved Image Format: Bitmap (BMP) Image with Temperature and Emissivity

BMP is a crippled image format.
Until now, Flir never saved BMP (Images without radiometric raw data)

I love the Flir One for the embedded raw data.
« Last Edit: November 19, 2014, 12:04:39 am by tomas123 »
 

Offline tomas123Topic starter

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #31 on: November 19, 2014, 12:14:40 am »
 :-+ :-+ :-+
Now the nice thing, i removed the file and made some pictures, see the attatchment, right onces are without the file!


I archieved this by doing the following.
1. I chmodded the file via ssh terminal to 777, "chmod 777 SuperResDenoise.plist"
2. After that you are able to rename or delete it, if you dont own or have rights to the file the file will not get delted or modified!
3. Then i rebooted the app, make shure its not running in the background (double click home button)! Thats really important as the file wil be in memory when the app is in background, hence you see no change.

untested:
you don't need a jailbrooken iphone
download the FLIR ONE 1.1.3.ipa with Itunes and delete the file SuperResDenoise.plist inside the zip container
then upload the patched ipa with Itunes to Iphone


edit 20.11.2014
it does'nt work:
after deleting the SuperResDenoise.plist  iTunes can install the ipa but the icon on the iphone hangs by "installing"

because signature of SuperResDenoise.plist in  Rosebud.app\_CodeSignature\CodeResources
« Last Edit: November 20, 2014, 09:40:57 am by tomas123 »
 

Offline eneuro

  • Super Contributor
  • ***
  • Posts: 1528
  • Country: 00
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #32 on: November 19, 2014, 12:16:28 am »
Flir MSX it's simple, see my IM scripts here
Just looking into this  flir.php from zip'ed flir-scriptV3.zip and it looks like there is only one input file:
Code: [Select]
-i ir_file.jpg      flir radiometric image
but there is attached real image and a few thermal ones-in one of them those contours from visual already applied, but how real visual light image is passed to this program to make MSX like Ir & visual fusion?  :-//
Never easy understand ImageMagic tricks made there  ;)

BTW: I use 16bit grayscale PNGs for raw sensor output from Seek Thermal dongle and 8bit channels RGBA PNGs for postprocessed output thermal images with 16bit Iron LUT applied on double (real) numbers scaled to 0.0...1.0 normalized values  :-/O
« Last Edit: November 19, 2014, 12:18:56 am by eneuro »
12oV4dWZCAia7vXBzQzBF9wAt1U3JWZkpk
“Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine”  - Nikola Tesla
-||-|-
 

Offline tomas123Topic starter

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #33 on: November 19, 2014, 12:19:41 am »
sorry, flir saves the real and radiometric values in one jpg file

read the simple php script and then you understand the simple  IM syntax

embedded.png = real image
raw.png = 16 Bit thermal image (dark)
ir.png = 16 Bit thermal image (fixed level, i.e. auto-level )

Code: [Select]
exec($convert." raw.png -fx \"($B/ln($R1/($R2*(65535*u+$O))+$F)-$Smin)/$Sdelta\" ir.png");
...

    if ( !isset($options['msx']) && !isset($options['shade']) )
    {
   exec($convert." ir.png $crop +repage ".$resize." $pal -clut embedded.png +swap -gravity Center -geometry $geometrie -compose over -composite -background ".$frame_color." -flatten +matte gradient.png -gravity East +append ".$destimg);
    }else{
       $cropx=$resizepercent*$exif[0]['RawThermalImageWidth']/100;
       $cropy=$resizepercent*$exif[0]['RawThermalImageHeight']/100;
       // $escape: bash/win have different brackets
       if ( isset($options['msx']) )
       {
          // high pass to real image and crop to IR size
          exec($convert." embedded.png -gravity center -crop {$cropx}x{$cropy}{$geometrie} $escape( -clone 0 -blur 0x3 $escape) -compose mathematics -define compose:args=0,-1,+1,0.5 -composite -colorspace gray -sharpen 0x3 -level 30%,70%! embedded1.png");
       }else{
          // shade filter to real image and crop to IR size
          exec($convert." embedded.png -gravity center -crop {$cropx}x{$cropy}{$geometrie} -auto-level -shade 45x30 -auto-level embedded1.png");
          $gamma=exec($convert." embedded1.png -format \"%[fx:mean]\" info:");
          $gamma=log($gamma)/log(0.5);
          exec($convert." embedded1.png -gamma $gamma embedded1.png");
       }
       // overlay real with IR
       exec($convert." ir.png ".$resize." $pal -clut embedded1.png +swap -compose overlay -composite ir2.png");
       echo "\n";
       #echo($convert." ir.png $crop +repage ".$resize." $pal -clut embedded1.png +swap -gravity Center -geometry $geometrie -compose overlay -composite ".$destimg);
       exec($convert." embedded.png ir2.png -gravity Center -geometry $geometrie -compose over -composite -background ".$frame_color." -flatten +matte gradient.png -gravity East +append ".$destimg);
    }

try this for understanding and testing your parameters
replace in bash ( with \(
Code: [Select]
convert real.png ( -clone 0 -blur 0x3 ) -compose mathematics -define compose:args=0,-1,+1,0.5 -composite -colorspace gray -sharpen 0x3 1.jpg
« Last Edit: November 19, 2014, 12:34:08 am by tomas123 »
 

Offline eneuro

  • Super Contributor
  • ***
  • Posts: 1528
  • Country: 00
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #34 on: November 19, 2014, 12:28:02 am »
Thx, now can try do the same using OpenCV only and compare results  with this magic MSX implementation :-+
12oV4dWZCAia7vXBzQzBF9wAt1U3JWZkpk
“Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine”  - Nikola Tesla
-||-|-
 

Offline devilmastah

  • Contributor
  • Posts: 15
  • Country: nl
    • My blog (which i should update more often)
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #35 on: November 19, 2014, 12:36:56 am »
EDIT:
Get clutch version 1.4.7 or higher! the lower one doesnt seem to work

Not for the faint hearted!
I dont want to upload a cracked file, so you guys can have a bit of fun and learn in the process of having fun.
Also i should propably say that its up to you what you do with your modified files (as in keep it legal) and you do this at your own risk :)
Let me know if it did or didnt work.

The images help with the txt step by step instruction i wrote the past two hours.

Something i want to know while someone trys this.
If you open the decrypted Rosebud in the hex editor please go to Analysis -> Checksums and run MD-5 before editing the file!
This gives a checksum at the bottom: It should be F16037A3DBE0E8D4C2A7900F3BC204DC
Else i have something to work out and this might not work. I tried this with my original clutched ipa file and the Rosebud i end up with works perfectly :)


Also i want to give a shoutout to Jenkins, who seems to have made the app (seems to be the username of the MAC that was used) Great app now give us all the things that are hidden in there :P
« Last Edit: November 20, 2014, 08:04:19 pm by devilmastah »
 

Offline tomas123Topic starter

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #36 on: November 19, 2014, 11:11:29 am »
there is a new firmware 1.0.9.  for flir one




Offline vincentwrath

  • Contributor
  • Posts: 11
  • Country: cn
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #37 on: November 19, 2014, 11:47:58 am »
 :palm:   Dear Mr devilmastah , clutch can't crack flir one app  “error: Cannot crack ARMV7 portion of fat binary. error: Could not crack binary  Failed. "  and  the data of original rosebud can't match your description.
 

Offline tomas123Topic starter

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #38 on: November 19, 2014, 12:42:54 pm »
The sharpness of the ir image itself does not seem to be really affected as in its not burryer, looks more crisp overall.

I archieved this by doing the following.
1. I chmodded the file via ssh terminal to 777, "chmod 777 SuperResDenoise.plist"
2. After that you are able to rename or delete it, if you dont own or have rights to the file the file will not get delted or modified!
3. Then i rebooted the app, make shure its not running in the background (double click home button)! Thats really important as the file wil be in memory when the app is in background, hence you see no change.

I can't confirm the SuperResDenoise.plist hack.
You shot the images with a larger temperature scale.




I gone with ssh on my Iphone and deleted the SuperResDenoise.plist
Code: [Select]
chmod 777 SuperResDenoise.plist
 mv SuperResDenoise.plist SuperResDenoise.bak
 rm SuperResDenoise.bak
then I rebooted the Iphone and took 10 images with the Flir One App without SuperResDenoise.plist

Screenshot from Flir Tools with 1 Kelvin


the 10 images animated (code below)





- now I deleted the (hacked) Flir One App and installed it from Appstore new
- repeated the 10 images from the same scene

Screenshot from Flir Tools with 1 Kelvin


the 10 images animated
Code: [Select]
>convert  -define png:swap-bytes=on *.png    -set filename:fname R%t +adjoin %[filename:fname].png

>identify -verbose R_*.png | grep -n4 statist | grep max | C:\util\GnuWin32\bin\sort -k 3 | tail -n 1
230-      max: 13145 (0.20058)

>identify -verbose R_*.png | grep -n3 statist | grep min | C:\util\GnuWin32\bin\sort -k 3 | head -n 1
1889-      min: 12895 (0.196765)

>convert R_*.png -level 12850,13250 -resize 320x -set filename:fname "S%t" +adjoin "%[filename:fname].png"

>montage SR*.png -tile 1x1 -geometry +0+0 A-Superes.gif





I see no differences (use 1 Kelvin for High/Low)
there are the same artefacts and not the mystery grain like in your images




« Last Edit: November 19, 2014, 02:42:56 pm by tomas123 »
 

Offline devilmastah

  • Contributor
  • Posts: 15
  • Country: nl
    • My blog (which i should update more often)
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #39 on: November 19, 2014, 04:21:59 pm »
:palm:   Dear Mr devilmastah , clutch can't crack flir one app  “error: Cannot crack ARMV7 portion of fat binary. error: Could not crack binary  Failed. "  and  the data of original rosebud can't match your description.

What ios version are you on? And which version of clutch, i use version 1.4.7 on ios 7.1.2.
Ios 8 changed a lot and clutch is broken on 8 or higher!

@Tomas,
Maybe it sees the difference because my app is fully decrypted and all files are decrypted, i see a huge difference and also see difference when changing values in tha SuperResDenoise. It also reads that file in the app.
What do you do in flir tools for your pictures, mine where just standard pictures with the msx turned off ?

General:
Has anybody upgraded the firmware?
If yes are there changes?
« Last Edit: November 19, 2014, 04:23:41 pm by devilmastah »
 

Offline vincentwrath

  • Contributor
  • Posts: 11
  • Country: cn
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #40 on: November 19, 2014, 04:46:26 pm »
:palm:   Dear Mr devilmastah , clutch can't crack flir one app  “error: Cannot crack ARMV7 portion of fat binary. error: Could not crack binary  Failed. "  and  the data of original rosebud can't match your description.

What ios version are you on? And which version of clutch, i use version 1.4.7 on ios 7.1.2.
Ios 8 changed a lot and clutch is broken on 8 or higher!

@Tomas,
Maybe it sees the difference because my app is fully decrypted and all files are decrypted, i see a huge difference and also see difference when changing values in tha SuperResDenoise. It also reads that file in the app.
What do you do in flir tools for your pictures, mine where just standard pictures with the msx turned off ?

General:
Has anybody upgraded the firmware?
If yes are there changes?

thanks, mine are  ios 7.1.1 and clutch 1.2.4, now I know where the problem is and I have upgrade flir 1 firmware, only thing get my attention is the time of reading temperature before manual calibration is largely reduced,  need to calibrate more often.

one more thing, I opened flir tool app and find 10 palettes they are almost the same compared to these from flir one app, then I add lava...3 new palettes. these two app share too much the same, too much need to be found.
 

Offline Starman

  • Contributor
  • Posts: 12
  • Country: ca
  • It's Just Magic
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #41 on: November 20, 2014, 01:30:27 am »
I upgraded the firmware in my Flir One, and i don't really notice any difference in operation.
The big plus of the upgrade is that i only need one usb cable to charge both the Flir One and the iphone, and dont need to seperate the pair any longer  :-+ :-+
 

Offline vincentwrath

  • Contributor
  • Posts: 11
  • Country: cn
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #42 on: November 20, 2014, 05:37:51 am »

@devilmastah     temperature range unlocked !  thank you very much.
 

Offline tomas123Topic starter

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #43 on: November 20, 2014, 08:58:53 am »
@devilmastah     temperature range unlocked !  thank you very much.

Hint for non jailbreaker for unlocked  temperature range:

- use the crosshair in the "Flir One CloseUp" App
or
- open your image from the camera roll with the "Flir Tools" App
« Last Edit: November 20, 2014, 09:01:48 am by tomas123 »
 

Offline tomas123Topic starter

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #44 on: November 20, 2014, 11:27:38 am »
I upgraded the firmware in my Flir One, and i don't really notice any difference in operation.

I can confirm it.  No drawbacks with FW 1.0.9 (sensitivity and resolution).
Charging the Iphone with a micro usb cable is great.
« Last Edit: November 20, 2014, 01:56:03 pm by tomas123 »
 

Offline devilmastah

  • Contributor
  • Posts: 15
  • Country: nl
    • My blog (which i should update more often)
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #45 on: November 20, 2014, 01:44:23 pm »
@devilmastah     temperature range unlocked !  thank you very much.

Nice, newer clutch was the solution then ?
I updated my post to mention that
« Last Edit: November 20, 2014, 06:00:47 pm by devilmastah »
 

Offline devilmastah

  • Contributor
  • Posts: 15
  • Country: nl
    • My blog (which i should update more often)
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #46 on: November 20, 2014, 10:36:41 pm »
I now have the flir 1.0.9 firmware update pkg.
Lets see what that contains  :-DD

now i just need to find a way to depkg the file
« Last Edit: November 20, 2014, 11:09:39 pm by devilmastah »
 

Offline Starman

  • Contributor
  • Posts: 12
  • Country: ca
  • It's Just Magic
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #47 on: November 26, 2014, 02:57:08 am »
Hello

Sorry if this might be off topic.

Someone has made another thermal camera using a Lepton sensor http://hackaday.com/2014/11/24/simple-thermal-imager-with-a-lepton-module/

Also the Flir One has been reduced in price to $249 ! (Apple canada), and the groupget price for the Lepton module has been reduces to $207.60  https://www.groupgets.com/campaigns/44-flir-lepton-thermal-imager-batch-3-reduced-price

And Flir are selling the "innards" of their Lepton demo camera for $150 (without Lepton module) https://www.groupgets.com/campaigns/43-flir-lepton-demo-camera-batch-1
 

Offline tomas123Topic starter

  • Frequent Contributor
  • **
  • Posts: 832
  • Country: de
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #48 on: November 26, 2014, 10:43:53 am »
interesting experiment:

Testing the Accuracy of the FLIR One
http://www.wired.com/2014/09/testing-accuracy-flir-one/

Unfortunately the author doesn't know the problems of measuring fluids (thermal emittance)
Better to stick a label on the glas with a known thermal emittance and keep the water temperature constant for a while.

the result is amazing good

Offline leoibb

  • Contributor
  • Posts: 27
  • Country: gb
Re: Flir One Thermal imaging camera teardown and hacks
« Reply #49 on: January 27, 2015, 06:25:53 pm »
Not sure this is the right place but is there anyway to have a live feed on to smartphone from flir e4. Is there a #dongle. To go in usb port of flir . Also I have manual temperature but would like to tighten the scale the minimum difference is 2 I would like it to be smaller also the heighest is 280 can that be higher too ?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf