Lepton Web Streamer

2,038 views
Skip to first unread message

Anonymous Coward

unread,
Jul 30, 2015, 1:29:54 AM7/30/15
to Flir Lepton

 

 

simple single threaded raspberry pi webserver for displaying streaming

output via firefox and chrome browser similar to a security

web camera but for the flir lepton module. (only single user)

 

Uses Mjpeg streaming which is semi-realtime (no streaming).



 

Does not work with Internet Explorer.

 

Once unzipped.

 

sudo python web.py

 

starts a listener on port 8080 of your pi.

 

Access via firefox

 

http://YourRaspberryIpAddress:8080 from your client machine (ie where your browser is located).

 

 

For chrome you will need to open the ChromeOnly.html and edit your

raspiberry ip address into it.  And then open the chromeonly.html from your desktop

as chrome needs additional help in working but it can work.

 

 

The exe's are compiled with

 

Raspberry pi b+ (512 meg edition) and left for your convenience.

 

Wiring of the lepton is /dev/spidev0.1 which is ce1 (pin 26) ?

 

Uses python and pil so you will have to have those installed.

 

For other Models of pi assumed you can just remake the source code from the sub directories.

 

/agcenable

/frame

 

run the command

 

make

 

in each of the above directories, should result in new compiled version for your particular pi version

 

 

Most of the code is original pure engineering with some glue logic.  The only real difference is agc

enable/disable in the Lepton_I2C.cpp module.

 

 

Im sure it can be made better but its food for thought.

 

 

Works well, allows me to walk around with nexus tablet and view output from battery

packed pi with wifi adapter.

 

You can resize automatically the image etc.  Means you no longer need an output

on the pi module as previously i was using a adafruit tft module.

 

 

 

Cheers and good luck.

 

 

WebView.tgz

Steve Gulick

unread,
Jul 31, 2015, 4:22:57 PM7/31/15
to Flir Lepton, speed...@gmail.com
Thank you so much for this! It is just what I needed and works great!

Thanks again - Steve
Message has been deleted
Message has been deleted
Message has been deleted

Chris Price

unread,
Apr 19, 2016, 4:24:20 AM4/19/16
to Flir Lepton
Hi there,

I am attempting to use your code but I think I am making some crucial error somewhere. I have run the make command in both of the .exe s you mentioned. However when I try to run the python code I just get the error that image does not exist. What am I missing? Do i need to move the python code somewhere else? Do I need to run the make files for the lepton code?

Any help would be much appreciated!!


Thanks,
Chris

Anonymous Coward

unread,
Apr 29, 2016, 11:44:19 PM4/29/16
to Flir Lepton
the python script loops around running the frame.exe program which drops a file in your

/run/shm/  directory

called Numpey.dat


So in order to diagnose the issue

Run
sudo ./agcenable.exe

and then run

sudo ./frame.exe

then look in the directory
/run/shm/ 

see if Numpey.dat file was created at this point.

If not try and determine why /run/shm dosnt exist.  Or tell me exact error message.

What version of pi are you running on ?







Jake

unread,
May 16, 2016, 6:28:59 PM5/16/16
to Flir Lepton
I probably had the same problem as Chris, I'm running on a pi 3. The directory /run/shm/ was not created automatically. Got this error:

pi@raspberrypi:~/webview $ sudo python web.py

Traceback (most recent call last):

  File "web.py", line 7, in <module>

    import Image

ImportError: No module named Image


Tried this and it worked:

sudo apt-get install python-imaging python-imaging-tk


Cheers
Jake

muhammad hashir

unread,
Nov 2, 2016, 7:14:29 AM11/2/16
to Flir Lepton
getting this error when open web browser failed read:maybe noise on spi bus or incorrect wiring web.py

Anonymous Coward

unread,
Nov 7, 2016, 1:04:01 AM11/7/16
to Flir Lepton


On Thursday, 3 November 2016 00:14:29 UTC+13, muhammad hashir wrote:
getting this error when open web browser failed read:maybe noise on spi bus or incorrect wiring web.py

Have you check your wiring ?

Does it work with anything else ?

Is your lepton wired to /dev/spidev0.1

H.R Sim

unread,
May 30, 2017, 8:19:47 AM5/30/17
to Flir Lepton
Anonymous coward!

Your work is very good!

However, it was a bit disappointing that it was impossible to use multiple threads using single thread.

So I modified the module you wrote a bit.

For the module you wrote, multiple connection was not possible because using a single thread.

So I modified the module a little using 'fork()' to enable multiple connections.

I hope my little contribution has helped someone.

 

2015년 7월 30일 목요일 오후 2시 29분 54초 UTC+9, Anonymous Coward 님의 말:
Reply all
Reply to author
Forward
0 new messages