Similar samples
Demo
Command Line
1~/depthai-core/examples/python/calibration$ python3 calibration_dump.py
2 Is EEPROM available: True
3 User calibration: {
4 "batchName": "",
5 "batchTime": 1734532871,
6 "boardConf": "IR-C00M00-00",
7 "boardCustom": "",
8 "boardName": "NG9097",
9 "boardOptions": 7,
10 "boardRev": "R4M2E4",
11 "cameraData": [],
12 "deviceName": "",
13 "hardwareConf": "F1-FV01-BC001",
14 "housingExtrinsics": {
15 "rotationMatrix": [],
16 "specTranslation": {
17 "x": 0.0,
18 "y": 0.0,
19 "z": 0.0
20 },
21 "toCameraSocket": -1,
22 "translation": {
23 "x": 0.0,
24 "y": 0.0,
25 "z": 0.0
26 }
27 },
28 "productName": "OAK-D-PRO-W-POE",
29 "version": 7
30 ...
31 }
32 Factory calibration: {
33 ...
34 }Setup
Source code
PythonGitHub
1#!/usr/bin/env python3
2
3import depthai as dai
4import json
5
6device = dai.Device(dai.UsbSpeed.HIGH)
7print(f'Is EEPROM available: {device.isEepromAvailable()}')
8
9# User calibration
10try:
11 print(f'User calibration: {json.dumps(device.readCalibration2().eepromToJson(), indent=2)}')
12except Exception as ex:
13 print(f'No user calibration: {ex}')
14
15# Factory calibration
16try:
17 print(f'Factory calibration: {json.dumps(device.readFactoryCalibration().eepromToJson(), indent=2)}')
18except Exception as ex:
19 print(f'No factory calibration: {ex}')Need assistance?
Head over to Discussion Forum for technical support or any other questions you might have.