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

本页目录

  • Similar samples
  • Demo
  • Setup
  • Source code
Claude CodeCodexCursor
Luxonis 智能体工具包为你常用的编程智能体加载 Luxonis 上下文与技能,更快地基于 OAK 开发应用。
安装工具包

Calibration Factory Reset

最后更新
Supported on:RVC2RVC4
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

Demo

Example script output showing successful factory reset:
Command Line
1~/depthai-core/examples/python/calibration$ python3 calibration_factory_reset.py
2Factory reset calibration OK
If the operation fails, you might see:
Command Line
1~/depthai-core/examples/python/calibration$ python3 calibration_factory_reset.py
2Factory reset calibration FAIL: [Error message]

Setup

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

Source code

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}')

需要帮助?

请访问讨论论坛以获取技术支持或您可能有的任何其他问题。