After connecting the OAK device, follow these steps:
-
If you are using the OAK device for the first time, you need to configure the rules first. Run the following commands in the terminal:
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
-
Create virtual environment:
conda create -n <name_of_virtualenv> python==3.9
or
python3 -m venv <name_of_virtualenv>
-
Activate the environment using the following command:
source /name_of_virtualenv/bin/activate
if conda env:
conda activate name_of_virtualenv
-
Navigate to the project directory:
cd <project directory>
-
Intall the requirements.
pip install -r requirements.txt
-
Run the following command to execute the model:
python main.py --model weights/yolov8n_openvino_2022.1_6shave.blob --config weights/yolov8n.json