diff --git a/.github/workflows/test_install_requirements.yml b/.github/workflows/test_install_requirements.yml index 56ba8e41f..4dab13002 100644 --- a/.github/workflows/test_install_requirements.yml +++ b/.github/workflows/test_install_requirements.yml @@ -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 diff --git a/depthai_demo.py b/depthai_demo.py index 691a89880..41a2a3d36 100755 --- a/depthai_demo.py +++ b/depthai_demo.py @@ -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: @@ -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({ diff --git a/depthai_sdk/requirements.txt b/depthai_sdk/requirements.txt index 01580b840..a4b309dd8 100644 --- a/depthai_sdk/requirements.txt +++ b/depthai_sdk/requirements.txt @@ -4,7 +4,7 @@ opencv-contrib-python>4 blobconverter>=1.4.1 pytube>=12.1.0 --extra-index-url https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/ -depthai==2.22.0 +depthai==2.24.0 PyTurboJPEG==1.6.4 marshmallow==3.17.0 xmltodict diff --git a/requirements.txt b/requirements.txt index 59a73c082..5be95088c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,6 +6,6 @@ depthai-sdk==1.9.4 --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" --extra-index-url https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/ -depthai==2.21.2.0 +depthai==2.24.0.0 Qt.py scipy \ No newline at end of file