RepositoryPythonUSUnited States
tomasz-lewicki

tomasz-lewicki/ai-thermometer

Fever screening with IR & RGB cameras and Deep CNNs

164stars
45forks
28issues
1views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: flir-lepton-purethermal

#1 Repository of the month

1
TINIX TRENDING·Topic: flir

#1 Repository of the month

1
TINIX TRENDING·Topic: flir-lepton

#1 Repository of the month

AI Thermometer

Contactless temperature mesurement using IR & RGB cameras and Deep CNN facial detection.

Normal temperature

Elevated temperature

What's new in v0.4

  • New facial detector (handles partial occlusion, e.g. with a mask)
  • Added IR camera drift compensation with an external blackbody

Hardware

To build this project you will need:

#PartlinkPrice (USD)
1Jetson Nano Dev Kitlink99
3FLIR Lepton 3.5 IR Cameralink199
4GroupGets Purethermal2 Modulelink99
2Raspberry Pi Camera Module V2.1link25
5Noctua cooling fanlink14
63D printed enclosurehttps://a360.co/3nmDML3-
total436

Enclosure (live model available from https://a360.co/3nmDML3 ): wireframe image

Quickstart

  1. Flash Nvidia Jetson Nano with the latest Nvidia JetPack. Update package manager
sudo apt update && sudo apt upgrade
  1. Build OpenCV >4.4. It is required for CUDA DNN support.
wget https://raw.githubusercontent.com/mdegans/nano_build_opencv/master/build_opencv.sh
chmod +x build_opencv.sh
./build_opencv.sh
  1. Build pytorch (instructions here)

  2. Download AI Thermometer

git clone --recursive https://github.com/tomek-l/ai-thermometer
cd ai-thermometer
  1. Run AI Thermometer
python3 main.py
  1. Optionally, 3D print & assemble the enclosure from https://a360.co/3nmDML3

Limitations

IR and RGB camera alignment.

The current way of calculating the correspondence between IR and RGB cameras is not ideal. Factors, such as the non-rigid mount of the sensor on the Raspberry Pi CMV2.1 don't help. I'm actively working on calibration code that takes into account the intrinsic parameters of both cameras, which should allow for obtaining a pixel-level correspondence between the imags.

FAQ/common issues:

  1. uvc_open error -3

Reason: Your current user does not have r/w access to the PureThermal USB device.

For a quick and dirty fix you can do do:

echo 'SUBSYSTEM=="usb",  ENV{DEVTYPE}=="usb_device", GROUP="plugdev", MODE="0664"' | sudo tee /etc/udev/rules.d/10-libuvc.rules 
sudo udevadm trigger

(this gives camera access to all users)

For a better, fine-grained permission setup, create a new group, give permissions to that group only and your user to the newly created group. You can read more here.

  1. Illegal instruction (core dumped)

Reason: The provided libuvc.so is compiled for AArch64. It is a custom version of libuvc that supports Y16 video format. If you're using different architecture, you will need to build the library from source:

git clone https://github.com/groupgets/libuvc
cd libuvc
mkdir build
cd build
cmake ..
make
cp libuvc.so ~/ai-thermometer/ir/libuvc_wrapper
  1. using sudo or getting permission denied

You don't need sudo to run the code in this repository 🙂

Previous versions

Version 0.2: Haar Cascade + FLIR Lepton 3.5 temp. measurement (~10FPS, CPU only)

Watch full video: https://www.youtube.com/watch?v=j9eo9Cs8J8I

Version 0.1: SSD (COCO) + FLIR Lepton 3.5 temp. measurement (~12FPS w/ GPU accel.)

Watch full video: https://www.youtube.com/watch?v=i2XMtshdjn8

Similar Projects

Discover other similar projects and AI models.

RepositoryTypeScript
maxritter/diy-thermocam

Build your own thermal camera: FLIR Lepton 3.5 or 3.1R, Teensy 4.1 and two ready-made boards, no soldering. Firmware and Studio for macOS, Windows and Linux.

1.2k
Nov 26, 2026
RepositoryC++
Ewenwan/MVision

机器人视觉 移动机器人 VS-SLAM ORB-SLAM2 深度学习目标检测 yolov3 行为检测 opencv PCL 机器学习 无人驾驶

8.8k
Jul 9, 2024
RepositoryShell
turing-machines/BMC-Firmware

Turing-pi BMC firmware

323
Sep 2, 2025
RepositoryC++
opencv/opencv

Open Source Computer Vision Library

91.8k
Nov 30, 2026
RepositoryPython
JaidedAI/EasyOCR

Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chinese, Arabic, Devanagari, Cyrillic and etc.

30.2k
Nov 13, 2026
RepositoryPython
Zeyi-Lin/HivisionIDPhotos

⚡️HivisionIDPhotos: a lightweight and efficient AI ID photos tools. 一个轻量级的AI证件照制作算法。

21.8k
Jul 3, 2026
RepositoryPython
vipstone/faceai

一款入门级的人脸、视频、文字检测以及识别的项目.

11.1k
Apr 16, 2020
RepositoryPython
nl8590687/ASRT_SpeechRecognition

A Deep-Learning-Based Chinese Speech Recognition System 基于深度学习的中文语音识别系统

8.4k
Apr 10, 2026
RepositoryPython
geeklee/srt-whiteboard-animation

将 SRT 字幕做成暖米黄纸张底的流式笔迹白板手绘动画 skill:mask 分区遮罩编排 + stream 连续笔迹(ink→color)。

6.0k
Jul 27, 2026