Dies ist eine alte Version des Dokuments!
Pi-Zero als USB-Cam
Achtung: Habe es nur mit 2020-02-05-raspbian-buster auf zero-w hinbekommen. Aber kein sudo apt-get update machen! Sonst kam unter Windows nur ein ganz kurzes Bild und dann war alles wieder weg.
Hiermit probiere ich es mal: https://www.jeffgeerling.com/blog/2020/raspberry-pi-makes-great-usb-webcam-100 https://github.com/geerlingguy/uvc-gadget
Davon hat der andere kopiert und zusammengefasst: http://www.davidhunt.ie/raspberry-pi-zero-with-pi-camera-as-usb-webcam/
Was man so alles mit der Camera machen kann: https://www.raspberrypi.com/documentation/accessories/camera.html
sudo apt install -y python3-dev python3-pip libyaml-dev libffi-dev git sudo pip3 install --no-binary pyyaml ansible git clone https://github.com/geerlingguy/pi-webcam.git cd pi-webcam cp inventory-local.example inventory ansible-playbook main.yml
Da der Fehler „ ModuleNotFoundError: No module named 'yaml'“ kam, musste ich noch
sudo python3 -m pip install pyyaml
Leider kann ich nicht gleichzeitig mit snips auf das Mikrofon und mit motion auf die Kamera zugreifen. Vielleicht geht es, wenn ich motioneye installiere?
sudo pip3 install motioneye sudo mkdir -p /etc/motioneye sudo cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf sudo mkdir -p /var/lib/motioneye # später dann, wenn es automatisch laufen soll: sudo cp /usr/local/share/motioneye/extra/motioneye.systemd-unit-local /etc/systemd/system/motioneye.service sudo systemctl daemon-reload sudo systemctl enable motioneye sudo systemctl start motioneye