此页面由 AI 自动翻译。查看英文原版
DepthAI
软件栈

本页目录

  • 类似示例
  • 演示
  • 设置
  • 源代码

校准恢复出厂设置

Supported on:RVC2RVC4
本示例演示了如何对设备的校准数据执行恢复出厂设置操作。此操作将移除所有用户应用的校准,并将设备恢复到原始的出厂校准设置。

类似示例

演示

显示成功恢复出厂设置的示例脚本输出:
Command Line
1~/depthai-core/examples/python/calibration$ python3 calibration_factory_reset.py
2Factory reset calibration OK
如果操作失败,您可能会看到:
Command Line
1~/depthai-core/examples/python/calibration$ python3 calibration_factory_reset.py
2Factory reset calibration FAIL: [Error message]

设置

此示例需要 DepthAI v3 API,请参阅 安装说明

源代码

Python
GitHub
1#!/usr/bin/env python3
2
3import depthai as dai
4
5device = dai.Device(dai.UsbSpeed.HIGH)
6try:
7    device.factoryResetCalibration()
8    print(f'Factory reset calibration OK')
9except Exception as ex:
10    print(f'Factory reset calibration FAIL: {ex}')

需要帮助?

请前往 Discussion Forum 获取技术支持或提出您可能有的任何其他问题。