From faf654e77e8b4b1b694100e5686b44bfa5f80007 Mon Sep 17 00:00:00 2001 From: MaticTonin Date: Tue, 21 Jul 2026 11:50:30 +0200 Subject: [PATCH] Add that default calibrate.py uses the stereoUseSpecTranslation = False --- calibrate.py | 6 ++++++ requirements.txt | 1 + resources/depthai_boards | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/calibrate.py b/calibrate.py index 85cac040f..a6282ab1f 100755 --- a/calibrate.py +++ b/calibrate.py @@ -1045,6 +1045,8 @@ def calibrate(self): self.args.squaresY, self.args.cameraMode, self.args.rectifiedDisp) # Turn off enable disp rectify + if status == -1: + raise RuntimeError(f"Calibration failed: {result_config}") if self.args.noInitCalibration or self.args.debugProcessingMode: calibration_handler = dai.CalibrationHandler() @@ -1150,6 +1152,10 @@ def calibrate(self): # print(calib_dest_path) eeepromData = calibration_handler.getEepromData() + eeepromData.stereoUseSpecTranslation = False + eeepromData.stereoEnableDistortionCorrection = True + + calibration_handler = dai.CalibrationHandler(eeepromData) print(f'EEPROM VERSION being flashed is -> {eeepromData.version}') eeepromData.version = 7 print(f'EEPROM VERSION being flashed is -> {eeepromData.version}') diff --git a/requirements.txt b/requirements.txt index f47e361ca..1fad0ddd4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,7 @@ requests==2.26.0 --extra-index-url https://www.piwheels.org/simple numpy>=1.21.4,<2.0.0 # For RPi Buster (last successful build) and macOS M1 (first build). But allow for higher versions, to support Python3.11 (not available in 1.21.4 yet) +opencv-python==4.5.5.62 # Last successful RPi build, also covers M1 with above pinned numpy (otherwise 4.6.0.62 would be required, but that has a bug with charuco boards). Python version not important, abi3 wheels opencv-contrib-python==4.5.5.62 # Last successful RPi build, also covers M1 with above pinned numpy (otherwise 4.6.0.62 would be required, but that has a bug with charuco boards). Python version not important, abi3 wheels --extra-index-url https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/wheels/ pyqt5>5,<5.15.6 ; platform_machine != "armv6l" and platform_machine != "armv7l" and platform_machine != "aarch64" and platform_machine != "arm64" diff --git a/resources/depthai_boards b/resources/depthai_boards index aed25bd88..314ef4e9b 160000 --- a/resources/depthai_boards +++ b/resources/depthai_boards @@ -1 +1 @@ -Subproject commit aed25bd8859b515f450253a3d5cb060274db2f24 +Subproject commit 314ef4e9b960f3fe20f601344ab1b762a318a680