1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Raspberry Pi 5で YOLOv8.2を動かす

Posted at
  • 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)

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?