# Calibration Factory Reset

This example shows how to perform a factory reset on the device's calibration data. This operation removes any user-applied
calibration and restores the device to its original factory calibration settings.

## Similar samples

 * [Calibration Flash](https://docs.luxonis.com/software-v3/depthai/examples/calibration/calibration_flash.md)
 * [Calibration Load](https://docs.luxonis.com/software-v3/depthai/examples/calibration/calibration_load.md)
 * [Calibration Dump](https://docs.luxonis.com/software-v3/depthai/examples/calibration/calibration_dump.md)

## Demo

Example script output showing successful factory reset:

```bash
~/depthai-core/examples/python/calibration$ python3 calibration_factory_reset.py
Factory reset calibration OK
```

If the operation fails, you might see:

```bash
~/depthai-core/examples/python/calibration$ python3 calibration_factory_reset.py
Factory reset calibration FAIL: [Error message]
```

## Setup

This example requires the DepthAI v3 API, see [installation instructions](https://docs.luxonis.com/software-v3/depthai.md).

## Source code

```python
#!/usr/bin/env python3

import depthai as dai

device = dai.Device(dai.UsbSpeed.HIGH)
try:
    device.factoryResetCalibration()
    print(f'Factory reset calibration OK')
except Exception as ex:
    print(f'Factory reset calibration FAIL: {ex}')
```

### Need assistance?

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