Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.43 KB

INSTALL.md

File metadata and controls

37 lines (29 loc) · 1.43 KB

Create config guides for each board

recommended fps and resolution. Zero W is the trickiest. Keeps stalling on me.

Raspberry Pi board setup

  1. Use rpi-imager to install Pi OS Lite to an SDCard
  2. Boot your pi. Set the hostname, enable the legacy camera interface, timezone, keyboard and locale
  3. apt update && apt upgrade
  4. apt install git
  5. Clone the pimera repo
  6. cd mmal-version
  7. Run make target for your board: make four, make three, make zero
  8. Make ~/h264 folder to store videos
  9. Adjust mmal-version/settings.ini as desired
  10. Adjust cpu-metrics/cpu-metrics.service for your StatsD / InfluxDB server. MORE WORK NEEDED HERE
  11. Copy cpu-metrics/cpu-metrics.service
  12. Adjust mmal-version/pimera.service if necessary and copy to /etc/systemd/system
  13. systemctl daemon-reload
  14. Use systemctl enable on cpu-metrics and pimera if you want them to start on boot
  15. Run systemctl start cpu-metrics to start CPU usage and temperature collection now
  16. Run systemctl start pimera to start PiMera now
  17. Open http://IP_OF_PI:8080 to view the live stream and select the detection region

Storage and processing server setup

I use Debian.

TODO: adapt video-browser/api.py to work without Caddy

  1. Install mysql/mariadb, python3 and venv, the caddy webserver
  2. Clone the pimera repository
  3. Prepare mysql database
  4. Fetch YOLO model
  5. Update pimera/config.json with database credentials, path to YOLO model, path to videos, path to thumbnails