
Moduł kamery termowizyjnej o wysokiej rozdzielczości dla Raspberry Pi: Kompletny przewodnik integracji Edge AI
24 czerwca 2026
Kompletny przewodnik po integracji modułu kamery termowizyjnej: Rozwiązania 384x288 dla dronów, Raspberry Pi i projektów OEM B2B
1 lipca 2026Moduł kamery termowizyjnej USB o wysokiej rozdzielczości dla Raspberry Pi: Przewodnik integracji 640x512
Oto sedno: jeśli próbujesz wdrożyć termowizję wysokiej rozdzielczości na komputerach jednopłytkowych (SBC), takich jak Raspberry Pi, prawdopodobnie natknąłeś się na jakąś przeszkodę. Wczesne eksperymenty z matrycami termopil I2C o niskiej rozdzielczości sprawdzały się w projektach hobbystycznych, ale nowoczesne zastosowania przemysłowe wymagają poważnego sprzętu. Mówimy o wysokiej czułości termicznej (NETD ≤ 50 mK), szybkich klatkach na sekundę i gęstej rozdzielczości przestrzennej. Ten przewodnik to kompletny, praktyczny podręcznik integracji systemu dla inżynierów sprzętu, specjalistów ds. badań i rozwoju oraz architektów oprogramowania, którzy składają moduł kamery termowizyjnej usb dla raspberry pi. W naszym sklepie wiemy, że sukces zależy od zrozumienia fizyki, wyboru odpowiedniego interfejsu, dopasowania optyki i pisania wydajnych potoków oprogramowania. Omówimy fizykę niechłodzonych czujników długofalowej podczerwieni (LWIR), porównamy szczegóły techniczne interfejsów USB/UVC i MIPI CSI-2, przeanalizujemy wybór obiektywów i przejdziemy przez gotowy do użycia potok Pythona wykorzystujący sterowniki Linux V4L2 i OpenCV.
Spis treści
- 👉 Fizyka niechłodzonych czujników mikrobolometrycznych LWIR
- 👉 Integracja USB vs. MIPI dla Raspberry Pi
- 👉 Kryteria wyboru optyki i obiektywów
- 👉 Specyfikacje techniczne i wybór produktu
- 👉 Integracja oprogramowania: V4L2, OpenCV i Python SDK
- 👉 Zaawansowane przetwarzanie obrazu: mapowanie radiometryczne i NUC
- 👉 Wdrożenia przemysłowe w terenie
- 👉 FAQ – szczegółowe zagadnienia techniczne
Fizyka niechłodzonych czujników mikrobolometrycznych LWIR
Aby zbudować system termowizyjny, który faktycznie działa w terenie, trzeba dokładnie przyjrzeć się leżącej u jego podstaw fizyce. Standardowe przetworniki CMOS i CCD rejestrują odbite światło widzialne w zakresie od 400 nm do 700 nm. Termowizja jest inna. Obserwujemy pasmo długofalowej podczerwieni (LWIR), które rozciąga się od 8 µm do 14 µm.
Wszystko wokół nas – silniki, maszyny, płytki drukowane, ludzkie ciała – emituje energię cieplną jako promieniowanie ciała doskonale czarnego. Prawo Plancka i prawo przesunięć Wiena opisują to zachowanie. Kiedy obliczamy szczytową długość fali emisji, prawo Wiena upraszcza to:
λmax = 2897,8 µm·K / T
Jeśli twój cel ma normalną temperaturę pokojową 300 K (około 27°C lub 80°F), jego szczytowa emisja wypada dokładnie przy 9,66 µm. Leży to idealnie w centrum atmosferycznego okna transmisyjnego LWIR. To pasmo jest kluczowe, ponieważ gazy atmosferyczne, takie jak dwutlenek węgla i para wodna, nie pochłaniają tu dużo energii, co pozwala sygnałowi dotrzeć do czujnika z minimalnym tłumieniem.
Teoretyczne wskaźniki wydajności:
Tlenek wanadu (VOx) vs. amorficzny krzem (a-Si): W praktyce matryce rdzeni VOx są preferowane w zastosowaniach wysokiej klasy. Materiał VOx wykazuje lepszy temperaturowy współczynnik rezystancji (TCR) w porównaniu z krzemem. Minimalizuje to szum termiczny i daje czystszy surowy obraz. Wybór modułu kamery termowizyjnej wysokiej rozdzielczości 640x512 z niechłodzonym rdzeniem LWIR wykorzystującego podłoża VOx zapewnia, że surowe szczegóły celu pozostają ostre w szerokim zakresie warunków pracy.
Większość wytrzymałych komercyjnych modułów kamer wykorzystuje niechłodzone mikrobolometry. Wyobraź sobie matrycę maleńkich, zawieszonych mostków krzemowych, z których każdy pokryty jest materiałem czułym na temperaturę, takim jak tlenek wanadu. Gdy fotony LWIR trafiają w piksel, mostek nagrzewa się, zmieniając swoją oporność elektryczną.
Układ odczytu (ROIC) przepuszcza spolaryzowany prąd przez matrycę, mierzy te zmiany oporności i tworzy cyfrowy obraz termiczny. Dwie kluczowe zmienne decydują o tym, jak dobrze działa sensor:
- ⚙️ Rozstaw pikseli: Odległość między środkami sąsiednich pikseli. Zmniejszenie jej z 17 µm do 12 µm pozwala upakować matrycę 640x512 w kompaktowy, lekki rdzeń, który mieści się na małych dronach lub w ciasnych obudowach.
- ⚙️ NETD (Równoważna szumowo różnica temperatur): To jest twój wskaźnik sygnału do szumu. Określa najmniejszą różnicę temperatur, jaką kamera może rozróżnić. Jeśli wykonujesz diagnostykę wymagającą szczegółowości, potrzebujesz NETD ≤40 mK lub ≤50 mK. Wyższe wartości sprawiają, że obraz wygląda jak stare zakłócenia telewizyjne.

