# Thermal

The Thermal node allows capturing both raw and colorized thermal frames from supported DepthAI devices equipped with a thermal
sensor ([OAK Thermal](https://docs.luxonis.com/hardware/products/OAK%2520Thermal.md)). The node supports dynamic runtime
configuration of imaging parameters, flat field correction (FFC), gain modes and ambient compensation.

This node outputs:

 * Raw temperature data per pixel as FP16 in °C
 * Visualization stream for live preview (YUV422i format)

## How to place it

#### Python

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

#### C++

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

## Inputs and Outputs

## Examples of functionality

 * [Thermal](https://docs.luxonis.com/software-v3/depthai/examples/rvc2/thermal/thermal.md)
 * [Thermal Crosshair](https://docs.luxonis.com/software-v3/depthai/examples/rvc2/thermal/thermal_crosshair.md)

## Reference

### 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

### Need assistance?

Head over to [Discussion Forum](https://discuss.luxonis.com/) for technical support or any other questions you might have.
