/yolo_on_RPi

Primary LanguagePython

yolo_on_RPi

Development environment

Docs

  • Yolo for Raspberry Pi

https://docs.ultralytics.com/guides/raspberry-pi/

How to run script

Install Necessary Packages

  1. Update the Raspberry Pi
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get autoremove -y
  1. Install the ultralytics Python package
pip3 install ultralytics
  1. Reboot
sudo reboot

Initiate TCP Stream with Libcamera

  1. Start the TCP stream
libcamera-vid -n -t 0 --width 1280 --height 960 --framerate 1 --inline --listen -o tcp://127.0.0.1:8888

Run script

  1. Run test.py
python3 test.py