- Raspberry Pi 5 8GB
- logicool C270N
- microSDXC 64GB
- Raspberry Pi OS(64-bit)(Release date:July 4th 2024、Python 3.11.2)
OpenCV、torch等のインストール
sudo rm /usr/lib/python3.11/EXTERNALLY-MANAGED
sudo pip3 install opencv_python==4.8.1.78
sudo pip3 install torch==2.0.1
sudo pip3 install torchvision==0.15.2
sudo pip3 install torchaudio==2.0.2
sudo pip3 install cvzone==1.6.1
sudo pip3 install matplotlib==3.9.1
sudo pip3 install pyyaml==6.0.1
sudo pip3 install tqdm==4.66.4
sudo pip3 install py-cpuinfo==9.0.0
sudo pip3 install pandas==2.2.2
YOLOv8のインストール
sudo pip3 install ultralytics==8.2.50
YOLOv8の動作確認
yolo task=detect mode=predict model=yolov8n.pt source=0 show=True imgsz=256
Raspberry Pi 5:1 frame:0.114s(8.77fps)