From 0ef23367179a312bec8178146385f05ae0ceb887 Mon Sep 17 00:00:00 2001 From: alex-luxonis Date: Tue, 26 Nov 2024 02:47:33 +0200 Subject: [PATCH 01/19] FW: fix logging-related long-run crash in flashed/standalone app mode --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index d6a37a5ba..4d11c7d17 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit d6a37a5ba8ba2ee187fabc9208b813db5f75d4a7 +Subproject commit 4d11c7d17d662ac3be0d274c9614c807af2dc1bb From f45c370b770bbeeb2dbe0753eec5cdb0a94f63bb Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Tue, 26 Nov 2024 22:34:10 +0100 Subject: [PATCH 02/19] Update manylinux to 2_28 --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9f78edd3b..dc44c7ca7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -309,9 +309,9 @@ jobs: # to be removed when upgrading the manylinux image ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true container: - image: quay.io/pypa/manylinux2014_x86_64:latest + image: quay.io/pypa/manylinux_2_28_x86_64:latest env: - PLAT: manylinux2014_x86_64 + PLAT: manylinux_2_28_x86_64 steps: - name: Cache .hunter folder uses: actions/cache@v3 @@ -377,9 +377,9 @@ jobs: # to be removed when upgrading the manylinux image ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true container: - image: quay.io/pypa/manylinux2014_aarch64:latest + image: quay.io/pypa/manylinux_2_28_aarch64:latest env: - PLAT: manylinux2014_aarch64 + PLAT: manylinux_2_28_aarch64 # Mount local hunter cache directory, instead of transfering to Github and back volumes: - /.hunter:/github/home/.hunter From a5db0cd0d428b7795ecd70cdb82cdcf48a08f5ad Mon Sep 17 00:00:00 2001 From: moratom <47612463+moratom@users.noreply.github.com> Date: Wed, 27 Nov 2024 16:10:35 +0100 Subject: [PATCH 03/19] Drop support for the RPI buster And remove some comments that are not relevant anymore --- .github/workflows/main.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dc44c7ca7..0d5a2c526 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -136,12 +136,8 @@ jobs: needs: build-docstrings strategy: matrix: - rpi-os: [rpi-buster, rpi-bullseye, rpi-bookworm] + rpi-os: [rpi-bullseye, rpi-bookworm] runs-on: ${{ matrix.rpi-os }} - env: - # workaround required for cache@v3, https://github.com/actions/cache/issues/1428 - # to be removed when upgrading the manylinux image - ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true steps: - name: Print home directory run: echo Home directory inside container $HOME @@ -304,10 +300,6 @@ jobs: build-linux-x86_64: needs: build-docstrings runs-on: ubuntu-latest - env: - # workaround required for cache@v3, https://github.com/actions/cache/issues/1428 - # to be removed when upgrading the manylinux image - ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true container: image: quay.io/pypa/manylinux_2_28_x86_64:latest env: @@ -372,10 +364,6 @@ jobs: build-linux-arm64: needs: build-docstrings runs-on: [self-hosted, linux, ARM64] - env: - # workaround required for cache@v3, https://github.com/actions/cache/issues/1428 - # to be removed when upgrading the manylinux image - ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true container: image: quay.io/pypa/manylinux_2_28_aarch64:latest env: From 235d4fa8f8c3d1c7f5d26906570d4f79afe3b24e Mon Sep 17 00:00:00 2001 From: SzabolcsGergely Date: Tue, 7 Jan 2025 15:49:29 +0200 Subject: [PATCH 04/19] Stereo: PostProcessing: Handle edge case when median is last stage in post-processing pipeline AND depth output is enabled --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 4d11c7d17..2829e5d6f 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 4d11c7d17d662ac3be0d274c9614c807af2dc1bb +Subproject commit 2829e5d6f7216a6eaedfebe27dded9495dca473f From dbd8ed91ec7e59abbacb2e294f12ea0b77805fed Mon Sep 17 00:00:00 2001 From: SzabolcsGergely Date: Thu, 23 Jan 2025 16:48:44 +0200 Subject: [PATCH 05/19] Stereo: getMaxDisparity: handle scale factor when post processing is enabled --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 2829e5d6f..dd2258eb1 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 2829e5d6f7216a6eaedfebe27dded9495dca473f +Subproject commit dd2258eb141cb9ebb55ad7e1c0453cec83bb9608 From a3316d88ed7df5b410736cffab1edc708265a395 Mon Sep 17 00:00:00 2001 From: SzabolcsGergely Date: Thu, 23 Jan 2025 17:01:56 +0200 Subject: [PATCH 06/19] Attempt to fix CI --- .github/workflows/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0d5a2c526..8db9b9a98 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -55,7 +55,7 @@ jobs: - name: Build target 'pybind11_mkdoc' run: cmake --build build --target pybind11_mkdoc --parallel 4 - name: Upload docstring artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: docstrings path: docstrings/ @@ -165,7 +165,7 @@ jobs: mkdir -p wheelhouse/audited/ for whl in wheelhouse/preaudited/*linux_armv6l*.whl; do cp "$whl" wheelhouse/audited/$(basename $whl); done - name: Archive wheel artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: audited-wheels path: wheelhouse/audited/ @@ -223,7 +223,7 @@ jobs: - name: Building wheels run: python -m pip wheel . -w ./wheelhouse/audited/ --verbose - name: Archive wheel artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: audited-wheels path: wheelhouse/audited/ @@ -284,7 +284,7 @@ jobs: - name: Auditing wheels run: ci/repair-whl-macos.sh `pwd`/wheelhouse/* `pwd`/wheelhouse/audited - name: Archive wheel artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: audited-wheels path: wheelhouse/audited/ @@ -348,7 +348,7 @@ jobs: - name: Audit wheels run: for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat $PLAT -w wheelhouse/audited/; done - name: Archive wheel artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: audited-wheels path: wheelhouse/audited/ @@ -405,7 +405,7 @@ jobs: - name: Auditing wheels run: for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat $PLAT -w wheelhouse/audited/; done - name: Archive wheel artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: audited-wheels path: wheelhouse/audited/ From b8455b20349fa988531369445389f2720850560d Mon Sep 17 00:00:00 2001 From: SzabolcsGergely Date: Thu, 23 Jan 2025 18:13:09 +0200 Subject: [PATCH 07/19] CI: switch github actions to v4 --- .github/workflows/docker-hub.yml | 4 +- .github/workflows/main.yml | 44 +++++++++---------- .../workflows/test-install-dependencies.yml | 12 ++--- 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/workflows/docker-hub.yml b/.github/workflows/docker-hub.yml index 3caec9d99..3f4423ebf 100644 --- a/.github/workflows/docker-hub.yml +++ b/.github/workflows/docker-hub.yml @@ -27,7 +27,7 @@ jobs: with: args: /bin/sh -c "rm -rf /github/workspace/.* || rm -rf /github/workspace/*" - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive - name: Login to DockerHub @@ -46,7 +46,7 @@ jobs: run: echo "LUXONIS_IMAGE_TAG=${GITHUB_REF#refs/*/}-${{ matrix.arch }}" >> $GITHUB_ENV - name: Build and push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v4 with: push: true file: ci/Dockerfile diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8db9b9a98..b41f8e33e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,13 +32,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Cache .hunter folder - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.hunter key: hunter-ubuntu-latest - name: List .hunter cache directory run: ls -a -l ~/.hunter/_Base/ || true - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: 'recursive' - name: Set up Python @@ -79,22 +79,22 @@ jobs: cmake-version: '3.29.x' - name: Cache .hunter folder if: matrix.os != 'windows-latest' - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.hunter/ key: hunter-pytest-${{ matrix.os }} - name: Cache .hunter folder if: matrix.os == 'windows-latest' - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: C:/.hunter/ key: hunter-pytest-${{ matrix.os }} - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: 'recursive' - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: 'docstrings' path: docstrings @@ -141,11 +141,11 @@ jobs: steps: - name: Print home directory run: echo Home directory inside container $HOME - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: 'recursive' - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: 'docstrings' path: docstrings @@ -189,15 +189,15 @@ jobs: fail-fast: false steps: - name: Cache .hunter folder - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: C:/.hunter key: hunter-msvc - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: 'recursive' - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: 'docstrings' path: docstrings @@ -245,7 +245,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Cache .hunter folder - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.hunter key: hunter-macos-latest @@ -254,11 +254,11 @@ jobs: ls -a -l ~/.hunter/_Base/ || true echo "PATH=$PATH" - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: 'recursive' - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: 'docstrings' path: docstrings @@ -306,11 +306,11 @@ jobs: PLAT: manylinux_2_28_x86_64 steps: - name: Cache .hunter folder - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ~/.hunter key: hunter-x86_64 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: 'recursive' - name: Installing libusb1-devel dependency @@ -322,7 +322,7 @@ jobs: - name: Create folder structure run: mkdir -p wheelhouse/audited/ - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: 'docstrings' path: docstrings @@ -372,7 +372,7 @@ jobs: volumes: - /.hunter:/github/home/.hunter steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: 'recursive' - name: Installing libusb1-devel dependency @@ -384,7 +384,7 @@ jobs: - name: Create folder structure run: mkdir -p wheelhouse/audited/ - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: 'docstrings' path: docstrings @@ -423,7 +423,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: 'recursive' @@ -458,10 +458,10 @@ jobs: needs: [release] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: 'recursive' - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: audited-wheels path: wheelhouse/audited/ diff --git a/.github/workflows/test-install-dependencies.yml b/.github/workflows/test-install-dependencies.yml index 5635a594b..de1769d3b 100644 --- a/.github/workflows/test-install-dependencies.yml +++ b/.github/workflows/test-install-dependencies.yml @@ -20,7 +20,7 @@ container: image: ${{ matrix.container_image }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install sudo if: startsWith(matrix.container_image, 'fedora') == true run: yum update -y && yum install -y sudo @@ -38,7 +38,7 @@ sudo apt-get install -y python3-venv python3 -m venv .env . .env/bin/activate - pip install --upgrade pip + pip install --upgrade pip python3 examples/install_requirements.py shell: bash - name: Install example requirements @@ -51,7 +51,7 @@ os: ["macos-12", "macos-13", "macos-14"] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install dependencies run: | sed '/udevadm control --reload-rules && sudo udevadm trigger/d' docs/install_dependencies.sh > tmp_script.sh @@ -60,13 +60,13 @@ run: | python3 -m venv .env . .env/bin/activate - pip install --upgrade pip + pip install --upgrade pip python3 examples/install_requirements.py shell: bash test_windows: runs-on: windows-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: python-version: "3.10" @@ -79,4 +79,4 @@ - name: Install example requirements run: | python examples/install_requirements.py - + From f753c1790ad8bb34bfeb474ac84203b08a91fc0e Mon Sep 17 00:00:00 2001 From: SzabolcsGergely Date: Thu, 23 Jan 2025 18:53:59 +0200 Subject: [PATCH 08/19] CI: Unique artifact names --- .github/workflows/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b41f8e33e..8752b7921 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -167,7 +167,7 @@ jobs: - name: Archive wheel artifacts uses: actions/upload-artifact@v4 with: - name: audited-wheels + name: audited-wheels-${{ matrix.os }} path: wheelhouse/audited/ - name: Deploy wheels to artifactory (if not a release) if: startsWith(github.ref, 'refs/tags/v') != true @@ -225,7 +225,7 @@ jobs: - name: Archive wheel artifacts uses: actions/upload-artifact@v4 with: - name: audited-wheels + name: audited-wheels-${{ matrix.os }} path: wheelhouse/audited/ - name: Deploy wheels to artifactory (if not a release) if: startsWith(github.ref, 'refs/tags/v') != true @@ -286,7 +286,7 @@ jobs: - name: Archive wheel artifacts uses: actions/upload-artifact@v4 with: - name: audited-wheels + name: audited-wheels-${{ matrix.os }} path: wheelhouse/audited/ - name: Deploy wheels to artifactory (if not a release) if: startsWith(github.ref, 'refs/tags/v') != true @@ -350,7 +350,7 @@ jobs: - name: Archive wheel artifacts uses: actions/upload-artifact@v4 with: - name: audited-wheels + name: audited-wheels-${{ matrix.os }} path: wheelhouse/audited/ - name: Deploy wheels to artifactory (if not a release) if: startsWith(github.ref, 'refs/tags/v') != true @@ -407,7 +407,7 @@ jobs: - name: Archive wheel artifacts uses: actions/upload-artifact@v4 with: - name: audited-wheels + name: audited-wheels-${{ matrix.os }} path: wheelhouse/audited/ - name: Deploy wheels to artifactory (if not a release) if: startsWith(github.ref, 'refs/tags/v') != true @@ -463,7 +463,7 @@ jobs: submodules: 'recursive' - uses: actions/download-artifact@v4 with: - name: audited-wheels + name: audited-wheels-${{ matrix.os }} path: wheelhouse/audited/ - name: List files run: ls -lah From e7ed628ef4fa57e741477eb0229642ddac35c736 Mon Sep 17 00:00:00 2001 From: SzabolcsGergely Date: Thu, 23 Jan 2025 19:12:11 +0200 Subject: [PATCH 09/19] Change to github.run_id --- .github/workflows/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8752b7921..8a06751f9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -167,7 +167,7 @@ jobs: - name: Archive wheel artifacts uses: actions/upload-artifact@v4 with: - name: audited-wheels-${{ matrix.os }} + name: audited-wheels-${{ github.run_id }} path: wheelhouse/audited/ - name: Deploy wheels to artifactory (if not a release) if: startsWith(github.ref, 'refs/tags/v') != true @@ -225,7 +225,7 @@ jobs: - name: Archive wheel artifacts uses: actions/upload-artifact@v4 with: - name: audited-wheels-${{ matrix.os }} + name: audited-wheels-${{ github.run_id }} path: wheelhouse/audited/ - name: Deploy wheels to artifactory (if not a release) if: startsWith(github.ref, 'refs/tags/v') != true @@ -286,7 +286,7 @@ jobs: - name: Archive wheel artifacts uses: actions/upload-artifact@v4 with: - name: audited-wheels-${{ matrix.os }} + name: audited-wheels-${{ github.run_id }} path: wheelhouse/audited/ - name: Deploy wheels to artifactory (if not a release) if: startsWith(github.ref, 'refs/tags/v') != true @@ -350,7 +350,7 @@ jobs: - name: Archive wheel artifacts uses: actions/upload-artifact@v4 with: - name: audited-wheels-${{ matrix.os }} + name: audited-wheels-${{ github.run_id }} path: wheelhouse/audited/ - name: Deploy wheels to artifactory (if not a release) if: startsWith(github.ref, 'refs/tags/v') != true @@ -407,7 +407,7 @@ jobs: - name: Archive wheel artifacts uses: actions/upload-artifact@v4 with: - name: audited-wheels-${{ matrix.os }} + name: audited-wheels-${{ github.run_id }} path: wheelhouse/audited/ - name: Deploy wheels to artifactory (if not a release) if: startsWith(github.ref, 'refs/tags/v') != true @@ -463,7 +463,7 @@ jobs: submodules: 'recursive' - uses: actions/download-artifact@v4 with: - name: audited-wheels-${{ matrix.os }} + name: audited-wheels-${{ github.run_id }} path: wheelhouse/audited/ - name: List files run: ls -lah From e721436e316b88522e4fc1c261cf915a5189faa3 Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Fri, 24 Jan 2025 18:58:21 +0100 Subject: [PATCH 10/19] Bump core to develop --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index dd2258eb1..34a03f82e 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit dd2258eb141cb9ebb55ad7e1c0453cec83bb9608 +Subproject commit 34a03f82eb8a25f01755756dbc46250453eecca5 From 88357d8e8759cb7b115e81ba7f3d0d71dbfc218f Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Fri, 24 Jan 2025 19:06:27 +0100 Subject: [PATCH 11/19] Use unique names for artifacts --- .github/workflows/main.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8a06751f9..b045659f8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -167,7 +167,7 @@ jobs: - name: Archive wheel artifacts uses: actions/upload-artifact@v4 with: - name: audited-wheels-${{ github.run_id }} + name: audited-wheels-${{ matrix.rpi-os }} path: wheelhouse/audited/ - name: Deploy wheels to artifactory (if not a release) if: startsWith(github.ref, 'refs/tags/v') != true @@ -225,7 +225,7 @@ jobs: - name: Archive wheel artifacts uses: actions/upload-artifact@v4 with: - name: audited-wheels-${{ github.run_id }} + name: audited-wheels-windows-${{ matrix.python-version }}-${{ matrix.python-architecture }} path: wheelhouse/audited/ - name: Deploy wheels to artifactory (if not a release) if: startsWith(github.ref, 'refs/tags/v') != true @@ -286,7 +286,7 @@ jobs: - name: Archive wheel artifacts uses: actions/upload-artifact@v4 with: - name: audited-wheels-${{ github.run_id }} + name: audited-wheels-macos-${{ matrix.python-version }}-${{ matrix.os }} path: wheelhouse/audited/ - name: Deploy wheels to artifactory (if not a release) if: startsWith(github.ref, 'refs/tags/v') != true @@ -350,7 +350,7 @@ jobs: - name: Archive wheel artifacts uses: actions/upload-artifact@v4 with: - name: audited-wheels-${{ github.run_id }} + name: audited-wheels-linux-x86_64 path: wheelhouse/audited/ - name: Deploy wheels to artifactory (if not a release) if: startsWith(github.ref, 'refs/tags/v') != true @@ -407,7 +407,7 @@ jobs: - name: Archive wheel artifacts uses: actions/upload-artifact@v4 with: - name: audited-wheels-${{ github.run_id }} + name: audited-wheels-linux-arm64 path: wheelhouse/audited/ - name: Deploy wheels to artifactory (if not a release) if: startsWith(github.ref, 'refs/tags/v') != true @@ -463,7 +463,8 @@ jobs: submodules: 'recursive' - uses: actions/download-artifact@v4 with: - name: audited-wheels-${{ github.run_id }} + pattern: audited-wheels* + merge-multiple: true path: wheelhouse/audited/ - name: List files run: ls -lah From a9ca2b6134fd0f6cf57a76dda94a9701226f7c87 Mon Sep 17 00:00:00 2001 From: SzabolcsGergely Date: Thu, 30 Jan 2025 21:44:13 +0200 Subject: [PATCH 12/19] Fix Hand Tracker demo --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 34a03f82e..65f7c066e 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 34a03f82eb8a25f01755756dbc46250453eecca5 +Subproject commit 65f7c066e4563d37ff9495b73455fdacd6fd4656 From 6056b65a8b8abf7d4c330bba2d20fac6ee7edc2d Mon Sep 17 00:00:00 2001 From: SzabolcsGergely Date: Wed, 19 Feb 2025 08:49:20 +0200 Subject: [PATCH 13/19] Update FW: fixes for MessageGroup --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 65f7c066e..9736798f4 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 65f7c066e4563d37ff9495b73455fdacd6fd4656 +Subproject commit 9736798f4e7303a86adca7be11566c31bf148612 From 06bc4606ab89ba692c8de70c0815e489300fa231 Mon Sep 17 00:00:00 2001 From: alex-luxonis Date: Thu, 13 Mar 2025 15:39:09 +0200 Subject: [PATCH 14/19] FW: IMX378 autodetect VCM (focus chip), depthai-core PR: https://github.com/luxonis/depthai-core/pull/1265 --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 9736798f4..721a09e24 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 9736798f4e7303a86adca7be11566c31bf148612 +Subproject commit 721a09e24e5772aa67dfdc857e3de5fbff8e9d48 From d4979a967b5fd4860153aadf727ffff7c38585d7 Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Fri, 14 Mar 2025 16:42:57 +0100 Subject: [PATCH 15/19] Bump core to release_v2.30.0. branch --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 721a09e24..79cdb20cc 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 721a09e24e5772aa67dfdc857e3de5fbff8e9d48 +Subproject commit 79cdb20ccea2f158b370c5c207a4e178c377c3b3 From 75246755d7e1b6a8464d7755ac575eabc4e5fdbf Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Fri, 14 Mar 2025 17:50:22 +0100 Subject: [PATCH 16/19] Add RVC4 discovery and a notice to use v3.x version for RVC4 devices --- depthai-core | 2 +- src/DeviceBindings.cpp | 11 +++++++++-- src/XLinkBindings.cpp | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/depthai-core b/depthai-core index 79cdb20cc..f5497b989 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 79cdb20ccea2f158b370c5c207a4e178c377c3b3 +Subproject commit f5497b9893ee2dbd0e8cb7afa9faa64c33f2d983 diff --git a/src/DeviceBindings.cpp b/src/DeviceBindings.cpp index 7f94027d1..ac4d10e4a 100644 --- a/src/DeviceBindings.cpp +++ b/src/DeviceBindings.cpp @@ -9,6 +9,7 @@ #include "depthai-shared/device/CrashDump.hpp" // std::chrono bindings +#include #include // py::detail #include @@ -41,8 +42,14 @@ static auto deviceSearchHelper(Args&&... args){ auto numConnected = DEVICE::getAllAvailableDevices().size(); if(numConnected > 0) { throw std::runtime_error("No available devices (" + std::to_string(numConnected) + " connected, but in use)"); - } else { - throw std::runtime_error("No available devices"); + } + auto numDevicesAnyPlatform = dai::XLinkConnection::getAllConnectedDevices(X_LINK_ANY_STATE, false, X_LINK_ANY_PLATFORM).size(); + auto numDevicesRVC2 = dai::XLinkConnection::getAllConnectedDevices( + X_LINK_ANY_STATE, false, X_LINK_MYRIAD_X) + .size(); + auto nonRVC2Devices = numDevicesAnyPlatform - numDevicesRVC2; + if(nonRVC2Devices > 0) { + throw std::runtime_error("No available RVC2 devices found, but found " + std::to_string(nonRVC2Devices) + " non RVC2 device[s]. To use RVC4 devices, please update DepthAI to version v3.x or newer."); } } diff --git a/src/XLinkBindings.cpp b/src/XLinkBindings.cpp index bb5475fd3..b76ac864f 100644 --- a/src/XLinkBindings.cpp +++ b/src/XLinkBindings.cpp @@ -133,7 +133,7 @@ void XLinkBindings::bind(pybind11::module &m, void *pCallstack) .def(py::init >()) .def(py::init()) .def(py::init()) - .def_static("getAllConnectedDevices", &XLinkConnection::getAllConnectedDevices, py::arg("state") = X_LINK_ANY_STATE, py::arg("skipInvalidDevices") = true) + .def_static("getAllConnectedDevices", &XLinkConnection::getAllConnectedDevices, py::arg("state") = X_LINK_ANY_STATE, py::arg("skipInvalidDevices") = true, py::arg("platform") = X_LINK_MYRIAD_X) .def_static("getFirstDevice", &XLinkConnection::getFirstDevice, py::arg("state") = X_LINK_ANY_STATE, py::arg("skipInvalidDevice") = true) .def_static("getDeviceByMxId", &XLinkConnection::getDeviceByMxId, py::arg("mxId"), py::arg("state") = X_LINK_ANY_STATE, py::arg("skipInvalidDevice") = true) .def_static("bootBootloader", &XLinkConnection::bootBootloader, py::arg("devInfo")) From 4545b69a1fd4d6b55bb1957a878ed012ccaaa53f Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Fri, 14 Mar 2025 20:04:34 +0100 Subject: [PATCH 17/19] Update core --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index f5497b989..2cfb31061 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit f5497b9893ee2dbd0e8cb7afa9faa64c33f2d983 +Subproject commit 2cfb31061d3c23db34167b1fe4b838c91b1d02e9 From 1f28f5dbb9f8e7f4010e72dbd59e1b7ee99bd277 Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Mon, 17 Mar 2025 01:26:04 +0100 Subject: [PATCH 18/19] Bump core --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 2cfb31061..4f845ca74 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 2cfb31061d3c23db34167b1fe4b838c91b1d02e9 +Subproject commit 4f845ca74c440f0f0995d9b84c767a98439d8c6f From eae8f6a61ee2408317ffaeb5cbe67ac12c00ee30 Mon Sep 17 00:00:00 2001 From: Matevz Morato Date: Mon, 17 Mar 2025 01:28:32 +0100 Subject: [PATCH 19/19] Bump core to main --- depthai-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depthai-core b/depthai-core index 4f845ca74..412bd6031 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 4f845ca74c440f0f0995d9b84c767a98439d8c6f +Subproject commit 412bd603120ff657b805752874e1b1c4b7f30045