Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unsignedarduino/remote-picam
Host a Raspberry Pi Camera stream over the network!
https://github.com/unsignedarduino/remote-picam
picam picamera picamera-streaming python python3 raspberry-pi raspberry-pi-camera tkinter
Last synced: about 2 months ago
JSON representation
Host a Raspberry Pi Camera stream over the network!
- Host: GitHub
- URL: https://github.com/unsignedarduino/remote-picam
- Owner: UnsignedArduino
- Created: 2021-09-12T14:33:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-19T14:52:19.000Z (over 3 years ago)
- Last Synced: 2024-11-13T20:08:40.294Z (about 2 months ago)
- Topics: picam, picamera, picamera-streaming, python, python3, raspberry-pi, raspberry-pi-camera, tkinter
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Remote-PiCam
View and control a Raspberry Pi Camera mounted on a Waveshare pan/tilt HAT!## Installation
1. Set up a Raspberry Pi. The GUI is not needed on the Pi, so you can use SSH.
2. Obtain and connect a
[Raspberry Pi Camera](https://www.raspberrypi.org/products/camera-module-v2/).
3. Optional: Obtain, assemble, and connect a
[Waveshare Pan-Tilt HAT](https://www.waveshare.com/pan-tilt-hat.htm).
4. `git clone` this repo and `cd` into it.
5. Optional: Create a virtual environment with `python3 -m venv .venv` and then
activate the virtual environment with `source .venv/bin/activate`.
6. Install dependencies with `pip3 install -r requirements.txt`. (You can find
the list of dependencies in the
[`requirements.txt`](https://github.com/UnsignedArduino/Remote-PiCam/blob/main/requirements.txt)
file. )## Usage
To run, first start trying to connect using the
[Remote PiCam Viewer](https://github.com/UnsignedArduino/Remote-PiCam-Viewer).
Then, run
[`main.py`](https://github.com/UnsignedArduino/Remote-PiCam/blob/main/main.py).
When you disconnect from the PiCam, the script will stop, so you will have to
re-run the script if you want to reconnect.## Configuration
When you first run the script, a `settings.json` file should generate:
```json
{
"camera": {
"name": "picam",
"port": 7896
},
"pan_tilt": {
"enable": true
}
}
```
`camera.name` and `camera.port` should match in the PiCam Viewer settings,
otherwise the software won't discover it (`name` is not correct) or it will
stay connecting forever and get stuck. (`port` is not correct)`pan_tilt.enable` should be `true` if you have a Waveshare Pan/Tilt HAT
connected, otherwise `false`.