Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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}')
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check these actually work together. Numpy<2 and 4.5.5.62 are the last versions that work together. Check if depthai is compatible. Remove duplicates :=)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, tested and it worked, numpy can be removed, but I would basicly someday rather update to latest opencv and rework this requirements completely

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"
Expand Down
2 changes: 1 addition & 1 deletion resources/depthai_boards
Submodule depthai_boards updated 264 files
Loading