FLIR Lepton module usage on APF & OPOS
From ArmadeusWiki
Page under construction... Informations on this page are not guaranteed !!
FLIR Lepton(tm) thermal camera have been tested on APF6 and OPOS6UL platforms. This page detail how to give it a quick try.
Contents
Hardware
- you can use devt kit bought from sparkfun or digikey. Don't forget to buy breakout board AND the sensor ;-).
- only 80x60 models have been tested yet
Connecting Lepton breakout board to your Dev
Software
- Even if initially developped for platforms like RaspberryPi or BeagleBone, the following tools are able to run on APF/OPOS:
https://github.com/groupgets/LeptonModule
- flirpi: it converts and shows Lepton data to framebuffer
- raspberry_capture: it can capture Letpon frames and store it as images or raw file
- v4l2lepton: it takes data from Lepton, converts them to RGB and send them to v4l2loopback device. This way Lepton is directly usable with V4L compatible applications like gstreamer.
All these software are using spidev interface to get data from Lepton, so before using them you have to:
# modprobe spidev
v4l2lepton
- First you have to load v4l2loopback kernel module:
# modprobe v4l2loopback
- It will create you a virtual video camera input in /dev/video0 (if you don't have another camera on your system). To check it:
# v4l2-ctl -d /dev/video0 --all
- Then you can use this device as a normal camera. Example to display Lepton image on APF6Dev LCD:
# gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! "video/x-raw, format=(string)RGBA,framerate=(fraction)30/1" ! queue ! imxg2dvideosink