Integracja USB vs. MIPI dla Raspberry Pi
Podczas integracji wysokiej klasy rdzenia termicznego z Raspberry Pi stajesz przed kluczowym wyborem: interfejs USB (protokół UVC) czy natywny MIPI CSI-2?
Interfejs USB (protokół UVC)
Moduły USB opierają się na standardowym mikrokodzie USB Video Class (UVC) działającym na wbudowanym mikrokontrolerze lub FPGA. Układ pakuje surową klatkę z ROIC do formatu cyfrowego (YUYV lub surowa 16-bitowa skala szarości) i przesyła ją przez magistralę USB.
Dużą zaletą jest tutaj łatwość użycia. Linux od lat ma natywne uvcvideo sterowniki wbudowane w jądro. Podłącz moduł, a natychmiast pojawi się jako /dev/video0. Żadnych niestandardowych nakładek device-tree, błędów kompilacji ani problemów z dopasowaniem jądra. Możesz przenieść tę samą kamerę USB z Raspberry Pi 4 na Pi 5 lub standardowy przemysłowy komputer x86 z Linuxem bez zmiany ani jednej linii kodu. Jaki jest kompromis? USB wprowadza nieco większe opóźnienia (zwykle dodatkowe 10 ms do 30 ms) i zużywa odrobinę więcej cykli CPU ze względu na wymagania parsowania sterownika kontrolera hosta.
Interfejs MIPI CSI-2
MIPI CSI-2 to opcja o wysokiej wydajności. Ten interfejs omija pośrednie mikrokontrolery, przesyłając surowe bufory klatek szeregowych bezpośrednio do Video Core ISP układu SoC Raspberry Pi lub do pamięci RAM przez DMA.
Jeśli projektujesz automatyczne systemy śledzenia lub lekkie urządzenia zasilane bateryjnie (takie jak gimbale dronów), gdzie liczy się każda milisekunda i miliwat, MIPI jest standardowym wyborem. Oferuje niskie opóźnienia i minimalne obciążenie CPU.
Wadą jest sztywność sprzętowa. Musisz kompilować nakładki device-tree (.dtbo) specyficzne dla dokładnej wersji twojego jądra. Jeśli zaktualizujesz system operacyjny, potok kamery może przestać działać, dopóki sterownik nie zostanie załatany. Połączenia fizyczne są również delikatne; masz do czynienia z kruchymi taśmami elastycznymi lub niestandardowymi wiązkami mikro-koncentrycznymi. Jeśli prowadzisz je przez ciasne złącze obrotowe, wymagane są specjalistyczne zespoły wiązek wysokiej prędkości od ekspertów takich jak Przewód mikrowspółosiowy męski , aby utrzymać sygnały ekranowane i czyste.
Kryteria wyboru optyki i obiektywów
W przeciwieństwie do standardowych kamer, które używają tanich szklanych lub plastikowych soczewek, konstrukcje LWIR wymagają specjalistycznych materiałów przepuszczających podczerwień. Standardowe szkło borokrzemowe jest całkowicie nieprzezroczyste dla promieniowania LWIR. Zamiast tego używamy elementów z germanu (Ge), krzemu (Si) lub formowanego szkła chalkogenidkowego.
| Materiał | Współczynnik załamania (n @10µm) | Kluczowe cechy inżynieryjne |
|---|---|---|
| German (Ge) | ~4.0 | Doskonałe właściwości transmisyjne w paśmie 8-14µm; drogi; doświadcza termicznego dryfu ostrości w granicznych warunkach pracy. |
| Szkło chalkogenidkowe (stopy As-Se-Ge) | ~2.5 to 2.8 | Highly moldable optics allowing complex geometries; minimal thermal focal drift; highly cost-effective index of refraction. |
When pairing a lens with your sensor, you need to calculate the spatial resolution. This is represented by the Instantaneous Field of View (iFOV) which tells you the physical field area a single pixel resolves at a given working distance:
iFOV = Pixel Pitch (µm) / Focal Length (mm)
Let's calculate this using a 640x512 resolution module with a 12 µm pixel pitch and a standard 9mm focus lens:
iFOV = 12 μm / 9 mm ≈ 1.33 mrad
This means at a range of 1 meter, each individual pixel resolves a physical square of 1.33 mm. At a distance of 100 meters, that footprint expands to 133 mm (about 5.2 inches). If you are looking for localized anomalies on utility poles or wind turbines, a target must cover at least 3x3 pixels to ensure reliable measurement. This makes focal length selection critical before deploying your hardware.
For demanding applications, precision-molded chalcogenide lenses from technology leaders like LightPath Technologies provide high light transmission while maintaining focus across wide temperature swings. This minimizes the need for continuous software focus corrections during outdoor operation.
Specyfikacje techniczne i wybór produktu
For hardware builds on the Raspberry Pi architecture, we offer two industrial-grade uncooled microbolometer sensor modules. One is designed for plug-and-play USB deployment, and the other is a native MIPI module built for direct, low-latency interfacing.
Product 1: Uncooled LWIR USB Mini 640*512 Thermal Imaging Camera Core Module For Drones Similar To DJI
This mini uncooled infrared thermal imaging module delivers sharp, detailed performance in an ultra-compact form factor. It is ideal for drone payloads and remote industrial monitoring systems.
Key Technical Specifications:
| Form Factor / Size | Ultra-miniature 21mm * 21mm footprint |
| Lens Options (Focal Length) | 5mm / 9mm / 13mm / 18mm / 35mm / 50mm / 75mm / 100mm / 150mm selections |
| Opcje rozdzielczości | High-density 640x512 matrix (with 640x480 crop compatibility) |
| Integration Compatibility | Robust structural sealing, thermal stability, standard UVC compliant over USB |
Product 2: Uncooled Infrared Mipi 640 384 256 9mm Thermal Imaging Camera Module For Drones
The Mini2 series MIPI thermal imaging module streams raw thermal data with minimal latency. It is optimized for direct processing loops and lightweight aerial systems.
Key Technical Specifications:
| Primary Resolution | 640x512 active pixel matrix (with 384 and 256 structural options) |
| Default Optics | 9mm high-quality Germanium focal lens configuration |
| Hardware Interface | Direct MIPI CSI-2 signaling (optimized for minimal latency and direct hardware processing) |
| Imaging Profile | Sharp and crisp thermal image presentation, lightweight design for drones and aerial platforms |
Integracja oprogramowania: V4L2, OpenCV i Python SDK
Let's get our hands dirty with some code. To pull raw, uncompressed frames from a UVC thermal camera on a Raspberry Pi, we use the standard Linux Video4Linux2 (V4L2) driver.
Step 1: Check the System Properties
Before writing code, verify that the OS sees your camera. Plug the camera in and run:
# Install v4l2 utility toolkit sudo apt-get update && sudo apt-get install -y v4l-utils # List all connected video units v4l2-ctl --list-devices # Query supported resolution, formats, and frame-rate configurations v4l2-ctl -d /dev/video0 --list-formats-ext
Look for frame formats like YDUV, YUYV, or direct 16-bit greyscale (labeled as Y16 lub GREY). If your pipeline needs direct radiometric measurements, the raw 16-bit format is what you want.
Step 2: Real-World Multithreaded Python Capture
If you call VideoCapture.read() in a single-threaded Python loop, your frame rate will lag. In the shop, we run the sensor capture in a dedicated background thread to prevent blocking. This keeps the camera pipeline steady while you run heavy computer vision tasks on the main thread.
"""
RPi LWIR Thermal Acquisition and Multi-Threaded Frame Buffer Pipe
Optimized for 640x512 Uncooled USB Camera Cores.
"""
import cv2
import numpy as np
import time
import threading
class USBThermalCamera:
def __init__(self, device_index=0, width=640, height=512):
self.device_index = device_index
self.width = width
self.height = height
self.cap = None
self.frame = None
self.running = False
self.lock = threading.Lock()
def initialize_capture(self):
# Open video device via standard V4L2 utility backend
self.cap = cv2.VideoCapture(self.device_index, cv2.CAP_V4L2)
if not self.cap.isOpened():
raise RuntimeError(f"Failed to access V4L2 sensor node: /dev/video{self.device_index}")
# Bind payload stream resolutions to the requested parameters
self.cap.set(cv2.CAP_PROP_FRAME_WIDTH, self.width)
self.cap.set(cv2.CAP_PROP_FRAME_HEIGHT, self.height)
# Verify active driver configuration values
active_w = int(self.cap.get(cv2.CAP_PROP_FRAME_WIDTH))
active_h = int(self.cap.get(cv2.CAP_PROP_FRAME_HEIGHT))
print(f"[INFO] Camera pipeline running at target configuration: {active_w}x{active_h} px")
def start_grab_thread(self):
self.running = True
self.thread = threading.Thread(target=self._update_loop, daemon=True)
self.thread.start()
def _update_loop(self):
while self.running:
ret, raw_frame = self.cap.read()
if not ret or raw_frame is None:
time.sleep(0.005)
continue
with self.lock:
self.frame = raw_frame.copy()
def grab_latest_frame(self):
with self.lock:
if self.frame is None:
return None
return self.frame.copy()
def terminate_pipeline(self):
self.running = False
if hasattr(self, 'thread'):
self.thread.join(timeout=1.0)
if self.cap:
self.cap.release()
print("[INFO] Thermal core pipeline shutdown gracefully.")
if __name__ == "__main__":
cam = USBThermalCamera(device_index=0, width=640, height=512)
try:
cam.initialize_capture()
cam.start_grab_thread()
print("[PROCESS] Streaming initialized. Press 'Q' to safely exit.")
while True:
frame = cam.grab_latest_frame()
if frame is None:
time.sleep(0.01)
continue
# Convert incoming YUYV channel arrays to basic greyscale structures
gray_frame = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
# Apply dynamic colormaps to visually enhance thermal variance
# COLORMAP_INFERNO outputs excellent human eye thermography separation
thermal_color = cv2.applyColorMap(gray_frame, cv2.COLORMAP_INFERNO)
# Identify absolute thermal peaks within the target frame space
min_val, max_val, min_loc, max_loc = cv2.minMaxLoc(gray_frame)
# Draw tracking overlay representing the peak thermal zone
cv2.circle(thermal_color, max_loc, 8, (0, 0, 255), 2)
cv2.putText(thermal_color, f"PEAK: {max_val}", (15, 30),
cv2.FONT_HERSHEY_SIMPLEX, 0.6, (0, 255, 0), 2)
cv2.imshow("LWIR 640x512 Realtime Core Pipeline", thermal_color)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
except Exception as err:
print(f"[FATAL EXCEPTION]: {err}")
finally:
cam.terminate_pipeline()
cv2.destroyAllWindows()
Zaawansowane przetwarzanie obrazu: mapowanie radiometryczne i NUC
Raw video data is just the beginning. Setting up a professional thermal monitoring solution requires two advanced processing steps: korekcji niejednorodności (NUC) i Radiometric Mapping.
korekcji niejednorodności (NUC)
Because microbolometer pixels are tiny and suspended, their raw electrical properties shift over time as the camera body warms up. This drift results in a noisy, grainy image—an effect called "spatial pattern noise."
To fix this, high-performance camera cores drop a small internal mechanical shutter in front of the optical sensor for a fraction of a second. This presents a perfectly uniform thermal target to the array. The internal processor measures the raw pixel values against the average, generating an offset correction map. While our modules can run this calibration automatically, developers working with precise radiometric systems often trigger this correction manually via serial commands to avoid interruptions during critical recordings.
Radiometric Temperature Calibration
For industrial temperature measurement, you need a radiometric setup. Instead of rendering standard 8-bit visual values, the module exports a raw 16-bit integer representing the actual ADC intensity of each pixel. High-performance modules typically use a standard linear scale:
Ttarget = (Pixel Value × Scale Factor) - Offset
If your module uses a standard 0.01K scaling factor, transforming raw pixel readings into Celsius or Kelvin is straightforward:
T (Kelvin) = ADC_Pixel_Value × 0.01
T (Celsius) = (ADC_Pixel_Value × 0.01) - 273.15
In real-world applications, you must also adjust for **Target Emissivity (ε)**. This value describes how efficiently an object radiates heat compared to a theoretical blackbody (where ε = 1.0). If you are measuring polished metals like electrical copper or aluminum bushings, their emissivity can drop to 0.15 or less. This means the raw sensor will pick up ambient heat reflections rather than the actual temperature of the metal. To get accurate readings, you must adjust your post-processing math to correct for these reflections:
def calculate_absolute_temp(pixel_value, emissivity=0.95, t_ambient_k=298.15):
# Convert standard sensor output straight to Kelvin
t_apparent_k = pixel_value * 0.01
# Correct for surface reflection properties
# Object energy = (Total Energy - Reflected Ambient) / Emissivity
t_corrected_k = ((t_apparent_k ** 4 - (1.0 - emissivity) * (t_ambient_k ** 4)) / emissivity) ** 0.25
return t_corrected_k - 273.15
Wdrożenia przemysłowe w terenie
Here's how engineers are using these integrated 640x512 microbolometer boards in field deployments:
A. UAV Aerial Inspection and Drone Mapping
By mounting these lightweight thermal cores onto small drones, utility operators can conduct automated inspections of solar farms, wind turbine blades, and high-voltage transmission lines.
Using compact setups like the Raspberry Pi Compute Module 4 (CM4), flight teams can run real-time image stabilization and target georeferencing without adding excessive weight to the airframe, preserving flight times.
B. Industrial Automation & Continuous Thermal Monitoring
Inside manufacturing plants, machinery failures can cause costly downtime. Engineers deploy Raspberry Pi boards inside sealed, industrial enclosures to continuously monitor conveyor bearings, transformers, and physical assets like boilers.
These setups watch for temperature spikes based on standard do czego służy kamera termowizyjna profiling guidelines. If a component exceeds safe limits, the Raspberry Pi can trigger alerts directly over industrial field networks using protocols like Modbus TCP or MQTT.
C. Perimeter Security and Edge Intelligence
While standard cameras struggle in complete darkness, fog, or heavy vegetation, LWIR sensors excel. Combining a high-resolution 640x512 thermal core with lightweight Edge AI models (like TFLite YOLOv8) on a Raspberry Pi 5 allows for highly reliable intruder detection. This setup can spot human silhouettes hundreds of meters away while ignoring background noise like blowing branches and wind.
If you're looking for basic hardware setups and diagnostic tools, check out our general thermal integration guide. It covers structural enclosures and protective crystal windows for harsh, dusty environments.

