thanks erik for clarifying the installation. So I just need to install the depthai 2.9.0.0 and this lib will contain OCP and OP.
Okay, so after I installed it and a couple of other dependencies(including setup the USB rules) and I ran:
$ python3 depthai_demo.py -cnn deeplabv3p_person
/usr/lib/python3/dist-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.6) or chardet (3.0.4) doesn't match a supported version!
RequestsDependencyWarning)
Using depthai module from: /home/pi/.local/lib/python3.7/site-packages/depthai.cpython-37m-arm-linux-gnueabihf.so
Depthai version installed: 2.9.0.0
Available devices:
[0] 14442C10013762D700 [X_LINK_UNBOOTED]
Enabling low-bandwidth mode due to low USB speed... (speed: UsbSpeed.HIGH)
Creating MJPEG link for ColorCamera node and color xlink stream...
Traceback (most recent call last):
File "depthai_demo.py", line 148, in <module>
pm.create_color_cam(nn_manager.input_size if conf.useNN else conf.previewSize, rgb_res, conf.args.rgb_fps, conf.args.full_fov_nn, xout=Previews.color.name in conf.args.show)
File "/home/pi/Work/MyBuddy/depthai/depthai_helpers/managers.py", line 662, in create_color_cam
self.mjpeg_link(self.nodes.cam_rgb, self.nodes.xout_rgb, self.nodes.cam_rgb.video)
File "/home/pi/Work/MyBuddy/depthai/depthai_helpers/managers.py", line 623, in mjpeg_link
if isinstance(node, dai.ColorCamera) or isinstance(node, dai.MonoCamera):
AttributeError: module 'depthai' has no attribute 'ColorCamera'
So this is the error I got. Could you please help?
Btw, my python3 is 3.7.3
Many thanks,
Winston