diff --git a/camera/depthai.py b/camera/depthai.py index d6e702c..76962e6 100644 --- a/camera/depthai.py +++ b/camera/depthai.py @@ -5,7 +5,6 @@ import events.events_pb2 from google.protobuf.timestamp_pb2 import Timestamp import depthai as dai -from depthai_sdk import getDeviceInfo import cv2 logger = logging.getLogger(__name__) @@ -18,7 +17,6 @@ class FramePublisher: self._img_width = img_width self._img_height = img_height self._pipeline = self._configure_pipeline() - self._device_info = getDeviceInfo("18443010012F6C1200") def _configure_pipeline(self) -> dai.Pipeline: logger.info("configure pipeline") @@ -42,9 +40,8 @@ class FramePublisher: return pipeline def run(self): - logger.debug("device %s", self._device_info) # Connect to device and start pipeline - with dai.Device(self._pipeline, devInfo=self._device_info, usb2Mode=False) as device: + with dai.Device(self._pipeline) as device: logger.info('MxId: %s', device.getDeviceInfo().getMxId()) logger.info('USB speed: %s', device.getUsbSpeed()) logger.info('Connected cameras: %s', device.getConnectedCameras()) diff --git a/requirements.txt b/requirements.txt index 5d8cfdd..26f2b49 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,6 @@ paho-mqtt~=1.6.1 docopt~=0.6.2 depthai==2.14.1.0 -depthai-sdk opencv-python~=4.5.5.62 google~=3.0.0 google-api-core~=2.4.0 diff --git a/setup.py b/setup.py index 39e6233..68be304 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,6 @@ setup(name='robocar-oak-camera', }, setup_requires=['pytest-runner'], install_requires=['depthai', - 'depthai-sdk', 'docopt', 'paho-mqtt', 'protobuf3',