Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ LePi Public
forked from cosmac/LePi

LePi is a lightweight library for FLIR Lepton (2, 2.5 and 3) and Raspberry pi.

License

Notifications You must be signed in to change notification settings

dancoen/LePi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LePi [lee-pahy]

Copyright (c) 2017 Andrei Claudiu Cosma

LePi is a lightweight library for FLIR Lepton (2, 2.5 and 3) and Raspberry Pi. The Lepton version will be automatically detected at run time. The SPI port can be specified in the app, by default the LePi apps are using SPI0.

Please make sure that the sensor is properly wired. Here is an example for Rapberry Pi2:

  • SCL: Pin#5
  • SDA: Pin#3
  • VIN: Pin#1
  • GND: Pin#25
  • CLK: Pin#23
  • MISO: Pin#21
  • MOSI: Pin#19
  • CS: Pin#24

Dependecies

  • [REQUIRED] CMake:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential cmake pkg-config
tar zxvf bcm2835-1.52.tar.gz
cd bcm2835-1.52
./configure
make
sudo make check
sudo make install

You can follow these steps for installation https://www.pyimagesearch.com/2016/04/18/install-guide-raspberry-pi-3-raspbian-jessie-opencv-3/, or other tutorial that you find useful and easy to follow. I'm using OpenCV 3.3.0, but any version after 3.0.0 should be okay.

Note: The library can be built without OpenCV too. In that case, the demo apps will not be available. To do that, open the CMake file and comment out the following line add_subdirectory(app). I'm planning on writing an example that uses the librarry without OpenCV.

Build

LePi build is based on the CMake portable pre-build tool. Follow the next steps to build the library and the apps:

git clone https://github.com/cosmac/LePi.git
cd LePi
mkdir build
cd build
cmake ..
make

Run

LePi library comes with a set of integrated demo apps, that shows how to use the Lepton camera serial and parallel interface. Once the library is build, demo apps can be found in the install/bin folder. To run a demo app:

cd LePi/install/bin
sudo ./Player

Note: sudo is always required when you run an app communicating with the Lepton sensor

Other resources

About

LePi is a lightweight library for FLIR Lepton (2, 2.5 and 3) and Raspberry pi.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 86.9%
  • C++ 10.6%
  • CMake 2.5%