# 2. FLIR Lepton thermal camera software

When the installation of Raspbian is finished, it is time to install the FLIR Lepton thermal camera software. We are using Pure Engineering code to run the Lepton

* Now, you need to open the LXTerminal, where you will type your commands. Click in the icon showed in the picture below:

![](/files/-ML0sWJCANAZxDvUC9SA)

* When it is done, you need to enter the command below. It will open the configuration section for you.

```
sudo raspi-config
```

* You will see this windows:

![](/files/-ML0s_tg_cbobatrX6Bb)

* Go to “Advanced Options”.
* You need to activate the "SPI". For this, follow the instructions below:
* Select SPI
* You need to enable the SPI interface: click "YES"
* Click in "OK"

![](/files/-ML0seY7RBfYi33JAnHw)

![](/files/-ML0sqjJRG5QeWotHcVD)

* You need that your SPI Kernel Module to be loaded by default, therefore click "YES" .
* Click in "OK"

![](/files/-ML0szeTSGq5W-Z4djs9)

* After this, do the same to I2C.
* Now, select finish and reboot the raspberry pi you will be asked if you want to reboot your Raspberry Pi. Do it.
* Now, it is time to use the internet connection. You need to download the QT application( example codes from Pure Engineering). Therefore, make sure that you have a good internet connection.
* For the next steps, enter the following command:

```
sudo apt-get install qt4-dev-tools
```

* After this, you will be asked to enter with "y" or "n". Enter "y".
* Now go to the internet icon and this website: <https://github.com/PureEngineering/LeptonModule>
* When you open the website, click in “Download ZIP” (it is in the right side of your screen).
* Move your downloaded folder to the pi directory.
* Now unzip the zipped folder. Use the command:

```
unzip LeptonModule-master.zip 
```

* Now change the current directory to the folder "raspberrypi\_video" that is in the "LeptonModule-master" folder. Do that using the command:

```
cd /home/pi/LeptonModule-master/raspberrypi_video
```

* Now, you need to cd into the “LeptonSDKEmb32PUB” directory and run "make":

```
cd /home/pi/LeptonModule-master/raspberrypi_video/leptonSDKEmb32PUB
```

```
make
```

* After this, cd back to the “raspberrypi\_video” directory:

```
cd /home/pi/LeptonModule-master/raspberrypi_video
```

* Now, run:

```
qmake && make
```

* Your thermal camera is ready for use! To get it to work, run:

```
sudo ./raspberrypi_video
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://co-vision.gitbook.io/co-vision-eng/how-to-build/sw/flir-lepton-thermal-camera-software.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
