This depthai plugin is a yolov5 model trained on the COCO dataset. The model computation takes place on the depthai device.
Make sure your udev rules are set according to depthai needs. If they are set already, skip this step.
echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="03e7", MODE="0666"' | sudo tee /etc/udev/rules.d/80-movidius.rules
sudo udevadm control --reload-rules && sudo udevadm trigger
To show a modified camera stream in online meetings it is necessary to create a virtual camera for each real camera you want to use.
- Activate the virtual environment
source .venv/bin/activate
- Get command to add a camera device
Then copy and execute the command of the camera you want to use.
python src/meetingcam/main.py add-devices --type depthai
- You can now see that the camera of your choice has a virtual counterpart.
python src/meetingcam/main.py list-devices --type depthai
Replace the device_path
with your cameras path which is the cameras mxid in the depthai case.
python src/meetingcam/main.py depthai-yolov5 device_path
Options and usage for the plugin are documented in the plugins help function.
python src/meetingcam/main.py depthai-yolov5
By default the bounding box and name imprint are shown.
You can hide the label imprints by pressing <Ctrl+Alt+l>.
The depthai plugins are running the models computation on device, which means that the detection takes place on the cameras hardware.