top of page

PureThermal 2 FLIR Lepton 3.5 Interfacing Python

Writer: Sooraj SSooraj S

Updated: Aug 18, 2021

The below mention steps are tested on Jetson Xavier and Linux machines.




The scripts provided include functions such as

  1. To stream radiometric thermal image

  2. Performing FFC manually

  3. To set various gain mode

  4. To set FFC in manual and auto mode.

Install software requirements

  1. Python 3

  2. OpenCV

  3. libuvc


To install and compile libuvc steps to follow

  1. git clone https://github.com/groupgets/libuvc

  2. sudo apt-get install cmake -y

  3. sudo apt-get install libusb-1.0-0-dev -y

  4. sudo apt-get install libjpeg-dev -y

  5. cd libuvc

  6. mkdir build

  7. cd build cmake .. make && sudo make install

  8. sudo ldconfig -v

  9. cd ../

The libuvc library is compiled and it should be tested before running the scripts

To test the compilation

Type python3 in terminal :

  1. Type python3 in the terminal and click enter

  2. console with python version opens

  3. from ctypes import *

  4. libuvc = cdll.LoadLibrary("libuvc.so")

If above steps runs without error your libuvc compilation is correct



Comments


Subscribe Form

Thanks for submitting!

  • LinkedIn

©2021 by soorajsknair. Proudly created with Wix.com

bottom of page