# Thermal

Thermal 节点允许从支持热成像传感器的 DepthAI 设备（[OAK
Thermal](https://docs.luxonis.com/hardware/products/OAK%2520Thermal.md)）中捕获原始及伪彩热成像帧。该节点支持运行时动态配置成像参数、平场校正（FFC）、增益模式和环境补偿。

该节点输出：

 * 每个像素的原始温度数据，FP16 格式，单位为摄氏度
 * 用于实时预览的可视化流（YUV422i 格式）

## 如何放置

#### Python

```python
pipeline = dai.Pipeline()
thermal = pipeline.create(dai.node.Thermal)
```

#### C++

```cpp
dai::Pipeline pipeline;
auto thermal = pipeline.create<dai::node::Thermal>();
```

## 输入和输出

## 功能示例

 * [热成像示例](https://docs.luxonis.com/software-v3/depthai/examples/rvc2/thermal/thermal.md)
 * [热成像十字准星示例](https://docs.luxonis.com/software-v3/depthai/examples/rvc2/thermal/thermal_crosshair.md)

## 参考

### dai::node::Thermal

Kind: class

Thermal node.

#### std::shared_ptr< ThermalConfig > initialConfig

Kind: variable

Initial config to use for thermal sensor.

#### Input inputConfig

Kind: variable

Input ThermalConfig message with ability to modify parameters in runtime. Default queue is non-blocking with size 4.

#### Output temperature

Kind: variable

Outputs FP16 (degC) thermal image.

#### Output color

Kind: variable

Outputs YUV422i grayscale thermal image.

#### Thermal()

Kind: function

#### Thermal(std::unique_ptr< Properties > props)

Kind: function

#### std::shared_ptr< Thermal > build(dai::CameraBoardSocket boardSocket, float fps)

Kind: function

Build with a specific board socket and fps.

#### CameraBoardSocket getBoardSocket()

Kind: function

Retrieves which board socket to use return: Board socket to use

#### void setFps(float fps)

Kind: function

#### DeviceNodeCRTP()

Kind: function

#### DeviceNodeCRTP(const std::shared_ptr< Device > & device)

Kind: function

#### DeviceNodeCRTP(std::unique_ptr< Properties > props)

Kind: function

#### DeviceNodeCRTP(std::unique_ptr< Properties > props, bool confMode)

Kind: function

#### DeviceNodeCRTP(const std::shared_ptr< Device > & device, std::unique_ptr< Properties > props, bool confMode)

Kind: function

### 需要帮助？

请前往 [OAKChina 官网](https://www.oakchina.cn/) 获取技术支持或解答您的任何疑问。
