- Raspberry Pi CM4
- Raspberry Pi OS - Bullseye/Bookworm
- Camera libraries
- Picamera2
- IMX219
- boot/config.txt
- Yolo for Raspberry Pi
- Update the Raspberry Pi
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get autoremove -y
- Install the ultralytics Python package
pip3 install ultralytics
- Reboot
sudo reboot
- 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
test.py
python3 test.py