FAQ – szczegółowe zagadnienia techniczne
Why should I upgrade from an I2C sensor like MLX90640 to a USB thermal camera module for Raspberry Pi?
Then there's the speed. I2C is a slow, serial interface. Even when overclocked, you're looking at a sluggish 4 to 8 Hz. The USB camera streams at a smooth 25 Hz over a native high-speed bus using standard UVC protocols.
Finally, there's resolution quality. Low-cost thermopile arrays suffer from high sensor noise, meaning their NETD is often around 100 mK to 150 mK. A professional VOx microbolometer core delivers an NETD ≤ 50 mK. This means you can resolve fine temperature differences down to 0.05°C, which is essential for details like tracing heat flow on circuitry or locating fluid leaks behind drywall.
How do I stream real-time thermal video on Raspberry Pi OS using your module?
uvcvideo kernel driver included in Raspberry Pi OS releases like Debian Bookworm or Bullseye. No custom drivers or kernel patches are required.
Once connected, you can capture frames directly in Python using standard OpenCV calls. To avoid lag, we recommend grabbing frames on a background thread and feeding them to your main application, where you can apply false-color maps like INFERNO or JET for clear visualization.
What is the active power consumption and thermal dissipation requirement for continuous operation?
If you're housing the camera inside a sealed enclosure or drone pod, recommend mounting it directly to an aluminum bulkhead or chassis using thermal tape or brass standoffs. Keeping the body of the module cool minimizes how often the internal NUC shutter needs to cycle, ensuring a more stable, uninterrupted video feed.
Can I perform absolute temperature measurement (radiometry) using these uncooled LWIR camera modules?
By applying our core's calibration offsets in your code, your program can convert those raw ADC values into actual Kelvin or Celsius readings in real time. Once you compensate for surface emissivity, the system delivers an absolute accuracy of within ±2°C.
📚 Piśmiennictwo i dalsze lektury
- ✅ Standard branżowy: LightPath Technologies
- ✅ System Physical Buses: Przewód mikrowspółosiowy męski
- ✅ Powiązany przewodnik: High-Resolution 640x512 Thermal core integration











