Skip to content

Commit

Permalink
Merge branch 'main' into tof_calib
Browse files Browse the repository at this point in the history
  • Loading branch information
MaticTonin committed Feb 23, 2024
2 parents 3da2c89 + c0a2d6e commit ab73f0c
Show file tree
Hide file tree
Showing 309 changed files with 8,157 additions and 5,717 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,11 @@ jobs:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: depthai_sdk/dist/

- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
event-type: robothub-oak-release
repository: luxonis/robothub-images
client-payload: '{"ref": "${{ github.ref }}"}'
4 changes: 2 additions & 2 deletions .github/workflows/test_install_requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@
- name: Download chocolatey
shell: pwsh
run: Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
- name: Install dependencies
- name: Install pycharm-community dependency
shell: pwsh
run: choco install cmake git python --version 3.10 pycharm-community -y
run: choco install pycharm-community -y
- name: Install requrirements
run: |
python install_requirements.py
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ share/python-wheels/
MANIFEST
*.idea
# DepthAI-Specific
dataset/
dataset*
*dataset*
.fw_cache/
depthai.calib
mesh_left.calib
Expand Down
7 changes: 4 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[submodule "depthai_sdk/src/depthai_sdk/integrations/depthai_pipeline_graph"]
path = depthai_sdk/src/depthai_sdk/integrations/depthai_pipeline_graph
url = https://github.com/luxonis/depthai_pipeline_graph
[submodule "resources/depthai_boards"]
path = resources/depthai_boards
url = https://github.com/luxonis/depthai-boards

[submodule "depthai_calibration"]
path = depthai_calibration
url = https://github.com/luxonis/depthai-calibration
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ _Click on the GIF below to see a full example run_
__Documentation is available at [https://docs.luxonis.com/en/latest/pages/tutorials/first_steps/](https://docs.luxonis.com/en/latest/pages/tutorials/first_steps/#first-steps-with-depthai).__

## Installation

First you need to clone this repository with
```
git clone --recursive https://github.com/luxonis/depthai.git
```
In case you have repository already cloned, you can update your submodules with:
```
git pull --recurse-submodules
```
There are two installation steps that need to be performed to make sure the demo works:
- **One-time installation** that will add all necessary packages to your OS.
```
Expand Down
1,422 changes: 712 additions & 710 deletions calibrate.py

Large diffs are not rendered by default.

48 changes: 0 additions & 48 deletions calibrate_and_test.py

This file was deleted.

File renamed without changes.
Binary file added charuco_boards_user_calib/charuco_24inch_13x7.pdf
Binary file not shown.
Binary file added charuco_boards_user_calib/charuco_28inch_15x8.pdf
Binary file not shown.
Binary file added charuco_boards_user_calib/charuco_32inch_17x9.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions depthai_calibration
Submodule depthai_calibration added at 524952
5 changes: 3 additions & 2 deletions depthai_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ def setup(self, conf: ConfigManager):
self._nnManager.countLabel(self._conf.getCountLabel(self._nnManager))
self._pm.setNnManager(self._nnManager)

self._device = dai.Device(self._pm.pipeline.getOpenVINOVersion(), self._deviceInfo, usb2Mode=self._conf.args.usbSpeed == "usb2")
maxUsbSpeed = dai.UsbSpeed.HIGH if self._conf.args.usbSpeed == "usb2" else dai.UsbSpeed.SUPER
self._device = dai.Device(self._pm.pipeline.getOpenVINOVersion(), self._deviceInfo, maxUsbSpeed)
self._device.addLogCallback(self._logMonitorCallback)
if sentryEnabled:
try:
Expand Down Expand Up @@ -288,7 +289,7 @@ def run(self):

if self._conf.useCamera:
cameras = self._device.getConnectedCameras()
if dai.CameraBoardSocket.LEFT in cameras and dai.CameraBoardSocket.RIGHT in cameras:
if dai.CameraBoardSocket.CAM_B in cameras and dai.CameraBoardSocket.CAM_C in cameras:
self._pv.collectCalibData(self._device)

self._updateCameraConfigs({
Expand Down
Empty file removed depthai_helpers/__init__.py
Empty file.
Loading

0 comments on commit ab73f0c

Please sign in to comment.