(C) Copyright, 2026 G. Schaer.
This work is licensed under a GNU General Public License 3.0.
SPDX-License-Identifier: GPL-3.0-only
Lepton3.5_Purethermal3
Software to run a FLIR Lepton 3.5 mounted on a Groupgets Purethermal3 board running in Windows.
Installation
From PyPi (Recommended)
It is recommended that you use either Anaconda or Miniconda.
Run the commands below to create a fresh conda environment named lepton.
conda create -n lepton -y
conda activate lepton
Install pip in the environment.
conda install pip -y
Install lepton-pt
pip install lepton-pt
From Source
It is reccomended that you use either Anaconda or Miniconda.
Run the commands below to create a fresh conda environment named lepton.
conda create -n lepton -y
conda activate lepton
Install pip and git in the environment.
conda install pip git -y
Clone the Lepton3.5_Purethermal3 repository.
git clone https://github.com/GrayKS3248/Lepton3.5_Purethermal3.git
Navigate to the repository directory and install the package.
cd Lepton3.5_Purethermal3
pip install -e .
Usage
Streaming
After the Lepton is seated in the Purethermal board and connected to a device via a USB-C, activate the Conda environment in which this package is installed and start streaming the camera using the leprun command.
conda activate lepton
leprun
When you are finshed streaming, press the esc while the viewer window is active to terminate the streaming.
Recording
After the Lepton is seated in the Purethermal board and connected to a device via a USB-C, activate the Conda environment in which this package is installed and start streaming the camera using the leprun command and the -r flag.
conda activate lepton
leprun -r
The -r flag indicates that you want to record what is being streamed. All generated data is saved in a subdirectory of the directory Lepton_Recordings. Lepton_Recordings is found in the active directory. After the recording is terminated, data is rendered into a .mp4 video.
When you are finshed recording, press the esc while the viewing window is active to terminate recording. Note that it will take some time after the recording is terminated to render the captured video.
Other
You can use the -h flag to explore addtional flags and functionality.
leprun -h
Coding Examples
Example usage is given in the examples directory.
Lost Frames Every 3 Minutes
The FLIR Lepton camera uses automatic flat field correction (FFC) during operation to ensure image fidelity and prevent pixel drift. These automatic FFCs occur every 3 minutes and are predicated by a box reading "FFC" in the top left corner of the viewing window. They last approximately 2 seconds during which no thermal or telemetry data are transmitted by the camera resulting in dropped frames. This is unavoidable for proper Lepton function. Note the renderer automatically detects the dropped frames and locally adjusts the frame rate to maintain true playback speed.
Metadata
Release files for lepton-pt 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lepton_pt-1.0.1.tar.gz | 32.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lepton_pt-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 67.9 kB
Release files / lepton_pt-1.0.1.tar.gz
| Download URL | lepton_pt-1.0.1.tar.gz |
|---|---|
| Size | 32.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77444a746c8a3abca4ae151dcfc83ff02b647e9fe6f9df37739830f4923c14cc
|
|
BLAKE2b-256 checksum How to use checksums |
911a327ed0020d544b34292bdc09cff79363713557ef8cc020fd28cfa1591be3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / lepton_pt-1.0.1-py3-none-any.whl
| Download URL | lepton_pt-1.0.1-py3-none-any.whl |
|---|---|
| Size | 35.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
800082f467bfb83c5997f947b26369e35097c80680e5c63038d922aee2d02428
|
|
BLAKE2b-256 checksum How to use checksums |
828881a877e161a2e5fbc2b55bbe281f0ed9d25553d4d650a06d715d1e79a497
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|