Skip to content

Commit

Permalink
Updated lib version, updated depthai-demo a bit so it doesn't throw w…
Browse files Browse the repository at this point in the history
…arnings
  • Loading branch information
Erol444 committed Feb 5, 2024
1 parent e1c1f58 commit 4416553
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
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
2 changes: 1 addition & 1 deletion depthai_sdk/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4416553

Please sign in to comment.